-
-
Save srobbin/1098045 to your computer and use it in GitHub Desktop.
Practice Fusion Table
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
<!DOCTYPE html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0px; padding: 0px } | |
#map_canvas { height: 100% } | |
</style> | |
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> | |
</head> | |
<body onload="initialize()"> | |
<div id="map_canvas"></div> | |
<script type="text/javascript"> | |
function initialize() { | |
var myLatlng = new google.maps.LatLng (41.85, -87.65); | |
var myOptions = { | |
zoom: 10, | |
center: myLatlng, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
} | |
var map = new google.maps.Map(document.getElementById ("map_canvas"), myOptions) ; | |
var parks = new google.maps.KmlLayer('http://data.cityofchicago.org/download/hmfy-xsta/application%252Fxml'); | |
parks.setMap(map); | |
var layer = new google.maps.FusionTablesLayer({ | |
query: { | |
select: 'Geocodable address', | |
from: '1160343' | |
} | |
}); | |
layer.setMap(map); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment