OK, I have an alternative query which should work. The WHERE portion of my original QL query is:
WHERE (lat BETWEEN $btmLat AND $topLat) AND (lng BETWEEN $leftLon AND $rightLon) and the new WHERE clause is: WHERE (lat BETWEEN $btmLat AND $topLat) AND ((lng BETWEEN $leftLon AND 180) OR (lng BETWEEN -180 AND $rightLon)) (lat and lng are the lat/lng values in the database; this is PHP, so the variables $btmLat, etc are self-explanatory) I will want to execute the new query when the bounding box includes the date line. Is there any way to check whether this is the case? My current test case crosses the date line, but as far as I can tell, there's no way to detect it since the longitudes returned are -172.09 and 73.7. This could be a perfectly valid, almost-fully-zoomed-out view of the map, or it could be the date-line case I am seeing. On Jul 2, 10:36 pm, Ralph <[email protected]> wrote: > Try this search might help > > http://groups.google.com/group/Google-Maps-API/search?hl=en&group=Goo... > > Ralph > > On Jul 3, 4:03 am, Chris Dzombak <[email protected]> wrote: > > > I have a list of data points stored in a database by latitude and > > longitude. I want to use the map.getBounds() function to pass the > > bounds to the server so that I don't have to download all the data > > points at once. I'm using V2 of the API. > > > The problem I'm experiencing is that the behavior breaks down at the > > International Date Line. The getBounds function returns longitudes > > that represent (I think) the currently invisible area of the map. > > > Is there any way to get "unnormalized" bounds that actually represent > > the visible area of the map? Does anyone else have experience with > > this problem? > > > Thanks, > > Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
