Created
December 19, 2017 01:57
-
-
Save maulayyacyber/4932875a05ef31773aad66ca17c54473 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Marker 1 Koordinat</title> | |
<style> | |
html, body {height: 100%; margin: 0; padding: 0;} | |
#Peta_1 {height: 100%;} | |
</style> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&key=AIzaSyB_5vWwYleNcKhbnG1qimGxIq6W9-qBklU"></script> | |
<script type="text/javascript"> | |
(function() { | |
window.onload = function(){ | |
// Lintang = Latitude | |
// Bujur = Longtitude | |
var map; | |
var Lintang = '-7.557403'; | |
var Bujur = '112.258521'; | |
var options = { | |
zoom: 16, | |
center: new google.maps.LatLng(Lintang,Bujur), | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
var map = new google.maps.Map(document.getElementById('Peta_1'), options); | |
var marker = new google.maps.Marker({ | |
position: new google.maps.LatLng(Lintang,Bujur), | |
map: map, | |
title: 'Balai Desa Sumbermulyo' | |
}); | |
}; | |
})(); | |
</script> | |
</head> | |
<body> | |
<div id="Peta_1"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment