Multiple Base Layers with restricted number of levels (LODs?)

431
1
11-09-2012 01:19 PM
MoizBhukhiya
New Contributor II
I have a map with multiple base layers. I need to restrict the number of levels to 0-17 instead of displaying 0-19.

I know I could add lods (which is specific to layer) to map constructor but it will work only if I have one layer.

How can I achieve this? I'd appreciate any help.

Thank you!!
0 Kudos
1 Reply
MoizBhukhiya
New Contributor II
I have a map with multiple base layers. I need to restrict the number of levels to 0-17 instead of displaying 0-19.

I know I could add lods (which is specific to layer) to map constructor but it will work only if I have one layer.

How can I achieve this? I'd appreciate any help.

Thank you!!


Found a way to do it but I am not sure if it is the right way.  Can anyone please confirm.

Concat LODs of all the layers into lods[] in the same order the layers are added to the map object. In my case, I have 0-17 LODs for all my layers. Not sure if it is safe??

Please suggest.
0 Kudos