This project has moved and is read-only. For the latest updates, please go here.

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

Topics: SharpMap Project
Jul 30, 2009 at 10:32 PM
Edited Jul 30, 2009 at 10: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


Jul 31, 2009 at 12:26 PM

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

Jul 31, 2009 at 3: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

Jul 31, 2009 at 4:56 PM

In that case you are after map.Envelope hth jd