Avoid duplicate style in catalogue json for wfs service #7376
Unanswered
luca-moscatelli
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @luca-moscatelli, currently, there is no easy way to reuse configuration between catalog items. You might try a workaround using one root catalog group and defining
You should be able to define most of the styling for later use and then apply it on a subgroup/layer basis. Yeah, it can still become very complex, but for now, it is the only idea I have for tackling this. I will let you know if I think of something easier/better. Related issue #3384 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Avoid redundant style duplication for WFS layers in TerriaJS configuration
Hi TerriaJS team,
Currently, when configuring WFS layers in the catalog, I have to define a separate style for each individual layer ID. This process involves a lot of repetitive code, as I need to duplicate the same style object with minor adjustments (e.g., the
id
field) for each layer.For example:
This approach becomes cumbersome when working with a large number of WFS layers that all share similar or identical styles.
Is there any approach in the catalog that allows me to avoid all this duplicate code?
Beta Was this translation helpful? Give feedback.
All reactions