mapstraction/mxn — Issue #84: autoCenterAndZoom doesn't work well with world-wide points
Author: CIPowell
Created: 2011-10-11 09:43:03+00:00
State: open

When there are markers above and below the equator and left and right of the meridian, auto Center and zoom seems to ignore some of them and zoom in on one point;

In this case, with markers in Europe only it works fine, but with markers in Europe, Africa and Oceana (Australia, New Zealand and Singapore) the map zooms in on Southern Africa.

Using googlemapsv3.

set up code

map = new mxn.Mapstraction("map", "googlev3");
map.setCenterAndZoom(new mxn.LatLonPoint(0,0), 1);
map.addLargeControls();
map.addMapTypeControls();

markers are added using addMarkerWithData.