New Landing How can we help? Atelier Google Maps API error: MissingKeyMapError

Viewing 15 posts - 1 through 15 (of 17 total)
  • Posted in: Atelier
  • #276554
    pepitoch
    Member
    Post count: 5

    I dont understand one day nathing and other ERROR. Please help.

    Attachments:
    You must be logged in to view attached files.
    #276636
    Mohammad – SUPPORT
    Moderator
    Post count: 27441
    #276727
    pepitoch
    Member
    Post count: 5

    here is API KEY: AIzaSyDtlVdDxaGQrlucS9xbEwrI8PpRK66VdP8

    I will be waiting for your reply. Thanks!!

    #276763
    nosuchagency
    Member
    Post count: 226

    @Mohammad

    I’m in the same situation with some of our sites.
    I’ve researched this issue, and it seems that Google, from today and going forward, requires API keys to maps in general.

    Please provide the “generic” solution.

    Thanks :o)

    #276844
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit the functions.php file of theme.

    Find this code:-
    wp_register_script(‘sf-maps’, ‘//maps.google.com/maps/api/js’, ‘jquery’, NULL, TRUE);

    Change With:-
    wp_register_script(‘sf-maps’, ‘//maps.google.com/maps/api/js?key=AIzaSyDtlVdDxaGQrlucS9xbEwrI8PpRK66VdP8’, ‘jquery’, NULL, TRUE);


    @nosuchagency
    – Generate a key and make change as top of this.

    Thanks
    Mohammad

    #276849
    pepitoch
    Member
    Post count: 5

    Changed:-
    wp_register_script(‘sf-maps’, ‘//maps.google.com/maps/api/js?key=YOUR_API_KEY_GOOGLE_MAPS’, ‘jquery’, NULL, TRUE);

    ITS WORKED!!!

    THANKS @MOHAMMAD

    Attachments:
    You must be logged in to view attached files.
    #276851
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad 🙂 to help you.
    Thanks
    Mohammad

    #276869
    nosuchagency
    Member
    Post count: 226

    @Mohammad.

    In Uplift that specific string isn’t there.
    I’ve got:

    if ( $page_has_map ) {
    wp_enqueue_script(‘google-maps’, ‘//maps.google.com/maps/api/js’, ‘jquery’, NULL, TRUE);
    }

    How and what to change (again – Uplift Theme)?
    And a second question: Will changes be overwritten on the next theme update?

    Thanks :o)

    Soren.

    #276875
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You are at right code so changed it like this :-
    wp_enqueue_script('google-maps', '//maps.google.com/maps/api/js?key=PUT_YOUR_KEY', 'jquery', NULL, TRUE);
    Thanks
    Mohammad

    #277008
    nosuchagency
    Member
    Post count: 226

    @Mohammad.

    Hi M.
    The map loads, but my markers have disappeared…

    Any ideas?

    Soren J.

    #277124
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specific page url with issue.
    Thanks
    Mohammad

    #277200
    nosuchagency
    Member
    Post count: 226
    This reply has been marked as private.
    #277287
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Can you please increase the height of google map element and check for issue?
    Thanks
    Mohammad

    #277457
    nosuchagency
    Member
    Post count: 226

    @Mohammad.

    Height increased from 300px to 500px.
    Issue still persists…

    Br.

    Soren.

    #277497
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You need to reduce the zoom level in 2 levels.
    https://www.dropbox.com/s/maibpchoiauaj7r/Screenshot%202016-06-27%2018.01.58.png?dl=0

    -Rui

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register