Google Maps Using SSL

17 posts by 3 authors in: Forums > CMS Builder
Last Post: May 24, 2013   (RSS)

By Dave - May 22, 2013

Has all the code been updated to use "//" instead of https:// and http:// ?  

Dave Edis - Senior Developer
interactivetools.com

By nmsinc - May 22, 2013

Hi Dave,

The http had been removed from all but the map pins address - when I corrected this the map pins do not load in SSL at all!

Thanks - nmsinc

nmsinc

By Dave - May 22, 2013

Can you post the ticket number?  I'll take a look.  Thanks.

Dave Edis - Senior Developer
interactivetools.com

By gregThomas - May 23, 2013

Hi nmsinc,

I've just sent a reply to your ticket.

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Dave - May 23, 2013

Ok, can you guys post back here if there's a fix that would be helpful to others (when you figure it out) , or escalate to me via email (dave@interactivetools.com) if it doesn't get resolved in short order.

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By gregThomas - May 24, 2013

Hi nmsic,

I've fixed the problem. The issue was that google store these icons on a different server for https. I've added the following code to detect if https is used on the page and set the correct URL:

if(@$_SERVER["HTTPS"] == "on"){
$pointerUrl = "https://chart.googleapis.com/";
}else{
$pointerUrl = "http://chart.apis.google.com/";
}

Then I echo the $pointerUrl variable for the icon on line 274:

var image = "<?php echo $pointerUrl; ?>/chart?chst=d_map_pin_letter&chld="+pinNum+"|"+map_pin_color+"|"+map_pin_text_color;

Let me know if you have any questions.

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com