Why do I keep getting error while loading googlemaps?
I am trying to upgrade from v2 to v3 in google maps API and I keep getting this error: Google Maps API server denied your request. The "sensor" parameter specified in the request must be set to "true" or "false".
Here is the tutorial I'm using: https://developers.google.com/maps/documentation/javascript/tutorial
In javascript, I changed the src to
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDzGdafsdfdfgoO4cHbfRGL8W23dgfafJKnA&sensor=TRUE">
</script>
but I keep getting the following error: The Google Maps API server denied your request. The "sensor" parameter specified in the request must be set to "true" or "false".
What does the error mean and how can I fix it?
source to share
In case anyone has a similar problem, I also got this error for a different reason.
In my case, the problem was with the extra line break and spaces inserted into the code when copying and pasting the example from the google website.
This line was the problem:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE&sensor=false">
Be sure to squeeze everything right together, nice and tidy, otherwise it won't parse the code correctly.
source to share
Get into the same problem. If you already have the correct key and all lowercase letters for the logic gauge, make sure you include your card dimensions. For example, from the tutorial:
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map-canvas { height: 100% }
</style>
source to share