Hi, Yes added some conditions like -180 to bottomRight[0].longitude like that even though its not getting the full details
Am using GetBounds() method and then taking NW SE and comparing, 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 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-...http://groups.google.com/group/Google-Maps-API/web/why-including-a-li... > > -- > 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 - -- 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.
