@corpsmap/corpsmap 3.0.12 → 3.0.13
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/lib/dev.js +266 -212
- package/lib/prod.js +266 -212
- package/package.json +4 -1
- package/src/application-bundles/map-layers-bundle.js +4 -0
- package/src/application-controls/tree-list-folder.js +45 -27
- package/src/core-plugins/add-data/bundle.js +18 -4
- package/src/core-plugins/tree-view/download-bundle.js +2 -2
- package/src/core-plugins/tree-view/layer-subpanel/layer-subpanel.js +1 -1
- package/src/core-plugins/tree-view/tree-list-item-dataset.js +14 -3
- package/src/utils/load-plugins.test.js +36 -0
package/lib/prod.js
CHANGED
|
@@ -28687,7 +28687,7 @@ function getUid(obj) {
|
|
|
28687
28687
|
* OpenLayers version.
|
|
28688
28688
|
* @type {string}
|
|
28689
28689
|
*/
|
|
28690
|
-
var VERSION = '6.
|
|
28690
|
+
var VERSION = '6.14.1';
|
|
28691
28691
|
|
|
28692
28692
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
28693
28693
|
var extendStatics = function (d, b) {
|
|
@@ -31060,6 +31060,13 @@ var FIREFOX = ua.indexOf('firefox') !== -1;
|
|
|
31060
31060
|
* @type {boolean}
|
|
31061
31061
|
*/
|
|
31062
31062
|
var SAFARI = ua.indexOf('safari') !== -1 && ua.indexOf('chrom') == -1;
|
|
31063
|
+
/**
|
|
31064
|
+
* https://bugs.webkit.org/show_bug.cgi?id=237906
|
|
31065
|
+
* @type {boolean}
|
|
31066
|
+
*/
|
|
31067
|
+
var SAFARI_BUG_237906 = SAFARI &&
|
|
31068
|
+
!!(ua.indexOf('version/15.4') >= 0 ||
|
|
31069
|
+
ua.match(/cpu (os|iphone os) 15_4 like mac os x/));
|
|
31063
31070
|
/**
|
|
31064
31071
|
* User agent string says we are dealing with a WebKit engine.
|
|
31065
31072
|
* @type {boolean}
|
|
@@ -36013,7 +36020,7 @@ function fromUserCoordinate(coordinate, destProjection) {
|
|
|
36013
36020
|
coordinate[1] <= 90) {
|
|
36014
36021
|
showCoordinateWarning = false;
|
|
36015
36022
|
// eslint-disable-next-line no-console
|
|
36016
|
-
console.warn('Call useGeographic() ol/proj once to work with [longitude, latitude] coordinates.');
|
|
36023
|
+
console.warn('Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.');
|
|
36017
36024
|
}
|
|
36018
36025
|
return coordinate;
|
|
36019
36026
|
}
|
|
@@ -44015,7 +44022,6 @@ var __extends$s = (undefined && undefined.__extends) || (function () {
|
|
|
44015
44022
|
* @typedef {Object} State
|
|
44016
44023
|
* @property {import("./Layer.js").default} layer Layer.
|
|
44017
44024
|
* @property {number} opacity Opacity, the value is rounded to two digits to appear after the decimal point.
|
|
44018
|
-
* @property {import("../source/Source.js").default|undefined} source Source being rendered (only for multi-source layers).
|
|
44019
44025
|
* @property {boolean} visible Visible.
|
|
44020
44026
|
* @property {boolean} managed Managed.
|
|
44021
44027
|
* @property {import("../extent.js").Extent} [extent] Extent.
|
|
@@ -44285,7 +44291,7 @@ var Layer = /** @class */ (function (_super) {
|
|
|
44285
44291
|
};
|
|
44286
44292
|
/**
|
|
44287
44293
|
* Get the renderer for this layer.
|
|
44288
|
-
* @return {RendererType} The layer renderer.
|
|
44294
|
+
* @return {RendererType|null} The layer renderer.
|
|
44289
44295
|
*/
|
|
44290
44296
|
Layer.prototype.getRenderer = function () {
|
|
44291
44297
|
if (!this.renderer_) {
|
|
@@ -45973,11 +45979,13 @@ var CanvasImageLayerRenderer = /** @class */ (function (_super) {
|
|
|
45973
45979
|
if (imageSource) {
|
|
45974
45980
|
var projection = viewState.projection;
|
|
45975
45981
|
var image = imageSource.getImage(renderedExtent, viewResolution, pixelRatio, projection);
|
|
45976
|
-
if (image
|
|
45977
|
-
this.
|
|
45978
|
-
|
|
45979
|
-
|
|
45980
|
-
|
|
45982
|
+
if (image) {
|
|
45983
|
+
if (this.loadImage(image)) {
|
|
45984
|
+
this.image_ = image;
|
|
45985
|
+
}
|
|
45986
|
+
else if (image.getState() === ImageState.EMPTY) {
|
|
45987
|
+
this.image_ = null;
|
|
45988
|
+
}
|
|
45981
45989
|
}
|
|
45982
45990
|
}
|
|
45983
45991
|
else {
|
|
@@ -53049,7 +53057,7 @@ var Text = /** @class */ (function () {
|
|
|
53049
53057
|
/**
|
|
53050
53058
|
* Set the text.
|
|
53051
53059
|
*
|
|
53052
|
-
* @param {string|undefined} text Text.
|
|
53060
|
+
* @param {string|Array<string>|undefined} text Text.
|
|
53053
53061
|
* @api
|
|
53054
53062
|
*/
|
|
53055
53063
|
Text.prototype.setText = function (text) {
|
|
@@ -66693,9 +66701,21 @@ var MapEventType = {
|
|
|
66693
66701
|
* @api
|
|
66694
66702
|
*/
|
|
66695
66703
|
MOVEEND: 'moveend',
|
|
66704
|
+
/**
|
|
66705
|
+
* Triggered when loading of additional map data (tiles, images, features) starts.
|
|
66706
|
+
* @event module:ol/render/Event~RenderEvent#loadstart
|
|
66707
|
+
* @api
|
|
66708
|
+
*/
|
|
66709
|
+
LOADSTART: 'loadstart',
|
|
66710
|
+
/**
|
|
66711
|
+
* Triggered when loading of additional map data has completed.
|
|
66712
|
+
* @event module:ol/render/Event~RenderEvent#loadend
|
|
66713
|
+
* @api
|
|
66714
|
+
*/
|
|
66715
|
+
LOADEND: 'loadend',
|
|
66696
66716
|
};
|
|
66697
66717
|
/***
|
|
66698
|
-
* @typedef {'postrender'|'movestart'|'moveend'} Types
|
|
66718
|
+
* @typedef {'postrender'|'movestart'|'moveend'|'loadstart'|'loadend'} Types
|
|
66699
66719
|
*/
|
|
66700
66720
|
|
|
66701
66721
|
/**
|
|
@@ -67779,15 +67799,15 @@ var View = /** @class */ (function (_super) {
|
|
|
67779
67799
|
* @type {import("./coordinate.js").Coordinate|undefined}
|
|
67780
67800
|
*/
|
|
67781
67801
|
_this.cancelAnchor_ = undefined;
|
|
67802
|
+
if (options.projection) {
|
|
67803
|
+
disableCoordinateWarning();
|
|
67804
|
+
}
|
|
67782
67805
|
if (options.center) {
|
|
67783
67806
|
options.center = fromUserCoordinate(options.center, _this.projection_);
|
|
67784
67807
|
}
|
|
67785
67808
|
if (options.extent) {
|
|
67786
67809
|
options.extent = fromUserExtent(options.extent, _this.projection_);
|
|
67787
67810
|
}
|
|
67788
|
-
if (options.projection) {
|
|
67789
|
-
disableCoordinateWarning();
|
|
67790
|
-
}
|
|
67791
67811
|
_this.applyOptions_(options);
|
|
67792
67812
|
return _this;
|
|
67793
67813
|
}
|
|
@@ -69406,9 +69426,14 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69406
69426
|
var optionsInternal = createOptionsInternal(options);
|
|
69407
69427
|
/**
|
|
69408
69428
|
* @private
|
|
69409
|
-
* @type {boolean}
|
|
69429
|
+
* @type {boolean|undefined}
|
|
69410
69430
|
*/
|
|
69411
69431
|
_this.renderComplete_;
|
|
69432
|
+
/**
|
|
69433
|
+
* @private
|
|
69434
|
+
* @type {boolean}
|
|
69435
|
+
*/
|
|
69436
|
+
_this.loaded_ = true;
|
|
69412
69437
|
/** @private */
|
|
69413
69438
|
_this.boundHandleBrowserEvent_ = _this.handleBrowserEvent.bind(_this);
|
|
69414
69439
|
/**
|
|
@@ -69560,7 +69585,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69560
69585
|
*/
|
|
69561
69586
|
_this.overlayIdIndex_ = {};
|
|
69562
69587
|
/**
|
|
69563
|
-
* @type {import("./renderer/Map.js").default}
|
|
69588
|
+
* @type {import("./renderer/Map.js").default|null}
|
|
69564
69589
|
* @private
|
|
69565
69590
|
*/
|
|
69566
69591
|
_this.renderer_ = null;
|
|
@@ -69746,7 +69771,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69746
69771
|
* @api
|
|
69747
69772
|
*/
|
|
69748
69773
|
PluggableMap.prototype.forEachFeatureAtPixel = function (pixel, callback, opt_options) {
|
|
69749
|
-
if (!this.frameState_) {
|
|
69774
|
+
if (!this.frameState_ || !this.renderer_) {
|
|
69750
69775
|
return;
|
|
69751
69776
|
}
|
|
69752
69777
|
var coordinate = this.getCoordinateFromPixelInternal(pixel);
|
|
@@ -69820,7 +69845,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69820
69845
|
* @deprecated
|
|
69821
69846
|
*/
|
|
69822
69847
|
PluggableMap.prototype.forEachLayerAtPixel = function (pixel, callback, opt_options) {
|
|
69823
|
-
if (!this.frameState_) {
|
|
69848
|
+
if (!this.frameState_ || !this.renderer_) {
|
|
69824
69849
|
return;
|
|
69825
69850
|
}
|
|
69826
69851
|
var options = opt_options || {};
|
|
@@ -69837,7 +69862,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69837
69862
|
* @api
|
|
69838
69863
|
*/
|
|
69839
69864
|
PluggableMap.prototype.hasFeatureAtPixel = function (pixel, opt_options) {
|
|
69840
|
-
if (!this.frameState_) {
|
|
69865
|
+
if (!this.frameState_ || !this.renderer_) {
|
|
69841
69866
|
return false;
|
|
69842
69867
|
}
|
|
69843
69868
|
var coordinate = this.getCoordinateFromPixelInternal(pixel);
|
|
@@ -70017,11 +70042,15 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70017
70042
|
PluggableMap.prototype.getLoadingOrNotReady = function () {
|
|
70018
70043
|
var layerStatesArray = this.getLayerGroup().getLayerStatesArray();
|
|
70019
70044
|
for (var i = 0, ii = layerStatesArray.length; i < ii; ++i) {
|
|
70020
|
-
var
|
|
70021
|
-
if (!
|
|
70045
|
+
var state = layerStatesArray[i];
|
|
70046
|
+
if (!state.visible) {
|
|
70047
|
+
continue;
|
|
70048
|
+
}
|
|
70049
|
+
var renderer = state.layer.getRenderer();
|
|
70050
|
+
if (renderer && !renderer.ready) {
|
|
70022
70051
|
return true;
|
|
70023
70052
|
}
|
|
70024
|
-
var source = /** @type {import("./layer/Layer.js").default} */ (layer).getSource();
|
|
70053
|
+
var source = /** @type {import("./layer/Layer.js").default} */ (state.layer).getSource();
|
|
70025
70054
|
if (source && source.loading) {
|
|
70026
70055
|
return true;
|
|
70027
70056
|
}
|
|
@@ -70056,7 +70085,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70056
70085
|
};
|
|
70057
70086
|
/**
|
|
70058
70087
|
* Get the map renderer.
|
|
70059
|
-
* @return {import("./renderer/Map.js").default} Renderer
|
|
70088
|
+
* @return {import("./renderer/Map.js").default|null} Renderer
|
|
70060
70089
|
*/
|
|
70061
70090
|
PluggableMap.prototype.getRenderer = function () {
|
|
70062
70091
|
return this.renderer_;
|
|
@@ -70213,11 +70242,20 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70213
70242
|
tileQueue.loadMoreTiles(maxTotalLoading, maxNewLoads);
|
|
70214
70243
|
}
|
|
70215
70244
|
}
|
|
70216
|
-
if (frameState &&
|
|
70217
|
-
this.
|
|
70218
|
-
|
|
70219
|
-
|
|
70220
|
-
|
|
70245
|
+
if (frameState && this.renderer_ && !frameState.animate) {
|
|
70246
|
+
if (this.renderComplete_ === true) {
|
|
70247
|
+
if (this.hasListener(RenderEventType.RENDERCOMPLETE)) {
|
|
70248
|
+
this.renderer_.dispatchRenderEvent(RenderEventType.RENDERCOMPLETE, frameState);
|
|
70249
|
+
}
|
|
70250
|
+
if (this.loaded_ === false) {
|
|
70251
|
+
this.loaded_ = true;
|
|
70252
|
+
this.dispatchEvent(new MapEvent(MapEventType.LOADEND, this, frameState));
|
|
70253
|
+
}
|
|
70254
|
+
}
|
|
70255
|
+
else if (this.loaded_ === true) {
|
|
70256
|
+
this.loaded_ = false;
|
|
70257
|
+
this.dispatchEvent(new MapEvent(MapEventType.LOADSTART, this, frameState));
|
|
70258
|
+
}
|
|
70221
70259
|
}
|
|
70222
70260
|
var postRenderFunctions = this.postRenderFunctions_;
|
|
70223
70261
|
for (var i = 0, ii = postRenderFunctions.length; i < ii; ++i) {
|
|
@@ -70473,7 +70511,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70473
70511
|
}
|
|
70474
70512
|
}
|
|
70475
70513
|
this.frameState_ = frameState;
|
|
70476
|
-
this.renderer_.renderFrame(frameState);
|
|
70514
|
+
/** @type {import("./renderer/Map.js").default} */ (this.renderer_).renderFrame(frameState);
|
|
70477
70515
|
if (frameState) {
|
|
70478
70516
|
if (frameState.animate) {
|
|
70479
70517
|
this.render();
|
|
@@ -70499,9 +70537,13 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70499
70537
|
}
|
|
70500
70538
|
this.dispatchEvent(new MapEvent(MapEventType.POSTRENDER, this, frameState));
|
|
70501
70539
|
this.renderComplete_ =
|
|
70502
|
-
|
|
70503
|
-
|
|
70504
|
-
|
|
70540
|
+
this.hasListener(MapEventType.LOADSTART) ||
|
|
70541
|
+
this.hasListener(MapEventType.LOADEND) ||
|
|
70542
|
+
this.hasListener(RenderEventType.RENDERCOMPLETE)
|
|
70543
|
+
? !this.tileQueue_.getTilesLoading() &&
|
|
70544
|
+
!this.tileQueue_.getCount() &&
|
|
70545
|
+
!this.getLoadingOrNotReady()
|
|
70546
|
+
: undefined;
|
|
70505
70547
|
if (!this.postRenderTimeoutHandle_) {
|
|
70506
70548
|
this.postRenderTimeoutHandle_ = setTimeout(function () {
|
|
70507
70549
|
_this.postRenderTimeoutHandle_ = undefined;
|
|
@@ -78060,7 +78102,6 @@ var __extends$1v = (undefined && undefined.__extends) || (function () {
|
|
|
78060
78102
|
})();
|
|
78061
78103
|
/**
|
|
78062
78104
|
* @typedef {Object} Result
|
|
78063
|
-
* @property {boolean} snapped Snapped.
|
|
78064
78105
|
* @property {import("../coordinate.js").Coordinate|null} vertex Vertex.
|
|
78065
78106
|
* @property {import("../pixel.js").Pixel|null} vertexPixel VertexPixel.
|
|
78066
78107
|
*/
|
|
@@ -78194,18 +78235,18 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78194
78235
|
/**
|
|
78195
78236
|
* @const
|
|
78196
78237
|
* @private
|
|
78197
|
-
* @type {Object<string, function(import(
|
|
78198
|
-
*/
|
|
78199
|
-
_this.
|
|
78200
|
-
'Point': _this.
|
|
78201
|
-
'LineString': _this.
|
|
78202
|
-
'LinearRing': _this.
|
|
78203
|
-
'Polygon': _this.
|
|
78204
|
-
'MultiPoint': _this.
|
|
78205
|
-
'MultiLineString': _this.
|
|
78206
|
-
'MultiPolygon': _this.
|
|
78207
|
-
'GeometryCollection': _this.
|
|
78208
|
-
'Circle': _this.
|
|
78238
|
+
* @type {Object<string, function(Array<Array<import('../coordinate.js').Coordinate>>, import("../geom/Geometry.js").default): void>}
|
|
78239
|
+
*/
|
|
78240
|
+
_this.GEOMETRY_SEGMENTERS_ = {
|
|
78241
|
+
'Point': _this.segmentPointGemetry_.bind(_this),
|
|
78242
|
+
'LineString': _this.segmentLineStringGemetry_.bind(_this),
|
|
78243
|
+
'LinearRing': _this.segmentLineStringGemetry_.bind(_this),
|
|
78244
|
+
'Polygon': _this.segmentPolygonGemetry_.bind(_this),
|
|
78245
|
+
'MultiPoint': _this.segmentMultiPointGemetry_.bind(_this),
|
|
78246
|
+
'MultiLineString': _this.segmentMultiLineStringGemetry_.bind(_this),
|
|
78247
|
+
'MultiPolygon': _this.segmentMultiPolygonGemetry_.bind(_this),
|
|
78248
|
+
'GeometryCollection': _this.segmentGeometryCollectionGemetry_.bind(_this),
|
|
78249
|
+
'Circle': _this.segmentCircleGemetry_.bind(_this),
|
|
78209
78250
|
};
|
|
78210
78251
|
return _this;
|
|
78211
78252
|
}
|
|
@@ -78221,10 +78262,26 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78221
78262
|
var feature_uid = getUid(feature);
|
|
78222
78263
|
var geometry = feature.getGeometry();
|
|
78223
78264
|
if (geometry) {
|
|
78224
|
-
var
|
|
78225
|
-
if (
|
|
78265
|
+
var segmenter = this.GEOMETRY_SEGMENTERS_[geometry.getType()];
|
|
78266
|
+
if (segmenter) {
|
|
78226
78267
|
this.indexedFeaturesExtents_[feature_uid] = geometry.getExtent(createEmpty());
|
|
78227
|
-
|
|
78268
|
+
var segments =
|
|
78269
|
+
/** @type {Array<Array<import('../coordinate.js').Coordinate>>} */ ([]);
|
|
78270
|
+
segmenter(segments, geometry);
|
|
78271
|
+
if (segments.length === 1) {
|
|
78272
|
+
this.rBush_.insert(boundingExtent(segments[0]), {
|
|
78273
|
+
feature: feature,
|
|
78274
|
+
segment: segments[0],
|
|
78275
|
+
});
|
|
78276
|
+
}
|
|
78277
|
+
else if (segments.length > 1) {
|
|
78278
|
+
var extents = segments.map(function (s) { return boundingExtent(s); });
|
|
78279
|
+
var segmentsData = segments.map(function (segment) { return ({
|
|
78280
|
+
feature: feature,
|
|
78281
|
+
segment: segment,
|
|
78282
|
+
}); });
|
|
78283
|
+
this.rBush_.load(extents, segmentsData);
|
|
78284
|
+
}
|
|
78228
78285
|
}
|
|
78229
78286
|
}
|
|
78230
78287
|
if (register) {
|
|
@@ -78265,7 +78322,7 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78265
78322
|
*/
|
|
78266
78323
|
Snap.prototype.handleEvent = function (evt) {
|
|
78267
78324
|
var result = this.snapTo(evt.pixel, evt.coordinate, evt.map);
|
|
78268
|
-
if (result
|
|
78325
|
+
if (result) {
|
|
78269
78326
|
evt.coordinate = result.vertex.slice(0, 2);
|
|
78270
78327
|
evt.pixel = result.vertexPixel;
|
|
78271
78328
|
}
|
|
@@ -78374,7 +78431,7 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78374
78431
|
* @param {import("../pixel.js").Pixel} pixel Pixel
|
|
78375
78432
|
* @param {import("../coordinate.js").Coordinate} pixelCoordinate Coordinate
|
|
78376
78433
|
* @param {import("../PluggableMap.js").default} map Map.
|
|
78377
|
-
* @return {Result} Snap result
|
|
78434
|
+
* @return {Result|null} Snap result
|
|
78378
78435
|
*/
|
|
78379
78436
|
Snap.prototype.snapTo = function (pixel, pixelCoordinate, map) {
|
|
78380
78437
|
var lowerLeft = map.getCoordinateFromPixel([
|
|
@@ -78387,96 +78444,88 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78387
78444
|
]);
|
|
78388
78445
|
var box = boundingExtent([lowerLeft, upperRight]);
|
|
78389
78446
|
var segments = this.rBush_.getInExtent(box);
|
|
78390
|
-
|
|
78391
|
-
if (
|
|
78392
|
-
|
|
78393
|
-
return segment.feature.getGeometry().getType() !== GeometryType.CIRCLE;
|
|
78394
|
-
});
|
|
78395
|
-
}
|
|
78396
|
-
var snapped = false;
|
|
78397
|
-
var vertex = null;
|
|
78398
|
-
var vertexPixel = null;
|
|
78399
|
-
if (segments.length === 0) {
|
|
78400
|
-
return {
|
|
78401
|
-
snapped: snapped,
|
|
78402
|
-
vertex: vertex,
|
|
78403
|
-
vertexPixel: vertexPixel,
|
|
78404
|
-
};
|
|
78447
|
+
var segmentsLength = segments.length;
|
|
78448
|
+
if (segmentsLength === 0) {
|
|
78449
|
+
return null;
|
|
78405
78450
|
}
|
|
78406
78451
|
var projection = map.getView().getProjection();
|
|
78407
78452
|
var projectedCoordinate = fromUserCoordinate(pixelCoordinate);
|
|
78408
|
-
var
|
|
78453
|
+
var closestVertex;
|
|
78409
78454
|
var minSquaredDistance = Infinity;
|
|
78410
|
-
|
|
78411
|
-
|
|
78412
|
-
|
|
78413
|
-
|
|
78414
|
-
|
|
78415
|
-
|
|
78416
|
-
|
|
78417
|
-
|
|
78418
|
-
|
|
78419
|
-
|
|
78420
|
-
|
|
78421
|
-
|
|
78422
|
-
|
|
78423
|
-
var pixel2 = map.getPixelFromCoordinate(closestSegment[1]);
|
|
78424
|
-
var squaredDist1 = squaredDistance$1(pixel, pixel1);
|
|
78425
|
-
var squaredDist2 = squaredDistance$1(pixel, pixel2);
|
|
78426
|
-
var dist = Math.sqrt(Math.min(squaredDist1, squaredDist2));
|
|
78427
|
-
if (dist <= this.pixelTolerance_) {
|
|
78428
|
-
snapped = true;
|
|
78429
|
-
vertex =
|
|
78430
|
-
squaredDist1 > squaredDist2 ? closestSegment[1] : closestSegment[0];
|
|
78431
|
-
vertexPixel = map.getPixelFromCoordinate(vertex);
|
|
78432
|
-
}
|
|
78433
|
-
}
|
|
78434
|
-
else if (this.edge_) {
|
|
78435
|
-
var isCircle = closestSegmentData.feature.getGeometry().getType() ===
|
|
78436
|
-
GeometryType.CIRCLE;
|
|
78437
|
-
if (isCircle) {
|
|
78438
|
-
var circleGeometry = closestSegmentData.feature.getGeometry();
|
|
78439
|
-
var userProjection = getUserProjection();
|
|
78440
|
-
if (userProjection) {
|
|
78441
|
-
circleGeometry = circleGeometry
|
|
78442
|
-
.clone()
|
|
78443
|
-
.transform(userProjection, projection);
|
|
78455
|
+
var squaredPixelTolerance = this.pixelTolerance_ * this.pixelTolerance_;
|
|
78456
|
+
var getResult = function () {
|
|
78457
|
+
if (closestVertex) {
|
|
78458
|
+
var vertexPixel = map.getPixelFromCoordinate(closestVertex);
|
|
78459
|
+
var squaredPixelDistance = squaredDistance$1(pixel, vertexPixel);
|
|
78460
|
+
if (squaredPixelDistance <= squaredPixelTolerance) {
|
|
78461
|
+
return {
|
|
78462
|
+
vertex: closestVertex,
|
|
78463
|
+
vertexPixel: [
|
|
78464
|
+
Math.round(vertexPixel[0]),
|
|
78465
|
+
Math.round(vertexPixel[1]),
|
|
78466
|
+
],
|
|
78467
|
+
};
|
|
78444
78468
|
}
|
|
78445
|
-
vertex = toUserCoordinate(closestOnCircle(projectedCoordinate,
|
|
78446
|
-
/** @type {import("../geom/Circle.js").default} */ (circleGeometry)));
|
|
78447
78469
|
}
|
|
78448
|
-
|
|
78449
|
-
|
|
78450
|
-
|
|
78451
|
-
|
|
78452
|
-
|
|
78453
|
-
|
|
78454
|
-
|
|
78455
|
-
|
|
78456
|
-
|
|
78457
|
-
|
|
78458
|
-
|
|
78459
|
-
|
|
78460
|
-
|
|
78461
|
-
|
|
78462
|
-
if (dist <= this.pixelTolerance_) {
|
|
78463
|
-
vertex =
|
|
78464
|
-
squaredDist1 > squaredDist2
|
|
78465
|
-
? closestSegment[1]
|
|
78466
|
-
: closestSegment[0];
|
|
78467
|
-
vertexPixel = map.getPixelFromCoordinate(vertex);
|
|
78468
|
-
}
|
|
78470
|
+
return null;
|
|
78471
|
+
};
|
|
78472
|
+
if (this.vertex_) {
|
|
78473
|
+
for (var i = 0; i < segmentsLength; ++i) {
|
|
78474
|
+
var segmentData = segments[i];
|
|
78475
|
+
if (segmentData.feature.getGeometry().getType() !== GeometryType.CIRCLE) {
|
|
78476
|
+
segmentData.segment.forEach(function (vertex) {
|
|
78477
|
+
var tempVertexCoord = fromUserCoordinate(vertex);
|
|
78478
|
+
var delta = squaredDistance$1(projectedCoordinate, tempVertexCoord);
|
|
78479
|
+
if (delta < minSquaredDistance) {
|
|
78480
|
+
closestVertex = vertex;
|
|
78481
|
+
minSquaredDistance = delta;
|
|
78482
|
+
}
|
|
78483
|
+
});
|
|
78469
78484
|
}
|
|
78470
78485
|
}
|
|
78486
|
+
var result = getResult();
|
|
78487
|
+
if (result) {
|
|
78488
|
+
return result;
|
|
78489
|
+
}
|
|
78471
78490
|
}
|
|
78472
|
-
if (
|
|
78473
|
-
|
|
78491
|
+
if (this.edge_) {
|
|
78492
|
+
for (var i = 0; i < segmentsLength; ++i) {
|
|
78493
|
+
var vertex = null;
|
|
78494
|
+
var segmentData = segments[i];
|
|
78495
|
+
if (segmentData.feature.getGeometry().getType() === GeometryType.CIRCLE) {
|
|
78496
|
+
var circleGeometry = segmentData.feature.getGeometry();
|
|
78497
|
+
var userProjection = getUserProjection();
|
|
78498
|
+
if (userProjection) {
|
|
78499
|
+
circleGeometry = circleGeometry
|
|
78500
|
+
.clone()
|
|
78501
|
+
.transform(userProjection, projection);
|
|
78502
|
+
}
|
|
78503
|
+
vertex = toUserCoordinate(closestOnCircle(projectedCoordinate,
|
|
78504
|
+
/** @type {import("../geom/Circle.js").default} */ (circleGeometry)));
|
|
78505
|
+
}
|
|
78506
|
+
else {
|
|
78507
|
+
var _a = segmentData.segment, segmentStart = _a[0], segmentEnd = _a[1];
|
|
78508
|
+
// points have only one coordinate
|
|
78509
|
+
if (segmentEnd) {
|
|
78510
|
+
tempSegment$1[0] = fromUserCoordinate(segmentStart);
|
|
78511
|
+
tempSegment$1[1] = fromUserCoordinate(segmentEnd);
|
|
78512
|
+
vertex = closestOnSegment(projectedCoordinate, tempSegment$1);
|
|
78513
|
+
}
|
|
78514
|
+
}
|
|
78515
|
+
if (vertex) {
|
|
78516
|
+
var delta = squaredDistance$1(projectedCoordinate, vertex);
|
|
78517
|
+
if (delta < minSquaredDistance) {
|
|
78518
|
+
closestVertex = vertex;
|
|
78519
|
+
minSquaredDistance = delta;
|
|
78520
|
+
}
|
|
78521
|
+
}
|
|
78522
|
+
}
|
|
78523
|
+
var result = getResult();
|
|
78524
|
+
if (result) {
|
|
78525
|
+
return result;
|
|
78526
|
+
}
|
|
78474
78527
|
}
|
|
78475
|
-
return
|
|
78476
|
-
snapped: snapped,
|
|
78477
|
-
vertex: vertex,
|
|
78478
|
-
vertexPixel: vertexPixel,
|
|
78479
|
-
};
|
|
78528
|
+
return null;
|
|
78480
78529
|
};
|
|
78481
78530
|
/**
|
|
78482
78531
|
* @param {import("../Feature.js").default} feature Feature
|
|
@@ -78487,140 +78536,104 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78487
78536
|
this.addFeature(feature, false);
|
|
78488
78537
|
};
|
|
78489
78538
|
/**
|
|
78490
|
-
* @param {import(
|
|
78539
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78491
78540
|
* @param {import("../geom/Circle.js").default} geometry Geometry.
|
|
78492
78541
|
* @private
|
|
78493
78542
|
*/
|
|
78494
|
-
Snap.prototype.
|
|
78543
|
+
Snap.prototype.segmentCircleGemetry_ = function (segments, geometry) {
|
|
78495
78544
|
var projection = this.getMap().getView().getProjection();
|
|
78496
78545
|
var circleGeometry = geometry;
|
|
78497
78546
|
var polygon = fromCircle(circleGeometry);
|
|
78498
78547
|
var coordinates = polygon.getCoordinates()[0];
|
|
78499
78548
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78500
|
-
|
|
78501
|
-
var segmentData = {
|
|
78502
|
-
feature: feature,
|
|
78503
|
-
segment: segment,
|
|
78504
|
-
};
|
|
78505
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78549
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78506
78550
|
}
|
|
78507
78551
|
};
|
|
78508
78552
|
/**
|
|
78509
|
-
* @param {import(
|
|
78553
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78510
78554
|
* @param {import("../geom/GeometryCollection.js").default} geometry Geometry.
|
|
78511
78555
|
* @private
|
|
78512
78556
|
*/
|
|
78513
|
-
Snap.prototype.
|
|
78557
|
+
Snap.prototype.segmentGeometryCollectionGemetry_ = function (segments, geometry) {
|
|
78514
78558
|
var geometries = geometry.getGeometriesArray();
|
|
78515
78559
|
for (var i = 0; i < geometries.length; ++i) {
|
|
78516
|
-
var
|
|
78517
|
-
if (
|
|
78518
|
-
|
|
78560
|
+
var segmenter = this.GEOMETRY_SEGMENTERS_[geometries[i].getType()];
|
|
78561
|
+
if (segmenter) {
|
|
78562
|
+
segmenter(segments, geometries[i]);
|
|
78519
78563
|
}
|
|
78520
78564
|
}
|
|
78521
78565
|
};
|
|
78522
78566
|
/**
|
|
78523
|
-
* @param {import(
|
|
78567
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78524
78568
|
* @param {import("../geom/LineString.js").default} geometry Geometry.
|
|
78525
78569
|
* @private
|
|
78526
78570
|
*/
|
|
78527
|
-
Snap.prototype.
|
|
78571
|
+
Snap.prototype.segmentLineStringGemetry_ = function (segments, geometry) {
|
|
78528
78572
|
var coordinates = geometry.getCoordinates();
|
|
78529
78573
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78530
|
-
|
|
78531
|
-
var segmentData = {
|
|
78532
|
-
feature: feature,
|
|
78533
|
-
segment: segment,
|
|
78534
|
-
};
|
|
78535
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78574
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78536
78575
|
}
|
|
78537
78576
|
};
|
|
78538
78577
|
/**
|
|
78539
|
-
* @param {import(
|
|
78578
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78540
78579
|
* @param {import("../geom/MultiLineString.js").default} geometry Geometry.
|
|
78541
78580
|
* @private
|
|
78542
78581
|
*/
|
|
78543
|
-
Snap.prototype.
|
|
78582
|
+
Snap.prototype.segmentMultiLineStringGemetry_ = function (segments, geometry) {
|
|
78544
78583
|
var lines = geometry.getCoordinates();
|
|
78545
78584
|
for (var j = 0, jj = lines.length; j < jj; ++j) {
|
|
78546
78585
|
var coordinates = lines[j];
|
|
78547
78586
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78548
|
-
|
|
78549
|
-
var segmentData = {
|
|
78550
|
-
feature: feature,
|
|
78551
|
-
segment: segment,
|
|
78552
|
-
};
|
|
78553
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78587
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78554
78588
|
}
|
|
78555
78589
|
}
|
|
78556
78590
|
};
|
|
78557
78591
|
/**
|
|
78558
|
-
* @param {import(
|
|
78592
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78559
78593
|
* @param {import("../geom/MultiPoint.js").default} geometry Geometry.
|
|
78560
78594
|
* @private
|
|
78561
78595
|
*/
|
|
78562
|
-
Snap.prototype.
|
|
78563
|
-
|
|
78564
|
-
|
|
78565
|
-
|
|
78566
|
-
var segmentData = {
|
|
78567
|
-
feature: feature,
|
|
78568
|
-
segment: [coordinates, coordinates],
|
|
78569
|
-
};
|
|
78570
|
-
this.rBush_.insert(geometry.getExtent(), segmentData);
|
|
78571
|
-
}
|
|
78596
|
+
Snap.prototype.segmentMultiPointGemetry_ = function (segments, geometry) {
|
|
78597
|
+
geometry.getCoordinates().forEach(function (point) {
|
|
78598
|
+
segments.push([point]);
|
|
78599
|
+
});
|
|
78572
78600
|
};
|
|
78573
78601
|
/**
|
|
78574
|
-
* @param {import(
|
|
78602
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78575
78603
|
* @param {import("../geom/MultiPolygon.js").default} geometry Geometry.
|
|
78576
78604
|
* @private
|
|
78577
78605
|
*/
|
|
78578
|
-
Snap.prototype.
|
|
78606
|
+
Snap.prototype.segmentMultiPolygonGemetry_ = function (segments, geometry) {
|
|
78579
78607
|
var polygons = geometry.getCoordinates();
|
|
78580
78608
|
for (var k = 0, kk = polygons.length; k < kk; ++k) {
|
|
78581
78609
|
var rings = polygons[k];
|
|
78582
78610
|
for (var j = 0, jj = rings.length; j < jj; ++j) {
|
|
78583
78611
|
var coordinates = rings[j];
|
|
78584
78612
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78585
|
-
|
|
78586
|
-
var segmentData = {
|
|
78587
|
-
feature: feature,
|
|
78588
|
-
segment: segment,
|
|
78589
|
-
};
|
|
78590
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78613
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78591
78614
|
}
|
|
78592
78615
|
}
|
|
78593
78616
|
}
|
|
78594
78617
|
};
|
|
78595
78618
|
/**
|
|
78596
|
-
* @param {import(
|
|
78619
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78597
78620
|
* @param {import("../geom/Point.js").default} geometry Geometry.
|
|
78598
78621
|
* @private
|
|
78599
78622
|
*/
|
|
78600
|
-
Snap.prototype.
|
|
78601
|
-
|
|
78602
|
-
var segmentData = {
|
|
78603
|
-
feature: feature,
|
|
78604
|
-
segment: [coordinates, coordinates],
|
|
78605
|
-
};
|
|
78606
|
-
this.rBush_.insert(geometry.getExtent(), segmentData);
|
|
78623
|
+
Snap.prototype.segmentPointGemetry_ = function (segments, geometry) {
|
|
78624
|
+
segments.push([geometry.getCoordinates()]);
|
|
78607
78625
|
};
|
|
78608
78626
|
/**
|
|
78609
|
-
* @param {import(
|
|
78627
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78610
78628
|
* @param {import("../geom/Polygon.js").default} geometry Geometry.
|
|
78611
78629
|
* @private
|
|
78612
78630
|
*/
|
|
78613
|
-
Snap.prototype.
|
|
78631
|
+
Snap.prototype.segmentPolygonGemetry_ = function (segments, geometry) {
|
|
78614
78632
|
var rings = geometry.getCoordinates();
|
|
78615
78633
|
for (var j = 0, jj = rings.length; j < jj; ++j) {
|
|
78616
78634
|
var coordinates = rings[j];
|
|
78617
78635
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78618
|
-
|
|
78619
|
-
var segmentData = {
|
|
78620
|
-
feature: feature,
|
|
78621
|
-
segment: segment,
|
|
78622
|
-
};
|
|
78623
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78636
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78624
78637
|
}
|
|
78625
78638
|
}
|
|
78626
78639
|
};
|
|
@@ -79295,7 +79308,8 @@ var createNode$1 = function createNode(options, map) {
|
|
|
79295
79308
|
styleFn: options.styleFn,
|
|
79296
79309
|
favorite: false,
|
|
79297
79310
|
userDefaultLayer: false,
|
|
79298
|
-
selectAllLayers: options.selectAllLayers
|
|
79311
|
+
selectAllLayers: options.selectAllLayers,
|
|
79312
|
+
hoverText: options.hoverText
|
|
79299
79313
|
};
|
|
79300
79314
|
return node;
|
|
79301
79315
|
};
|
|
@@ -79804,7 +79818,10 @@ var mapLayersBundle = {
|
|
|
79804
79818
|
function formatLabeledUrl(url) {
|
|
79805
79819
|
var delim = url.indexOf("?") === -1 ? "?" : "&";
|
|
79806
79820
|
return "".concat(url).concat(delim, "label=true");
|
|
79807
|
-
}
|
|
79821
|
+
} // if (node.HoverText){
|
|
79822
|
+
// set the text popup to the hover text value
|
|
79823
|
+
// }
|
|
79824
|
+
|
|
79808
79825
|
|
|
79809
79826
|
if (node.mapLayer) {
|
|
79810
79827
|
node.labelsOn = labelsOn;
|
|
@@ -106316,7 +106333,7 @@ var config = {
|
|
|
106316
106333
|
};
|
|
106317
106334
|
|
|
106318
106335
|
var name = "@corpsmap/corpsmap";
|
|
106319
|
-
var version$1 = "3.0.
|
|
106336
|
+
var version$1 = "3.0.13";
|
|
106320
106337
|
var description = "CorpsMap as React Components";
|
|
106321
106338
|
var main = "index.js";
|
|
106322
106339
|
var scripts = {
|
|
@@ -106374,6 +106391,8 @@ var dependencies = {
|
|
|
106374
106391
|
async: "^2.6.1",
|
|
106375
106392
|
classnames: "^2.2.5",
|
|
106376
106393
|
css: "^2.2.4",
|
|
106394
|
+
decompress: "^4.2.1",
|
|
106395
|
+
"extract-files": "^12.0.0",
|
|
106377
106396
|
"file-saver": "^2.0.2",
|
|
106378
106397
|
"is-html": "^2.0.0",
|
|
106379
106398
|
jspdf: "^1.5.3",
|
|
@@ -106384,6 +106403,7 @@ var dependencies = {
|
|
|
106384
106403
|
"money-clip": "^3.0.1",
|
|
106385
106404
|
ol: "^6.4.3",
|
|
106386
106405
|
"ol-esri-style": "^2.0.7",
|
|
106406
|
+
"parse2-kmz": "^1.0.5",
|
|
106387
106407
|
proj4: "^2.4.4",
|
|
106388
106408
|
"react-data-grid": "^6.1.0",
|
|
106389
106409
|
"react-datepicker": "^2.9.6",
|
|
@@ -107216,20 +107236,38 @@ var TreeListFolder = /*#__PURE__*/function (_React$Component) {
|
|
|
107216
107236
|
key: "render",
|
|
107217
107237
|
value: function render() {
|
|
107218
107238
|
var _this$props = this.props,
|
|
107239
|
+
displayName = _this$props.displayName,
|
|
107219
107240
|
item = _this$props.item,
|
|
107220
107241
|
collapsed = _this$props.collapsed,
|
|
107221
107242
|
toggleCollapsed = _this$props.toggleCollapsed;
|
|
107243
|
+
var testText = "LAYER_X";
|
|
107244
|
+
var hoverText = testText ;
|
|
107245
|
+
var _this$props2 = this.props,
|
|
107246
|
+
isOver = _this$props2.isOver,
|
|
107247
|
+
theme = _this$props2.theme,
|
|
107248
|
+
mapZoom = _this$props2.mapZoom;
|
|
107249
|
+
var enabled = item.minzoom <= mapZoom && item.maxzoom >= mapZoom;
|
|
107250
|
+
var itemTxtStyle = enabled ? {
|
|
107251
|
+
color: "#666"
|
|
107252
|
+
} : {
|
|
107253
|
+
color: "#bbb"
|
|
107254
|
+
};
|
|
107222
107255
|
var iconClass = classnames({
|
|
107223
|
-
|
|
107256
|
+
mdi: true,
|
|
107224
107257
|
"mdi-folder-open": !collapsed,
|
|
107225
107258
|
"mdi-folder": collapsed
|
|
107226
107259
|
});
|
|
107227
107260
|
var itemClass = classnames({
|
|
107228
107261
|
"tree-list-item-hover": false
|
|
107229
107262
|
});
|
|
107263
|
+
var itemClassTest = classnames({
|
|
107264
|
+
"cm-checkbox-inline": true,
|
|
107265
|
+
"cm-checkbox-ellipsis": true,
|
|
107266
|
+
"tree-list-item-hover": isOver
|
|
107267
|
+
});
|
|
107230
107268
|
var divStyle = {
|
|
107231
|
-
display:
|
|
107232
|
-
paddingLeft:
|
|
107269
|
+
display: "inline-block",
|
|
107270
|
+
paddingLeft: "8px"
|
|
107233
107271
|
};
|
|
107234
107272
|
var count = item.children.length;
|
|
107235
107273
|
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("i", {
|
|
@@ -107237,14 +107275,18 @@ var TreeListFolder = /*#__PURE__*/function (_React$Component) {
|
|
|
107237
107275
|
onClick: toggleCollapsed,
|
|
107238
107276
|
className: iconClass,
|
|
107239
107277
|
style: {
|
|
107240
|
-
fontSize:
|
|
107241
|
-
cursor:
|
|
107278
|
+
fontSize: "16px",
|
|
107279
|
+
cursor: "pointer"
|
|
107242
107280
|
}
|
|
107243
107281
|
}), /*#__PURE__*/React$1__default.createElement("span", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
107244
107282
|
className: itemClass,
|
|
107245
107283
|
style: divStyle,
|
|
107246
107284
|
onDoubleClick: toggleCollapsed
|
|
107247
|
-
}, item.displayName), /*#__PURE__*/React$1__default.createElement("span", null,
|
|
107285
|
+
}, item.displayName), /*#__PURE__*/React$1__default.createElement("span", null, " (" + count + ")"), /*#__PURE__*/React$1__default.createElement("label", {
|
|
107286
|
+
className: itemClassTest,
|
|
107287
|
+
title: "".concat(hoverText, " ").concat(!enabled ? "- zoom in to enable" : ""),
|
|
107288
|
+
style: itemTxtStyle
|
|
107289
|
+
})));
|
|
107248
107290
|
}
|
|
107249
107291
|
}]);
|
|
107250
107292
|
|
|
@@ -132455,12 +132497,21 @@ var bundle = {
|
|
|
132455
132497
|
var u8arr = new Uint8Array(fileInfo);
|
|
132456
132498
|
var decodedFileInfo = utf8decoder.decode(u8arr);
|
|
132457
132499
|
console.log(decodedFileInfo); // read in our KML file and then parse it
|
|
132458
|
-
|
|
132459
|
-
|
|
132500
|
+
// const KMZ = new DOMParser().parseFromString(decodedFileInfo);
|
|
132501
|
+
// convert our kml to geojson and store the results
|
|
132460
132502
|
// const geojson = KMLConvert.kml(parsedKML);
|
|
132503
|
+
// const file1 = new File(["1"], "BuxtonNC.kmz", {
|
|
132504
|
+
// type: "text/plain",
|
|
132505
|
+
// });
|
|
132506
|
+
// const value = {
|
|
132507
|
+
// a: file1,
|
|
132508
|
+
// };
|
|
132509
|
+
// const { clone, files } = extractFiles(
|
|
132510
|
+
// value,
|
|
132511
|
+
// isExtractableFile,
|
|
132512
|
+
// "prefix"
|
|
132513
|
+
// );
|
|
132461
132514
|
// store.doAddDataGeojson(file.name, geojson);
|
|
132462
|
-
|
|
132463
|
-
console.log(parsedKMZ);
|
|
132464
132515
|
} catch (err) {
|
|
132465
132516
|
store.doDispatchNotification(err.message || "Error adding data");
|
|
132466
132517
|
}
|
|
@@ -157544,6 +157595,7 @@ var TreeListItemDataset = /*#__PURE__*/function (_React$Component) {
|
|
|
157544
157595
|
showLegend: false,
|
|
157545
157596
|
visible: props.item.visible,
|
|
157546
157597
|
displayName: props.item.displayName,
|
|
157598
|
+
hoverText: props.item.hoverText,
|
|
157547
157599
|
type: props.item.type,
|
|
157548
157600
|
expanded: false
|
|
157549
157601
|
};
|
|
@@ -157633,7 +157685,9 @@ var TreeListItemDataset = /*#__PURE__*/function (_React$Component) {
|
|
|
157633
157685
|
type = item.type,
|
|
157634
157686
|
identifyType = item.identifyType,
|
|
157635
157687
|
favorite = item.favorite,
|
|
157636
|
-
userDefaultLayer = item.userDefaultLayer
|
|
157688
|
+
userDefaultLayer = item.userDefaultLayer,
|
|
157689
|
+
hoverText = item.hoverText;
|
|
157690
|
+
var hoverTextDisplay = hoverText ? hoverText : displayName;
|
|
157637
157691
|
if (!item.passFilter) return null;
|
|
157638
157692
|
var enabled = item.minzoom <= mapZoom && item.maxzoom >= mapZoom;
|
|
157639
157693
|
var itemTxtStyle = enabled ? {
|
|
@@ -157667,7 +157721,7 @@ var TreeListItemDataset = /*#__PURE__*/function (_React$Component) {
|
|
|
157667
157721
|
title: "More Info"
|
|
157668
157722
|
}))), /*#__PURE__*/React$1__default.createElement("label", {
|
|
157669
157723
|
className: itemClass,
|
|
157670
|
-
title: "".concat(
|
|
157724
|
+
title: "".concat(hoverTextDisplay, " ").concat(!enabled ? "- zoom in to enable" : ""),
|
|
157671
157725
|
style: itemTxtStyle
|
|
157672
157726
|
}, /*#__PURE__*/React$1__default.createElement("input", {
|
|
157673
157727
|
disabled: !enabled,
|
|
@@ -160920,7 +160974,7 @@ var LayerSubpanel = function LayerSubpanel(props) {
|
|
|
160920
160974
|
});
|
|
160921
160975
|
var listTop = primaryPanelShowClose ? 70 : 30;
|
|
160922
160976
|
var showDownload = treeViewDownloadEnabled && treeViewSelectedItem.identifyType === "MAP" ? true : false;
|
|
160923
|
-
var url = treeViewSelectedItem.identifyType == "MAP" ? "".concat(treeViewSelectedItem.url, "
|
|
160977
|
+
var url = treeViewSelectedItem.identifyType == "MAP" ? "".concat(treeViewSelectedItem.url, "?&service=WMS&version=1.3.0&request=GetCapabilities&layers=").concat(treeViewSelectedItem.layerList, "&query_layers=").concat(treeViewSelectedItem.layerList) : treeViewSelectedItem.url;
|
|
160924
160978
|
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("span", {
|
|
160925
160979
|
onClick: doRenderTreeView,
|
|
160926
160980
|
title: "Go back",
|
|
@@ -161547,7 +161601,7 @@ var treeViewDownload = {
|
|
|
161547
161601
|
var url = null;
|
|
161548
161602
|
|
|
161549
161603
|
if (layer.identifyType === "MAP") {
|
|
161550
|
-
var params = "
|
|
161604
|
+
var params = "?&service=WFS&version=1.1.0&request=GetFeature&typeName=".concat(layer.layerList, "&outputformat=").concat(format, "&outfile=").concat(layer.layerList);
|
|
161551
161605
|
url = "".concat(layer.url).concat(params);
|
|
161552
161606
|
}
|
|
161553
161607
|
|
|
@@ -161622,7 +161676,7 @@ var treeViewDownload = {
|
|
|
161622
161676
|
|
|
161623
161677
|
switch (layer.identifyType) {
|
|
161624
161678
|
case "MAP":
|
|
161625
|
-
var params = "
|
|
161679
|
+
var params = "?&service=WFS&version=1.1.0&request=GetFeature&typeName=".concat(layer.layerList, "&outputformat=").concat(format, "&outfile=").concat(layer.layerList);
|
|
161626
161680
|
url = "".concat(layer.url).concat(params);
|
|
161627
161681
|
break;
|
|
161628
161682
|
}
|