personalpage/public/assets/js/google-maps.js
2023-03-23 10:35:17 +00:00

15 lines
399 B
JavaScript

function initMap() {
// Latitude and Longitude
var myLatLng = {lat: -6.207690, lng: 106.985270};
var map = new google.maps.Map(document.getElementById('google-maps'), {
zoom: 17,
center: myLatLng
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: 'South Jakarta, INA' // Title Location
});
}