andreaordonselli / qgis2o.gis

Make O.GIS - Open Source WebGIS
https://opengis.it
GNU General Public License v2.0
14 stars 0 forks source link

Layergroups expanded collapsed #18

Open jukos opened 1 week ago

jukos commented 1 week ago

Hello, within your demo map there are layergroups that are expanded (-) or collapsed/shrinked (+). How can I set this? (Or am I overlooking this?.....) layer group

It would also be sufficient to make the settings after the export if the permalink function would save this.

It would be the best if both were possible.

Best regards

QGIS: 3.36 QGIS2o.gis: 2.23

andreaordonselli commented 1 week ago

I'm already working on adding an automatic option in the plugin. In the meantime you need to edit layers.js file (inside layers folder) and modify openInLayerSwitcher to false, like in this example

var group_PuntidiInteresse = new ol.layer.Group({
                                layers: [lyr_StruttureSensibili,],
                                openInLayerSwitcher: false,
                                title: "Punti di Interesse"});