From 419f2e395c997d4c05e87f8125c8ed5ab434e051 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Sat, 1 Sep 2012 22:08:07 +0100 Subject: [PATCH] Hack because of leaflet issue (https://github.com/CloudMade/Leaflet/issues/966) --- src/view.map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.map.js b/src/view.map.js index a9cb17f0..41c21064 100644 --- a/src/view.map.js +++ b/src/view.map.js @@ -329,7 +329,7 @@ my.Map = Backbone.View.extend({ // _zoomToFeatures: function(){ var bounds = this.features.getBounds(); - if (bounds){ + if (bounds.getNorthEast()){ this.map.fitBounds(bounds); } else { this.map.setView(new L.LatLng(0, 0), 2);