the other suggestion I was going to make would be to just capture all added
markers in one array, and when you needed to know which ones were in the
polygon, use a function that loops through aMarkers and populates
aMarkersInPolygon

map.addEventListener(MapMouseEvent.CLICK,
function(e:MapMouseEvent):void {
       var marker:Marker = new Marker(e.latLng);
       map.addOverlay(marker);
       aMarkers.push(e.latLng);
   });

private function findPointsInPolygon():void
{
    for (var i:int = 0; i < aMarkers.length; i++)
    {
        if (pointInPolygon(aMarkers[i], polygon))
        {
               aMarkersInPolygon.push(aMarkers[i]);
        }
    }
}


On Tue, Oct 7, 2008 at 10:18 AM, Megharaj S.H. <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Really you have given nice hint for me to achieve the task.
> The application what i am creating is wonderful now
>
> Thanks to Google,You and Pamela support.
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to