Replies: 6 comments
-
You could always just use |
Beta Was this translation helpful? Give feedback.
-
Well, if I use v-bind="getMapOptions()" which returns an object that relies on the google instance, then it complains that google is not defined (i.e. the script not loaded yet). |
Beta Was this translation helpful? Give feedback.
-
See here: |
Beta Was this translation helpful? Give feedback.
-
Yes I can do like that. However I notice that I have to change the name of some properties. If I use the ones defined by google, it doesn't work (ex: zoomControlOptions in the google api becomes zoomControlPosition in your api, or disableDefaultUI which has its last letter that changes case). Because of those differences, I will continue using my workaround because using the google types and names makes more sense to me. |
Beta Was this translation helpful? Give feedback.
-
Correct we opted for simplifying the api when an interface only has one possible property (e.g. So if you have to use your options as is I'm afraid you'll have to use a watcher like you suggested in your initial post. |
Beta Was this translation helpful? Give feedback.
-
Thanks for all this information. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible to pass options like this:
instead of having to pass each one individually. This makes the template more readable.
As a workaround, I can do this instead:
Beta Was this translation helpful? Give feedback.
All reactions