master
parent
07bae3d32b
commit
964f15e97f
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue