Gustavo Luigi 2023-06-06 09:10:35 -03:00
parent 083bea8a84
commit c1dbdfc7f3
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@
let openInfoWindow = null; let openInfoWindow = null;


currentItems = currentItems.map(function (item) { currentItems = currentItems.map(function (item) {
item.location = {}; if(item.location == undefined) 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({