Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1202791

    Jade
    Moderator

    Hi Gerard,

    Kindly follow the steps on this video to solve the Google Maps issue.

    Hope this helps.

    #1206667

    gnorris
    Participant

    Hi Jade,

    Many thanks for sharing the Google API Tutorial above.

    I used this tutorial when creating my first Google API Key, but I did watch it again, in case I missed something, first time around.

    I generated another Google API Key, enabled it and applied the credential process. I tried to use it on the site, but I encountered the same problem as before. I got a JavaScript error message in the console: Google Maps API error: MissingKeyMapError.

    I will send on a private message with logon details (with Administrator Privileges), the Google API Key and a screenshot of the pertinent issues.

    As always, your support is greatly appreciated.
    Gerard.

    #1206668

    gnorris
    Participant
    This reply has been marked as private.
    #1206721

    gnorris
    Participant
    This reply has been marked as private.
    #1207396

    Rad
    Moderator

    Hi there,

    Upon more checking, Google maps now load its own set of javascript files, example, this script is embedded alone

    https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyB4TbYreAzbzCL352e9QKeE_Sr0oupwNrQ&ver=4.6.1

    but once that script is executed, it will then add the new set of scripts

    <script type="text/javascript" charset="UTF-8" src="https://maps.googleapis.com/maps-api-v3/api/js/25/14/common.js"></script>
    <script type="text/javascript" charset="UTF-8" src="https://maps.googleapis.com/maps-api-v3/api/js/25/14/map.js"></script>
    <script type="text/javascript" charset="UTF-8" src="https://maps.googleapis.com/maps-api-v3/api/js/25/14/util.js"></script>
    <script type="text/javascript" charset="UTF-8" src="https://maps.googleapis.com/maps-api-v3/api/js/25/14/onion.js"></script>
    <script type="text/javascript" charset="UTF-8" src="https://maps.googleapis.com/maps-api-v3/api/js/25/14/stats.js"></script>
    <script type="text/javascript" charset="UTF-8" src="https://maps.googleapis.com/maps-api-v3/api/js/25/14/controls.js"></script>

    This is dynamically generated by google map and it bypass WordPress enqueues, hence, cornerstone isn’t able to capture them. And API Key is only local to where it’s called and those new set of scripts aren’t able to reach that API Key through the preview.

    I’ll forward this bug, with new google map requirements and standard, it’s now incompatible with cornerstone.

    Thanks!

    #1208953

    gnorris
    Participant

    Hi Rad,

    Many thanks for your informative response. I will await the bug fix.

    Gerard

    #1209149

    Rad
    Moderator

    Hi there,

    Sure, please stay tuned 🙂

    Thanks!