question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enabling API key handling (MissingKeyMapError)

See original GitHub issue

It looks like Google Maps no longer allows key-less API access as of yesterday June 22th. This will probably require to enable passing an API key to gmplot. Currently using gmplot fails with MissingKeyMapError.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
vgm64commented, Oct 25, 2017

Merged api key branch. Reopen if the issue is still present. fwiw, I’ve been using api-less plotting since this ticket was opened without issue. I understand the notebooks may be a bit different.

1reaction
frmsaulcommented, Oct 24, 2017

In case anybody encounters the same problem, here is the workaround i’ve been using for Jupyter / IPython.

from IPython.display import IFrame

def jupyter_display(gmplot_filename, google_api_key):
    """Hack to display a gmplot map in Jupyter"""
    with open(gmplot_filename, "r+b") as f:
        f_string = f.read()
        url_pattern = "https://maps.googleapis.com/maps/api/js?libraries=visualization&sensor=true_or_false"
        f_string = f_string.replace(url_pattern, url_pattern + "&key=%s" % google_api_key)
        f.write(f_string)
    return IFrame(gmplot_filename, width=990, height=500)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling API key handling (MissingKeyMapError) · Issue #16
Here is my fix for using this in flask. All you need to do is add &key= to the already existing visualization line....
Read more >
Error Messages | Maps JavaScript API
This behavior typically indicates issues with either an API key or billing. In order to use Google Maps Platform products, billing must be...
Read more >
ERROR: Google Maps API error: MissingKeyMapError
One thing I need to add is that in-addition to the api key, we will require to "Enable" the specific API, we are...
Read more >
How to Fix "This page didn't load Google Maps correctly ...
MissingKeyMapError means you are not using an API key and will need to sign up for one then configure your website to use...
Read more >
Google Maps API error: MissingKeyMapError [#2758889]
Google requires users to use a valid API key. Using the Google API Manager, you can enable the Google Maps JavaScript API and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found