Google API key setting for basic google map

Jainik Patel asked on April 4, 2017 07:59

How can I set the google API key in kentico 9 ? (When I transfer local site to live "basic google map" stop working on live domain) Is there any setting for the same ?

Recent Answers


Chetan Sharma answered on April 4, 2017 11:24

What I understand is that Google API keys are Domain specific. You need to regenerate API keys for your new domain for them to work properly.

What error are you getting in browser console?

Thanks, Chetan

1 votesVote for this answer Mark as a Correct answer

Jainik Patel answered on April 4, 2017 11:38 (last edited on April 4, 2017 11:39)

Show the following error.

Oops! Something went wrong.This page didn't load Google Maps correctly. See the JavaScript console for technical details.

I know domian specific generate API keys but where place I set API key in kentico 9 ?

1 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on April 4, 2017 11:56

You have few options

  1. If you are using kentico's Google map web part to show the maps then you can provide keys in the web part configuration. Provision is there.

  2. If you are using JS and HTML to do this then you can add script tag provided by Google maps API in the head tag using Head HTML WEB PART in the appropriate template.

Which approach are you using?

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.