listen to moveend instead so we know where we are after a map drag

This commit is contained in:
Dave Leaver 2014-03-20 11:33:52 +13:00 committed by Vladimir Agafonkin
parent 7aa9d95e9a
commit a5552f4ed4

View File

@ -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);