@opengeoweb/webmap 11.1.0 → 12.0.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']];
|
|
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']];
|
|
483
483
|
var mapImageStoreLength = 1000;
|
|
484
484
|
var bgImageStoreLength = 360;
|
|
485
485
|
var legendImageStoreLength = 500;
|
|
@@ -803,15 +803,14 @@ 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 =
|
|
806
|
+
var request = new URLSearchParams();
|
|
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
|
|
814
|
-
request += "=" + URLEncode(currentValue);
|
|
813
|
+
request.append(getCorrectWMSDimName(dimension.name), currentValue);
|
|
815
814
|
if (currentValue === WMDateOutSideRange || currentValue === WMDateTooEarlyString || currentValue === WMDateTooLateString) {
|
|
816
815
|
throw new Error(WMDateOutSideRange);
|
|
817
816
|
}
|
|
@@ -2246,7 +2245,7 @@ var getLegendGraphicURLForLayer = function getLegendGraphicURLForLayer(layer, wi
|
|
|
2246
2245
|
}
|
|
2247
2246
|
try {
|
|
2248
2247
|
if (layer.legendIsDimensionDependent === true) {
|
|
2249
|
-
legendURL += getMapDimURL(layer) + "&";
|
|
2248
|
+
legendURL += getMapDimURL(layer).toString() + "&";
|
|
2250
2249
|
}
|
|
2251
2250
|
if (layer.sldURL) {
|
|
2252
2251
|
legendURL += "&SLD=" + URLEncode(layer.sldURL);
|
|
@@ -2504,6 +2503,7 @@ var WMBBOX = /*#__PURE__*/function () {
|
|
|
2504
2503
|
this.setBBOX = this.setBBOX.bind(this);
|
|
2505
2504
|
this.equals = this.equals.bind(this);
|
|
2506
2505
|
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
|
/**
|
|
@@ -2539,22 +2539,22 @@ var WMBBOX = /*#__PURE__*/function () {
|
|
|
2539
2539
|
/* Otherwise it can be a bbox object or a string in the form "left,bottom,right,top" */
|
|
2540
2540
|
if (typeof left === 'object') {
|
|
2541
2541
|
/* A bbox object is given, so it is not a string */
|
|
2542
|
-
var
|
|
2543
|
-
this.left =
|
|
2544
|
-
this.bottom =
|
|
2545
|
-
this.right =
|
|
2546
|
-
this.top =
|
|
2542
|
+
var bboxObject = left;
|
|
2543
|
+
this.left = bboxObject.left;
|
|
2544
|
+
this.bottom = bboxObject.bottom;
|
|
2545
|
+
this.right = bboxObject.right;
|
|
2546
|
+
this.top = bboxObject.top;
|
|
2547
2547
|
} else {
|
|
2548
2548
|
/* A string like "-180,-90,180,90" is given */
|
|
2549
2549
|
try {
|
|
2550
|
-
var
|
|
2551
|
-
if (
|
|
2550
|
+
var bboxArray = left.split(',');
|
|
2551
|
+
if (bboxArray.length !== 4) {
|
|
2552
2552
|
return;
|
|
2553
2553
|
}
|
|
2554
|
-
this.left = parseFloat(
|
|
2555
|
-
this.bottom = parseFloat(
|
|
2556
|
-
this.right = parseFloat(
|
|
2557
|
-
this.top = parseFloat(
|
|
2554
|
+
this.left = parseFloat(bboxArray[0]);
|
|
2555
|
+
this.bottom = parseFloat(bboxArray[1]);
|
|
2556
|
+
this.right = parseFloat(bboxArray[2]);
|
|
2557
|
+
this.top = parseFloat(bboxArray[3]);
|
|
2558
2558
|
} catch (e) {
|
|
2559
2559
|
return;
|
|
2560
2560
|
}
|
|
@@ -2586,6 +2586,9 @@ 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
|
+
};
|
|
2589
2592
|
return WMBBOX;
|
|
2590
2593
|
}();
|
|
2591
2594
|
|
|
@@ -3289,7 +3292,7 @@ var buildWMSGetMapRequest = function buildWMSGetMapRequest(layer, projection, di
|
|
|
3289
3292
|
}
|
|
3290
3293
|
// Handle dimensions
|
|
3291
3294
|
try {
|
|
3292
|
-
request += getMapDimURL(layer, dimensionOverride);
|
|
3295
|
+
request += getMapDimURL(layer, dimensionOverride).toString();
|
|
3293
3296
|
} catch (e) {
|
|
3294
3297
|
return undefined;
|
|
3295
3298
|
}
|
|
@@ -3396,7 +3399,7 @@ var getWMSGetFeatureInfoRequestURL = function getWMSGetFeatureInfoRequestURL(lay
|
|
|
3396
3399
|
request += "&INFO_FORMAT=" + format;
|
|
3397
3400
|
request += '&STYLES=';
|
|
3398
3401
|
try {
|
|
3399
|
-
request += "&" + getMapDimURL(layer);
|
|
3402
|
+
request += "&" + getMapDimURL(layer).toString();
|
|
3400
3403
|
} catch (e) {
|
|
3401
3404
|
return undefined;
|
|
3402
3405
|
}
|
|
@@ -8381,6 +8384,7 @@ var queryWMSLayer = /*#__PURE__*/function () {
|
|
|
8381
8384
|
var WMLayer = /*#__PURE__*/function () {
|
|
8382
8385
|
function WMLayer(options) {
|
|
8383
8386
|
var _this = this;
|
|
8387
|
+
this.olSource = null; // Reference to olSource. Need to check if animation can go forward.
|
|
8384
8388
|
this.init = this.init.bind(this);
|
|
8385
8389
|
this.getLayerName = this.getLayerName.bind(this);
|
|
8386
8390
|
this.toggleAutoUpdate = this.toggleAutoUpdate.bind(this);
|
|
@@ -8634,15 +8638,15 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
8634
8638
|
this.version = serviceInfo.version || WMSVersion.version130;
|
|
8635
8639
|
this.title = jsonlayer.title;
|
|
8636
8640
|
if (jsonlayer.crs) {
|
|
8637
|
-
jsonlayer.crs.forEach(function (
|
|
8641
|
+
jsonlayer.crs.forEach(function (projection) {
|
|
8638
8642
|
var wmProjection = new WMProjection();
|
|
8639
|
-
wmProjection.srs =
|
|
8640
|
-
if (
|
|
8643
|
+
wmProjection.srs = projection.name || '';
|
|
8644
|
+
if (projection.bbox) {
|
|
8641
8645
|
var swapBBOX = _this4.version === WMSVersion.version130 && wmProjection.srs === PROJECTION.EPSG_4326.value && _this4.wms130bboxcompatibilitymode === false;
|
|
8642
8646
|
if (swapBBOX) {
|
|
8643
|
-
wmProjection.bbox.setBBOX(
|
|
8647
|
+
wmProjection.bbox.setBBOX(projection.bbox.bottom, projection.bbox.left, projection.bbox.top, projection.bbox.right);
|
|
8644
8648
|
} else {
|
|
8645
|
-
wmProjection.bbox.setBBOX(
|
|
8649
|
+
wmProjection.bbox.setBBOX(projection.bbox.left, projection.bbox.bottom, projection.bbox.right, projection.bbox.top);
|
|
8646
8650
|
}
|
|
8647
8651
|
}
|
|
8648
8652
|
_this4.projectionProperties.push(wmProjection);
|
|
@@ -8670,28 +8674,28 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
8670
8674
|
forceReload = false;
|
|
8671
8675
|
}
|
|
8672
8676
|
this.hasError = false;
|
|
8673
|
-
|
|
8677
|
+
this.lastError = '';
|
|
8678
|
+
_context.prev = 3;
|
|
8674
8679
|
if (!forceReload) {
|
|
8675
|
-
_context.next =
|
|
8680
|
+
_context.next = 8;
|
|
8676
8681
|
break;
|
|
8677
8682
|
}
|
|
8678
8683
|
// eslint-disable-next-line no-console
|
|
8679
8684
|
console.log('invalidateWMSGetCapabilities');
|
|
8680
|
-
_context.next =
|
|
8685
|
+
_context.next = 8;
|
|
8681
8686
|
return invalidateWMSGetCapabilities(this.service);
|
|
8682
|
-
case
|
|
8683
|
-
_context.next =
|
|
8687
|
+
case 8:
|
|
8688
|
+
_context.next = 10;
|
|
8684
8689
|
return queryWMSGetCapabilities(this.service);
|
|
8685
|
-
case
|
|
8690
|
+
case 10:
|
|
8686
8691
|
getCapabilities = _context.sent;
|
|
8687
8692
|
this._setWMSGetCapabilities(getCapabilities);
|
|
8688
8693
|
return _context.abrupt("return", this);
|
|
8689
|
-
case
|
|
8690
|
-
_context.prev =
|
|
8691
|
-
_context.t0 = _context["catch"](
|
|
8694
|
+
case 15:
|
|
8695
|
+
_context.prev = 15;
|
|
8696
|
+
_context.t0 = _context["catch"](3);
|
|
8692
8697
|
this.hasError = true;
|
|
8693
|
-
message = consoleErrorMessages.noCapabilityElementFound + "[in " + this.service + "] with message [" + _context.t0.message + "]";
|
|
8694
|
-
this.lastError = message;
|
|
8698
|
+
message = !this.lastError.length ? consoleErrorMessages.noCapabilityElementFound + "[in " + this.service + "] with message [" + _context.t0.message + "]" : this.lastError;
|
|
8695
8699
|
this.title = consoleErrorMessages.serviceHasError;
|
|
8696
8700
|
if (isDefined(this._options.failure)) {
|
|
8697
8701
|
this._options.failure(this, message);
|
|
@@ -8701,7 +8705,7 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
8701
8705
|
case "end":
|
|
8702
8706
|
return _context.stop();
|
|
8703
8707
|
}
|
|
8704
|
-
}, _callee, this, [[
|
|
8708
|
+
}, _callee, this, [[3, 15]]);
|
|
8705
8709
|
}));
|
|
8706
8710
|
function parseLayer(_x) {
|
|
8707
8711
|
return _parseLayer.apply(this, arguments);
|
|
@@ -8769,21 +8773,21 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
8769
8773
|
if (isDefined(this.styles) === false) {
|
|
8770
8774
|
return undefined;
|
|
8771
8775
|
}
|
|
8772
|
-
for (var
|
|
8773
|
-
if (this.styles[
|
|
8776
|
+
for (var styleIt = 0; styleIt < this.styles.length; styleIt += 1) {
|
|
8777
|
+
if (this.styles[styleIt].name === styleName) {
|
|
8774
8778
|
if (nextPrev === -1) {
|
|
8775
|
-
|
|
8779
|
+
styleIt -= 1;
|
|
8776
8780
|
}
|
|
8777
8781
|
if (nextPrev === 1) {
|
|
8778
|
-
|
|
8782
|
+
styleIt += 1;
|
|
8779
8783
|
}
|
|
8780
|
-
if (
|
|
8781
|
-
|
|
8784
|
+
if (styleIt < 0) {
|
|
8785
|
+
styleIt = this.styles.length - 1;
|
|
8782
8786
|
}
|
|
8783
|
-
if (
|
|
8784
|
-
|
|
8787
|
+
if (styleIt > this.styles.length - 1) {
|
|
8788
|
+
styleIt = 0;
|
|
8785
8789
|
}
|
|
8786
|
-
return this.styles[
|
|
8790
|
+
return this.styles[styleIt];
|
|
8787
8791
|
}
|
|
8788
8792
|
}
|
|
8789
8793
|
return undefined;
|
|
@@ -10605,23 +10609,6 @@ var tilesettings = {
|
|
|
10605
10609
|
maxLevel: 16,
|
|
10606
10610
|
tileServerType: 'arcgisonline',
|
|
10607
10611
|
copyRight: 'Basemap copyright: 2013 ESRI, DeLorme, NAVTEQ'
|
|
10608
|
-
},
|
|
10609
|
-
'EPSG:28992': {
|
|
10610
|
-
home: 'https://services.arcgisonline.com/arcgis/rest/services/Basiskaarten/Canvas/MapServer/tile/',
|
|
10611
|
-
minLevel: 1,
|
|
10612
|
-
maxLevel: 12,
|
|
10613
|
-
origX: -285401.92,
|
|
10614
|
-
origY: 903401.92,
|
|
10615
|
-
resolution: 3440.64,
|
|
10616
|
-
tileServerType: 'arcgisonline',
|
|
10617
|
-
copyRight: 'Basiskaart bronnen: ESRI Nederland, ESRI, Kadaster, CBS en Rijkswaterstaat'
|
|
10618
|
-
},
|
|
10619
|
-
'EPSG:3067': {
|
|
10620
|
-
home: '',
|
|
10621
|
-
minLevel: -1,
|
|
10622
|
-
maxLevel: -1,
|
|
10623
|
-
tileServerType: 'arcgisonline',
|
|
10624
|
-
copyRight: ''
|
|
10625
10612
|
}
|
|
10626
10613
|
},
|
|
10627
10614
|
arcGisTopo: {
|
|
@@ -10632,16 +10619,6 @@ var tilesettings = {
|
|
|
10632
10619
|
maxLevel: 19,
|
|
10633
10620
|
tileServerType: 'arcgisonline',
|
|
10634
10621
|
copyRight: 'Basemap sources: ESRI, DeLorme, NAVTEQ, TomTom, Intermap, increment P Corp., GEBCO, USGS, FAO, NPS, NRCAN, GeoBase, IGN, Kadaster NL, Ordnance Survey, ESRI Japan, METI, ESRI China (Hong Kong), and the GIS User Community'
|
|
10635
|
-
},
|
|
10636
|
-
'EPSG:28992': {
|
|
10637
|
-
home: 'https://services.arcgisonline.com/arcgis/rest/services/Basiskaarten/Topo/MapServer/tile/',
|
|
10638
|
-
minLevel: 1,
|
|
10639
|
-
maxLevel: 12,
|
|
10640
|
-
origX: -285401.92,
|
|
10641
|
-
origY: 903401.92,
|
|
10642
|
-
resolution: 3440.64,
|
|
10643
|
-
tileServerType: 'arcgisonline',
|
|
10644
|
-
copyRight: 'Basiskaart bronnen: ESRI Nederland, ESRI, Kadaster, CBS, Min VROM, Rijkswaterstaat en gemeenten: Rotterdam, Breda, Tilburg'
|
|
10645
10622
|
}
|
|
10646
10623
|
},
|
|
10647
10624
|
arcGisOceanBaseMap: {
|
|
@@ -10683,16 +10660,6 @@ var tilesettings = {
|
|
|
10683
10660
|
maxLevel: 16,
|
|
10684
10661
|
tileServerType: 'osm',
|
|
10685
10662
|
copyRight: 'OpenStreetMap - contributors'
|
|
10686
|
-
},
|
|
10687
|
-
'EPSG:28992': {
|
|
10688
|
-
home: 'https://services.arcgisonline.com/ArcGIS/rest/services/Basiskaarten/PDOK_BRT/MapServer/tile/',
|
|
10689
|
-
minLevel: 1,
|
|
10690
|
-
maxLevel: 12,
|
|
10691
|
-
origX: -285401.92,
|
|
10692
|
-
origY: 903401.92,
|
|
10693
|
-
resolution: 3440.64,
|
|
10694
|
-
tileServerType: 'arcgisonline',
|
|
10695
|
-
copyRight: 'Basiskaart bronnen: PDOK, Kadaster, OpenStreetMap'
|
|
10696
10663
|
}
|
|
10697
10664
|
},
|
|
10698
10665
|
NaturalEarth2: {
|
|
@@ -11226,4 +11193,4 @@ var privateWebMapUtils = {
|
|
|
11226
11193
|
QUERYWMS_GETCAPABILITIES: QUERYWMS_GETCAPABILITIES
|
|
11227
11194
|
};
|
|
11228
11195
|
|
|
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 };
|
|
11196
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "GeoWeb webmap library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,13 +8,29 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@
|
|
11
|
+
"@emotion/react": "11.14.0",
|
|
12
|
+
"@emotion/styled": "11.14.0",
|
|
13
|
+
"@mui/material": "6.4.1",
|
|
14
|
+
"@mui/system": "6.4.6",
|
|
15
|
+
"@mui/x-date-pickers": "7.27.1",
|
|
16
|
+
"@reduxjs/toolkit": "1.9.7",
|
|
17
|
+
"@sentry/react": "8.54.0",
|
|
18
|
+
"@storybook/react": "8.4.2",
|
|
12
19
|
"@tanstack/query-core": "^5.61.5",
|
|
13
|
-
"
|
|
20
|
+
"@testing-library/react": "16.0.1",
|
|
21
|
+
"@testing-library/user-event": "14.5.2",
|
|
22
|
+
"axios": "1.8.1",
|
|
23
|
+
"date-fns": "4.1.0",
|
|
24
|
+
"i18next": "^23.11.5",
|
|
25
|
+
"immer": "10.1.1",
|
|
26
|
+
"jest-date-mock": "1.0.10",
|
|
14
27
|
"lodash": "^4.17.21",
|
|
15
|
-
"
|
|
28
|
+
"proj4": "^2.9.2",
|
|
29
|
+
"re-resizable": "6.11.2",
|
|
30
|
+
"react": "18.3.1",
|
|
31
|
+
"react-draggable": "4.4.6",
|
|
32
|
+
"react-i18next": "15.1.1"
|
|
16
33
|
},
|
|
17
|
-
"peerDependencies": {},
|
|
18
34
|
"module": "./index.esm.js",
|
|
19
35
|
"type": "module",
|
|
20
36
|
"main": "./index.esm.js",
|
|
@@ -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[]) =>
|
|
40
|
+
export declare const getMapDimURL: (layer: WMLayer, dimensionOverride?: Dimension[]) => URLSearchParams;
|
|
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,6 +56,7 @@ export default class WMLayer {
|
|
|
56
56
|
geographicBoundingBox?: GeographicBoundingBox;
|
|
57
57
|
geojson?: GeoJSON.FeatureCollection;
|
|
58
58
|
currentRequestedGetMapURL?: string;
|
|
59
|
+
olSource: object | null;
|
|
59
60
|
init(): void;
|
|
60
61
|
constructor(options?: LayerOptions);
|
|
61
62
|
getLayerName(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type IWMJSMap from './IWMJSMap';
|
|
2
|
-
import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debugLogger, DebugType, getUriWithParam } from './WMJSTools';
|
|
2
|
+
import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debugLogger, DebugType, getUriWithParam, getMapDimURL } 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, WMListener, WMXMLStringToJson, };
|
|
20
|
+
export { IWMJSMap, WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMJScheckURL, URLEncode, URLDecode, parseISO8601DateToDate, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, getUriWithParam, getMapDimURL, WMListener, WMXMLStringToJson, };
|
|
21
21
|
export * from './types';
|
|
22
22
|
export * from './WMTimeTypes';
|
|
23
23
|
export * from './WMConstants';
|