This commit is contained in:
Jon Atkins
2013-11-24 21:18:17 +00:00
21 changed files with 30 additions and 30 deletions

View File

@ -251,7 +251,7 @@ window.setupMap = function() {
map.on('moveend', function(e) {
// two limits on map position
// we wrap longitude (the L.LatLng 'wrap' method) - so we don't find outselves looking beyond +-180 degrees
// we wrap longitude (the L.LatLng 'wrap' method) - so we don't find ourselves looking beyond +-180 degrees
// then latitude is clamped with the clampLatLng function (to the 85 deg north/south limits)
var newPos = clampLatLng(map.getCenter().wrap());
if (!map.getCenter().equals(newPos)) {