Page 1 of 1

Switch between two Google API keys in one skin

Posted: Tue Jan 22, 2019 10:10 am
by MThieme
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

Re: Switch between two Google API keys in one skin

Posted: Wed Jan 23, 2019 12:38 pm
by MThieme
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.

Re: Switch between two Google API keys in one skin

Posted: Wed Jan 23, 2019 9:13 pm
by Hopki
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

Re: Switch between two Google API keys in one skin

Posted: Thu Jan 24, 2019 12:53 pm
by MThieme
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