Skip to content

Instantly share code, notes, and snippets.

@imammubin
Created November 12, 2019 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imammubin/87e9b84387517a06d3e5d8e130404717 to your computer and use it in GitHub Desktop.
Save imammubin/87e9b84387517a06d3e5d8e130404717 to your computer and use it in GitHub Desktop.
<html>
<head></head>
<body>
<div id="map-canvas"></div>
<script src="https://maps.googleapis.com/maps/api/js"></script>
<script>
function initialize() {
var mapCanvas = document.getElementById('map-canvas');
var mapOptions = {
center: new google.maps.LatLng(-6.5743075,106.640402),
zoom: 15,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(mapCanvas, mapOptions)
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment