[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-25 Thread THE_AI
@Rossko - I don't think that I can use the span. The div that contains the map can change - it can be 500px , 1000px, 2000px and the span can't really give me accurate results. Sometimes - I see the whole world and the span is around 290, sometimes I see the whorld 3 times and the span is 140.

[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-25 Thread Rossko
@Rossko - I don't think that I can use the span. The div that contains the map can change - it can be 500px , 1000px, 2000px and the span can't really give me accurate results. So you'd either have to do your calculation client-side, where you can determine the current div size, or transmit

[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-24 Thread THE_AI
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=GNMCdlkKU3sCprintsec=frontcoverhl=frsource=gbs_ge_summary_rcad=0#v=onepageqf=false You can see the php code

[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-24 Thread Rossko
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

[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-24 Thread THE_AI
Zoom level is not an option for me, because the user can actually make the map's div smaller or bigger and in such a case I will have wrong data to work with. What is a the span of the map? Do you mean the toSpan() function for the boundaries object?

[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-24 Thread Rossko
I don't understand the sense of this sentence: Converts the given map bounds to a lat/lng span. You give it a bounds object, it tells you the width of that bounds in degrees. Example : from -10 to +30 is a span of 40 from +30 to -10 is a span of 320 I do not think it will give consistent

[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-24 Thread Etienne Dethoor
I think your problem is related to the bug of google maps : http://code.google.com/p/gmaps-api-issues/issues/detail?id=3650 On 23 fév, 21:16, Rossko ros...@culzean.clara.co.uk wrote: but when I'm zoomed out I can see the whole map of the world in front of me, but the boundaries for east and

[Google Maps API v3] Re: Map boundaries when zoom out

2012-02-23 Thread Rossko
but when I'm zoomed out I can see the whole map of the world in front of me, but the boundaries for east and west are stating -79 east and +134 west. Example discussion from a few years back http://groups.google.com/group/google-maps-api/browse_thread/thread/dca7b6c38883d0f3/5e85fd1efe956f82