Created
March 12, 2017 05:36
-
-
Save markhillard/e96ea0d3b6fc93e6b6679c630998b196 to your computer and use it in GitHub Desktop.
Revisions
-
markhillard created this gist
Mar 12, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ Google Maps Sandbox ------------------- Just messing around with the Google Maps JavaScript API. A [Pen](http://codepen.io/markhillard/pen/KVNoXz) by [Mark Hillard](http://codepen.io/markhillard) on [CodePen](http://codepen.io/). [License](http://codepen.io/markhillard/pen/KVNoXz/license). This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <div id="map-canvas"></div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ var map; // initialize map function initMap() { map = new google.maps.Map(document.getElementById('map-canvas'), { zoom: 17, center: { lat: 32.752357, lng: -79.874714 }, backgroundColor: '#fcfcfc', scrollwheel: true, fullscreenControl: true, fullscreenControlOptions: true, rotateControl: true, rotateControlOptions: true, tilt: 45 }); var marker = new google.maps.Marker({ map: map, position: { lat: 32.752357, lng: -79.874714 }, title: 'Fort Sumter National Monument' }); } // load map google.maps.event.addDomListener(window, 'load', initMap); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <script src="//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ html,body,#map-canvas { height:100%; }