Skip to content

Instantly share code, notes, and snippets.

@mager
Last active November 30, 2015 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mager/16afdb1e4fcf2e1b72c5 to your computer and use it in GitHub Desktop.
Save mager/16afdb1e4fcf2e1b72c5 to your computer and use it in GitHub Desktop.
This is just a test
<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