Re: [Google Maps API v3] API V3 - is the fitBounds function depending of the order of markers ?

2011-06-16 Thread Enoch Lau
As Ben noted, the bounds are being computed correctly. But if the result still seems counterintuitive, change your map's width from 750px to 850px - this allows the computed bounds to fit at a zoom level that doesn't show multiple continents. -- You received this message because you are

[Google Maps API v3] API V3 - is the fitBounds function depending of the order of markers ?

2011-06-15 Thread wangba
With Google maps V3. On this first test http://www.wangba.fr/test1.html the map is setting up with 3 markers (see the page code): [Port-au-Prince, 18.551426,-72.336845], [Seoul, 37.586269,126.982498], [Yaounde, 3.881587,11.516304] And the map displays duplicated

Re: [Google Maps API v3] API V3 - is the fitBounds function depending of the order of markers ?

2011-06-15 Thread Ben Appleton
This is working as intended. The smallest bounds containing Port-au-Prince and Seoul crosses the dateline, which is the difference you see. Ben On Jun 16, 2011 6:57 AM, wangba bdvl...@gmail.com wrote: With Google maps V3. On this first test http://www.wangba.fr/test1.htmlthe map is setting up