Created
April 19, 2013 18:42
-
-
Save wsvekla/5422327 to your computer and use it in GitHub Desktop.
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> | |
<html> | |
<head> | |
<style> | |
#map-canvas { width:1200px; height:800px; } | |
</style> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false"> | |
</script> | |
<script type="text/javascript"> | |
var map; | |
var layerl1; | |
var layerl0; | |
function initialize() { | |
map = new google.maps.Map(document.getElementById('map-canvas'), { | |
center: new google.maps.LatLng(39.981816694859354, -75.17052751435853), | |
zoom: 13 | |
}); | |
var style = [ | |
{ | |
featureType: 'all', | |
elementType: 'all', | |
stylers: [ | |
{ saturation: -99 } | |
] | |
} | |
]; | |
var styledMapType = new google.maps.StyledMapType(style, { | |
map: map, | |
name: 'Styled Map' | |
}); | |
map.mapTypes.set('map-style', styledMapType); | |
map.setMapTypeId('map-style'); | |
layerl1 = new google.maps.FusionTablesLayer({ | |
query: { | |
select: "'col27'", | |
from: '1WG87P_Zw3eDZvxQU7XbNlJIQs4xwLfAz7PbUO8g' | |
}, | |
map: map, | |
styleId: 2, | |
templateId: 2 | |
}); | |
layerl0 = new google.maps.FusionTablesLayer({ | |
query: { | |
select: "'col16'", | |
from: '140V7-5MHOTXnYOn_-et0myPYIjRh1q-8XVu03Ec' | |
}, | |
map: map, | |
styleId: 2, | |
templateId: 2 | |
}); | |
} | |
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