mirror of
https://github.com/owntracks/recorder.git
synced 2026-02-13 20:49:51 +00:00
[FIX] show tooltip on map if no data available #438
This commit is contained in:
@@ -63,6 +63,6 @@ export async function initialize(dataUrl) {
|
||||
map.addLayer(geojsonLayer);
|
||||
|
||||
geojsonLayer.addData(await data);
|
||||
map.fitBounds(geojsonLayer.getBounds());
|
||||
|
||||
if (geojsonLayer.getBounds().isValid()) map.fitBounds(geojsonLayer.getBounds());
|
||||
else map.openTooltip('No Data!',L.latLng(0.0,0.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user