Hello,
how can I insert my google maps API key? I have Semantic Maps 3.0.4
$egGoogleJsApiKey = "yourkey";
$egMapsGMaps3ApiKey = "yourkey";
Hello,
how can I insert my google maps API key? I have Semantic Maps 3.0.4
Since Semantic Maps is depending on Maps the setting is done there. However you will have to upgrade to Maps 3.8 since this is the version that introduced the configuration setting for this.
Thanks for the answer! Updating Maps must also update Semantic Maps or is not necessary?
Where can I find the instructions to do the upgrade? I looked for them, but I did not find ... Thanks again for the help
One last question, sorry for the trouble. The file "Maps_settings.php" relative Maps 3.0.4 I found this:
// Google Loader JavaScript API key.
// Can be Obtained at: https://code.google.com/apis/loader/signup.html
// This key is needed When using Google Earth or When using extended
// Limits for displaying maps or geocoding calls.
$ GLOBALS ['egGoogleJsApiKey'] = '';
Entering here my API key can use it without being obliged to update?
Usually you would update both extensions. It is probably a matter of versions playing together or not.
About your discovery. I was not aware that Maps 3.0.4 still had this. I guess it is a matter of adding a key to your configuration and see if it works. If not ...
Ok, I'll do a test! If I were to upgrade, my problem is that I have access to the shell but I can not use the composer... How can I update both extensions? I have to transfer all the wiki on my PC, install everything and then put it back online?
> How can I update both extensions?
Yes, that's the way to do it if you cannot even use "phar"-files. I just remember that Maps now requires PHP 5.5. That may be an issue too.
For anyone interested: I did the test and confirm that using Maps 3.0.1 and inserting the API key in Map_settings file, everything seems to work properly
Thanks for reporting back. I believe it is preferable to have the setting $egGoogleJsApiKey = "yourkey";
in "LocalSettings.php" instead of "Map_settings.php" to make is upgrade safe. In your case it does not matter since with every upgrade you will loose this setting (removed in 3.1) anyway until 3.8 which reintroduced it as egMapsGMaps3ApiKey
.