Generally, there is no level limit for the added map. The level of the map is changed based on the scroll wheel sliding. Follow the settings below in the jsapi below to control the layer's Zoom level. First, define the scale: varlods [{& quot; level & quot;... SyntaxHighlighter. all ();
Generally, there is no level limit for the added map. The level of the map is changed based on the scroll wheel sliding. Follow the settings below in the jsapi below to control the layer's Zoom level. First, define the scale:
var lods = [ {"level" : 0, "resolution" : 0.703125, "scale" : 295497593.05875003}, {"level" : 1, "resolution" : 0.3515625, "scale" : 147748796.52937502}, {"level" : 2, "resolution" : 0.17578125, "scale" : 73874398.264687508}, {"level" : 3, "resolution" : 0.087890625, "scale" : 36937199.132343754}, {"level" : 4, "resolution" : 0.0439453125, "scale" : 18468599.566171877}, {"level" : 5, "resolution" : 0.02197265625, "scale" : 9234299.7830859385}, {"level" : 6, "resolution" : 0.010986328125, "scale" : 4617149.8915429693}, {"level" : 7, "resolution" : 0.0054931640625, "scale" : 2308574.9457714846} ]; var lods = [ {"level" : 0, "resolution" : 0.703125, "scale" : 295497593.05875003}, {"level" : 1, "resolution" : 0.3515625, "scale" : 147748796.52937502}, {"level" : 2, "resolution" : 0.17578125, "scale" : 73874398.264687508}, {"level" : 3, "resolution" : 0.087890625, "scale" : 36937199.132343754}, {"level" : 4, "resolution" : 0.0439453125, "scale" : 18468599.566171877}, {"level" : 5, "resolution" : 0.02197265625, "scale" : 9234299.7830859385}, {"level" : 6, "resolution" : 0.010986328125, "scale" : 4617149.8915429693}, {"level" : 7, "resolution" : 0.0054931640625, "scale" : 2308574.9457714846}
]; Added the loads parameter during map instantiation.
[ new esri.Map("mapDiv", {"logo":false,"lods":lods}); new esri.Map("mapDiv", {"logo":false,"lods":lods});
The specific effects are as follows: