I am looking to display the CurrentExtent of the map on load to the size of the world map (Countries02.shp as provided in the evaluation edition), as well as display accurate coordinates (lat\long) information. I tried to follow the sample code, but they do not properly explain how to go about changing the CurrentExtent to suit my needs, and the coordinates that are calculated are totally wrong.
I am really new to programming, so any help would be much appreciated!
Thanks for using our product, do you mean that you want to make the CurrentExtent to display the full world map? If so, please adjust your map Control’s Height to be the half of its width, and use custom zoom levels,
ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(@"…/…/sampledata/data/countries02.shp");
Thanks I'll look into that...but I also want to be able to get coordinates (lat/long) for the countries02.shp file provided in the samples. Currently using wiki.thinkgeo.com/wiki/Map_S...oordinates, I'm not able to get correct coordinates. They are off by a lot and I'm assuming the issue is that in the example given, the map is a static image and not the winforms map control.
Oh. Of course the sample program works just fine. But I want to adapt the code for use on the winforms map control object instead of a static image map like the one in the example. That's why I got incorrect coordinates. Maybe you could enlighten me as to how best to go about calculating coordinates in such a case?