[Google Maps API v3] Re: Retrieve all markers inside a Circle

2010-07-08 Thread Shiota
Guess it isn't much different than calculating the distance... But I guess I'd have to iterate through every marker anyway. We found a solution here using a query in the back-end to do all the calculations, returning to the front-end via ajax only the markers within a given radius and center. On

[Google Maps API v3] Retrieve all markers inside a Circle

2010-07-05 Thread Shiota
I'm drawing a Circle centered in a certain location with a 5Km radius on a given map, and I want to retrieve all markers inside this Circle. The solution I'm currently using is to iterate through every marker and check if its distance to the Circle's center is less than the radius. However, as I'm