nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit e9df7d7ae653160bcd72b3e910784e5c5878086a
parent eca0bc6acf403d41266ee059b6090f32a8c00f90
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sat, 25 Mar 2017 01:18:05 +0300

[rotated marker] remove unneeded handler, it breaks rotation when dragging marker

Diffstat:
Msrc/vendored/github.com/bbecquet/Leaflet.RotatedMarker/leaflet.rotatedMarker.js | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/vendored/github.com/bbecquet/Leaflet.RotatedMarker/leaflet.rotatedMarker.js b/src/vendored/github.com/bbecquet/Leaflet.RotatedMarker/leaflet.rotatedMarker.js @@ -4,7 +4,6 @@ import L from 'leaflet'; // save these original methods before they are overwritten var proto_initIcon = L.Marker.prototype._initIcon; var proto_setPos = L.Marker.prototype._setPos; - var proto_onDrag = L.Handler.MarkerDrag.prototype._onDrag; var oldIE = (L.DomUtil.TRANSFORM === 'msTransform'); @@ -54,11 +53,4 @@ import L from 'leaflet'; return this; } }); - - L.Handler.MarkerDrag.include({ - _onDrag: function (e) { - proto_onDrag.call(this, e); - this._marker._applyRotation(); - } - }) })();