Skip to content

Instantly share code, notes, and snippets.

@sorabh86
Created December 30, 2013 14:17
Show Gist options
  • Save sorabh86/8182550 to your computer and use it in GitHub Desktop.
Save sorabh86/8182550 to your computer and use it in GitHub Desktop.
Google-Map
<snippet>
<content><![CDATA[
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
function initialize() {
var map_canvas = document.getElementById('map_canvas');
var map_options = {
center: new google.maps.LatLng(44.5403, -78.5463),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(map_canvas, map_options)
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
]]></content>
<tabTrigger>gm</tabTrigger>
<scope>text.html</scope>
<description>Google-map</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment