diff --git a/source/UI/js/Map/Map.js b/source/UI/js/Map/Map.js index 70a54676..9f5c4392 100644 --- a/source/UI/js/Map/Map.js +++ b/source/UI/js/Map/Map.js @@ -922,8 +922,12 @@ Ox.Map = function(options, self) { // This is the handler that actually adds the places to the map. // Gets called after panning or zooming, and when the map is idle. if (self.boundsChanged) { - var bounds = self.map.getBounds(), - southWest = bounds.getSouthWest(), + var bounds = self.map.getBounds() + if (!bounds) { + self.boundsChanged = false; + return + } + var southWest = bounds.getSouthWest(), northEast = bounds.getNorthEast(), south = southWest.lat(), west = southWest.lng(),