In e.g. maps.amsterdam.nl/hoegroot I use different styled mapTypes: Google Light, Google Dark and Google Grey. I want to toggle all labels on/off with a button without changing the whole mapType. I'm looking for a way to only set the visibility on/off of the featureType label through Javascript:
{featureType:'label', stylers:[{visibility:'offon'}]}
How can I access a featureType within a MapType?
Get the styles of de mapTypes.
Push a style at the end of the array when labels off.
Pop this style at the end of array when labels on.
}