Home Forums WoodMart support forum GOOGLE MAP DOESN'T WORK

GOOGLE MAP DOESN'T WORK

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44098

    sangron
    Participant

    Dear XTEMOS.

    I used google map in my site and it worked very well before.
    I don’t know when it stop working, it doesn’t work now.
    I already tried re-generating API KEY and checked it again.

    More serious, this symptoms are same in your demo site.
    Here is URL.
    https://woodmart.xtemos.com/google-maps/

    All google maps are changed to gray black rectangles.

    What happen?

    Attachments:
    You must be logged in to view attached files.
    #44140

    Artem Temos
    Keymaster

    Hello,

    We tested your website and the google map works correctly, as well as on our demo website https://gyazo.com/32a55b1881d50a1b09f7f79670e44440
    Most likely, there is something wrong on your side. Maybe they are not allowed in your region.

    Regards

    #44168

    Artem Temos
    Keymaster

    Try to edit the file woodmart/inc/shortcodes/google-map.php and replace this code

    wp_enqueue_script( 'google.map.api', 'https://maps.google.com/maps/api/js?key=' . $google_key . '', array(), '', false );

    with this one

    wp_enqueue_script( 'google.map.api', 'https://maps.google.com/maps/api/js?sensor=false&libraries=geometry&v=3.22&key=' . $google_key . '', array(), '', false );

    #44172

    sangron
    Participant

    I’m sorry for not providing proper URL for your testing.
    That site is on service, so we replace all google-maps in that page to other widget.

    Here is the URL for testing google map.
    https://invitation.alleywaystudio.kr/google-map-test/

    —-
    Following your second reply, I modify my google-map.php and now it works!!
    I don’t know why it suddenly stop working despite I changed not thing, but it now works !!

    Thank you for answering my question.

    Best regards.

    #44180

    Artem Temos
    Keymaster

    Great, we will fix it in the next theme update. The problem is that Google changed their API service a bit and that is why old scripts are not working.

Tagged: 

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

The topic ‘GOOGLE MAP DOESN'T WORK’ is closed to new replies.