Temporary dded zoom control back
This commit is contained in:
parent
4974ea15b1
commit
5db22c1962
1 changed files with 11 additions and 0 deletions
|
@ -86,6 +86,17 @@ L.Control.Zoom = L.Control.extend({
|
|||
}
|
||||
});
|
||||
|
||||
L.Map.mergeOptions({
|
||||
zoomControl: true
|
||||
});
|
||||
|
||||
L.Map.addInitHook(function () {
|
||||
if (this.options.zoomControl) {
|
||||
this.zoomControl = new L.Control.Zoom();
|
||||
this.addControl(this.zoomControl);
|
||||
}
|
||||
});
|
||||
|
||||
L.control.zoom = function (options) {
|
||||
return new L.Control.Zoom(options);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue