Klaus Preuss
    Spectator
    Posts: 7
    December 12, 2018 at 7:02 pm #41764

    GoogleMaps doesn’t work on my site either…
    I’m using evolvePlus 2.9.1

    I’m use the same API-Key as for the older alora installation and the key is doublechecked.
    My Java-Console told me the following…:
    Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: blahblah

    The call from my page is:
    <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=--- HERE IS MY KEY ---;language=de&ver=bf20aec481685c43ce184b080999be8d"></script>

    I really wonder why this key works with alora and not with the new evolvePlus.
    Seems to be more alpha the expected.

    I would appreciate any help with this problem.

    Roman
    Spectator
    Posts: 3147
    December 12, 2018 at 7:34 pm #41767

    Hello Klaus Preuss,

    do you have that keys enabled for the domain where the theme is installed? As of the error message it’s not correctly set keys for that website

    Klaus Preuss
    Spectator
    Posts: 7
    December 12, 2018 at 10:12 pm #41771

    Hi Roman,

    thank you very much for the ultrafast reply.
    Aaaaaaaaaannnnnnd.
    You are my personal hero!

    Based on your reply i’ve reread the error again and again and again…
    I’ve checked the the activated API-Modules at Google again and again and …(as before)
    The secret lies in the two small words in the Java-Error…: Geocoding Service

    That is the difference to the API-Call from the old alora-Installation.
    After additional activating the “Geocoding API”-Module everything works fine and smoothly.

    Reflecting on the usage-Panel at Google the following two API-Modules have to be activated:

    1. 1. Geocoding API
    2. 2. Maps JavaScript API

    .
    Please correct me, if i’m wrong.

    Probably you should add this to some documentation in the future. Just telling the user, he has to catch an API-Key is quite a jump to short, especially since Google offers 16 API-Modules under the Maps-Class.

    Lastly the point is: You made my Day!
    Keep up your good work.

    Regards
    Klaus

    Roman
    Spectator
    Posts: 3147
    December 13, 2018 at 12:01 am #41772

    Thanks for the update Klaus, actually you need to have enabled only Google Maps JavaScript API as the theme uses it. In the docs you can find this option https://theme4press.com/guide/docs/setting-up-the-contact-page/#options . I think Google Maps API offer only one 😉

    Klaus Preuss
    Spectator
    Posts: 7
    December 13, 2018 at 1:13 am #41773

    These are the activated and also the possible (16) API-Modules under Google Maps i grapped from my Google Console…
    And without the Geocoding API there was no Map on the Contact-Form.
    As you see there are 18 false requests until i enabled the Geocoding.
    These errors are buffered by Google and will displayed only after turning the module on.
    After that…. no errors.
    Just give it a try and disable the Geocoding-API in your Google-Account for a little test as i assume it might be turned on.

    So this solution works for me and i’m happy.
    And i also didn’t want to bother you… i just want to give my 5ct to submit some hints to you.

    Aktivierte APIs / Active APIs
    
                         Requests  Error
    API                  Anfragen  Fehler   Latenz
    
    Geocoding API	        25	18	151	Details
    Maps JavaScript API	18	0	22	Details
    
    Zusätzliche APIs / Additional APIs
    Wählen Sie eine API aus, um Details im Marktplatz anzusehen. /    Select API to activate
    
    Directions API
    Distance Matrix API
    Maps Elevation API
    Maps Embed API
    Maps SDK for Android
    Maps SDK for iOS
    Maps Static API
    Geolocation API
    Roads API
    Street View Static API
    Time Zone API
    Places SDK for Android
    Places SDK for iOS
    Places API for Web