We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d87d004 commit 3b3dfb7Copy full SHA for 3b3dfb7
1 file changed
src/mapml/handlers/AnnounceMovement.js
@@ -5,7 +5,10 @@ export var AnnounceMovement = L.Handler.extend({
5
layerremove: this.totalBounds
6
});
7
8
- this._map.on('map-moveend', this.announceBounds);
+ this._map.options.mapEl.addEventListener(
9
+ 'map-moveend',
10
+ this.announceBounds
11
+ );
12
this._map.dragging._draggable.addEventListener('dragstart', this.dragged);
13
this._map.options.mapEl.addEventListener(
14
'mapfocused',
@@ -18,7 +21,10 @@ export var AnnounceMovement = L.Handler.extend({
18
21
19
22
20
23
- this._map.off('map-moveend', this.announceBounds);
24
+ this._map.options.mapEl.removeEventListener(
25
26
27
28
this._map.dragging._draggable.removeEventListener(
29
'dragstart',
30
this.dragged
0 commit comments