Problem: custom LODS makes disappear basemap

822
3
Jump to solution
11-19-2012 11:19 AM
YvanBérard
Occasional Contributor
Hi all,

since i used custom LODS, my basemap won't show.

Why?

I'm using the basemap World_Imagery from ArcGIS Online.

Thank's for your help.

var basemapUrl = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"; var lods = [ {  "level": 0,  "resolution": 26.458386250105836,  "scale": 100000 }, {  "level": 1,  "resolution": 13.229193125052918,  "scale": 50000 }, {  "level": 2,  "resolution": 5.291677250021167,  "scale": 20000 }, {  "level": 3,  "resolution": 2.6458386250105836,  "scale": 10000 }, {  "level": 4,  "resolution": 1.3229193125052918,  "scale": 5000 }, {  "level": 5,  "resolution": 0.6614596562526459,  "scale": 2500 }, {  "level": 6,  "resolution": 0.26458386250105836,  "scale": 1000 }, {  "level": 7,  "resolution": 0.19843789687579377,  "scale": 750 }, {  "level": 8,  "resolution": 0.13229193125052918,  "scale": 500 }];  var initialExtent = new esri.geometry.Extent({"xmin":-8034661,"ymin":5652797,"xmax":-8004182,"ymax":5670187,"spatialReference":{"wkid":102100}});            map = new esri.Map("map", {  extent: initialExtent,  logo: true,  lods: lods }); 
0 Kudos
1 Solution

Accepted Solutions
JeffPace
MVP Alum
No.  Its a cached service which means the tiles are pre-generated.  No tiles exist at your defined scales

You either need to

1. Create your own basemap
2. Access the basemap dynamic (not sure you can do this)
3. Use the existing LODS.

View solution in original post

0 Kudos
3 Replies
JeffPace
MVP Alum
The AGO basemap is cached.  You have to match your LODS to the services LODs
0 Kudos
YvanBérard
Occasional Contributor
so i won't be able to use it if i still use my custom LODS?
0 Kudos
JeffPace
MVP Alum
No.  Its a cached service which means the tiles are pre-generated.  No tiles exist at your defined scales

You either need to

1. Create your own basemap
2. Access the basemap dynamic (not sure you can do this)
3. Use the existing LODS.
0 Kudos