go back to OpenLayers5 for now, keep the new LayerSwitcher

Once the labels work correctly, going back to OpenLayers6 will be
trival.
This commit is contained in:
Matthias Wirth
2019-10-16 08:20:13 +02:00
parent 0b20608ff8
commit 1870f7e07d
5 changed files with 6 additions and 11 deletions

View File

@@ -2313,7 +2313,7 @@ function toggleMapDim(switchOn) {
ol.control.LayerSwitcher.forEachRecursive(layers_group, function(lyr) {
if (lyr.get('type') != 'base')
return;
lyr.dimKey = lyr.on('postrender', dim);
lyr.dimKey = lyr.on('postcompose', dim);
});
$('#mapdim_checkbox').addClass('settingsCheckboxChecked');