When viewing the Google map layer, the map fails to visualise in Chrome browser using HTTPS protocol due to the file being blocked.

The issue is due to the URL (http://maps.google.com/maps?file=api), which does not respect the protocol being used by the users browser. So in this case, under HTTPS, the Google map file is forced to load using HTTP and Chrome sees it as being insecure so it is blocked.

This can be easily fixed by using a double backslash before the domain name (eg. //maps.google.com/maps?file=api) which then allows the browser to determine the appropriate protocol to use (HTTP or HTTPS), as per RFC 1808, Section 4

Patch attached.

Comments

pol’s picture

Status: Needs review » Fixed

Thanks Andrew, committed to 6.x and already in 7.x ;-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

johnnybgoode’s picture

Version: 6.x-2.x-dev » 7.x-2.0-beta1
StatusFileSize
new1.1 KB

This issue is not fixed as of 7.x-2.0-beta1. If you are experiencing this issue, see the attached patch and be sure to download openlayers.js and host your own copy (instructions at /admin/structure/openlayers) as openlayers.org is not ssl enabled and can't serve the library over https.

johnnybgoode’s picture

Status: Closed (fixed) » Active
pol’s picture

Status: Active » Closed (fixed)

This feature is in 7.x-2.x.

We usually do not provide patch for a tagged version like beta1, but for the dev version.