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 ArcGIS JS API. I've also tried to modify the LODs, but I couldn'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?

1 Answer 1


As far as i know, the ArcGIS API for JavaScript doesn't have a handy shorthand to bump LODs on the fly but you can supply an altered set yourself.

tileInfo: new TileInfo({
  spatialReference: new SpatialReference({
    "wkid": 3857
  rows: 512,
  cols: 512,
  origin: {
    "x": -20037508.34,
    "y": 20037508.34
  lods: [
    {"level":-1,"resolution":156543.033928,"scale":591657527.591555}, // typically 0
    {"level":0,"resolution":78271.5169639999,"scale":295828763.795777}, // typically 1

live demo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.