Map1.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
The line of code set US map at center of screen, But I want to show Sweden map at center of screen, Then what parameter values should i use??
BR
Map1.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
The line of code set US map at center of screen, But I want to show Sweden map at center of screen, Then what parameter values should i use??
BR
Looking at the coordinates you have set up for the USA, you are using Google Map, Bing Map or OpenStreetMap that are in the same projection (Spherical Mercator). To find out for Sweden, you need to to see the coordinates values at the mouse pointer. You can use the "Use Google Map" sample of the How Do I to find out as you see in the screenshot below. Note that the property to see the coordinate at mouse move is: Map1.MapTools.MouseCoordinate.Enabled = true;
You need to see what those values are for the upper left and lower right points so this is going to be approximately like this:
Map1.CurrentExtent = new RectangleShape(968610,10958012,2778638,7269467);
Of course, if you are using the World Map Kit which is in Geodetic, the coordinates are going to be completely different. They are going to be in decimal degrees.