AnsweredAssumed Answered

What is the correct tileInfo for MapBox basemaps

Question asked by bflessner on May 12, 2016
Latest reply on May 16, 2016 by bflessner

I'm trying to use a MapBox basemap in a JS API (3.16) app and they are using tiles that are 512px instead of the typical 256px. This causes the map to be one zoom level off and the labels and such appear 'shrunk':

 

Mapbox Satellite Streets | Mapbox

versus

Edit fiddle - JSFiddle

 

I think I might be able to set the tileInfo on the webTiledLayer to adjust for this, but after some playing around, I have not found success. Leaflet has a zoomOffset property in their tiledLayer that allows for this change, but no such thing exists in the JS API. I've also tried to modify the LODs by altering the level by 1, but that didn't work either. What is the correct tileInfo for MapBox basemaps or how do I get the zoom levels adjusted so that the map renders correctly?

 

Thanks!!

Outcomes