Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

No API key error #146

@berarma

Description

@berarma

I'm having problems using an API key. After loading the library I call $.gmap3({ key: "..." })'.

Sometimes it works sometimes it doesn't. The problem is that the Google API is loaded in the onReady event, but sometimes the onReady event has already fired when the JS loads. Thus the API is loaded before I get to set the key, and I can't set the key before loading the API.

I know this is the cause of the problem because if I move the code that loads the API inside the $.gmap3(), after storing the key, it always works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions