Only list https ready tilelayers when page is in https

fix #567
This commit is contained in:
Yohan Boniface 2018-07-07 09:31:11 +02:00
parent f96f08fc36
commit 1aca24ed0c
2 changed files with 4 additions and 0 deletions

View file

@ -68,6 +68,9 @@ COMMIT;
- fixed labelKey not being saved (#595)
- filtering in data browser now is also reflected in the displayed features
(#550)
- fixed ClusterMarker text color on Chrome (#547)
- allow to clone also markers
- only list https ready tilerlayers when page is in https (#567)

View file

@ -769,6 +769,7 @@ L.U.TileLayerControl = L.Control.extend({
buildList: function (options) {
this.map.eachTileLayer(function (tilelayer) {
if (window.location.protocol === 'https:' && tilelayer.options.url_template.indexOf('http:') === 0) return;
this.addTileLayerElement(tilelayer, options);
}, this);
this.map.ui.openPanel({data: {html: this._tilelayers_container}, className: options.className});