Select to view content in your preferred language

Maximum Extent

551
2
10-17-2011 10:32 AM
JerryBiedenbender
Emerging Contributor
Is there any to a maximum extent to be equal to my initial extent? There is no need for any of my users to be able to zoom to the whole world...

Thanks,
Jerry
0 Kudos
2 Replies
JerryBiedenbender
Emerging Contributor
I found the following code and I think this is what needs modified.

case 5: // Full Extent
                    MyMap.ZoomTo(MyMap.Layers.GetFullExtent());
                    break;

"GetFullExtent" says its gets the full combination extent of all layers. Is there Any way I can set a specific service or layer to be the full extent?

Thanks,
Jerry
0 Kudos
JerryBiedenbender
Emerging Contributor
I fixed this by using  MyMap.ZoomTo(MyMap.Layers[2].FullExtent);
0 Kudos