Switch between two Google API keys in one skin

Q&A about the latest versions
Post Reply
MThieme
Posts: 6
Joined: Fri Jan 18, 2019 4:07 pm
Location: Germany
Contact:

Hello everybody.
I want to use the configurability to toggle between two API keys. So use two google maps with different keys in one skin. I want to switch the unused card invisible, but it does not work. It always uses the same key, whether I switch or not. Probably the key of the first map in the skin is used.

Greetings, Matthias
MThieme
Posts: 6
Joined: Fri Jan 18, 2019 4:07 pm
Location: Germany
Contact:

Hi everyone.
No ideas ...a great pity. :(

The reason for my request:
I want to use the same skin for development, local tests and the final result on the web server.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
If you use a custom Google Map you can add a Google API key for that map.
If you have a Map element in the skin with its own API key, it will not be used as the custom maps API will be used instead.

But note you cannot switch an API key, as an example if you created two custom Google Maps each with their own API key, the map you open first is the API key that will be used.

Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
MThieme
Posts: 6
Joined: Fri Jan 18, 2019 4:07 pm
Location: Germany
Contact:

Hi Hopki,
thanks for your reply.
Anderstand ... It is not possible to use two maps with different keys in a skin.
I have to find another way.
Regards,
Matthias
Post Reply