Skip to content

Commit 7acca8a

Browse files
authored
#1975: Restrict default style editing of the dataset from the map (#1976)
* #1975: Restrict default style editing of the dataset from the map * update plugin config
1 parent 582881d commit 7acca8a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed
Submodule MapStore2 updated 381 files

geonode_mapstore_client/static/mapstore/configs/localConfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,10 @@
23482348
"name": "DatasetsCatalog"
23492349
},
23502350
{
2351-
"name": "StyleEditor"
2351+
"name": "StyleEditor",
2352+
"cfg": {
2353+
"enableEditDefaultStyle": false
2354+
}
23522355
},
23532356
{
23542357
"name": "SidebarMenu"

geonode_mapstore_client/static/mapstore/configs/pluginsConfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@
6363
"FilterLayer",
6464
"AddGroup",
6565
"Swipe",
66-
"VisualStyleEditor",
6766
"StyleEditor"
6867
],
6968
"autoEnableChildren": [
7069
"FeatureEditor",
7170
"FilterLayer",
7271
"AddGroup",
73-
"VisualStyleEditor"
72+
"StyleEditor"
7473
],
7574
"dependencies": [
7675
"DrawerMenu",
@@ -81,7 +80,10 @@
8180
"name": "StyleEditor",
8281
"glyph": "1-stilo",
8382
"title": "plugins.StyleEditor.title",
84-
"description": "plugins.StyleEditor.description"
83+
"description": "plugins.StyleEditor.description",
84+
"defaultConfig": {
85+
"enableEditDefaultStyle": false
86+
}
8587
},
8688
{
8789
"name": "VisualStyleEditor",

0 commit comments

Comments
 (0)