vue3-google-map icon indicating copy to clipboard operation
vue3-google-map copied to clipboard

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

Open kacperorzechowski opened this issue 1 year ago • 2 comments

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"

kacperorzechowski avatar Apr 18 '24 10:04 kacperorzechowski

Same issue here.

Aqual0n avatar Jun 13 '24 12:06 Aqual0n

Same issue. I also think googlemaps/js-api-loader could improve the way they handle the main function deprecation from their API without updating their documentation nor providing a migration guide. (see related issue https://github.com/googlemaps/js-api-loader/issues/837)

lbineau avatar Aug 26 '24 09:08 lbineau