Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide labels.text config on init Map #528

Open
chara92 opened this issue Dec 4, 2021 · 0 comments
Open

Hide labels.text config on init Map #528

chara92 opened this issue Dec 4, 2021 · 0 comments

Comments

@chara92
Copy link

chara92 commented Dec 4, 2021

Hi, I am looking for the way to set up this config on Map :
{
"featureType": "all",
"elementType": "labels.text",
"stylers": [ { "visibility": "off" } ]
},
{
"featureType": "poi",
"elementType": "labels.icon",
"stylers": [ { "visibility": "off" } ]
}

for hiding labels on Map.

{
mapTypeId: mapTypeIds[mapTypeFromProps],
center: center,
zoom: this.props.zoom,
maxZoom: this.props.maxZoom,
minZoom: this.props.minZoom,
clickableIcons: !!this.props.clickableIcons,
disableDefaultUI: this.props.disableDefaultUI,
zoomControl: this.props.zoomControl,
zoomControlOptions: this.props.zoomControlOptions,
mapTypeControl: this.props.mapTypeControl,
mapTypeControlOptions: this.props.mapTypeControlOptions,
scaleControl: this.props.scaleControl,
streetViewControl: this.props.streetViewControl,
streetViewControlOptions: this.props.streetViewControlOptions,
panControl: this.props.panControl,
rotateControl: this.props.rotateControl,
fullscreenControl: this.props.fullscreenControl,
scrollwheel: this.props.scrollwheel,
draggable: this.props.draggable,
draggableCursor: this.props.draggableCursor,
keyboardShortcuts: this.props.keyboardShortcuts,
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
noClear: this.props.noClear,
styles: this.props.styles,
gestureHandling: this.props.gestureHandling
}
So, What is the correct way or is it possible now???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant