Thanks I will try and let you know

On Dec 16, 7:32 pm, Marcelo <[email protected]> wrote:
> On Dec 16, 2:41 pm, padu <[email protected]> wrote:
>
> >  Any other google methods to fetch the bounds even crossing
> > antimeridain and we need to fetch the correct data
> >  or any other examples with you even crossing the antimeridian
>
> It's simple.
> If it crosses the anti-meridian just invert the query:
>
> // Normally ...
> var condition = "where lng > SouthWest.lng() and lng < NorthEast.lng
> ()";
>
> // If bounds cross the anti-meridian ...
> if (SouthWest.lng() > NorthEast.lng()) {
>   condition = "where lng > NorthEast.lng() and lng < SouthWest.lng()";
>
> }
>
> --
> Marcelo -http://maps.forum.nu
> --
>
>
>
>
>
> >  Thanks,
>
> > On Dec 15, 3:21 pm, Marcelo <[email protected]> wrote:
>
> > > Your rectangle crosses the anti-meridian, so you need to take that
> > > into account in your conditional statement.
> > > That's all I can say without a link.
>
> > > Please read and follow the group's posting 
> > > guidelines:http://groups.google.com/group/Google-Maps-API/web/suggested-posting-......
>
> > > --
> > > Marcelo -http://maps.forum.nu
> > > --
>
> > > On Dec 15, 11:10 am, padu <[email protected]> wrote:
>
> > > > 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- Hide quoted text -
>
> > > - Show quoted text -- 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