Skip to content

Refactor @googlemaps/js-api-loader to use new functional API #147

@A1Jan

Description

@A1Jan

Feature Request

Description

The current version of the @googlemaps/js-api-loader plugin no longer supports the Loader class. The new functional API should be used instead.

The following message appears in the log, whe using @googlemaps/js-api-loader:^2.0.0
The current version of the @googlemaps/js-api-loader plugin no longer supports the Loader class, which has been deprecated and removed. The error message indicates that developers must migrate to the new functional API using setOptions() and importLibrary() methods. This feature request aims to update the plugin example code, documentation, and usage patterns to reflect the new API, ensuring a smooth migration path and avoiding runtime errors.

Platform(s)

Web

Preferred Solution

Remove the Loader class and instead use the functional API:

  • setOptions()
  • importLibrary()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions