Here This bounded rectangle is not working in all the cases
when we move the map at some zoomlevel

NorthEast (topRight) points (70.495574, -102.304688)
topRight[0] = 70.495574;
topRight[1]= -102.304688;


SouthWest(BottomLeft) points (-59.712097, 47.109375)
BottomLeft[0] =-59.712097;


and my point is under this getBounds


we have a condition like


if(lat > bottomLeft[0] and lat BottomLeft[1] and lng < TopRight[1])
{}
this condition falils in some points even though its under that
Bounded Rectangle
and the actual point is (30.145127,75.234) between those top and
bottom points




On Dec 15, 2:51 pm, Marcelo <[email protected]> wrote:
> Did you read the 
> documentation?http://code.google.com/apis/maps/documentation/reference.html#GMap2.g...
>
> Did you read the posting 
> guidelines?http://groups.google.com/group/Google-Maps-API/web/suggested-posting-...http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> On Dec 15, 10:48 am, padu <[email protected]> wrote:
>
>
>
> > How are you?
> >    In my case I have a map with with width 100% and height 800px
>
> > In Get Map method
> > getMap()
> > {
> >       var bounds1 = map.getBounds();
> >     //alert(bounds1);
> >     center = map.getCenter();
> >     var southWest = bounds1.getSouthWest();
> >     var northEast = bounds1.getNorthEast();
>
> > }
>
> > While zooming the map in zoom level 2 data is missing due to map size
> > is like 0 to 180 ,-180 to 180 due to this we are not getting correct
> > bounds on single cocordinates,
> > What is the right approch to fetch the bounded rectangle valuess in a
> > map in zooming also
>
> > Thanks in advance- Hide quoted text -
>
> - Show quoted text -

--

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