call init hooks before adding layers (fixes zoom anim regression)
This commit is contained in:
parent
7223a7e49b
commit
a12bd9474f
@ -35,11 +35,10 @@ L.Map = L.Class.extend({
|
||||
this.setView(L.latLng(options.center), options.zoom, {reset: true});
|
||||
}
|
||||
|
||||
this._initLayers(options.layers);
|
||||
|
||||
this._handlers = [];
|
||||
|
||||
this.callInitHooks();
|
||||
|
||||
this._initLayers(options.layers);
|
||||
},
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user