<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Styling the base map example</title>
<style>
#map {
width: 500px;
height: 400px;
background-color: #eee;
}
.heading {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
color: #800000;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js"></script>
<script>
function initialize() {
var mapCanvas = document.getElementById('map');
var mapOptions = {
center: new google.maps.LatLng(-34.810861, 138.728223),
zoom: 14,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(mapCanvas, mapOptions);
map.set('styles',[
{
"stylers": [
{ "hue": "#d400ff" }
]
},{
"featureType": "landscape.man_made",
"elementType": "geometry.fill",
"stylers": [
{ "hue": "#00c3ff" },
{ "gamma": 0.65 }
]
},{
"featureType": "poi.park",
"elementType": "geometry.fill",
"stylers": [
{ "hue": "#33ff00" }
]
},{
"featureType": "poi.school",
"elementType": "geometry.fill",
"stylers": [
{ "hue": "#ff6e00" },
{ "gamma": 0.32 }
]
},{
"featureType": "road.local",
"elementType": "geometry",
"stylers": [
{ "hue": "#1900ff" },
{ "gamma": 0.28 }
]
},{
"featureType": "road.arterial",
"elementType": "geometry",
"stylers": [
{ "color": "#338080" },
{ "weight": 1.9 }
]
}
]);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div class="heading">Styling the base map example</div>
<div id="map"></div>
</body>
</html>