set the level of display in map declaration

363
1
09-17-2013 08:36 AM
NigelAlford
New Contributor III
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
Occasional Contributor III
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