call init hooks before adding layers (fixes zoom anim regression)

This commit is contained in:
Vladimir Agafonkin 2013-06-24 17:37:31 -04:00
parent 7223a7e49b
commit a12bd9474f

View File

@ -35,11 +35,10 @@ L.Map = L.Class.extend({
this.setView(L.latLng(options.center), options.zoom, {reset: true}); this.setView(L.latLng(options.center), options.zoom, {reset: true});
} }
this._initLayers(options.layers);
this._handlers = []; this._handlers = [];
this.callInitHooks(); this.callInitHooks();
this._initLayers(options.layers);
}, },