Unable to change MapTypeId #213
-
Looks like property "mapTypeId" is not working in component GoogleMap My component template looks like :
But the mapTypeId is allways the default ("roadmap") |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
You need to pass the parameters in the hyphenated form. Try: <GoogleMap
api-key="xxxxxxxxxxxxxxx"
style="width: 100%; height: 600px"
:map-type-id="terrain"
> |
Beta Was this translation helpful? Give feedback.
-
If <GoogleMap
api-key="xxxxxxxxxxxxxxx"
style="width: 100%; height: 600px"
map-type-id="terrain"
> |
Beta Was this translation helpful? Give feedback.
-
Yesss !!! Your solution works perfectely for me. Many thanks for your help and for giving us that great software. |
Beta Was this translation helpful? Give feedback.
-
@pierregremaud You're welcome but, I did not develop the software, I just use it and made some minor contributions. |
Beta Was this translation helpful? Give feedback.
-
@JoseGoncalves Is a regular contributor to this library and often steps in to answer questions when us maintainers are busy. Much appreciated chief 🙏 |
Beta Was this translation helpful? Give feedback.
You need to pass the parameters in the hyphenated form. Try: