diff --git a/content/index.blade.php b/content/index.blade.php index 3640233..42ad05f 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -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({