AnsweredAssumed Answered

Possible 4.0 beta 1 bug? (view.minZoom)

Question asked by processing... on Sep 25, 2015
Latest reply on Sep 28, 2015 by processing...

Please review the following code and let me know if I'm missing something. It appears that minZoom is ignored. A map appears but the user can zoom the map out all the way. I tried setting the minZoom property when I initialize a MapView instance. And, please notice that I tried setting minZoom after view is initialized. The line view.minZoom = 3; is commented out in the snippet because I tested both ways separately.


map = new Map({
    basemap: 'topo'

view = new MapView({
    container: id,
    map: map,
    center: [-100, 35],
    zoom: 4,
    minZoom: 3

// view.minZoom = 3;
view.ui.components = []; // toggles all default widgets off


Thank you,