This could be a red herring, but you might try removing the featureType
and elementType
from styles
:
var styles = [
{
"stylers": [
{ "visibility": "off" }
]
}
];
If that seems like a strange suggestion, it seems strange to me too. You would think that featureType and elementType "all" should work fine.
But the code above is what the Styled Map Wizard generates when I select All for feature type and element type and turn visibility off. And it does successfully remove everything from the map.
In case that doesn't make any difference, are you getting any styles to work at this point?