AnsweredAssumed Answered

Min/Max Zoom on view

Question asked by nachchid_sel on Nov 10, 2017
Latest reply on Nov 13, 2017 by nachchid_sel

I am trying to set the following properties on the view   (arcgis api 4.5)

 

effectiveMinZoom

effectiveMaxZoom.

 

So that I can set the max and min allowed zoom level .    For some reason I don't see any errors and the min and max zoom levels are not set.

 

I also tried minZoom and maxZoom. No luck

 

Here is my code :

 

var map = new Map({
            basemap: "hybrid"            
            });

 

           // map.add(transportationLyr);

 

        var view = new MapView({
            container: "viewDiv",  // Reference to the DOM node that will contain the view
            map: map,               // References the map object created in step 3
            zoom: 12,
            effectiveMaxZoom: 15,
            effectiveMinZoom: 10,
            center: [-82.78,35.0],
            padding:{
                right:320
                }
            });

Outcomes