Open linusfj opened 1 year ago
Could you elaborate regarding themes? It can mean many different things, e.g. the light and dark mode themes we already have in Hajk.
Themes in the context of the Active tab
in the LayerSwitcher
refers to a pre-defined set of active layers.
I've updated the description with additional information.
The issue description has been updated to align with the new concept of Quick Layers
, which has replaced Active Layers
.
Description
Quick Layers
is a feature to manage layers within theLayerSwitcher
tab. The purpose of the feature is to get quick access to layers often used. One advantage of usingQuick Layers
is that a collection of layers can be included where not all of them need to be visible from the start. Layers can be added manually or loaded from pre-defined packages for all users. The package owner creates theQuick Layers
, exports the settings to JSON, and the administrator registers the new package ofQuick Layers
. It will also be possible for the user to save, edit and load their ownQuick Layers
.Proposed Features
Quick Layers
Group:LayerSwitcher
.Quick Layer
group.Functionality:
Quick Layer
group behave similarly to other layers in theLayerSwitcher
(visibility toggle, access layer information).Quick Layer
group to theQuick Layer
group.Quick Layer
Package Components:Loading pre-defined
Quick Layers
LayerSwitcher
to load pre-defined collections of layers.Quick Layer
package from the list.Quick Layer
package will load, replacing the current layers and settings in theLayerSwitcher
tab.Creating user-defined
Quick Layer
LayerSwitcher
, press the “More” icon and click on the option “Add to Quick layers” to build a collection of layers.Quick Layers
Group for personal packages.Quick Layer
collection.Quick Layer
collection.Quick Layer
collection will be stored usingLocal Storage
and is available to load.Example of JSON structure
Implementation Steps
Quick Layers
structures and create a JSON example configuration with demo layers.Quick Layer
loading functionality with confirmation dialogs andSnackbar
notifications.Quick Layer
configurations.Summary
Implement the
Quick Layers
feature in theLayerSwitcher
tab to simplify loading, managing, and sharing pre-defined sets of layers and their associated settings.