MrMufflon / Leaflet.Coordinates

Leaflet plugin to view mouse coordinates
http://mrmufflon.github.io/Leaflet.Coordinates/
Other
104 stars 55 forks source link

Demo page broken #18

Open letmaik opened 9 years ago

letmaik commented 9 years ago

Tested on latest Firefox.

MrMufflon commented 9 years ago

Any more details? Don`t have a problem with http://mrmufflon.github.io/Leaflet.Coordinates/examples/demo.html

letmaik commented 9 years ago

Seems a browser addon I used (HTTPS Everywhere) changed the http to https and there it fails: https://mrmufflon.github.io/Leaflet.Coordinates/examples/demo.html

jbelien commented 9 years ago

It's due to the fact that you load the Leaflet.js and Leaflet.css from http://cdn.leafletjs.com/leaflet-0.6.2/ (in Firefox anyway, I did not try other browsers).

Use //cdn.leafletjs.com/leaflet-0.6.2/leaflet.css instead of http://cdn.leafletjs.com/leaflet-0.6.2/leaflet.css and //cdn.leafletjs.com/leaflet-0.6.2/leaflet.js instead of http://cdn.leafletjs.com/leaflet-0.6.2/leaflet.js in your examples/demo.html file.

You can also use a local copy of Leafet JS and CSS files to be sure it works in HTTP and HTTPS.