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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -