Hello.
I am new to MapSuite, and I need to find out how I can get the lat/lng coordinates of viewable portion of the winforms map at any time. I will be storing these 4 sets of coordinates for use with another legacy application.
I have looked through many of the methods, can cannot find out how to do so.
Thank you for any assistance you can provide.
Get Coordinates of Viewable Map (current extent?)
Hi Cary,
Thanks for your post,
Map.CurrentExtent” property will return Map’s 4 sets of coordinates, you can get these values by following code:
RectangleShape rect = winformsMap1.CurrentExtent;
string coordinatesString = rect.GetWellKnownText();
If you have any more question please feel free to let us know.
Best Regards
Summer