Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

TOPIC: map doesn't appear

map doesn't appear 5 years, 11 months ago #31876

Hi I installed this nice template on my dev environment, but the google map doesn't appear, I tried to change some parameters but I'm not able to show the map. Do you know what I have to do is there any setting that I have to change ?

Many thanks
Andrea

Re: map doesn't appear 5 years, 11 months ago #31905

Dear adolcini

In the file our templates /html/mod_sj_contact_ajax/default.php
please replace the code:

<script async defer src="maps.googleapis.com/maps/api/js?key=AIzaSyCQWWXmpIaE1c5jU5bOPh1YNkiD3L6m_NQ&callback=initMap"
type="text/javascript"></script>

=> By the code:
<script src="maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=your_API-key"></script>

eg:
<script type="text/javascript" src="maps.googleapis.com/maps/api/js?key=AIzaSyBaeYfTIyvWkCMqvtMqigOkho69kiL3QUY&sensor=false"></script>

Please follow this guide:
developers.google.com/maps/documentation/javascript/get-api-key

Thanks

Re: map doesn't appear 5 years, 11 months ago #31925

Hi I modified the defult .php accordin your indication but nothing change...so I tryed to delete all files in that directory and the resutl was the same.....

contact form OK no MAP

I alse delete the cache

pls let me know if I have to change somethibng else



Thanks
Last Edit: 5 years, 11 months ago by adolcini.

Re: map doesn't appear 5 years, 11 months ago #31931

Dear adolcini

Because it get key from YT shortcode, so you need change the code:
plugins/system/ytshortcodes/includes/libs/googlemap/googleMaps.lib.php

find:
$output .= "\n"."<script type=\"text/javascript\" src=\"maps.googleapis.com/maps/api/js?sensor=false&language=".$this->lang.'"></script>';

=> Edit to:

$output .= "\n"."<script type=\"text/javascript\" src=\"maps.googleapis.com/maps/api/js?key=AIzaSyBaeYfTIyvWkCMqvtMqigOkho69kiL3QUY&language=".$this->lang.'"></script>';


Please send your ftp account, we will fix it for you

Thanks

Re: map doesn't appear 5 years, 11 months ago #31936

Hi tryed but doesn't work, may be it's better you will fix for me...many thanks



Thanks
Andrea
Last Edit: 5 years, 11 months ago by thuygtn.

Re: map doesn't appear 5 years, 11 months ago #31939

Dear sir,

Please don't public your account here, and add it in For Admin Only: section when you reply again

Thanks
Last Edit: 5 years, 11 months ago by thuygtn.
Time to create page: 0.27 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes