This commit is contained in:
Luca 2023-01-08 22:18:01 +01:00
commit 1db510e96d

View File

@ -97,7 +97,7 @@
layer.on('click', self.onMarkerClick);
}
}).addTo(this.map);
this.map.fitBounds(this.markers.getBounds());
if (this.markers.getBounds()) this.map.fitBounds(this.markers.getBounds());
},
ajaxFail: function(){