Hack because of leaflet issue (https://github.com/CloudMade/Leaflet/issues/966)
This commit is contained in:
parent
8049f73f09
commit
419f2e395c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user