map.__tileInfo = null; map.__LOD = null; veTileLayer = null; map._params.maxScale = 0; map._params.minScale = 0; map._params.minZoom = -1; map._params.maxZoom = -1; map._params.tileInfo = null; map._params.lods = null;
map.__LOD = tileLod; map.__tileInfo = veTileLayer.tileInfo; map._params.minScale = tileLods[0].scale; map._params.maxScale = tileLods[tileLods.length - 1].scale; map._params.minZoom = 0; map._params.maxZoom = tileLods.length - 1; map._params.tileInfo = tileLayer.tileInfo; map._params.lods = tileLods;
Ok so a dynamic map service doesn't have any scales, only the tiled map service does. You would have to set the scales in the map.lods property. Have a look at this sample - http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/map_switch_layer_on_zoom.htmlSo you could set the scales there to use.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.