Is it possible to change visibility or opacity of google base map ?
I am adding it like in simple example, and adding data layer as overlay and want to see only vector markers. Is it possible?
var map;
function initialize() {
var mapOptions = {
zoom: 8,
center: new google.maps.LatLng(-34.397, 150.644)
};
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
Best Answer
To add transparency to your code you would have to modify your example like this:
In this case the basemap would take a 90% transparency (referred to in the code as lightness).
The following links can be very useful when styling maps: Styled Maps and an example.
Please let me know if the code makes sense to you, or if you need further explanation.