listen to moveend instead so we know where we are after a map drag
This commit is contained in:
parent
7aa9d95e9a
commit
a5552f4ed4
@ -544,7 +544,7 @@ L.Map = L.Evented.extend({
|
||||
console.log('update', c);
|
||||
};
|
||||
proxy.getEvents = function () {
|
||||
return { zoomanim: proxy._animateZoom, viewreset: proxy.update };
|
||||
return { zoomanim: proxy._animateZoom, moveend: proxy.update };
|
||||
};
|
||||
|
||||
this.addLayer(proxy);
|
||||
|
Loading…
Reference in New Issue
Block a user