Created
January 10, 2012 16:41
-
-
Save brianyoungblood/1589939 to your computer and use it in GitHub Desktop.
google maps and 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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><style type="text/css"> | |
html, body, #map_canvas { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
} | |
</style> | |
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?v=3.6&sensor=false&client=google-fusiontables"> | |
</script> | |
<script type="text/javascript"> | |
function initialize() { | |
map = new google.maps.Map(document.getElementById('map_canvas'), { | |
center: new google.maps.LatLng(45.67548217560647, -87.7396055), | |
zoom: 4, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}); | |
layer = new google.maps.FusionTablesLayer({ | |
map: map, | |
heatmap: { enabled: false }, | |
query: { | |
select: "col2", | |
from: "fustion_table_id", | |
where: "" | |
} | |
}); | |
} | |
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