Reputation: 787
Is there a way to change the standard traffic colors of the Traffic Layer of a Google Map?
Upvotes: 7
Views: 2123
Reputation: 31
To my knowledge you are not currently able to edit the styles of the traffic layer.
Upvotes: 1
Reputation: 1330
See Styled Maps in the documentation.
For example the following example reduces the saturation on all features and disables labels on roads.
var styles = [
{
stylers: [
{ hue: "#00ffe6" },
{ saturation: -20 }
]
},{
featureType: "road",
elementType: "geometry",
stylers: [
{ lightness: 100 },
{ visibility: "simplified" }
]
},{
featureType: "road",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];
map.setOptions({styles: styles});
I have create one example for you : see this JSFiddle
Upvotes: 1