Files
utools/utrace/scripts/maps.js
2022-10-29 23:32:48 +02:00

17 lines
418 B
JavaScript
Executable File

// Google Maps
// Initialize and add the map
function initMap() {
// The map, centered at Uluru
const map = new google.maps.Map(document.getElementById("map"), {
zoom: 4,
center: '{$details->loc}',
});
// The marker, positioned at Uluru
const marker = new google.maps.Marker({
position: {'{$details->loc}',
map: map,
});
}
window.initMap = initMap;