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-guidelines http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical -- 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 -- 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.
