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.

Google Maps API warning: NoApiKeys

See original GitHub issue

Hiya,

I’m using this for a React / Typescript project. My map works totally fine – but I keep getting this warning when the page loads. I’m very sure that I have the bootstrapURLKeys property set up correctly: bootstrapURLKeys={{ key:this.util.getKey() }}. This is a valid Google Maps JS API key as well. This also occurs when the key itself is hardcoded into the pair. Is there a simple fix for this that I am missing?

Thanks for the help in advance!

Stack trace of the error (but it doesn’t seem very helpful):

util.js:220 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
rB.j @ util.js:220
(anonymous) @ js?libraries=places&sensor=false:136
(anonymous) @ js?libraries=places&sensor=false:53
(anonymous) @ js?libraries=places&sensor=false:50
(anonymous) @ js?libraries=places&sensor=false:53
_.G @ js?libraries=places&sensor=false:52
(anonymous) @ js?libraries=places&sensor=false:53
_.v @ js?libraries=places&sensor=false:32
Yc @ js?libraries=places&sensor=false:53
(anonymous) @ js?libraries=places&sensor=false:136

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
sergop321commented, Jun 15, 2017

I am using the place with searchBox by simply using libraries: ‘places’ in bootstrapURLKeys, No other script tags on page

import React from 'react';
import GoogleMap from 'google-map-react';


const GoogleMapConfig = {
	key: YOUR_KEY,
	libraries: 'places',
};

export default class Map extends React.Component {
	render() {
		return (
			<GoogleMap
				bootstrapURLKeys={GoogleMapConfig}
	                        // ALL YOUR OTHER OPTIONS
			/>
		);
	}
}
0reactions
lock[bot]commented, Dec 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Maps API warning: NoApiKeys - Stack Overflow
Creating and using the key is the way to go. The usage is free until your application reaches 25.000 calls per day on...
Read more >
Error Messages | Maps JavaScript API - Google Developers
Google Maps JavaScript API warning: NoApiKeys; Google Maps JavaScript API error: MissingKeyMapError. For web developers: If you have access to the source code ......
Read more >
I see a warning "Google Maps API warning: NoApiKeys"
If you see a warning in your browser's Javascript console that says "Google Maps API warning: NoApiKeys https://developers.google.com/maps/ ...
Read more >
Google Maps JavaScript API warning: NoApiKeys #131 - GitHub
Hi, For some reason I can't get to make the JavaScript Google maps to work. I created a totally new account in Google...
Read more >
Google Maps JavaScript API warning: NoApiKeys - Kriesi.at
We have the error “Google Maps JavaScript API warning: NoApiKeys” although an API Key is saved in Enfold Options.
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