Switch between two Google API keys in one skin

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

Switch between two Google API keys in one skin

Post by MThieme » Tue Jan 22, 2019 10:10 am

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: 3
Joined: Fri Jan 18, 2019 4:07 pm
Location: Germany
Contact:

Re: Switch between two Google API keys in one skin

Post by MThieme » Wed Jan 23, 2019 12:38 pm

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: 9015
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Switch between two Google API keys in one skin

Post by Hopki » Wed Jan 23, 2019 9:13 pm

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

MThieme
Posts: 3
Joined: Fri Jan 18, 2019 4:07 pm
Location: Germany
Contact:

Re: Switch between two Google API keys in one skin

Post by MThieme » Thu Jan 24, 2019 12:53 pm

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

Who is online

Users browsing this forum: Exabot [Bot] and 14 guests