@geogirafe/lib-geoportal 1.2.0-dev.2920980391 → 1.2.0-dev.2921450609

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "GeoGirafe PSC",
6
6
  "url": "https://doc.geogirafe.org"
7
7
  },
8
- "version": "1.2.0-dev.2920980391",
8
+ "version": "1.2.0-dev.2921450609",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -6,8 +6,9 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <meta name="description" content="GeoGirafe is a flexible application to build online geoportals." />
8
8
 
9
- <meta name="configs" content="main" />
9
+ <meta name="configs" content="main,iframe" />
10
10
  <link rel="config-main-url" href="config.json" />
11
+ <link rel="config-iframe-url" href="config.iframe.json" />
11
12
 
12
13
  <link
13
14
  rel="apple-touch-icon"
@@ -1 +1 @@
1
- {"version":"1.2.0-dev.2920980391", "build":"2920980391", "date":"07/10/2026"}
1
+ {"version":"1.2.0-dev.2921450609", "build":"2921450609", "date":"07/10/2026"}
@@ -0,0 +1 @@
1
+ {}
@@ -189,6 +189,9 @@ export default class ThemesHelper extends GirafeSingleton {
189
189
  // Theme is null, nothing to do here
190
190
  return;
191
191
  }
192
+ if (this.context.configManager.Config.themes.selectionMode === 'replace') {
193
+ this.emptyLayerTree();
194
+ }
192
195
  if (theme instanceof CustomTheme) {
193
196
  theme.layers.sort((a, b) => a.order - b.order);
194
197
  for (const t of theme.layers) {
@@ -216,15 +219,7 @@ export default class ThemesHelper extends GirafeSingleton {
216
219
  this.context.stateManager.batchChanges(() => this.removeLayersFromLayerTree([themeInLayersList]));
217
220
  clonedTheme.order = themeInLayersList.order;
218
221
  }
219
- if (this.context.configManager.Config.themes.selectionMode === 'replace') {
220
- // Mode is <replace>
221
- this.emptyLayerTree();
222
- this.state.layers.layersList.push(clonedTheme);
223
- }
224
- else {
225
- // Mode is <add>
226
- this.state.layers.layersList.push(clonedTheme);
227
- }
222
+ this.state.layers.layersList.push(clonedTheme);
228
223
  const themeFunctionalities = this.state.themes._allFunctionalities[theme.id];
229
224
  if (themeFunctionalities) {
230
225
  for (const functionality of Object.keys(themeFunctionalities)) {