Skip to content

Instantly share code, notes, and snippets.

@wsvekla
Last active December 16, 2015 02:39
Show Gist options
  • Save wsvekla/5364162 to your computer and use it in GitHub Desktop.
Save wsvekla/5364162 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style>
#map-canvas { width:960px; height:500px; }
</style>
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
var map;
var layerl0;
var layerl1;
function initialize() {
map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.LatLng(40.003279107324225, -75.1374626031494),
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');
layerl0 = new google.maps.FusionTablesLayer({
query: {
select: "'col6'",
from: '1tvUiWF1P7q1amuSGGUvwH9f_r-Ql9gUmjo2t9rU'
},
map: map,
styleId: 2,
templateId: 2
});
layerl1 = new google.maps.FusionTablesLayer({
query: {
select: "'col3'",
from: '1QAlAbD4vpszxKPfURdSIDqkTd5zri4sVGOVScDc'
},
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