GuillaumeLeclerc / vue-google-maps

Google maps component for vue with 2-way data binding
561 stars 655 forks source link

Custom map Styling #106

Closed mentos1386 closed 8 years ago

mentos1386 commented 8 years ago

Im trying to do custom map styling Google Documentation. But i cant figure out how to do it. Is there a vue way of doing it, like adding a parameter/options. Or do i need to do it google way, which i can't get map object to use.

Is it even possible with this or should i just go with plain js from google?

mentos1386 commented 8 years ago

Okey, i was stupid for a bit.

All you have to do is

 <map :options="mapOptions"  ....

where mapOptions is

mapOptions: {
    styles: [..] // This is where you put your styles array
}