Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1117619

    I’m getting an error when trying to use the google map shortcode.

    #1117626
    This reply has been marked as private.
    #1117862
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! As you may aware, there were some changes introduced to Google Map API by Google, so that is why it will require an API key.

    Google Map API key field is now available in Cornerstone (see http://theme.co/changelog/#cornerstone-1-3-0).

    Upon checking your site, I see the following errors on web console error log.

    
    MissingKeyMapError
    NoApiKeys
    

    Please refer to their guide here (https://developers.google.com/maps/documentation/javascript/error-messages) on how to resolve those issue.

    Hope that helps.

    #1118437
    This reply has been marked as private.
    #1118545
    Friech
    Moderator

    Hi There,

    Are you using the shortcode?

    Please update that to this:

    [x_google_map api_key="YOUR-API-KEY-HERE" lat="37.8069572" lng="-122.4161852" zoom="17" zoom_control="false" drag="true" height="60%" hue="false" no_container="false" ][x_google_map_marker lat="37.806688" lng="-122.419036" start_open="false" info="" image=""][x_google_map_marker lat="37.806578" lng="-122.414230" start_open="false" info="" image=""][/x_google_map]

    See the YOUR-API-KEY-HERE string? Replace that with your own actual API key.

    And remove that code you added on the child theme’s functions.php file.

    Hope it helps, Cheers!

    #1118976

    That worked. Thank you

    #1119265
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1117619 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>