master
parent
07bae3d32b
commit
964f15e97f
|
@ -146,12 +146,13 @@
|
|||
if (currentItems.length > 0) {
|
||||
let openInfoWindow = null;
|
||||
|
||||
currentItems = currentItems.filter(function(item){
|
||||
/* currentItems = currentItems.filter(function(item){
|
||||
console.log(item.location, item[locationField] != undefined);
|
||||
return item[locationField] != undefined;
|
||||
});
|
||||
}); */
|
||||
|
||||
currentItems = currentItems.map(function (item) {
|
||||
item.location = {};
|
||||
item.location.lat = parseFloat(item[locationField].lat);
|
||||
item.location.lng = parseFloat(item[locationField].lng);
|
||||
let marker = new google.maps.Marker({
|
||||
|
|
Loading…
Reference in New Issue