Last active
November 30, 2015 23:40
-
-
Save mager/16afdb1e4fcf2e1b72c5 to your computer and use it in GitHub Desktop.
This is just a test
This file contains 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> | |
html, body, #map_canvas { | |
height: 300px; | |
width: 300px; | |
} | |
</style> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script> | |
<script type="text/javascript"> | |
var map; | |
function initialize() { | |
var mapOptions = { | |
center: new google.maps.LatLng(35.658028, 139.751528), | |
zoom: 14, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
map = new google.maps.Map(document.getElementById("map_canvas"),mapOptions); | |
var data = [ | |
new google.maps.LatLng(35.658028, 139.751528), | |
new google.maps.LatLng(35.657028, 139.751528), | |
new google.maps.LatLng(35.657028, 139.750528), | |
new google.maps.LatLng(35.658028, 139.750528), | |
]; | |
dataPolygon = new google.maps.Polygon({ | |
paths: data, | |
strokeWeight: 0, | |
fillColor: '#FF0000', | |
fillOpacity: 0.35 | |
}); | |
dataPolygon.setMap(map); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); | |
</script> | |
</head> | |
<body> | |
<div id="map_canvas"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment