gmap
gmap copied to clipboard
HTTPS
detect if using https and use it instead of http://www.google.com
Not having https support makes the map not load up since browsers will block anything on a page that does not use https on a https enabled page.
Had this problem with a WP theme that happened to use this package. It took ages to trace it down.
There are three URLs in the library that have a hard-coded http: in, for example:
http://www.google.com/mapfiles/marker.png
This caused the page to fail the SSL certificate, making the site look insecure. The fix was simple: remove the http:
//www.google.com/mapfiles/marker.png
There is no need to "detect" whether SSL is in operation for the connection - just give the browser a schema-less URL and the browser will work that out for you.