From 964f15e97fbf8859ee3621c1da3fb0584dc45643 Mon Sep 17 00:00:00 2001 From: Gustavo Luigi <=> Date: Tue, 6 Jun 2023 08:39:46 -0300 Subject: [PATCH] . --- content/index.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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({