Page 1 of 1

How to Use Your Own Google Maps API Key?

Posted: Fri Jul 17, 2015 2:37 am
by MobileBen

Has anyone figured out how to use your own Google Maps API key when using an Appery Google Map component? I've read through the forums and the answers point everyone to Google Maps documentation but Google documentation doesn't explain how to make an Appery.io app stop using Appery's key and start using your own key. Thanks in advance.


How to Use Your Own Google Maps API Key?

Posted: Fri Jul 17, 2015 1:24 pm
by Alena Prykhodko

Hello,

Please read more here https://developers.google.com/maps/do...

You will need to modify this in Sources:

Find this row in PageName.html in Source-WEB_RESOURCES
precode<script type="text/javascript" src="https:&#47;&#47;maps&#46;google&#46;com/maps/api/js?sensor=true">
</script> /code /pre

Should be like this:
precode<script type="text/javascript" src="https:&#47;&#47;maps&#46;google&#46;com/maps/api/js?sensor=true&key=API_KEY">
</script>/code/pre

Where API_KEY is your API key.


How to Use Your Own Google Maps API Key?

Posted: Wed Jan 27, 2016 10:50 am
by B5107656409

Hello,

can I add it on external resources tab -- User-defined resources?

https://maps.googleapis.com/maps/api/...

please confirm..


How to Use Your Own Google Maps API Key?

Posted: Thu Jan 28, 2016 5:40 pm
by Serhii Kulibaba

Hello,

Sure, you can


How to Use Your Own Google Maps API Key?

Posted: Tue Feb 02, 2016 2:37 am
by B5107656409

No .. it does not works.. I meant .. I can't put API key in the external resource tab

Alert:

This page was unable to display a Google Maps element. Please contact the site administrator. If you are the administrator of this site, please check the JavaScript console or check the following page for troubleshooting http://g.co/mapJSApiErrors

but if I don't put the API key then it works properly but sometimes I got OVER_LIMIT message any way..


How to Use Your Own Google Maps API Key?

Posted: Thu Feb 04, 2016 1:24 pm
by Serhii Kulibaba

Please remove google map component from your app if you use your own API Key, and add link to that file and map html-layout to the HTML component


How to Use Your Own Google Maps API Key?

Posted: Wed Feb 24, 2016 9:44 pm
by Carl Ott

BTW - it looks like the sensor parameter has been deprecated, and should not be used

http://stackoverflow.com/questions/86...

confirmed at

https://developers.google.com/maps/ar...
and
https://developers.google.com/maps/do...

if correct, perhaps it would help to update the tutorial at https://devcenter.appery.io/tutorials...
and remove the sensor - it causes confusion and console log warnings...


How to Use Your Own Google Maps API Key?

Posted: Wed Feb 24, 2016 10:16 pm
by Carl Ott

Also - according to this
https://developers.google.com/maps/do...

it appears that nowadays, the API should be accessed through a different base URL, e.g.
src="https://maps.googleapis.com/maps/api/..."


How to Use Your Own Google Maps API Key?

Posted: Tue Sep 20, 2016 2:48 am
by Ash Aro

example?


How to Use Your Own Google Maps API Key?

Posted: Tue Sep 20, 2016 1:30 pm
by Serhii Kulibaba

Please look at this topic with an example: https://getsatisfaction.com/apperyio/...