Skip to content

Instantly share code, notes, and snippets.

Created Nov 12, 2019
What would you like to do?
<div id="map-canvas"></div>
<script src=""></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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment