kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

No buildings on HTTPS #119

Closed popepay closed 4 years ago

popepay commented 4 years ago

I cannot load the API on a secure (https) connection.

I have tried forcing all connections to https, but that did not work <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

It seems the main OSMBuildings api got changed to work on HTTPS. Any chance we could reproduce the changes for this API as well? https://github.com/OSMBuildings/OSMBuildings/issues/103

thank you

kekscom commented 4 years ago

Sounds like something different. Could you provide a link to your website or a Codepen setup? Probably just a failing URL & error message. Thanks.

popepay commented 4 years ago

See attached screenshot. The same exact code words if I load the website on http, but breaks on https

Screen Shot 2020-02-18 at 1 26 39 PM

kekscom commented 4 years ago

It looks like you have either not explicitly addressed the API or it's done with 'http'. Please see https://osmbuildings.org/documentation/leaflet/ var osmb = new OSMBuildings(map).load('https://{s}.data.osmbuildings.org/0.2/anonymous/tile/{z}/{x}/{y}.json'); If this doesn't solve it, please provide a testable code example.