Home › Forums › WoodMart support forum › google-map-issue
google-map-issue
- This topic has 9 replies, 2 voices, and was last updated 4 years, 5 months ago by Elise Noromit.
-
AuthorPosts
-
May 25, 2020 at 1:43 pm #197747
vindesign_itParticipantI’m taking some test with map-element.
https://www.phofirenze.com/map-test/
In this page I added two map-element https://ibb.co/cLq6Pj5
1) GOOGLE MAP / WORDPRESS
2) GOOGLE MAP / WOODMART THEME
The 1) work the 2) isn’t visible, dont’work correctly, I added the API KEY in API boxs’theme (https://ibb.co/CsBYgF8 )and in element(https://ibb.co/zVd4pJC)
Can you help me ?
Thank you,
Best RegardsMay 25, 2020 at 9:23 pm #197820
Elise NoromitMemberHi,
Please check the JS console if it is saying that this domain is not allowed. If so,
you need to check your API key settings and add your current domain to its configuration.Else, provide the page URL where I can check the map.
Regards
May 25, 2020 at 10:40 pm #197851
vindesign_itParticipantI check my API key settings.
This is the page…
https://www.phofirenze.com/map-test/
In this page I added two map-element https://ibb.co/cLq6Pj5
1) GOOGLE MAP / WORDPRESS it’s work
2) GOOGLE MAP / WOODMART THEME
The 1) work the 2) isn’t visible, dont’work correctly, I added the API KEY in API boxs’theme (https://ibb.co/CsBYgF8 )and in element(https://ibb.co/zVd4pJC)
May 26, 2020 at 10:23 am #197965
Elise NoromitMemberHello,
Here is the screen of the error: https://prnt.sc/snzkok
and there are two links provided on how to solve: https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required and
https://developers.google.com/maps/documentation/javascript/error-messages#retired-versionBest Regards
May 27, 2020 at 7:26 pm #198416
vindesign_itParticipantHello,
I resolved the problem !
But the error is in file google-map.php (/WoodMart Theme/woodmart/inc/shortcodes/google-map.php), it’s a theme’s file.
Isn’t a theme bug ??
Thanks,
May 28, 2020 at 8:38 am #198551
Elise NoromitMemberHello,
Please specify the place where you saw the error. Have you solved it? How did you solve it?
Best Regards
May 28, 2020 at 10:47 am #198605
vindesign_itParticipantTo resolve the following issues :
1) sensor-not-required
2) retired-versionIn file: google-map.php
wp-content/themes/woodmart/inc/shortcodes/google-map.php
line 39
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 );
change with this :
wp_enqueue_script( 'google.map.api', 'https://maps.google.com/maps/api/js?&libraries=geometry&v=3.41&key=' . $google_key . '', array(), '', false );
1 ) – sensor-not-required
delete this string -> sensor=false2) retired-version
change version: v=3.22 -> 3.41Best Regards,
May 28, 2020 at 9:27 pm #198766
Elise NoromitMemberHello,
We shall fix it in the nearest update.
Best Regards
May 28, 2020 at 9:48 pm #198768
vindesign_itParticipantThank you
Best Regards,
May 29, 2020 at 7:42 am #198855
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: google map
The topic ‘google-map-issue’ is closed to new replies.
- You must be logged in to create new topics. Login / Register