mirror of
https://github.com/MrUnknownDE/utools.git
synced 2026-04-18 05:43:44 +02:00
push someone
This commit is contained in:
17
utrace/scripts/maps.js
Executable file
17
utrace/scripts/maps.js
Executable file
@@ -0,0 +1,17 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user