I'm trying to customise a Google map to use shades of a particular colour. It's working nicely except the blocks that contain major road names / numbers is illegible. I've figured out how to target styles to those elements, but setting the 'color' value sets both text and background to that colour. And no adjusting of saturation, gamma, lightness etc seems to make the text legible.
function initialize() {
var latlng = new google.maps.LatLng(50.766472,0.284732);
var styles = [
{
stylers: [
{ "gamma": 0.75 },
{ "hue": "#607C75" },
{ "saturation": -75 },
{ "lightness": 0 }
]
},{
featureType: "water",
stylers: [
{color: "#607C75"}
]
}
];
var myOptions = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
};
var marker = new google.maps.Marker({
position: latlng,
title:"Living, dining, bedrooms by David Salmon"
});
var map = new google.maps.Map(document.getElementById("map"), myOptions);
map.setOptions({styles: styles});
marker.setMap(map);
}