Saturday, 30 September 2017

javascript - Setting max zoom in mapbox map?


     mapObject = L.mapbox.map('mapDiv')
.setView(defaultLocation,defaultZoom)
.addControl(L.mapbox.geocoderControl('mapbox.places'));


L.mapbox.styleLayer('mapbox://styles/gauravcatstech/civ82vos7008f2is5x92cp vye').addTo(mapObject);

L.control.scale({maxWidth: 100,metric: true, imperial: false}).addTo(mapObject);


How would i set max zoom in mapbox map..i have try object.maxZoome but sitt not able to set maxzoom




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...