Please help me in writting a method to set map to full extent in globe button click event.
Please help me in writting a method to set map to full extent in globe button click event.
Ravi,
I don't know what is your situation exactely but it sounds like that what you want is to set the extent of your map to be at the world extent. Well, you have to know the coordinates of the upper left anf lower right for your world extent. For example, if your map is in geodetic (Lat/Long), you can set the extent with the following code:
Map1.CurrentExtent = new RectangleShape(-180,90,180,-90);
If you want to set the extent based on the overall extent of all the layers, you put in an LayerOverlay, use the following code:
Map1.CurrentExtent = layerOverlay.GetBoundingBox();
You are giving very little details in your question. I hope that my answers cover your case. Thank you.