@opengeoweb/webmap 10.2.1-spike-ol.3 → 11.1.0

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
@@ -479,7 +479,7 @@ var WMSVersion = {
479
479
  version111: '1.1.1',
480
480
  version130: '1.3.0'
481
481
  };
482
- var WMProj4Defs = [[PROJECTION.EPSG_4326.value, '+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees'], [PROJECTION.EPSG_4269.value, '+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees'], [PROJECTION.EPSG_3575.value, '+proj=laea +lat_0=90 +lon_0=10 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'], [PROJECTION.EPSG_3785.value, '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'], [PROJECTION.EPSG_3857.value, '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'], [PROJECTION.EPSG_3411.value, '+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs'], [PROJECTION.EPSG_3412.value, '+proj=stere +lat_0=-90 +lat_ts=-70 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs'], [PROJECTION.EPSG_28992.value, '+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs <>'], [PROJECTION.EPSG_32661.value, '+proj=stere +lat_0=90 +lat_ts=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'], [PROJECTION.EPSG_102100.value, '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'], [PROJECTION.EPSG_3067.value, '+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs'], [PROJECTION.EPSG_54030.value, '+proj=robin +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs']];
482
+ var WMProj4Defs = [[PROJECTION.EPSG_4326.value, '+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees'], [PROJECTION.EPSG_4269.value, '+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees'], [PROJECTION.EPSG_3575.value, '+proj=laea +lat_0=90 +lon_0=10 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'], [PROJECTION.EPSG_3785.value, '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'], [PROJECTION.EPSG_3857.value, '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'], [PROJECTION.EPSG_3411.value, '+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs'], [PROJECTION.EPSG_3412.value, '+proj=stere +lat_0=-90 +lat_ts=-70 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs'], [PROJECTION.EPSG_28992.value, '+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs <>'], [PROJECTION.EPSG_32661.value, '+proj=stere +lat_0=90 +lat_ts=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'], [PROJECTION.EPSG_102100.value, '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'], [PROJECTION.EPSG_3067.value, '+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs']];
483
483
  var mapImageStoreLength = 1000;
484
484
  var bgImageStoreLength = 360;
485
485
  var legendImageStoreLength = 500;
@@ -803,14 +803,15 @@ var URLEncode = function URLEncode(plaintext) {
803
803
  };
804
804
  /* Returns all dimensions with its current values as URL */
