filtereing buildings without gps coords

This commit is contained in:
Frank Schubert
2022-03-14 17:37:10 +01:00
parent 4a170d8fe2
commit 37d187248b

View File

@@ -433,6 +433,9 @@
// draw markers and calculate center position
var all_coords = [];
buildings.forEach(function(building) {
if(!building.gps_lat || !building.gps_long) {
return;
}
var gps = [building.gps_lat, building.gps_long];
all_coords.push(gps);
var marker = L.marker(gps).addTo(buildingMap);