On Sep 19, 9:58 pm, "[email protected]" <[email protected]>
wrote:
> On Sep 19, 8:17 pm, Andri Yau <[email protected]> wrote:
>
> > Hi, I have an issue for the coordination in google map.
> > i use Gmap v3, where the problem come out with the coordination/
> > display on the map.
> > i put the marker coordination and circle coordination inside my map.
> > when i use the method LatLngBounds.contains to check whether the
> > marker inside the circle radius, its return me true but some how when
> > i see on the map, the marker is not inside the radius of the circle, i
> > try few days to do the debug and i give up.
>
> > i hope some one in this group can help me
>
> the google.maps.LatLngBounds is a rectangular area that completely
> contains the polygon.  Your marker is in the corner of the bounds.
>
> If you want polygon.contains, you will need to do point in polygon
> analysis.

Like this:
http://www.geocodezip.com/demo_techstudio_mobi_map1d.html

(unfortunately, you can't get at the internals of a
google.maps.Circle, so you have to do it with a google.maps.Polygon)

   -- Larry

>
>
>
>
> > and below is my map for your reference 
> > :http://demo.techstudio.mobi/GoogleMap/Jsp/map1.html

-- 
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