Rollback999

Is it possible to Change the Google Maps API Key Dynamically Using JavaScript?

Asked by Rollback999 2 years ago javascript api google map


unregistered
0
 
//
$hote = $_SERVER['HTTP_HOST'];
if ($hote == "www.designreviver.com") {
First API key }
else {
2nd API key
}

by unregistered 2 years ago

unregistered
0
 
No need anymore :-)
With v3, there is no API key.

by unregistered 2 years ago

Rommel Castro A
0
 
Yes, you can put you key in a var, and just change the value's var with javascript

by Rommel Castro A 2 years ago

Answer this question

Is it possible to Change the Google Maps API Key Dynamically Using JavaScript?

0 errors found:

 
0