add autopanstart event to Map
This commit is contained in:
parent
76b0a1de5a
commit
0479e24034
1
dist/leaflet-src.js
vendored
1
dist/leaflet-src.js
vendored
@ -2767,6 +2767,7 @@ L.Popup = L.Class.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (adjustOffset.x || adjustOffset.y) {
|
if (adjustOffset.x || adjustOffset.y) {
|
||||||
|
map.fire('autopanstart');
|
||||||
map.panBy(adjustOffset);
|
map.panBy(adjustOffset);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
2
dist/leaflet.js
vendored
2
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
@ -212,6 +212,7 @@ L.Popup = L.Class.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (adjustOffset.x || adjustOffset.y) {
|
if (adjustOffset.x || adjustOffset.y) {
|
||||||
|
map.fire('autopanstart');
|
||||||
map.panBy(adjustOffset);
|
map.panBy(adjustOffset);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user