I want to display a list of markers that are located within the map's 
bounding box. I have a basic implementation working that intercepts the 
map's "bounds_changed" event and fires off an AJAX request to my server with 
the lat/long coordinates of the map's southwest and northeast corners. This 
works for most scenarios, however I've found that this implementation breaks 
if the user pans too far east/west. 

For instance, let's say the bounding box originally starts out as being the 
whole world (southwest corner: [-90, -180], northwest corner: [90, 180]). 
Then, if the user pans west 180 degrees, the bounding box becomes [-90, 
-360] / [90, 0]. This breaks my AJAX request because even though the whole 
world is still visible to the user, any markers with a longitude > 0 won't 
be returned by my database query.

What's the best way of handling this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to