Gustavo Luigi 2023-06-06 08:39:46 -03:00
parent 07bae3d32b
commit 964f15e97f
1 changed files with 3 additions and 2 deletions

View File

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


currentItems = currentItems.filter(function(item){ /* currentItems = currentItems.filter(function(item){
console.log(item.location, item[locationField] != undefined); console.log(item.location, item[locationField] != undefined);
return item[locationField] != undefined; return item[locationField] != undefined;
}); }); */


currentItems = currentItems.map(function (item) { currentItems = currentItems.map(function (item) {
item.location = {};
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);
let marker = new google.maps.Marker({ let marker = new google.maps.Marker({