Select to view content in your preferred language

Tiled layer and zoom issue.

1635
12
09-20-2011 02:24 AM
SanajyJadhav
Deactivated User
Hi,

I am really stuck on this issue.

I have added ESRI World street map as base map and on top of it I am adding our own data.The online service tiles end at a scale of 4513.However, I want to zoom further down up to the scale of 282. To do this, I have added LODs to my map.

For some reason, my map is allowing me to zoom in up to the scale of 1128.I do not know where this figure comes from.My data has layer whose min. scale is 282 and max scale is 0.Despite adding LODs, map is not allowing me to zoom in after the scale of 1128.

Can anybody help me on this issue please? I would appreciate it.

-Sanjay.
0 Kudos
12 Replies
derekswingley1
Deactivated User
Please post the code showing how you're manually defining your LODs.
0 Kudos
SanajyJadhav
Deactivated User
Derek,

Thanks for the reply.

Here is code that defines LODs.
//Define level of displays
    var LAlods = [{
"level": 0,
"resolution": 9783.93962049996,
"scale": 36978595.474472
},
{
"level": 1,
"resolution": 4891.96981024998,
"scale": 18489297.737236
},
{
"level": 2,
"resolution": 2445.98490512499,
"scale": 9244648.868618
},
{
"level": 3,
"resolution": 1222.99245256249,
"scale": 4622324.434309
},
{
"level": 4,
"resolution": 611.49622628138,
"scale": 2311162.217155
},
{
"level": 5,
"resolution": 305.748113140558,
"scale": 1155581.108577
},
{
"level": 6,
"resolution": 152.874056570411,
"scale": 577790.554289
},

{
"level": 7,
"resolution": 76.4370282850732,
"scale": 288895.277144
},

{
"level": 8,
"resolution": 38.2185141425366,
"scale": 144447.638572
},

{
"level": 9,
"resolution": 19.1092570712683,
"scale": 72223.819286
},

{
"level": 10,
"resolution": 9.55462853563415,
"scale": 36111.909643
},

{
"level": 11,
"resolution": 4.77731426794937,
"scale": 18055.954822
},

{
"level": 12,
"resolution": 2.38865713397468,
"scale": 9027.977411
},
{
"level": 13,
"resolution": 1.19432856685505,
"scale": 4513.988705
}
,
{
"level": 14,
"resolution": 0.597164283427525,
"scale": 2256.994353
},
{
"level": 15,
"resolution": 0.298582141647617,
"scale": 1128.497176
},
{
"level": 16,
"resolution": 0.14929107088995425,
"scale": 564.248588
},
{
"level": 17,
"resolution": 0.074645535444977125,
"scale": 282.124294
}
]; 


And here I am setting LODs in the map.

  map = new esri.Map("map", {
      extent: initialExtent,
      logo:false,
      lods:LAlods
    });


I appreciate your help.

-
Sanjay.
0 Kudos
derekswingley1
Deactivated User
Have you tried using the pattern shown in this sample:  http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/map_switch_layer_on_zoom.html

Is your service with the large scales available publicly?
0 Kudos
SanajyJadhav
Deactivated User
Derek,

I got it resolved.I restarted the SOM process and it got fixed.Now I can zoom into the scale of 141 without any problem. God knows what was wrong with it.I had cleared the REST cache but still there was the problem.

Thanks for your time Derek, I appreciate it.

And one more thing I would like to mention, this JS API forum seems quite slow and unresponsive as compared to Silverlight API forum.I do not know the reason why but I feel that way. On Silverlight forum, there are so many API team members helping out users.

Thanks,
Sanjay.
0 Kudos
derekswingley1
Deactivated User
Glad you got it worked out. Not sure why restarting the SOM fixed it but...I guess that's how things go sometimes.

Regarding responsiveness...I don't have a good excuse/reason. We've been busy but I'll spare you the details. You can always get my attention via twitter...
0 Kudos
SanajyJadhav
Deactivated User
Thanks Derek for getting back to me on this responsiveness issue. I never thought you were going to discuss it with me.Appreciate it.

I'll definitely twit you if I am stuck on anything.

-
Sanjay.
0 Kudos
derekswingley1
Deactivated User
You're welcome. The other thing I'll add is that these are user forums and are not official way of getting Esri support. Lots of Esri folks hang out in these forums, but they are not technically obligated to do so.
0 Kudos
KenMorefield
Regular Contributor
Derek - We all REALLY appreciate all of your help and input with our questions!  You are invaluable!  Keep up the great work!

Ken
0 Kudos
derekswingley1
Deactivated User
Thanks Ken! Great to hear stuff like that.
0 Kudos