javascript - LeafletJS: How to remove the zoom control -
i'm trying remove zoom controls (+/-) on leafletjs map.
i'm using mapbox.js version of leaflet of operations same leaflet. implement map this:
var map = l.mapbox.map('map'); var layer = l.mapbox.tilelayer('mapbox-id', { format: 'jpg70', minzoom: 13, maxzoom: 15, reusetiles: true, unloadinvisibletiles: true }); map.addlayer(layer); map.setview([40.73547,-73.987856]);
the documentation says there's zoomcontrol option remove zoom control map i've had no luck in getting work.
how can remove zoom control implementation?
thanks!
this work me.
var map = new l.map('map', { zoomcontrol:false });
did try?
var map = l.mapbox.map('map', { zoomcontrol:false });
Comments
Post a Comment