Maps disapear on my WordPress website when using Google Maps API - javascript

In my Word Press website I inserted an API key that I had issued in the Google API Manager.
Now, the map is shown for a blink and than disappear with some kind of error.
Please see:
http://www.thecinemadoors.com/all-in-one-map/?h=801
Is the problem with the Wordpress theme or with my API Key?
Thanks,
Tamir

I found following error:
Google Maps API error: ApiNotActivatedMapError https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error
ApiNotActivatedMapError Error
The Google Maps JavaScript API is not activated on your API project. You may need to enable the Google Maps JavaScript API under APIs in the Google API Console.
See Obtaining an API key.
https://developers.google.com/maps/documentation/javascript/get-api-key

Related

GSheet project problems

I'm trying to set a filter to a GSheet with appscript but when I try to run the script appears a popup with:
Google Sheets API has not been used in project blackbox-6831xxxxxxxxx5 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/sheets.googleapis.com/overview?project=blackbox-6834xxxxxxxxxx5 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
When I try to reach that link the console returns me:
The API "sheets.googleapis.com" doesn't exist or you don't have permission to access it
All the other scripts that interact with GSheet API works perfectly.
I have problems only with:
Sheets.Spreadsheets.batchUpdate({'requests': [request]}, ss.getId());
P.S.
I'm the admin
If you don't access directly to the URL, how about going to API console from the script editor and enabling Sheets API? The flow is as follows. Even if you tried this, when the same error occurs, there may be other problem.
Enable Sheets API v4 at API console
On script editor
Resources -> Cloud Platform project
View API console
At Getting started, click Enable APIs and get credentials like keys.
At left side, click Library.
At Search for APIs & services, input "sheets". And click Google Sheets API.
Click Enable button.
If API has already been enabled, please don't turn off.
And then, please confirm whether Sheets API is enabled at Advanced Google Services again.
Enable Sheets API v4 at Advanced Google Services
On script editor
Resources -> Advanced Google Services
Turn on Google Sheets API v4
If this was not useful for you, I'm sorry.

Where is the google maps API loaded?

I have a magento website that is loading a google maps container. The weird thing is that the console is giving me a warning that says
Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
maps.google.com/maps-api-v3/api/js/29/2/util.js:220
but the map is still loading. How is it possible?
I'm asking because I want to load google maps on another page in the same website but I seem not to do it. It is still giving me the same error.
So I'm wandering where is this util.js file is loaded exactly on the website? If I find it I can provide it with the key and maybe load it on the website.
I have used google map functionality in magento.
I have loaded MAP in .PHTML file using below API & My KEY.
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=<?php echo $this->getGoogleApiKey(); ?>&libraries=places&callback=init">
API Key : This Key you will find from your google account. For find key click on below link and login with your gmail credentails.
For Reference Please visit below links it will help you.
- https://developers.google.com/maps/documentation/javascript/tutorial
May be Above things will help you.!

google maps api for webview

I’m developing an app that integrates Google map with Google places in a webview. I have it all working well using the JavascriptInterface. Actually it’s working really well. However, I just want to know how to set the API key.
At the moment I’m using:
http://maps.googleapis.com/maps/api/js?libraries=places&sensor=true
I want to add the API key. If I add the API key to the above JavaScript I get a message from Google blocking the connection saying that I have to register the URL, which I can’t do as it is integrated in the app.
I have set the SHA key in the Google API Console.
Any Ideas?
Thanks in advance.
.
u should register your website to google map apis key page there is a button rightof key called Edit allowed referers...
and when u are using key
put it to "addyourkeyhere" in link. and set your sensor false or true.
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AddYourKeyhere&sensor=false"/>

Google maps API v3 - How are client loads detected?

I have a small and low key website what features Google Maps using the v3 Javascript API.
Not that I am expecting to get over 25,000 loads per day, but how does Google detect people loading the map on my site? My site uses the the following code http://maps.google.com/maps/api/js?sensor=false without any API key, and as it is rendered in the clients browser, how does Google relate it to my site?
Is the loads worked out through the http headers/referrers or are the loads based on how many times each client/IP loads the map?
In essence, the code for the map is rendered on my clients/users browsers and thus how do Google know how many people are using the map on my site?
Finally; although I have Google web master tools; is it worth creating & using a API key, or will it just make it possible for Google to track how many people are using the map on my site and thus apply the limit of 25,000?
The API sends a request to google which contains the URI of the page that contains the map(when you inspect the network-traffic inside the dev-tools you'll see a request to https://maps.googleapis.com/maps/api/js/QuotaService.RecordEvent ) . This request will be sended when a Maps-instance has been created successfully.
The benefit of using a key: google is able to contact you when there are issues(e.g. may send a notice when you have reached any limits and give you a chance to react/solve the issue before they restrict the API-access for your domain/account).

Googlemaps api V3 error loading the api

I am trying to use google maps api on my site. I am adding the following url as my script source http://maps.googleapis.com/maps/api/js?key=AIzaSyD4RDCq5jqjyooPAQM3MDPTWFR1LDq1N6s&sensor=true. And when I load the page I get the following error.
I checked my google aps console and the google api is turned on
I am not sure why I am getting this error. My website url is sporkstick.com.
use this:
src="http://maps.google.com/maps/api/js?sensor=false"
keys are not necessary in v3
Do you have a link to a live demo? Without that, I can only guess that the referrer (i.e. the site that you're putting a map on) does not match the restrictions on referrers you've set up in the API console.
-
You're using the V2 API. Definitely start by loading the V3 Maps API. The V2 API is deprecated. If you look at your console, you've only activated the V3 API for that key, not the V2 API.

Categories