J-BusinessDirectory - Maps are not displaying

Support Forum

 
 

 

The maps are not displaying. I just shows up blank. They were working before.

8 replies

Hi,

 

Can you provide us access to map page.  The error can be caused by a javascript error.

Hi, thank you for your quick response.  As I was retrieving that info for you, the maps appeared again.  I found that if I use "https" on in the address line, the maps disappear. When I exclude the "s", they reappear. I thought this software worked seamlessly across both but I guess I can't have my cake and eat it too. It would be real nice if something could be done about it, especially since facebook upped the ante with their security... Thanks again!

Hi,

 

To load the Maps API v3 over HTTPS, the API must be loaded from the another hostname maps-api-ssl.google.com. You can change the loading url and it should work.

May I please have a little more instruction on that?

Hi Lorin, 

Simply change         script.src = "http://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize"; to  script.src = "https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize";


in site_root/components/com_jbusinessdirecotry/views/companies/tmpl/map.php on line 122. 


Let us know how it goes.

It currently looks like this:

      function loadScript() {
if(!initialized){
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize";
document.body.appendChild(script);
initialized = true;
}
}

How should it look exactly? 

All you should do is change the http to https. It should be like this


function loadScript() {
if(!initialized){
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize";
document.body.appendChild(script);
initialized = true;
}
}

Yes, it was too easy.  That was exactly what it was. Much Thanks!  :)

 
 
 

9 Item(s)

Show per page