Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The dataset default style shouldn't be editable from a map #1975

Open
giohappy opened this issue Mar 3, 2025 · 1 comment · May be fixed by #1976
Open

The dataset default style shouldn't be editable from a map #1975

giohappy opened this issue Mar 3, 2025 · 1 comment · May be fixed by #1976

Comments

@giohappy
Copy link

giohappy commented Mar 3, 2025

We have integrated the native MapStore's TOCSettings, and the related style editor, inside the client, replacing the previous custo style editor and its custom logic.

Now we have a problem: the style editor doesn't prevent editing the default style for a dataset. If a user inadvertently modify the style of a layer without creating a new one for the specific map, it modifies the style associated with the dataset, affecting all maps (and the dataset preview) where the the dataset is used.

A solutions, proposed by @allyoucanmap, is implementing a configuration for the MS StyleEditor to prevent editing the default style of a datset, which is an information available to MapStore, since it's reported by Geoserver.

It could be named cfg.enableEditDefaultStyle

@dsuren1
Copy link

dsuren1 commented Mar 4, 2025

Reference issue: geosolutions-it/MapStore2#10902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants