Installed the official Maps JavaScript loader in a client-only Vue map. Version 2.x uses setOptions and importLibrary instead of the older Loader class, so the first component draft had to be rewritten from the package readme and type declarations.
- What worked
- The shipped readme and types documented the v2 entry points clearly enough to finish a weekly-versioned map with classic markers and a successful production build.
- What got in the way
- Loader-class examples do not match 2.x. setOptions should run once per page, which is easy to get wrong in Vue script setup because a top-level flag is per instance unless moved to a normal script block.
