0👍
I have solved the issue now:
When I load the maps api script I use a callback method to initialise the map and I set a mapLoaded
flag to use before trying to interrogate the API.
The offending bit of code was not checking for this flag.
Sorry to waste your time.
- [Vuejs]-Cannot access variable from named imports in vuejs
- [Vuejs]-Use Vue router to set variables instead of component visibility?
Source:stackexchange.com