Select to view content in your preferred language

set the level of display in map declaration

418
1
09-17-2013 08:36 AM
NigelAlford
Occasional Contributor
in the non-amd iteration of the API there was a 'lods' method that could be used to set the level of displays of the map to allow the map to be zoomed in closer than the basemap allows.  I don't see this in the new documentation.  Has this been deprecated? if so what's the new way to set the LOD or allow the map to zoom in closer than the basemap allows?

thx
0 Kudos
1 Reply
BenFousek
Deactivated User
You can still set lods when creating a map. Not sure why it's no longer listed in the reference.

//the map
app.map = new esri.Map('center-map', {
  lods: config.map.lods,
  basemap: config.map.basemap,
  center: config.map.center,
  zoom: config.map.zoom,
  logo: config.map.logo,
  showAttribution: config.map.showAttribution
});


As always if you use Web Mercator basemaps you must use standard lods.
0 Kudos