How can i get the top-left and bottom-right coordinates?

Topics: SharpMap Project
Jul 30, 2009 at 9:32 PM
Edited Jul 30, 2009 at 9:34 PM

Hi guys!

Right now im creating a proyect using sharpmap... I need to make a eagle map view or minimap (i really dont know how is called :P ) for my main map control.. But i need the top-left an bottom-right coordinates to make a square in the mini map, any ideas?

Thx in advance!

Mr. Musso

Caracas-Venezuela

Coordinator
Jul 31, 2009 at 11:26 AM

Hi Mr Musso, have a look at map.GetExtents() hth jd

Jul 31, 2009 at 2:06 PM

Thx JD!

map.GetExtents() gets the coordinates for the hole map at the map.zoomToExtents() level... But for a particular zoom level always returns the same values.. Any ideas on how the get the corner coordinates if the zoom level is for example half a mile away?

Thx again!

Congratulations on a fine product!

Mr. Musso

Coordinator
Jul 31, 2009 at 3:56 PM

In that case you are after map.Envelope hth jd