Hey Fritz,
Since then I’ve been working on these and forgot to update the post, here is the latest version.
That’s a good point, I also forgot to explain what it exactly does from a user’s point of view (the post was intended for the tech savy). But alas, here are the commands that this plugin adds:
SetupLayers: Creates layers based on some options that are dependent on your JSON configuration. It creates a layer state for each scale and override, here’s an example with 1:100, 1:200 and 1:500 for scales; Renovation and OverrideB for overrides:- Default::100
- Default::200
- Default::500
- Renovation::100
- Renovation::200
- Renovation::500
- OverrideB::100
- OverrideB::200
- OverrideB::500
OpenLayersConfig: Opens the configuation folder used for customizing your layer structure/styles/overrides.OrderLayers: It sets all object’s display order based on their layer style (it uses thedisplay_orderattribute instyles.json)MergeLayers: Merges multiple layers into one, this is more of utilty command and I stole from Karim’s script.
For the actual configuration you have three files/directories:
schema.json: where you declare the tree structure (it has anschemaentry where you can see all the available attributes)styles.json: where you define the styles of each layers in css-esk manner (it also has aschemaentry)overrides: each json file in these directory becomes an override, it has the same syntax asstyles.jsonbut it’s toggleable in theSetupLayerscommand and it’s associated with different Layer State(s).
If you have any more questions I would be happy to assist you over Discord,
Good luck