MissingKeyMapError with Google Map

Homepage Forums Pro Support Forum BoldR Pro BoldR Pro Bug Reports MissingKeyMapError with Google Map

MissingKeyMapError with Google Map

This topic contains 7 replies, has 2 voices, and was last updated by  etienne 1 year, 5 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #18321
    MissingKeyMapError with Google Map

    etienne
    Participant

    Hello,
    I’using Google Map shortcode, like

    [maps title=”ICS-Informatique” col=”one-half” height=”400″ type=”ROADMAP” zoom=”15″ address=”9 rue de l’Etoile, 75017 PARIS” lat=”48,880371″ lng=”2,287436″ controls=”off”]

    but the answer of Google Map is :
    “Petit problème… Une erreur s’est produite
    Google Maps ne s’est pas chargé correctement sur cette page. Pour plus d’informations techniques sur cette erreur, veuillez consulter la console JavaScript.”

    When I have a look on the console, it says :
    “Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.ib @ js?sensor=false:34
    util.js:209 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

    Any idea ?
    Regards,
    Etienne

    (see it on http://www.ics-informatique.com/contact/)

    #18322
    Reply to: MissingKeyMapError with Google Map

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Hello,

    This is intriguing, I could not reproduce this error on my own site even when I copy your shortcode with the exact same parameters.

    BoldR Pro demo site: http://demo.iceablethemes.com/boldr/contact-page/
    A test page I’ve just created with your exact shortcode: http://demo.iceablethemes.com/boldr/maps-test/ (this one is just to show you, I’ll delete it shortly after)

    If you open the console you’ll see the no API key warning, but the maps work anyway.

    Do you have any third party plugin active on your site? If so can you please try to temporarily disable ALL of them and see if it works?

    If this doesn’t help, please let me know and I’ll help you get your own API key (that’s free and takes just a few clicks) and include it on your site.

    I will also run some more tests and consider including an option for users to add their own API key in the theme settings to use maps without such issues in the future.

    • This reply was modified 1 year, 5 months ago by  iceable.
    #18324
    Reply to: MissingKeyMapError with Google Map

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Update: currently adding an option to enter a Google Maps API key (which you can get for free with just a few clicks) into the shortcode.
    Will try to release a quick update for the theme including this today; I’ll let you know when it’s ready!

    #18329
    Reply to: MissingKeyMapError with Google Map

    etienne
    Participant

    Hello,

    Thanks for your incredibly quick answer !

    The first time I used it, it was working perfectly, as shown in http://demo.iceablethemes.com/boldr/maps-test
    But I did not noticed the change that broke it. I’ve tested different parameters, and it is not depending on it.

    Anyway, I tried to desactivate all plugins, no change.

    Thank you for your delivery of a new version including the Google Map API Key !

    #18345
    Reply to: MissingKeyMapError with Google Map

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Hi again, and thanks for trying to rule out possible causes. unfortunately why it works on some sites without api key and not on others remains a mystery, but anyway you will now be able to use an API key with BoldR Pro 1.7.13.

    If you have set your license key in theme options, this update should pop in your admin dashboard.

    – If your license key isn’t set yet, you’ll find it in your account and you can copy it in Appearance > Theme Options > License settings
    – If the update doesn’t show up right away, you can try to force it by clicking “check again” a few times in Dashboard > Updates

    Once you get the update, the maps shortcode will accept an api parameter. When using the visual shortcode it will be the first option to set in the shortcode’s window.
    If you are using the editor in “text” mode, the parameter can be set like so:

    [maps api="YOUR_API_KEY" etc.]

    And of course, here’s a quick guide to get a Google Maps API key: https://www.iceablethemes.com/documentation/getting-an-api-key-for-google-maps/

    When you get a chance to try this, could you please let me know if it works for you? Since I could not reproduce the same issue, your feedback would really help to confirm that everything is fine now!

    #18346
    Reply to: MissingKeyMapError with Google Map

    etienne
    Participant

    Excellent ! It work properly (but it work only if you give it GPS coordinates, with the adress, it don’t work).

    (strange fact, it works properly on a second website I use it, without the Google key)

    Thank for your reactivity.

    #18349
    Reply to: MissingKeyMapError with Google Map

    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Thanks for your feedback, good to know you could get it to work as expected now!

    I still have no idea why it works without a key on some sites and not on others (your site is actually the first one where the map didn’t work without a key!).
    Also geocoding the address is done by Google Maps itself but is not 100% reliable; this is why there’s an option to use GPS coordinates instead. However I just tried again to load a map with only your address and it did work and showed the exact same location… go figure!

    Anyway, what matters is that now it just works!

    #18352
    Reply to: MissingKeyMapError with Google Map

    etienne
    Participant

    Yes, this is the most important, as the Google cook is not really clear !

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘MissingKeyMapError with Google Map’ is closed to new replies.


PayPal Verified
Secured by PayPal
Secure Credit Card payments powered by Stripe
SiteLock