Skip to content

Instantly share code, notes, and snippets.

@DecisionNerd
Forked from crofty/index.html
Created April 1, 2013 01:11
Show Gist options
  • Select an option

  • Save DecisionNerd/5282717 to your computer and use it in GitHub Desktop.

Select an option

Save DecisionNerd/5282717 to your computer and use it in GitHub Desktop.

Revisions

  1. @crofty crofty created this gist Mar 25, 2012.
    18 changes: 18 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <!DOCTYPE html>
    <html>
    <head>
    <title>Leaflet</title>
    <link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.css" />
    <script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
    <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
    <script src="https://raw.github.com/gist/2197042/2b90c41b39b7d5b3a851d8f256de2ebd3fe1fb74/leaflet-google.js"></script>
    </head>
    <body>
    <div style="width:500px; height:500px" id="map"></div>
    <script type='text/javascript'>
    var map = new L.Map('map', {center: new L.LatLng(51.51, -0.11), zoom: 9});
    var googleLayer = new L.Google('ROADMAP');
    map.addLayer(googleLayer);
    </script>
    </body>
    </html>