Open SanderBrijer opened 1 month ago
I recently updated google maps to 0.21.0, afterwards de stylers of the map dont work anymore.
What I tried:
function getMapOptions() { return { styles: [ { featureType: 'poi.business', stylers: [ { visibility: 'off', }, ], }, { featureType: 'poi.government', stylers: [ { visibility: 'off', }, ], }, { featureType: 'poi.school', stylers: [ { visibility: 'off', }, ], }, { featureType: 'poi.medical', stylers: [ { visibility: 'off', }, ], }, { featureType: 'poi.place_of_worship', stylers: [ { visibility: 'off', }, ], }, ], }; } watch( () => googleMap.value?.ready, (ready) => { if (!ready) return; googleMap.value.map.setOptions(getMapOptions()); } );
and
<google-map v-if="mapHeight" ref="googleMap" mapId="googleMap" style="width: 100%; height: 100%" :styles="mapstyles"
mapstyles() { return [ ...(this.layer?.labels?.companies === false ? [...this.styleRemoveLabels] : []), ...(this.darkmode.value ?? useQuasar()?.dark.isActive ? [...this.styles] : []), ]; },
Darkmode is not working after the update, and the remove labels (POI companies) dont work anymore...
Same here!
I recently updated google maps to 0.21.0, afterwards de stylers of the map dont work anymore.
What I tried:
and
Darkmode is not working after the update, and the remove labels (POI companies) dont work anymore...