SelectedArea get markers

Topics: Windows Forms
Sep 25, 2012 at 10:00 AM

hi,

i have SelectedArea on map...

how can i get all the markers situated in that area?

Coordinator
Sep 25, 2012 at 10:22 AM
Edited Sep 25, 2012 at 10:22 AM

foreach(var m in layer.Markers)
{
  if(map.SelectedArea.Contains(p.Position))
  { ...
}

Sep 25, 2012 at 1:28 PM

bravo.

thanks radioman

Sep 25, 2012 at 1:44 PM

how can i deselect the area?

Coordinator
Sep 25, 2012 at 2:03 PM

set it to RectLatLng.Empty

Sep 25, 2012 at 2:15 PM

there is only IsEmpty which is also readonly

Coordinator
Sep 25, 2012 at 3:10 PM

map.SelectedArea = RectLatLng.Empty;

Sep 26, 2012 at 7:28 AM

that is much clear.

thanks radioman