Gustavo Luigi 2023-06-06 08:35:41 -03:00
parent 3bff6e2a75
commit c9c664e4ee
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@
if (currentItems.length > 0) { if (currentItems.length > 0) {
let openInfoWindow = null; let openInfoWindow = null;


currentItems = currentItems.filter(function(item){
return item.location != undefined;
});

currentItems = currentItems.map(function (item) { currentItems = currentItems.map(function (item) {
item.location.lat = parseFloat(item[locationField].lat); item.location.lat = parseFloat(item[locationField].lat);
item.location.lng = parseFloat(item[locationField].lng); item.location.lng = parseFloat(item[locationField].lng);