Add a marker on google maps

This commit is contained in:
Amauri CHAMPEAUX 2020-10-19 17:09:21 +02:00
parent bfd25e8344
commit 1fca353559
1 changed files with 1 additions and 0 deletions

View File

@ -1279,6 +1279,7 @@ tarteaucitron.services.googlemaps = {
center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
};
map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
new google.maps.Marker({position:{lat:parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10),lng:parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10)},map:map});
}
};
},