inocan-group / vue3-google-map

A set of composable components for easy use of Google Maps in your Vue 3 projects.
https://vue3-google-map.com
MIT License
264 stars 50 forks source link

No support for Promise<PlacesLibrary> in GoogleMap's api-promise prop #251

Open kacperorzechowski opened 2 months ago

kacperorzechowski commented 2 months ago

When I am trying to use Loader to load GoogleMaps I have deprecation warning that says: "Vue: The signature (): Promise<typeof google> of loader.load is deprecated." And it suggests to use below method instead:

loader.importLibrary('places');

Problem here is that GoogleMap component's prop api-promise is not supporting Promise<PlacesLibrary>, which comes from:

const apiPromise2 = loader.importLibrary('places');

So it forces us to use deprecation method right now. Package version: "vue3-google-map": "^0.20.0"

Aqual0n commented 3 weeks ago

Same issue here.