Hey Rossko,
thanks for your reply. I had a look at those threads and in a matter of 
fact I take in account the dateline. I use the example from this book:

http://books.google.fr/books?id=GNMCdlkKU3sC&printsec=frontcover&hl=fr&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=false

You can see the php code on page 153. My where query look like this:

if($nelng  > $swlng) {
                $where[] = ' (m.gmlng > ' . $swlng . ' AND m.gmlng < ' . 
$nelng . ')';
                $where[] = ' (m.gmlat <= ' . $nelat . ' AND m.gmlat >= ' . 
$swlat . ')';
            } else {
                $where[] = ' (m.gmlng >= ' . $swlng . ' OR m.gmlng <= ' . 
$nelng . ')';
                $where[] = ' (m.gmlat <= ' . $nelat . ' AND m.gmlat >= ' . 
$swlat . ')';
            }

This works really good for some zoom levels - I can move around - cross the 
dateline and I'll always get the right results. But when I really zoom out 
like in the image that I've attached in my first post - you can see that we 
have 2 datelines. My query should actually search for results between  0 
and +180 and between -180 and 0 - since we see the whole world.

But in fact what I search for is for results like this ' (m.gmlng >= ' . 
$swlng . ' OR m.gmlng <= ' . $nelng . ')' - and it doesn't return the whole 
world...

Is my thinking correct or am I missing something?

I know that this doesn't have to do anything with the maps API - it is more 
related to the server side processing, but you guys are waaaaay more 
experienced than I am and I'm grateful for any advise!

Thanks,
Daniel 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/PKG_qekfFOwJ.
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