Currently openstreetmap images cannot be loaded over SSL causing maps not being completely loaded.
Example file http://tile.openstreetmap.org/5/18/7.png won't be loaded over https://

Use case: user enters site over ssl-pipe, OpenStreetMaps doesn't work in that case because also the image url's change to start with https meaning that there will be only markers on place, no map behind them.

Additional information (tho i don't think it has any relevance):
- nginx + varnish stack. Nginx terminates ssl-session -> varnish -> back to nginx + php if cache miss in varnish
- no base-url set (planning to do once osm works)

Comments

timwood’s picture

Status: Active » Closed (duplicate)

This appears to be a duplicate of http://drupal.org/node/1458930, which was supposedly fixed, but doesn't appear to have the proper URL in the current 2.x-dev. I'm going to supply another patch on that issue.

timwood’s picture

You can temporarily fix this in the Drupal UI by going to admin/structure/openlayers/layers/list/osm_mapnik/edit (must have openlayers_ui module enabled) and changing the Base URL to include http:.

ressa’s picture

Issue summary: View changes

Thanks for sharing @timwood, that worked perfectly. Together with updating OpenLayers external source at to use HTTPS, all unsecure HTTP-warnings are now gone.