Temporary dded zoom control back

This commit is contained in:
Mihai Varga 2015-03-23 18:57:23 +02:00
parent 4974ea15b1
commit 5db22c1962

View file

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