henrichen / zkgmapsz

Automatically exported from code.google.com/p/zkgmapsz
0 stars 0 forks source link

Map not showing over HTTPS #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Access the application with a https url

What is the expected output?
It should show the map in the component

What do you see instead?
An empty space, the map is not showing and I see this warning in the javascript 
console:

[blocked] The page at https://(...) ran insecure content from 
http://www.google.com/jsapi.

What version of the product are you using? On what operating system?
zk-Gmaps-bin-3.0.2-FL-2013-09-23 in Windows 7. Chrome 30.0.1599.10 and Firefox 
12.0. IE9 shows a warning and, if I accept, the map shows.

Please provide any additional information below.
The problem seems to be in Gmaps.js file. In this line, e._protocol is always 
undefined:

var c = (e._protocol == "https") ? "https" : "http";

Adapting it with location.protocol it works fine to me.

Original issue reported on code.google.com by driva...@gmail.com on 23 Oct 2013 at 8:43