filtereing buildings without gps coords
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user