Skip to content

Instantly share code, notes, and snippets.

@sjg
Created November 9, 2013 10:38
Show Gist options
  • Save sjg/7384156 to your computer and use it in GitHub Desktop.
Save sjg/7384156 to your computer and use it in GitHub Desktop.
Basic Google Maps with some style
<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