We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b930455 commit 771e4e7Copy full SHA for 771e4e7
src/runtime/components/ScriptGoogleMaps.vue
@@ -144,7 +144,7 @@ onMounted(() => {
144
})
145
// create the map
146
$script.then(async (instance) => {
147
- const maps = await instance.maps as typeof google.maps
+ const maps = await instance.maps
148
const _map = new maps.Map(mapEl.value!, options.value)
149
const placesService = new maps.places.PlacesService(_map)
150
src/runtime/registry/google-maps.ts
@@ -24,7 +24,7 @@ export const GoogleMapsOptions = object({
24
export type GoogleMapsInput = RegistryScriptInput<typeof GoogleMapsOptions>
25
26
export interface GoogleMapsApi {
27
- maps: typeof google.maps
+ maps: typeof window.google.maps
28
}
29
30
declare global {
0 commit comments