Yes, I tried it. But no result. For example:
I have 1 circle with centre = 210,100; and radius = 100m
Then my function basically just get the mousepoint position and test if it
distance from center is less or not than 100m and give me the alert.
Like this:
----------------------------------------------------------------
            //dist1 = is the circle center and;
            //rad2 = the circle radius
            dist2=dist1.distanceFrom(latlng);
            if (dist2<rad2)
            {
                alert("inside");
            }
 ----------------------------------------------------------------
So with many circles its not work because dist2 will be ever, just the
distance between a circle center and it radius. (50m for example). If I have
anothers circles, and put dist2 as a array, it would be: dist2[0]=50;
dist2[1]=75; dist2[3]=50...
Its impossible to know wich circle is.
Thanks!!!


On Fri, Jan 30, 2009 at 4:55 PM, Mike Williams <[email protected]>wrote:

>
> Keep your circle centres and radii in an array, then loop through that
> array testing each circle.
>
> --
> http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to