Is there a way to change the standard traffic colors of the Traffic Layer of a Google Map?
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
To my knowledge you are not currently able to edit the styles of the traffic layer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With