ThinkGeo.com    |     Documentation    |     Premium Support

Get max/min long/lat of current map

How would I go about getting the min/max lat/long (world coordinates) of the map at different zoom/pan levels? By min/max, I mean the four corners of the map. Would it just be Map1.CurrentExtent.GetBoundingBox(); ?

Thanks!

Hi Dan,

Yes you are right.

minx = map.CurrentExtent.LowerLeftPoint.X;
miny = map.CurrentExtent.LowerLeftPoint.Y;
maxx = map.CurrentExtent.UpperRightPoint.X;
maxy = map.CurrentExtent.UpperRightPoint.Y;

Regards,

Ethan