AnsweredAssumed Answered

Unable to zoom in beyond zoom level 16 - ArcGIS API for JS

Question asked by pmccord_wayne on Jul 24, 2020
Latest reply on Jul 25, 2020 by pmccord_wayne

Hello,

 

I'm creating a map application using the ArcGIS API for JS v4.11. I'm running into an issue where I can't zoom closer than zoom level 16. I've applied constraints to my MapView, which I've called myView:

 

//Constrain the max and min zoom levels
    myView.constraints = {
        minZoom: 13,
        maxZoom: 19
    };

 

The minZoom is being honered... I can't zoom out further than zoom level 13, but I can't zoom in to 19.

 

I don't know if it makes a difference, but I'm using a custom basemap that I created using the Vector Tile Style Editor: ArcGIS Vector Tile Style Editor 

 

Is there any additional configuration I need to do if using a custom basemap? Here's how I bring in the custom basemap:

 

//Create the main map, starting with a custom basemap
    var basemap = new Basemap({
        baseLayers: [
            new VectorTileLayer({
                portalItem: {
                    id: "ddef64bb74174dd6adf7cff46dd24da7"
                }
            })
        ],
        title: "customBM",
        id: "customBM"
    });

 

Thanks,

Paul

Outcomes