Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #839628

    Concorde
    Participant

    Hi,

    When using the X-theme Google Maps shortcode x_google_map, how do you specify your Google Maps API key?
    Regards,

    Emmanuel

    #839730

    Christian
    Moderator

    Hey Emmanuel,

    I’m sorry but I’m not sure what you’re trying to achieve. The Google map element does not have that option.

    Thanks.

    #840431

    Concorde
    Participant

    Using the x_google_map shortcode raises:

    Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

    As per Google policy “All JavaScript API applications require authentication” and it’s simply a matter of being compliant by specifying our own API key.

    Regards

    #840737

    Jade
    Moderator

    Hi there,

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #841659

    Concorde
    Participant
    This reply has been marked as private.
    #841838

    Rupok
    Member

    Hi there,

    Thanks for writing back. Kind;y follow this reply and others on this thread – https://community.theme.co/forums/topic/google-map-questions/#post-781101

    Hope this helps.

    Cheers!

    #902440

    Magik Web
    Participant

    Hello,
    We have the same issue and couldn’t resolve it by following the other thread.
    The warning is shown on this page: https://v2.magikweb.ca/contactez-nous/

    We have an API Key we use for our projects and would like to apply it as shown by Google: https://developers.google.com/maps/documentation/javascript/get-api-key#spcifier-une-cl-dans-votre-requte

    We currently added the Google Maps using CornerStone, is there a way to add the key in the URL?

    Thank you!

    #903298

    Rad
    Moderator

    Hi there,

    @Concorde, You should contact a developer that can help you with API Key. Your map on the page you provided has a map but it’s not using X’s map shortcode.

    @magikweb, It could be a new MAP standard which recently implemented by google. Our map shortcode doesn’t even use any API directly (it only loads the google map URL that is responsible for rendering), but if this is google’s new strict requirement then we should implement the new standard as well. I can’t provide a solution for now as it’s part of the core but while testing, such warning doesn’t effect on the map at all. Stay tuned.

    Thanks!

    #904111

    Magik Web
    Participant

    Thank you for the response @rad.
    While it is not mandatory as of right now, they suggest it will be required in the future. Also, it gives a few technical advantages to apply it. I’d add an optional field “API Key” that adds it in the URL as shown. That’d be awesome.

    Thank you for this amazing theme.

    #905075

    Rad
    Moderator

    Hi there,

    Yes noted that, but it’s up to our developer and there is no temporary fix available.

    Stay tuned!

    #1005763

    hipneck
    Participant

    I’m interested in this, too, bc I’m getting warnings in JS console and wondering if it will become mandatory eventually. Thanks for keeping us posted!

    WARNING: The script element that loads the API has no API key. Please make sure you include a valid API key as a key parameter. You can generate a new API key on the Google Developers Console.

    WARNING: The sensor parameter is no longer required for the Google Maps JavaScript API. It won’t prevent the Google Maps JavaScript API from working correctly, but we recommend that you remove the sensor parameter from the script element.

    #1005797

    Rahul
    Moderator

    Sure thing, stay tuned!

    #1065121

    Rich H
    Participant

    Any update on this? My maps stopped working and now require an API key.

    I found the solution here – https://community.theme.co/forums/topic/map-error/#post-1059000

    #1065245

    Joao
    Moderator

    Hi Rich

    Thanks for sharing with the community.

    Let us know if you still need help with anything.

    Joao