Problem with map max zoom

297
1
06-13-2012 04:37 AM
StepanLeonov
New Contributor
I need to set max zoom level for map because in some places in doesn't have detailed information data.
How better to do that?
I'm using Drupal And this is my code in js
var map = new esri.Map(id, config.options);

  var mapLayer = new esri.layers.ArcGISTiledMapServiceLayer('//server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer');
  map.addLayer(mapLayer);
Any Ideas?
0 Kudos
1 Reply
HemingZhu
Occasional Contributor III
I need to set max zoom level for map because in some places in doesn't have detailed information data.
How better to do that?
I'm using Drupal And this is my code in js
var map = new esri.Map(id, config.options);

  var mapLayer = new esri.layers.ArcGISTiledMapServiceLayer('//server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer');
  map.addLayer(mapLayer);
Any Ideas?


Since it is a tiled map service, you could use map's lods property to control the zoom level. ESRI have a sample for this: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/map_customtilelevels.html
0 Kudos