Skip to content

Instantly share code, notes, and snippets.

@knorthfield
Created May 16, 2012 13:43
Show Gist options
  • Save knorthfield/2710429 to your computer and use it in GitHub Desktop.
Save knorthfield/2710429 to your computer and use it in GitHub Desktop.
Google Maps Script
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
$(function(){
var latlng = new google.maps.LatLng(1.285121,103.852322),
map = new google.maps.Map(document.getElementById('googlemap'), {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}),
marker = new google.maps.Marker({
position: latlng,
map: map,
title: 'Marker'
});
});
</script>
<div id="googlemap"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment