Answer the question
In order to leave comments, you need to log in
How to style Google Map Vue3?
How to apply styles to google map?
I am using this library: https://vue-map.netlify.app/components/map.html
Documentation says that styles are applied in this way
<GMapMap
:center="{lat: 51.093048, lng: 6.842120}"
:zoom="7"
:style="mapStyles"
/>
export default {
name: 'Map',
data() {
return {
mapStyles: {
styles: [
{elementType: 'geometry', stylers: [{color: '#d59563'}]},
{elementType: 'labels.text.stroke', stylers: [{color: '#242f3e'}]},
{elementType: 'labels.text.fill', stylers: [{color: '#746855'}]},
{
featureType: 'administrative.locality',
elementType: 'labels.text.fill',
stylers: [{color: '#d59563'}]
},
{
featureType: 'poi',
elementType: 'labels.text.fill',
stylers: [{color: '#d59563'}]
},
{
featureType: 'poi.park',
elementType: 'geometry',
stylers: [{color: '#263c3f'}]
},
...
Answer the question
In order to leave comments, you need to log in
:style="mapStyles"
data() {
return {
mapStyles: {
styles: [
mapStyles: {
with with
Well, you should also make sure that the api key is there - they don’t want to apply styles without it. options: {
:style="mapStyles"
:options="options"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question