805
805
  var getMapDimURL = function getMapDimURL(layer, dimensionOverride) {
806
- var request = new URLSearchParams();
806
+ var request = '';
807
807
  layer.dimensions.forEach(function (layerDimension) {
808
808
  var overrideDim = dimensionOverride && dimensionOverride.find(function (d) {
809
809
  return d.name === layerDimension.name;
810
810
  });
811
811
  var dimension = layerDimension;
812
812
  var currentValue = overrideDim && dimension.getClosestValue(overrideDim.currentValue, true) || dimension.currentValue;
813
- request.append(getCorrectWMSDimName(dimension.name), currentValue);
813
+ request += "&" + getCorrectWMSDimName(dimension.name);
814
+ request += "=" + URLEncode(currentValue);
814
815
  if (currentValue === WMDateOutSideRange || currentValue === WMDateTooEarlyString || currentValue === WMDateTooLateString) {
815
816
  throw new Error(WMDateOutSideRange);
816
817
  }
@@ -2245,7 +2246,7 @@ var getLegendGraphicURLForLayer = function getLegendGraphicURLForLayer(layer, wi
2245
2246
  }
2246
2247
  try {
2247
2248
  if (layer.legendIsDimensionDependent === true) {
2248
- legendURL += getMapDimURL(layer).toString() + "&";
2249
+ legendURL += getMapDimURL(layer) + "&";
2249
2250
  }
2250
2251
  if (layer.sldURL) {
2251
2252
  legendURL += "&SLD=" + URLEncode(layer.sldURL);
@@ -2503,7 +2504,6 @@ var WMBBOX = /*#__PURE__*/function () {
2503
2504
  this.setBBOX = this.setBBOX.bind(this);
2504
2505
  this.equals = this.equals.bind(this);
2505
2506
  this.toString = this.toString.bind(this);
2506
- this.getExtent = this.getExtent.bind(this);
2507
2507
  this.setBBOX(left, bottom, right, top);
2508
2508
  }
2509
2509
  /**
@@ -2586,9 +2586,6 @@ var WMBBOX = /*#__PURE__*/function () {
2586
2586
  _proto.toString = function toString() {
2587
2587
  return this.left + "," + this.bottom + "," + this.right + "," + this.top;
2588
2588
  };
2589
- _proto.getExtent = function getExtent() {
2590
- return [this.left, this.bottom, this.right, this.top];
2591
- };
2592
2589
  return WMBBOX;
2593
2590
  }();
2594
2591
 
@@ -3292,7 +3289,7 @@ var buildWMSGetMapRequest = function buildWMSGetMapRequest(layer, projection, di
3292
3289
  }
3293
3290
  // Handle dimensions
3294
3291
  try {
3295
- request += getMapDimURL(layer, dimensionOverride).toString();
3292
+ request += getMapDimURL(layer, dimensionOverride);
3296
3293
  } catch (e) {
3297
3294
  return undefined;
3298
3295
  }
@@ -3399,7 +3396,7 @@ var getWMSGetFeatureInfoRequestURL = function getWMSGetFeatureInfoRequestURL(lay
3399
3396
  request += "&INFO_FORMAT=" + format;
3400
3397
  request += '&STYLES=';
3401
3398
  try {
3402
- request += "&" + getMapDimURL(layer).toString();
3399
+ request += "&" + getMapDimURL(layer);
3403
3400
  } catch (e) {
3404
3401
  return undefined;
3405
3402
  }
@@ -6712,10 +6709,16 @@ var WMJSMap = /*#__PURE__*/function () {
6712
6709
  _context.next = 10;
6713
6710
  return layer.parseLayer();
6714
6711
  case 10:
6712
+ if (!this.isDestroyed) {
6713
+ _context.next = 12;
6714
+ break;
6715
+ }
6716
+ throw new Error('Map is destroyed');
6717
+ case 12:
6715
6718
  this.configureMapDimensions(layer);
6716
6719
  this._wmEventListener.triggerEvent('onlayeradd');
6717
6720
  return _context.abrupt("return", this);
6718
- case 13:
6721
+ case 15:
6719
6722
  case "end":
6720
6723
  return _context.stop();
6721
6724
  }
@@ -7855,7 +7858,7 @@ var privateCheckException = function privateCheckException(jsonData) {
7855
7858
  return undefined;
7856
7859
  };
7857
7860
  var privateWmsGetRootLayerFromGetCapabilities = function privateWmsGetRootLayerFromGetCapabilities(jsonData) {
7858
- return privateWmsGetCapabilityElement(jsonData).Layer;
7861
+ return privateWmsGetCapabilityElement(jsonData);
7859
7862
  };
7860
7863
  var privateCheckVersion111 = function privateCheckVersion111(jsonData) {
7861
7864
  try {
@@ -8378,7 +8381,6 @@ var queryWMSLayer = /*#__PURE__*/function () {
8378
8381
  var WMLayer = /*#__PURE__*/function () {
8379
8382
  function WMLayer(options) {
8380
8383
  var _this = this;
8381
- this.olSource = null; // Reference to olSource. Need to check if animation can go forward.
8382
8384
  this.init = this.init.bind(this);
8383
8385
  this.getLayerName = this.getLayerName.bind(this);
8384
8386
  this.toggleAutoUpdate = this.toggleAutoUpdate.bind(this);
@@ -8500,7 +8502,7 @@ var WMLayer = /*#__PURE__*/function () {
8500
8502
  this.hasError = false;
8501
8503
  this.legendIsDimensionDependent = true;
8502
8504
  this.wms130bboxcompatibilitymode = false;
8503
- this.version = WMSVersion.version111;
8505
+ this.version = WMSVersion.version130;
8504
8506
  this.path = '';
8505
8507
  this.type = 'wms';
8506
8508
  this.wmsextensions = {
@@ -8632,15 +8634,15 @@ var WMLayer = /*#__PURE__*/function () {
8632
8634
  this.version = serviceInfo.version || WMSVersion.version130;
8633
8635
  this.title = jsonlayer.title;
8634
8636
  if (jsonlayer.crs) {
8635
- jsonlayer.crs.forEach(function (projection) {
8637
+ jsonlayer.crs.forEach(function (p) {
8636
8638
  var wmProjection = new WMProjection();
8637
- wmProjection.srs = projection.name || '';
8638
- if (projection.bbox) {
8639
+ wmProjection.srs = p.name || '';
8640
+ if (p.bbox) {
8639
8641
  var swapBBOX = _this4.version === WMSVersion.version130 && wmProjection.srs === PROJECTION.EPSG_4326.value && _this4.wms130bboxcompatibilitymode === false;
8640
8642
  if (swapBBOX) {
8641
- wmProjection.bbox.setBBOX(projection.bbox.bottom, projection.bbox.left, projection.bbox.top, projection.bbox.right);
8643
+ wmProjection.bbox.setBBOX(p.bbox.bottom, p.bbox.left, p.bbox.top, p.bbox.right);
8642
8644
  } else {
8643
- wmProjection.bbox.setBBOX(projection.bbox.left, projection.bbox.bottom, projection.bbox.right, projection.bbox.top);
8645
+ wmProjection.bbox.setBBOX(p.bbox.left, p.bbox.bottom, p.bbox.right, p.bbox.top);
8644
8646
  }
8645
8647
  }
8646
8648
  _this4.projectionProperties.push(wmProjection);
@@ -8650,7 +8652,6 @@ var WMLayer = /*#__PURE__*/function () {
8650
8652
  } else {
8651
8653
  this.hasError = true;
8652
8654
  this.lastError = consoleErrorMessages.layerNotFoundInService + " - " + this.name;
8653
- throw new Error(this.lastError);
8654
8655
  }
8655
8656
  }
8656
8657
  /** A Promise to parse the layer, it will fetch the WMS GetCapabilities document, configure the layer and resolve to a WMLayer object
@@ -8669,28 +8670,28 @@ var WMLayer = /*#__PURE__*/function () {
8669
8670
  forceReload = false;
8670
8671
  }
8671
8672
  this.hasError = false;
8672
- this.lastError = '';
8673
- _context.prev = 3;
8673
+ _context.prev = 2;
8674
8674
  if (!forceReload) {
8675
- _context.next = 8;
8675
+ _context.next = 7;
8676
8676
  break;
8677
8677
  }
8678
8678
  // eslint-disable-next-line no-console
8679
8679
  console.log('invalidateWMSGetCapabilities');
8680
- _context.next = 8;
8680
+ _context.next = 7;
8681
8681
  return invalidateWMSGetCapabilities(this.service);
8682
- case 8:
8683
- _context.next = 10;
8682
+ case 7:
8683
+ _context.next = 9;
8684
8684
  return queryWMSGetCapabilities(this.service);
8685
- case 10:
8685
+ case 9:
8686
8686
  getCapabilities = _context.sent;
8687
8687
  this._setWMSGetCapabilities(getCapabilities);
8688
8688
  return _context.abrupt("return", this);
8689
- case 15:
8690
- _context.prev = 15;
8691
- _context.t0 = _context["catch"](3);
8689
+ case 14:
8690
+ _context.prev = 14;
8691
+ _context.t0 = _context["catch"](2);
8692
8692
  this.hasError = true;
8693
- message = !this.lastError.length ? consoleErrorMessages.noCapabilityElementFound + "[in " + this.service + "] with message [" + _context.t0.message + "]" : this.lastError;
8693
+ message = consoleErrorMessages.noCapabilityElementFound + "[in " + this.service + "] with message [" + _context.t0.message + "]";
8694
+ this.lastError = message;
8694
8695
  this.title = consoleErrorMessages.serviceHasError;
8695
8696
  if (isDefined(this._options.failure)) {
8696
8697
  this._options.failure(this, message);
@@ -8700,7 +8701,7 @@ var WMLayer = /*#__PURE__*/function () {
8700
8701
  case "end":
8701
8702
  return _context.stop();
8702
8703
  }
8703
- }, _callee, this, [[3, 15]]);
8704
+ }, _callee, this, [[2, 14]]);
8704
8705
  }));
8705
8706
  function parseLayer(_x) {
8706
8707
  return _parseLayer.apply(this, arguments);
@@ -8768,21 +8769,21 @@ var WMLayer = /*#__PURE__*/function () {
8768
8769
  if (isDefined(this.styles) === false) {
8769
8770
  return undefined;
8770
8771
  }
8771
- for (var styleIt = 0; styleIt < this.styles.length; styleIt += 1) {
8772
- if (this.styles[styleIt].name === styleName) {
8772
+ for (var j = 0; j < this.styles.length; j += 1) {
8773
+ if (this.styles[j].name === styleName) {
8773
8774
  if (nextPrev === -1) {
8774
- styleIt -= 1;
8775
+ j -= 1;
8775
8776
  }
8776
8777
  if (nextPrev === 1) {
8777
- styleIt += 1;
8778
+ j += 1;
8778
8779
  }
8779
- if (styleIt < 0) {
8780
- styleIt = this.styles.length - 1;
8780
+ if (j < 0) {
8781
+ j = this.styles.length - 1;
8781
8782
  }
8782
- if (styleIt > this.styles.length - 1) {
8783
- styleIt = 0;
8783
+ if (j > this.styles.length - 1) {
8784
+ j = 0;
8784
8785
  }
8785
- return this.styles[styleIt];
8786
+ return this.styles[j];
8786
8787
  }
8787
8788
  }
8788
8789
  return undefined;
@@ -11225,4 +11226,4 @@ var privateWebMapUtils = {
11225
11226
  QUERYWMS_GETCAPABILITIES: QUERYWMS_GETCAPABILITIES
11226
11227
  };
11227
11228
 
11228
- export { DateInterval, DebugType, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WEBMAP_NAMESPACE, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMDateUnit, WMEmptyLayerName, WMEmptyLayerTitle, WMImage, WMImageEventType, WMImageStore, WMInvalidDateValues, WMJSDimension, WMJSMAP_LONLAT_EPSGCODE, WMJSMap, WMJScheckURL, WMLayer, WMListener, WMProj4Defs, WMProjection, WMSJSMAP_MINIMUM_MAP_HEIGHT, WMSJSMAP_MINIMUM_MAP_WIDTH, WMSVersion, WMXMLStringToJson, bgImageStoreLength, buildMapLayerDims, buildWMSGetMapRequest, clearImageCacheForAllMaps, debugLogger, detectLeftButton, detectRightButton, drawScaleBar, drawTextBG, generateLayerId, generateMapId, generateTimesliderId, getBBOXandProjString, getCorrectWMSDimName, getErrorsToDisplay, getGeoCoordFromLatLong, getGeoCoordFromPixelCoord, getLatLongFromPixelCoord, getLayerIndex, getLegendGraphicURLForLayer, getMapDimURL, getPixelCoordFromGeoCoord, getPixelCoordFromLatLong, getScaleBarProperties, getUriWithParam, getWMJSDimensionForLayerAndDimension, getWMJSMapById, getWMJSMapIds, getWMJSTimeDimensionForLayerId, getWMLayerById, getWMSGetFeatureInfoRequestURL, getWMSRequests, getWMSServiceId, handleDateUtilsISOString, invalidateWMSGetCapabilities, isDefined, isProjectionSupported, legendImageStore, legendImageStoreLength, mapImageStoreLength, mockGetCapabilities, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, privateWebMapUtils, queryWMSGetCapabilities, queryWMSLayer, queryWMSLayers, queryWMSLayersTree, queryWMSServiceInfo, registerWMJSMap, registerWMLayer, roundWithTimeStep, setWMSGetCapabilitiesFetcher, tilesettings, toArray, unRegisterAllWMJSLayersAndMaps, unRegisterWMJSLayer, unRegisterWMJSMap, index as webmapTestSettings, webmapTranslations, utils as webmapUtils, wmServiceListener, wmsQueryClient };
11229
+ export { DateInterval, DebugType, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WEBMAP_NAMESPACE, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMDateUnit, WMEmptyLayerName, WMEmptyLayerTitle, WMImage, WMImageEventType, WMImageStore, WMInvalidDateValues, WMJSDimension, WMJSMAP_LONLAT_EPSGCODE, WMJSMap, WMJScheckURL, WMLayer, WMListener, WMProj4Defs, WMProjection, WMSJSMAP_MINIMUM_MAP_HEIGHT, WMSJSMAP_MINIMUM_MAP_WIDTH, WMSVersion, WMXMLStringToJson, bgImageStoreLength, buildMapLayerDims, buildWMSGetMapRequest, clearImageCacheForAllMaps, debugLogger, detectLeftButton, detectRightButton, drawScaleBar, drawTextBG, generateLayerId, generateMapId, generateTimesliderId, getBBOXandProjString, getCorrectWMSDimName, getErrorsToDisplay, getGeoCoordFromLatLong, getGeoCoordFromPixelCoord, getLatLongFromPixelCoord, getLayerIndex, getLegendGraphicURLForLayer, getPixelCoordFromGeoCoord, getPixelCoordFromLatLong, getScaleBarProperties, getUriWithParam, getWMJSDimensionForLayerAndDimension, getWMJSMapById, getWMJSMapIds, getWMJSTimeDimensionForLayerId, getWMLayerById, getWMSGetFeatureInfoRequestURL, getWMSRequests, getWMSServiceId, handleDateUtilsISOString, invalidateWMSGetCapabilities, isDefined, isProjectionSupported, legendImageStore, legendImageStoreLength, mapImageStoreLength, mockGetCapabilities, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, privateWebMapUtils, queryWMSGetCapabilities, queryWMSLayer, queryWMSLayers, queryWMSLayersTree, queryWMSServiceInfo, registerWMJSMap, registerWMLayer, roundWithTimeStep, setWMSGetCapabilitiesFetcher, tilesettings, toArray, unRegisterAllWMJSLayersAndMaps, unRegisterWMJSLayer, unRegisterWMJSMap, index as webmapTestSettings, webmapTranslations, utils as webmapUtils, wmServiceListener, wmsQueryClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "10.2.1-spike-ol.3",
3
+ "version": "11.1.0",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,30 +8,13 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@emotion/react": "11.14.0",
12
- "@emotion/styled": "11.14.0",
13
- "@mui/material": "6.4.1",
14
- "@mui/system": "6.4.3",
15
- "@mui/x-date-pickers": "7.26.0",
16
- "@reduxjs/toolkit": "1.9.7",
17
- "@sentry/react": "8.54.0",
18
- "@storybook/react": "8.4.2",
11
+ "@opengeoweb/shared": "*",
19
12
  "@tanstack/query-core": "^5.61.5",
20
- "@testing-library/react": "16.0.1",
21
- "@testing-library/user-event": "14.5.2",
22
- "axios": "1.7.9",
23
- "date-fns": "4.1.0",
24
- "i18next": "^23.11.5",
25
- "immer": "10.1.1",
26
- "jest-date-mock": "1.0.10",
27
- "lodash": "^4.17.21",
28
- "msw": "1.3.3",
29
13
  "proj4": "^2.9.2",
30
- "re-resizable": "6.10.3",
31
- "react": "18.3.1",
32
- "react-draggable": "4.4.6",
33
- "react-i18next": "15.1.1"
14
+ "lodash": "^4.17.21",
15
+ "i18next": "^23.11.5"
34
16
  },
17
+ "peerDependencies": {},
35
18
  "module": "./index.esm.js",
36
19
  "type": "module",
37
20
  "main": "./index.esm.js",
@@ -28,5 +28,4 @@ export default class WMBBOX implements Bbox {
28
28
  * Returns the current BBOX as a string, useful for generating WMS requests.
29
29
  */
30
30
  toString(): string;
31
- getExtent(): [number, number, number, number];
32
31
  }
@@ -37,7 +37,7 @@ export declare const getMouseXCoordinate: (event: MouseEvent) => number;
37
37
  export declare const getMouseYCoordinate: (event: MouseEvent) => number;
38
38
  export declare const URLDecode: (encodedURL: string) => string;
39
39
  export declare const URLEncode: (plaintext: string) => string;
40
- export declare const getMapDimURL: (layer: WMLayer, dimensionOverride?: Dimension[]) => URLSearchParams;
40
+ export declare const getMapDimURL: (layer: WMLayer, dimensionOverride?: Dimension[]) => string;
41
41
  /**
42
42
  * Parses url and then it it allows for setting / changing key value pairs in that URL (From https://stackoverflow.com/questions/5999118/how-can-i-add-or-update-a-query-string-parameter)
43
43
  * @param baseUrl
@@ -56,7 +56,6 @@ export default class WMLayer {
56
56
  geographicBoundingBox?: GeographicBoundingBox;
57
57
  geojson?: GeoJSON.FeatureCollection;
58
58
  currentRequestedGetMapURL?: string;
59
- olSource: object | null;
60
59
  init(): void;
61
60
  constructor(options?: LayerOptions);
62
61
  getLayerName(): string;
@@ -1,5 +1,5 @@
1
1
  import type IWMJSMap from './IWMJSMap';
2
- import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debugLogger, DebugType, getUriWithParam, getMapDimURL } from './WMJSTools';
2
+ import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debugLogger, DebugType, getUriWithParam } from './WMJSTools';
3
3
  import { parseISO8601DateToDate, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration } from './WMTime';
4
4
  import WMImage from './WMImage';
5
5
  import { getLegendGraphicURLForLayer, legendImageStore } from './WMLegend';
@@ -17,7 +17,7 @@ export { default as WMBBOX } from './WMBBOX';
17
17
  export type { Bbox } from './WMBBOX';
18
18
  export type { WMProjectionWH } from './WMProjection';
19
19
  export { WMProjection };
20
- export { IWMJSMap, WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMJScheckURL, URLEncode, URLDecode, parseISO8601DateToDate, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, getUriWithParam, getMapDimURL, WMListener, WMXMLStringToJson, };
20
+ export { IWMJSMap, WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMJScheckURL, URLEncode, URLDecode, parseISO8601DateToDate, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, getUriWithParam, WMListener, WMXMLStringToJson, };
21
21
  export * from './types';
22
22
  export * from './WMTimeTypes';
23
23
  export * from './WMConstants';
@@ -1,41 +1,18 @@
1
1
  declare const _default: {
2
2
  name: null;
3
- title: string;
4
3
  leaf: boolean;
5
4
  path: never[];
6
5
  keywords: never[];
7
- abstract: undefined;
8
- styles: {
9
- title: string;
10
- name: string;
11
- legendURL: string;
12
- abstract: string;
13
- }[];
14
- dimensions: {
15
- name: string;
16
- units: string;
17
- currentValue: string;
18
- values: string;
19
- unitSymbol: undefined;
20
- }[];
21
- geographicBoundingBox: undefined;
6
+ styles: never[];
7
+ dimensions: never[];
22
8
  queryable: boolean;
23
- crs: {
24
- name: string;
25
- bbox: {
26
- left: number;
27
- right: number;
28
- bottom: number;
29
- top: number;
30
- };
31
- }[];
9
+ crs: never[];
32
10
  children: {
33
- name: string;
11
+ name: null;
34
12
  title: string;
35
13
  leaf: boolean;
36
14
  path: string[];
37
15
  keywords: never[];
38
- abstract: undefined;
39
16
  styles: {
40
17
  title: string;
41
18
  name: string;
@@ -47,14 +24,7 @@ declare const _default: {
47
24
  units: string;
48
25
  currentValue: string;
49
26
  values: string;
50
- unitSymbol: undefined;
51
27
  }[];
52
- geographicBoundingBox: {
53
- east: string;
54
- west: string;
55
- north: string;
56
- south: string;
57
- };
58
28
  queryable: boolean;
59
29
  crs: {
60
30
  name: string;
@@ -65,7 +35,42 @@ declare const _default: {
65
35
  top: number;
66
36
  };
67
37
  }[];
68
- children: never[];
38
+ children: {
39
+ name: string;
40
+ title: string;
41
+ leaf: boolean;
42
+ path: string[];
43
+ keywords: never[];
44
+ styles: {
45
+ title: string;
46
+ name: string;
47
+ legendURL: string;
48
+ abstract: string;
49
+ }[];
50
+ dimensions: {
51
+ name: string;
52
+ units: string;
53
+ currentValue: string;
54
+ values: string;
55
+ }[];
56
+ geographicBoundingBox: {
57
+ east: string;
58
+ west: string;
59
+ north: string;
60
+ south: string;
61
+ };
62
+ queryable: boolean;
63
+ crs: {
64
+ name: string;
65
+ bbox: {
66
+ left: number;
67
+ right: number;
68
+ bottom: number;
69
+ top: number;
70
+ };
71
+ }[];
72
+ children: never[];
73
+ }[];
69
74
  }[];
70
75
  };
71
76
  export default _default;