Daylight Layer Test
Daylight Layer Test
HTML
<html>
<head>
<title>Daylight Layer Test</title>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=weather"></script>
<script src="http://www.daylightmap.com/daylight_packed.js"
type="text/javascript"></script>
<script type="text/javascript">
<!--Insert the javascript below, if you are trying this code-->
</script>
</head>
<body onload="initialize()">
<div id="map_canvas" style="width: 500px; height: 500px"></div>
</body>
</html>
JavaScript
function initialize() {
var myOptions = {
zoom: 1,
center: new google.maps.LatLng(0.000000, 0.000000),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
weather.setMap(map);
var daylight = new daylightMap.daylightLayer();
daylight.addToMap(map);
}