From 8273ca0b3a79b00f5564e3c5018861d329751ec9 Mon Sep 17 00:00:00 2001 From: Binabh Date: Tue, 15 Sep 2026 13:20:02 +0545 Subject: [PATCH 1/2] Add settings in context wizard;improve docs; --- .../contextcreator/ContextCreator.jsx | 1 + web/client/plugins/Settings.jsx | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/web/client/components/contextcreator/ContextCreator.jsx b/web/client/components/contextcreator/ContextCreator.jsx index b8ae1e219ca..115d5b0918a 100644 --- a/web/client/components/contextcreator/ContextCreator.jsx +++ b/web/client/components/contextcreator/ContextCreator.jsx @@ -238,6 +238,7 @@ export default class ContextCreator extends React.Component { "Annotations", "MapImport", "MapExport", + "Settings", "Undo", "Redo", "Expander", diff --git a/web/client/plugins/Settings.jsx b/web/client/plugins/Settings.jsx index 7cdd318028a..e75051b36e7 100644 --- a/web/client/plugins/Settings.jsx +++ b/web/client/plugins/Settings.jsx @@ -180,10 +180,26 @@ const SettingsPlugin = connect((state) => ({ /** * Settings window to configure some details of the current map. * Is also a container for settings coming from the other plugins. - * Renders in {@link #plugins.BurgerMenu|BurgerMenu} an entry to open this window. + * + * The plugin exposes entries for {@link #plugins.Toolbar|Toolbar}, + * {@link #plugins.DrawerMenu|DrawerMenu}, {@link #plugins.BurgerMenu|BurgerMenu}, + * and {@link #plugins.SidebarMenu|SidebarMenu}. + * * @name Settings * @class * @memberof plugins + * @static + * + * @prop {string} [cfg.id="mapstore-settings"] HTML identifier used by the panel or dialog wrapper. + * @prop {object} [cfg.style] Inline style applied to the settings content. The default width is 300 px. + * @prop {boolean} [cfg.wrap=false] If `true`, renders the content only while the Settings control is enabled and adds a panel or dialog wrapper. + * @prop {boolean} [cfg.wrapWithPanel=false] If `true` and `cfg.wrap` is enabled, uses a Bootstrap panel instead of a modal dialog rendered through a portal. + * @prop {object} [cfg.panelStyle] Inline style applied to the panel or dialog wrapper. By default it creates an absolutely positioned overlay with a minimum width of 300 px. + * @prop {string} [cfg.panelClassName="toolbar-panel"] CSS class applied to the panel or dialog wrapper. + * @prop {string} [cfg.closeGlyph="1-close"] Glyph used by the modal dialog close button. A falsy value renders the multiplication sign instead. + * @prop {object} [cfg.overrideSettings] Overrides the visibility of built-in sections. The default is `{language: false, history: false}`. + * @prop {boolean} [cfg.overrideSettings.language] Shows or hides the language selector. If omitted from a custom override object, availability is inferred from the locale state. + * @prop {boolean} [cfg.overrideSettings.history] Shows or hides the undo/redo controls. If omitted from a custom override object, availability is inferred from map-history state. */ export default { SettingsPlugin: Object.assign(SettingsPlugin, { From 8f83800cade22ffec14e452075d725b02663148d Mon Sep 17 00:00:00 2001 From: Binabh Date: Fri, 18 Sep 2026 14:28:18 +0545 Subject: [PATCH 2/2] refactor documentation --- web/client/plugins/Settings.jsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/web/client/plugins/Settings.jsx b/web/client/plugins/Settings.jsx index e75051b36e7..bc2d53dd9d0 100644 --- a/web/client/plugins/Settings.jsx +++ b/web/client/plugins/Settings.jsx @@ -190,16 +190,9 @@ const SettingsPlugin = connect((state) => ({ * @memberof plugins * @static * - * @prop {string} [cfg.id="mapstore-settings"] HTML identifier used by the panel or dialog wrapper. - * @prop {object} [cfg.style] Inline style applied to the settings content. The default width is 300 px. - * @prop {boolean} [cfg.wrap=false] If `true`, renders the content only while the Settings control is enabled and adds a panel or dialog wrapper. - * @prop {boolean} [cfg.wrapWithPanel=false] If `true` and `cfg.wrap` is enabled, uses a Bootstrap panel instead of a modal dialog rendered through a portal. - * @prop {object} [cfg.panelStyle] Inline style applied to the panel or dialog wrapper. By default it creates an absolutely positioned overlay with a minimum width of 300 px. - * @prop {string} [cfg.panelClassName="toolbar-panel"] CSS class applied to the panel or dialog wrapper. - * @prop {string} [cfg.closeGlyph="1-close"] Glyph used by the modal dialog close button. A falsy value renders the multiplication sign instead. * @prop {object} [cfg.overrideSettings] Overrides the visibility of built-in sections. The default is `{language: false, history: false}`. - * @prop {boolean} [cfg.overrideSettings.language] Shows or hides the language selector. If omitted from a custom override object, availability is inferred from the locale state. - * @prop {boolean} [cfg.overrideSettings.history] Shows or hides the undo/redo controls. If omitted from a custom override object, availability is inferred from map-history state. + * @prop {boolean} [cfg.overrideSettings.language] Set to `true` to show the language selector or `false` to hide it. + * @prop {boolean} [cfg.overrideSettings.history] Set to `true` to show the navigation-history undo/redo controls or `false` to hide them. */ export default { SettingsPlugin: Object.assign(SettingsPlugin, {