Skip to content

Instantly share code, notes, and snippets.

@srobbin
Forked from ChicagoMap/Fusion Table
Created July 21, 2011 19:52
Show Gist options
  • Save srobbin/1098045 to your computer and use it in GitHub Desktop.
Save srobbin/1098045 to your computer and use it in GitHub Desktop.
Practice Fusion Table
<!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