-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Google Maps example is not working #169
Comments
Hi, thanks for the issue. I'll need to update the docs but the types are a bit messed up. You can see how the I would recommend using this component over using the script generally. |
Hey thanks for the quick response! I am using the component atm but I dont like that is is initially using a static map because the static map has a max width/height and therefor looks blurred on bigger screens and especially on high dpi screens. As there seems to be no option to disable it I was thinking I might integrate the map myself. |
@harlan-zw Can we maybe have an option do disable the static map feature and immediately load the real map? |
Latest release has some improvements to maps, to answer your questions though: If you'd like to disable the static map you can simply provide the <template>
<ScriptGoogleMaps ...>
<template #placeholder>
<!-- my custom placeholder -->
</template>
</ScriptGoogleMaps>
</template> If you'd like to load the maps as soon as possible you can set the trigger to <template>
<ScriptGoogleMaps trigger="immediate">
</ScriptGoogleMaps>
</template> |
I was trying to use the example:
But I get a type error in my IDE:
Property Map does not exist on type typeof maps | Promise<typeof maps>
As well as an error in Vue/Nuxt:
Uncaught (in promise) TypeError: maps.Map is not a constructor
The text was updated successfully, but these errors were encountered: