Skip to content

2.0: calling importLibrary immediately after setOptions fails with "google.maps.importLibrary is not installed." #1083

@samuelcole

Description

@samuelcole

reading through the code, it looks like setOptions calls bootstrap which adds a script element to the page, which naturally loads async

so then if you immediately call importLibrary it will fail because window.google.maps is not available yet

it seems like importLibrary needs to know if setOptions has been called and if there is a script loading, so that it can await that script onload event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions