@opengeoweb/webmap 12.2.0 → 12.4.1

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/index.esm.js CHANGED
@@ -2244,16 +2244,17 @@ var getLegendGraphicURLForLayer = function getLegendGraphicURLForLayer(layer, wi
2244
2244
  return undefined;
2245
2245
  }
2246
2246
  try {
2247
- if (layer.legendIsDimensionDependent === true) {
2248
- legendURL += getMapDimURL(layer).toString() + "&";
2247
+ var mapDimURL = getMapDimURL(layer).toString();
2248
+ if (mapDimURL) {
2249
+ legendURL += "&" + mapDimURL;
2249
2250
  }
2250
2251
  if (layer.sldURL) {
2251
2252
  legendURL += "&SLD=" + URLEncode(layer.sldURL);
2252
2253
  }
2253
- legendURL += '&transparent=true&';
2254
+ legendURL += '&transparent=true';
2254
2255
  // append width and height parameters when not present
2255
2256
  if (!legendURL.includes('&width=') && !legendURL.includes('&height=')) {
2256
- legendURL += "&width=" + width + "&height=" + height + "&";
2257
+ legendURL += "&width=" + width + "&height=" + height;
2257
2258
  }
2258
2259
  } catch (e) {
2259
2260
  return undefined;
@@ -8512,7 +8513,6 @@ var WMLayer = /*#__PURE__*/function () {
8512
8513
  this.keepOnTop = false;
8513
8514
  this.transparent = true;
8514
8515
  this.hasError = false;
8515
- this.legendIsDimensionDependent = true;
8516
8516
  this.wms130bboxcompatibilitymode = false;
8517
8517
  this.version = WMSVersion.version130;
8518
8518
  this.path = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "12.2.0",
3
+ "version": "12.4.1",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,11 +8,11 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/shared": "12.2.0",
11
+ "@opengeoweb/shared": "12.4.1",
12
12
  "@tanstack/query-core": "^5.69.2",
13
13
  "proj4": "^2.9.2",
14
14
  "lodash": "^4.17.21",
15
- "i18next": "^23.11.5"
15
+ "i18next": "^25.0.1"
16
16
  },
17
17
  "peerDependencies": {},
18
18
  "module": "./index.esm.js",
@@ -29,7 +29,6 @@ export default class WMLayer {
29
29
  getlegendgraphicURL: string;
30
30
  keepOnTop: boolean;
31
31
  transparent: boolean;
32
- legendIsDimensionDependent: boolean;
33
32
  wms130bboxcompatibilitymode: boolean;
34
33
  version: string;
35
34
  path: string;