Too much Map Magnification on Single Marker
-
On the global maps you set a bounds to fit all the markers in the resulting map. However is there is only 1 marker the map is so enlarged that you typically have just a grey rectangle with a marker in the middle. You have to zoom out to get any feel for where the marker is.
It would be Nice if you set a minimum bounds so some detail could be seen on the map. Looking at your events-manage.js file, you could add this by adding a check for the min and max LatLngs being equal.
if(minLatLngArr[0] == maxLatLngArr[0]) {
minLatLngArr[0] = minLatLngArr[0] -0.01;
maxLatLngArr[0] = maxLatLngArr[0] +0.01;
}if(minLatLngArr[1] == maxLatLngArr[1]) {
minLatLngArr[1] = minLatLngArr[1] -0.01;
maxLatLngArr[1] = maxLatLngArr[1] +0.01;
}this gives a reasonable minimum bounds.
- The topic ‘Too much Map Magnification on Single Marker’ is closed to new replies.