Google Map API-Key: required or optional?

3 replies · opened Jul 8, 2016

AagenziagammaJul 8, 2016

Hi

In order to embed Google Maps to my Page, the API-key is REQUIRED or OPTIONAL?

Following Your enclosed Documentation I don't read anythink about API-key;
I read only about
Step 1: api/js?sensor=true and gmap.js
Step 2: <div id="google-map1" style="height: 250px;" class="gmap"></div>
Step 3: <script> ... </script>

What about API-key?

Is there any Documentation about?

Thank You

Daniele

SSemicolon WebSTAFFJul 8, 2016

Hello,

Using the Google Maps API Key was optional before but it has become mandatory recently. Please find the following code:

http://maps.google.com/maps/api/js

and replace it with:

https://maps.google.com/maps/api/js?key=YOUR_API_KEY

You can generate your API Key for Google Maps from here: https://developers.google.com/maps/documentation/javascript/ and then Click on Get a Key in the Header.

This should definitely fix your issue. Let us know if we can help you with anything else or if you find any further issues.

AagenziagammaJul 8, 2016

Thank You for your reply.

Which kind of API Key I have to create?

Server Key or Browser Key?

Thank You

Daniele

SSemicolon WebSTAFFJul 10, 2016

Hello,

You will need to use the Browser Key in this case!

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard