Created
November 9, 2013 10:38
-
-
Save sjg/7384156 to your computer and use it in GitHub Desktop.
Basic Google Maps with some style
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 characters
<html> | |
<head> | |
<style> | |
#map{ | |
background-color: red; | |
height:100%; | |
width: 100%; | |
} | |
</style> | |
<script type="text/javascript" | |
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCLQ8aLUpQMyE12uodcq6anRS31OJqSQzo&sensor=true"> | |
</script> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script> | |
var mapOptions = { | |
center: new google.maps.LatLng(51.5, -0.11), | |
zoom: 10, | |
mapTypeId: google.maps.MapTypeId.TERRAIN | |
} | |
var map = new google.maps.Map(document.getElementById("map"), mapOptions); | |
var myStyle = [ | |
]; | |
map.setOptions({styles: myStyle}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment