On 13 July 2011 12:14, Nico <[email protected]> wrote:
>
> my main intention with my application is to spot given point of
> interests in the radius of a 5km circle. To do that I had to convert
> the circle to a LatLngBounds Object, which doesn't seem to do the
> trick.

It won't, as you found.

> For the purpose of testing I made a new Marker, with the latlng
> coordinates of the north-east corner of the bound, but this marker is
> totally out of the circle and I don't know why.

The bounding box of a circle is a square which touches the circle at
four points. There will be areas in the corners of the square which
are outside the circle.

To find whether a point is within a circle, simply find the distance
between the point and the centre of the circle. If it's less than the
radius it must be inside the circle. You don't need bounding boxes at
all.

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

Reply via email to