Skip to content

Google Maps JavaScript API warning: NoApiKeys #131

Open

Description

@peterszaszlateral

Hi,

For some reason I can't get to make the JavaScript Google maps to work.

I created a totally new account in Google Cloud Console and created all the necessary setup including the billing system.

For some reason the Web Maps are still throwing this Google Maps JavaScript API warning: NoApiKeys exception and the map is showing up with a dark grey overlay on top of it, stating that the maps is only for Development Purposes.

I am using the sample app and I am getting these same results.

Activity

  1. nwadams commented on Oct 28, 2018

    @nwadams
    Contributor

    Google likely changed their policies on google maps API. and you likely need to add the API key to the js. https://developers.google.com/maps/documentation/javascript/get-api-key. and set it as a key param in

    <script src="MAPURL?v=3.exp&sensor=false&language=LANGTOKEN&region=REGIONTOKEN"></script>
    .

    There is probably a way to inject the key so you wouldn't need to modify the library.

  2. dneykov commented on Jan 18, 2019

    @dneykov

    Did anyone manage to set api key to the web view map?

  3. dneykov commented on Jan 18, 2019

    @dneykov

    I manage to se api key without modifying the library. Just create assets folder in your app and copy google_map.html and include api key in script tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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