function initialize() {
// Create an array of styles.
var styles = [
{
stylers: [
{ hue: "#EDEDED" },
{ saturation: -20 }
]
},{
featureType: "road",
elementType: "geometry",
stylers: [
{ hue: "#EDEDED" },
{ lightness: 100 },
{ visibility: "simplified" }
]
},{
featureType: "road",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];
// Create a new StyledMapType object, passing it the array of styles,
// as well as the name to be displayed on the map type control.
var styledMap = new google.maps.StyledMapType(styles,
{name: "Styled Map"});
// Create a map object, and include the MapTypeId to add
// to the map type control.
var mapOptions = {
zoom: 6,
center: new google.maps.LatLng(31.968599, -99.901813),
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
}
};
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
//Associate the styled map with the MapTypeId and set it to display.
map.mapTypes.set('map_style', styledMap);
map.setMapTypeId('map_style');
income = new google.maps.FusionTablesLayer({
map: map,
query: {
select: "income",
from: "1OCjD3eOBmrleB0cTltpLjaqGtEROAAwq2YLp5kY",
where: ""
},
styleId: 3
});
f2024 = new google.maps.FusionTablesLayer({
map: map,
query: {
select: "f2024",
from: "1OCjD3eOBmrleB0cTltpLjaqGtEROAAwq2YLp5kY",
where: ""
},
styleId: 4
});
density = new google.maps.FusionTablesLayer({
map: map,
query: {
select: "density",
from: "1OCjD3eOBmrleB0cTltpLjaqGtEROAAwq2YLp5kY",
where: ""
},
styleId: 5
});
border = new google.maps.FusionTablesLayer({
map: map,
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.