@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/dev.js
CHANGED
|
@@ -28773,7 +28773,7 @@ function getUid(obj) {
|
|
|
28773
28773
|
* OpenLayers version.
|
|
28774
28774
|
* @type {string}
|
|
28775
28775
|
*/
|
|
28776
|
-
var VERSION = '6.
|
|
28776
|
+
var VERSION = '6.14.1';
|
|
28777
28777
|
|
|
28778
28778
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
28779
28779
|
var extendStatics = function (d, b) {
|
|
@@ -31146,6 +31146,13 @@ var FIREFOX = ua.indexOf('firefox') !== -1;
|
|
|
31146
31146
|
* @type {boolean}
|
|
31147
31147
|
*/
|
|
31148
31148
|
var SAFARI = ua.indexOf('safari') !== -1 && ua.indexOf('chrom') == -1;
|
|
31149
|
+
/**
|
|
31150
|
+
* https://bugs.webkit.org/show_bug.cgi?id=237906
|
|
31151
|
+
* @type {boolean}
|
|
31152
|
+
*/
|
|
31153
|
+
var SAFARI_BUG_237906 = SAFARI &&
|
|
31154
|
+
!!(ua.indexOf('version/15.4') >= 0 ||
|
|
31155
|
+
ua.match(/cpu (os|iphone os) 15_4 like mac os x/));
|
|
31149
31156
|
/**
|
|
31150
31157
|
* User agent string says we are dealing with a WebKit engine.
|
|
31151
31158
|
* @type {boolean}
|
|
@@ -36099,7 +36106,7 @@ function fromUserCoordinate(coordinate, destProjection) {
|
|
|
36099
36106
|
coordinate[1] <= 90) {
|
|
36100
36107
|
showCoordinateWarning = false;
|
|
36101
36108
|
// eslint-disable-next-line no-console
|
|
36102
|
-
console.warn('Call useGeographic() ol/proj once to work with [longitude, latitude] coordinates.');
|
|
36109
|
+
console.warn('Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.');
|
|
36103
36110
|
}
|
|
36104
36111
|
return coordinate;
|
|
36105
36112
|
}
|
|
@@ -44101,7 +44108,6 @@ var __extends$s = (undefined && undefined.__extends) || (function () {
|
|
|
44101
44108
|
* @typedef {Object} State
|
|
44102
44109
|
* @property {import("./Layer.js").default} layer Layer.
|
|
44103
44110
|
* @property {number} opacity Opacity, the value is rounded to two digits to appear after the decimal point.
|
|
44104
|
-
* @property {import("../source/Source.js").default|undefined} source Source being rendered (only for multi-source layers).
|
|
44105
44111
|
* @property {boolean} visible Visible.
|
|
44106
44112
|
* @property {boolean} managed Managed.
|
|
44107
44113
|
* @property {import("../extent.js").Extent} [extent] Extent.
|
|
@@ -44371,7 +44377,7 @@ var Layer = /** @class */ (function (_super) {
|
|
|
44371
44377
|
};
|
|
44372
44378
|
/**
|
|
44373
44379
|
* Get the renderer for this layer.
|
|
44374
|
-
* @return {RendererType} The layer renderer.
|
|
44380
|
+
* @return {RendererType|null} The layer renderer.
|
|
44375
44381
|
*/
|
|
44376
44382
|
Layer.prototype.getRenderer = function () {
|
|
44377
44383
|
if (!this.renderer_) {
|
|
@@ -46059,11 +46065,13 @@ var CanvasImageLayerRenderer = /** @class */ (function (_super) {
|
|
|
46059
46065
|
if (imageSource) {
|
|
46060
46066
|
var projection = viewState.projection;
|
|
46061
46067
|
var image = imageSource.getImage(renderedExtent, viewResolution, pixelRatio, projection);
|
|
46062
|
-
if (image
|
|
46063
|
-
this.
|
|
46064
|
-
|
|
46065
|
-
|
|
46066
|
-
|
|
46068
|
+
if (image) {
|
|
46069
|
+
if (this.loadImage(image)) {
|
|
46070
|
+
this.image_ = image;
|
|
46071
|
+
}
|
|
46072
|
+
else if (image.getState() === ImageState.EMPTY) {
|
|
46073
|
+
this.image_ = null;
|
|
46074
|
+
}
|
|
46067
46075
|
}
|
|
46068
46076
|
}
|
|
46069
46077
|
else {
|
|
@@ -53135,7 +53143,7 @@ var Text = /** @class */ (function () {
|
|
|
53135
53143
|
/**
|
|
53136
53144
|
* Set the text.
|
|
53137
53145
|
*
|
|
53138
|
-
* @param {string|undefined} text Text.
|
|
53146
|
+
* @param {string|Array<string>|undefined} text Text.
|
|
53139
53147
|
* @api
|
|
53140
53148
|
*/
|
|
53141
53149
|
Text.prototype.setText = function (text) {
|
|
@@ -66779,9 +66787,21 @@ var MapEventType = {
|
|
|
66779
66787
|
* @api
|
|
66780
66788
|
*/
|
|
66781
66789
|
MOVEEND: 'moveend',
|
|
66790
|
+
/**
|
|
66791
|
+
* Triggered when loading of additional map data (tiles, images, features) starts.
|
|
66792
|
+
* @event module:ol/render/Event~RenderEvent#loadstart
|
|
66793
|
+
* @api
|
|
66794
|
+
*/
|
|
66795
|
+
LOADSTART: 'loadstart',
|
|
66796
|
+
/**
|
|
66797
|
+
* Triggered when loading of additional map data has completed.
|
|
66798
|
+
* @event module:ol/render/Event~RenderEvent#loadend
|
|
66799
|
+
* @api
|
|
66800
|
+
*/
|
|
66801
|
+
LOADEND: 'loadend',
|
|
66782
66802
|
};
|
|
66783
66803
|
/***
|
|
66784
|
-
* @typedef {'postrender'|'movestart'|'moveend'} Types
|
|
66804
|
+
* @typedef {'postrender'|'movestart'|'moveend'|'loadstart'|'loadend'} Types
|
|
66785
66805
|
*/
|
|
66786
66806
|
|
|
66787
66807
|
/**
|
|
@@ -67865,15 +67885,15 @@ var View = /** @class */ (function (_super) {
|
|
|
67865
67885
|
* @type {import("./coordinate.js").Coordinate|undefined}
|
|
67866
67886
|
*/
|
|
67867
67887
|
_this.cancelAnchor_ = undefined;
|
|
67888
|
+
if (options.projection) {
|
|
67889
|
+
disableCoordinateWarning();
|
|
67890
|
+
}
|
|
67868
67891
|
if (options.center) {
|
|
67869
67892
|
options.center = fromUserCoordinate(options.center, _this.projection_);
|
|
67870
67893
|
}
|
|
67871
67894
|
if (options.extent) {
|
|
67872
67895
|
options.extent = fromUserExtent(options.extent, _this.projection_);
|
|
67873
67896
|
}
|
|
67874
|
-
if (options.projection) {
|
|
67875
|
-
disableCoordinateWarning();
|
|
67876
|
-
}
|
|
67877
67897
|
_this.applyOptions_(options);
|
|
67878
67898
|
return _this;
|
|
67879
67899
|
}
|
|
@@ -69492,9 +69512,14 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69492
69512
|
var optionsInternal = createOptionsInternal(options);
|
|
69493
69513
|
/**
|
|
69494
69514
|
* @private
|
|
69495
|
-
* @type {boolean}
|
|
69515
|
+
* @type {boolean|undefined}
|
|
69496
69516
|
*/
|
|
69497
69517
|
_this.renderComplete_;
|
|
69518
|
+
/**
|
|
69519
|
+
* @private
|
|
69520
|
+
* @type {boolean}
|
|
69521
|
+
*/
|
|
69522
|
+
_this.loaded_ = true;
|
|
69498
69523
|
/** @private */
|
|
69499
69524
|
_this.boundHandleBrowserEvent_ = _this.handleBrowserEvent.bind(_this);
|
|
69500
69525
|
/**
|
|
@@ -69646,7 +69671,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69646
69671
|
*/
|
|
69647
69672
|
_this.overlayIdIndex_ = {};
|
|
69648
69673
|
/**
|
|
69649
|
-
* @type {import("./renderer/Map.js").default}
|
|
69674
|
+
* @type {import("./renderer/Map.js").default|null}
|
|
69650
69675
|
* @private
|
|
69651
69676
|
*/
|
|
69652
69677
|
_this.renderer_ = null;
|
|
@@ -69832,7 +69857,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69832
69857
|
* @api
|
|
69833
69858
|
*/
|
|
69834
69859
|
PluggableMap.prototype.forEachFeatureAtPixel = function (pixel, callback, opt_options) {
|
|
69835
|
-
if (!this.frameState_) {
|
|
69860
|
+
if (!this.frameState_ || !this.renderer_) {
|
|
69836
69861
|
return;
|
|
69837
69862
|
}
|
|
69838
69863
|
var coordinate = this.getCoordinateFromPixelInternal(pixel);
|
|
@@ -69906,7 +69931,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69906
69931
|
* @deprecated
|
|
69907
69932
|
*/
|
|
69908
69933
|
PluggableMap.prototype.forEachLayerAtPixel = function (pixel, callback, opt_options) {
|
|
69909
|
-
if (!this.frameState_) {
|
|
69934
|
+
if (!this.frameState_ || !this.renderer_) {
|
|
69910
69935
|
return;
|
|
69911
69936
|
}
|
|
69912
69937
|
var options = opt_options || {};
|
|
@@ -69923,7 +69948,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
69923
69948
|
* @api
|
|
69924
69949
|
*/
|
|
69925
69950
|
PluggableMap.prototype.hasFeatureAtPixel = function (pixel, opt_options) {
|
|
69926
|
-
if (!this.frameState_) {
|
|
69951
|
+
if (!this.frameState_ || !this.renderer_) {
|
|
69927
69952
|
return false;
|
|
69928
69953
|
}
|
|
69929
69954
|
var coordinate = this.getCoordinateFromPixelInternal(pixel);
|
|
@@ -70103,11 +70128,15 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70103
70128
|
PluggableMap.prototype.getLoadingOrNotReady = function () {
|
|
70104
70129
|
var layerStatesArray = this.getLayerGroup().getLayerStatesArray();
|
|
70105
70130
|
for (var i = 0, ii = layerStatesArray.length; i < ii; ++i) {
|
|
70106
|
-
var
|
|
70107
|
-
if (!
|
|
70131
|
+
var state = layerStatesArray[i];
|
|
70132
|
+
if (!state.visible) {
|
|
70133
|
+
continue;
|
|
70134
|
+
}
|
|
70135
|
+
var renderer = state.layer.getRenderer();
|
|
70136
|
+
if (renderer && !renderer.ready) {
|
|
70108
70137
|
return true;
|
|
70109
70138
|
}
|
|
70110
|
-
var source = /** @type {import("./layer/Layer.js").default} */ (layer).getSource();
|
|
70139
|
+
var source = /** @type {import("./layer/Layer.js").default} */ (state.layer).getSource();
|
|
70111
70140
|
if (source && source.loading) {
|
|
70112
70141
|
return true;
|
|
70113
70142
|
}
|
|
@@ -70142,7 +70171,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70142
70171
|
};
|
|
70143
70172
|
/**
|
|
70144
70173
|
* Get the map renderer.
|
|
70145
|
-
* @return {import("./renderer/Map.js").default} Renderer
|
|
70174
|
+
* @return {import("./renderer/Map.js").default|null} Renderer
|
|
70146
70175
|
*/
|
|
70147
70176
|
PluggableMap.prototype.getRenderer = function () {
|
|
70148
70177
|
return this.renderer_;
|
|
@@ -70299,11 +70328,20 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70299
70328
|
tileQueue.loadMoreTiles(maxTotalLoading, maxNewLoads);
|
|
70300
70329
|
}
|
|
70301
70330
|
}
|
|
70302
|
-
if (frameState &&
|
|
70303
|
-
this.
|
|
70304
|
-
|
|
70305
|
-
|
|
70306
|
-
|
|
70331
|
+
if (frameState && this.renderer_ && !frameState.animate) {
|
|
70332
|
+
if (this.renderComplete_ === true) {
|
|
70333
|
+
if (this.hasListener(RenderEventType.RENDERCOMPLETE)) {
|
|
70334
|
+
this.renderer_.dispatchRenderEvent(RenderEventType.RENDERCOMPLETE, frameState);
|
|
70335
|
+
}
|
|
70336
|
+
if (this.loaded_ === false) {
|
|
70337
|
+
this.loaded_ = true;
|
|
70338
|
+
this.dispatchEvent(new MapEvent(MapEventType.LOADEND, this, frameState));
|
|
70339
|
+
}
|
|
70340
|
+
}
|
|
70341
|
+
else if (this.loaded_ === true) {
|
|
70342
|
+
this.loaded_ = false;
|
|
70343
|
+
this.dispatchEvent(new MapEvent(MapEventType.LOADSTART, this, frameState));
|
|
70344
|
+
}
|
|
70307
70345
|
}
|
|
70308
70346
|
var postRenderFunctions = this.postRenderFunctions_;
|
|
70309
70347
|
for (var i = 0, ii = postRenderFunctions.length; i < ii; ++i) {
|
|
@@ -70559,7 +70597,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70559
70597
|
}
|
|
70560
70598
|
}
|
|
70561
70599
|
this.frameState_ = frameState;
|
|
70562
|
-
this.renderer_.renderFrame(frameState);
|
|
70600
|
+
/** @type {import("./renderer/Map.js").default} */ (this.renderer_).renderFrame(frameState);
|
|
70563
70601
|
if (frameState) {
|
|
70564
70602
|
if (frameState.animate) {
|
|
70565
70603
|
this.render();
|
|
@@ -70585,9 +70623,13 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
70585
70623
|
}
|
|
70586
70624
|
this.dispatchEvent(new MapEvent(MapEventType.POSTRENDER, this, frameState));
|
|
70587
70625
|
this.renderComplete_ =
|
|
70588
|
-
|
|
70589
|
-
|
|
70590
|
-
|
|
70626
|
+
this.hasListener(MapEventType.LOADSTART) ||
|
|
70627
|
+
this.hasListener(MapEventType.LOADEND) ||
|
|
70628
|
+
this.hasListener(RenderEventType.RENDERCOMPLETE)
|
|
70629
|
+
? !this.tileQueue_.getTilesLoading() &&
|
|
70630
|
+
!this.tileQueue_.getCount() &&
|
|
70631
|
+
!this.getLoadingOrNotReady()
|
|
70632
|
+
: undefined;
|
|
70591
70633
|
if (!this.postRenderTimeoutHandle_) {
|
|
70592
70634
|
this.postRenderTimeoutHandle_ = setTimeout(function () {
|
|
70593
70635
|
_this.postRenderTimeoutHandle_ = undefined;
|
|
@@ -78146,7 +78188,6 @@ var __extends$1v = (undefined && undefined.__extends) || (function () {
|
|
|
78146
78188
|
})();
|
|
78147
78189
|
/**
|
|
78148
78190
|
* @typedef {Object} Result
|
|
78149
|
-
* @property {boolean} snapped Snapped.
|
|
78150
78191
|
* @property {import("../coordinate.js").Coordinate|null} vertex Vertex.
|
|
78151
78192
|
* @property {import("../pixel.js").Pixel|null} vertexPixel VertexPixel.
|
|
78152
78193
|
*/
|
|
@@ -78280,18 +78321,18 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78280
78321
|
/**
|
|
78281
78322
|
* @const
|
|
78282
78323
|
* @private
|
|
78283
|
-
* @type {Object<string, function(import(
|
|
78284
|
-
*/
|
|
78285
|
-
_this.
|
|
78286
|
-
'Point': _this.
|
|
78287
|
-
'LineString': _this.
|
|
78288
|
-
'LinearRing': _this.
|
|
78289
|
-
'Polygon': _this.
|
|
78290
|
-
'MultiPoint': _this.
|
|
78291
|
-
'MultiLineString': _this.
|
|
78292
|
-
'MultiPolygon': _this.
|
|
78293
|
-
'GeometryCollection': _this.
|
|
78294
|
-
'Circle': _this.
|
|
78324
|
+
* @type {Object<string, function(Array<Array<import('../coordinate.js').Coordinate>>, import("../geom/Geometry.js").default): void>}
|
|
78325
|
+
*/
|
|
78326
|
+
_this.GEOMETRY_SEGMENTERS_ = {
|
|
78327
|
+
'Point': _this.segmentPointGemetry_.bind(_this),
|
|
78328
|
+
'LineString': _this.segmentLineStringGemetry_.bind(_this),
|
|
78329
|
+
'LinearRing': _this.segmentLineStringGemetry_.bind(_this),
|
|
78330
|
+
'Polygon': _this.segmentPolygonGemetry_.bind(_this),
|
|
78331
|
+
'MultiPoint': _this.segmentMultiPointGemetry_.bind(_this),
|
|
78332
|
+
'MultiLineString': _this.segmentMultiLineStringGemetry_.bind(_this),
|
|
78333
|
+
'MultiPolygon': _this.segmentMultiPolygonGemetry_.bind(_this),
|
|
78334
|
+
'GeometryCollection': _this.segmentGeometryCollectionGemetry_.bind(_this),
|
|
78335
|
+
'Circle': _this.segmentCircleGemetry_.bind(_this),
|
|
78295
78336
|
};
|
|
78296
78337
|
return _this;
|
|
78297
78338
|
}
|
|
@@ -78307,10 +78348,26 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78307
78348
|
var feature_uid = getUid(feature);
|
|
78308
78349
|
var geometry = feature.getGeometry();
|
|
78309
78350
|
if (geometry) {
|
|
78310
|
-
var
|
|
78311
|
-
if (
|
|
78351
|
+
var segmenter = this.GEOMETRY_SEGMENTERS_[geometry.getType()];
|
|
78352
|
+
if (segmenter) {
|
|
78312
78353
|
this.indexedFeaturesExtents_[feature_uid] = geometry.getExtent(createEmpty());
|
|
78313
|
-
|
|
78354
|
+
var segments =
|
|
78355
|
+
/** @type {Array<Array<import('../coordinate.js').Coordinate>>} */ ([]);
|
|
78356
|
+
segmenter(segments, geometry);
|
|
78357
|
+
if (segments.length === 1) {
|
|
78358
|
+
this.rBush_.insert(boundingExtent(segments[0]), {
|
|
78359
|
+
feature: feature,
|
|
78360
|
+
segment: segments[0],
|
|
78361
|
+
});
|
|
78362
|
+
}
|
|
78363
|
+
else if (segments.length > 1) {
|
|
78364
|
+
var extents = segments.map(function (s) { return boundingExtent(s); });
|
|
78365
|
+
var segmentsData = segments.map(function (segment) { return ({
|
|
78366
|
+
feature: feature,
|
|
78367
|
+
segment: segment,
|
|
78368
|
+
}); });
|
|
78369
|
+
this.rBush_.load(extents, segmentsData);
|
|
78370
|
+
}
|
|
78314
78371
|
}
|
|
78315
78372
|
}
|
|
78316
78373
|
if (register) {
|
|
@@ -78351,7 +78408,7 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78351
78408
|
*/
|
|
78352
78409
|
Snap.prototype.handleEvent = function (evt) {
|
|
78353
78410
|
var result = this.snapTo(evt.pixel, evt.coordinate, evt.map);
|
|
78354
|
-
if (result
|
|
78411
|
+
if (result) {
|
|
78355
78412
|
evt.coordinate = result.vertex.slice(0, 2);
|
|
78356
78413
|
evt.pixel = result.vertexPixel;
|
|
78357
78414
|
}
|
|
@@ -78460,7 +78517,7 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78460
78517
|
* @param {import("../pixel.js").Pixel} pixel Pixel
|
|
78461
78518
|
* @param {import("../coordinate.js").Coordinate} pixelCoordinate Coordinate
|
|
78462
78519
|
* @param {import("../PluggableMap.js").default} map Map.
|
|
78463
|
-
* @return {Result} Snap result
|
|
78520
|
+
* @return {Result|null} Snap result
|
|
78464
78521
|
*/
|
|
78465
78522
|
Snap.prototype.snapTo = function (pixel, pixelCoordinate, map) {
|
|
78466
78523
|
var lowerLeft = map.getCoordinateFromPixel([
|
|
@@ -78473,96 +78530,88 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78473
78530
|
]);
|
|
78474
78531
|
var box = boundingExtent([lowerLeft, upperRight]);
|
|
78475
78532
|
var segments = this.rBush_.getInExtent(box);
|
|
78476
|
-
|
|
78477
|
-
if (
|
|
78478
|
-
|
|
78479
|
-
return segment.feature.getGeometry().getType() !== GeometryType.CIRCLE;
|
|
78480
|
-
});
|
|
78481
|
-
}
|
|
78482
|
-
var snapped = false;
|
|
78483
|
-
var vertex = null;
|
|
78484
|
-
var vertexPixel = null;
|
|
78485
|
-
if (segments.length === 0) {
|
|
78486
|
-
return {
|
|
78487
|
-
snapped: snapped,
|
|
78488
|
-
vertex: vertex,
|
|
78489
|
-
vertexPixel: vertexPixel,
|
|
78490
|
-
};
|
|
78533
|
+
var segmentsLength = segments.length;
|
|
78534
|
+
if (segmentsLength === 0) {
|
|
78535
|
+
return null;
|
|
78491
78536
|
}
|
|
78492
78537
|
var projection = map.getView().getProjection();
|
|
78493
78538
|
var projectedCoordinate = fromUserCoordinate(pixelCoordinate);
|
|
78494
|
-
var
|
|
78539
|
+
var closestVertex;
|
|
78495
78540
|
var minSquaredDistance = Infinity;
|
|
78496
|
-
|
|
78497
|
-
|
|
78498
|
-
|
|
78499
|
-
|
|
78500
|
-
|
|
78501
|
-
|
|
78502
|
-
|
|
78503
|
-
|
|
78504
|
-
|
|
78505
|
-
|
|
78506
|
-
|
|
78507
|
-
|
|
78508
|
-
|
|
78509
|
-
var pixel2 = map.getPixelFromCoordinate(closestSegment[1]);
|
|
78510
|
-
var squaredDist1 = squaredDistance$1(pixel, pixel1);
|
|
78511
|
-
var squaredDist2 = squaredDistance$1(pixel, pixel2);
|
|
78512
|
-
var dist = Math.sqrt(Math.min(squaredDist1, squaredDist2));
|
|
78513
|
-
if (dist <= this.pixelTolerance_) {
|
|
78514
|
-
snapped = true;
|
|
78515
|
-
vertex =
|
|
78516
|
-
squaredDist1 > squaredDist2 ? closestSegment[1] : closestSegment[0];
|
|
78517
|
-
vertexPixel = map.getPixelFromCoordinate(vertex);
|
|
78518
|
-
}
|
|
78519
|
-
}
|
|
78520
|
-
else if (this.edge_) {
|
|
78521
|
-
var isCircle = closestSegmentData.feature.getGeometry().getType() ===
|
|
78522
|
-
GeometryType.CIRCLE;
|
|
78523
|
-
if (isCircle) {
|
|
78524
|
-
var circleGeometry = closestSegmentData.feature.getGeometry();
|
|
78525
|
-
var userProjection = getUserProjection();
|
|
78526
|
-
if (userProjection) {
|
|
78527
|
-
circleGeometry = circleGeometry
|
|
78528
|
-
.clone()
|
|
78529
|
-
.transform(userProjection, projection);
|
|
78541
|
+
var squaredPixelTolerance = this.pixelTolerance_ * this.pixelTolerance_;
|
|
78542
|
+
var getResult = function () {
|
|
78543
|
+
if (closestVertex) {
|
|
78544
|
+
var vertexPixel = map.getPixelFromCoordinate(closestVertex);
|
|
78545
|
+
var squaredPixelDistance = squaredDistance$1(pixel, vertexPixel);
|
|
78546
|
+
if (squaredPixelDistance <= squaredPixelTolerance) {
|
|
78547
|
+
return {
|
|
78548
|
+
vertex: closestVertex,
|
|
78549
|
+
vertexPixel: [
|
|
78550
|
+
Math.round(vertexPixel[0]),
|
|
78551
|
+
Math.round(vertexPixel[1]),
|
|
78552
|
+
],
|
|
78553
|
+
};
|
|
78530
78554
|
}
|
|
78531
|
-
vertex = toUserCoordinate(closestOnCircle(projectedCoordinate,
|
|
78532
|
-
/** @type {import("../geom/Circle.js").default} */ (circleGeometry)));
|
|
78533
78555
|
}
|
|
78534
|
-
|
|
78535
|
-
|
|
78536
|
-
|
|
78537
|
-
|
|
78538
|
-
|
|
78539
|
-
|
|
78540
|
-
|
|
78541
|
-
|
|
78542
|
-
|
|
78543
|
-
|
|
78544
|
-
|
|
78545
|
-
|
|
78546
|
-
|
|
78547
|
-
|
|
78548
|
-
if (dist <= this.pixelTolerance_) {
|
|
78549
|
-
vertex =
|
|
78550
|
-
squaredDist1 > squaredDist2
|
|
78551
|
-
? closestSegment[1]
|
|
78552
|
-
: closestSegment[0];
|
|
78553
|
-
vertexPixel = map.getPixelFromCoordinate(vertex);
|
|
78554
|
-
}
|
|
78556
|
+
return null;
|
|
78557
|
+
};
|
|
78558
|
+
if (this.vertex_) {
|
|
78559
|
+
for (var i = 0; i < segmentsLength; ++i) {
|
|
78560
|
+
var segmentData = segments[i];
|
|
78561
|
+
if (segmentData.feature.getGeometry().getType() !== GeometryType.CIRCLE) {
|
|
78562
|
+
segmentData.segment.forEach(function (vertex) {
|
|
78563
|
+
var tempVertexCoord = fromUserCoordinate(vertex);
|
|
78564
|
+
var delta = squaredDistance$1(projectedCoordinate, tempVertexCoord);
|
|
78565
|
+
if (delta < minSquaredDistance) {
|
|
78566
|
+
closestVertex = vertex;
|
|
78567
|
+
minSquaredDistance = delta;
|
|
78568
|
+
}
|
|
78569
|
+
});
|
|
78555
78570
|
}
|
|
78556
78571
|
}
|
|
78572
|
+
var result = getResult();
|
|
78573
|
+
if (result) {
|
|
78574
|
+
return result;
|
|
78575
|
+
}
|
|
78557
78576
|
}
|
|
78558
|
-
if (
|
|
78559
|
-
|
|
78577
|
+
if (this.edge_) {
|
|
78578
|
+
for (var i = 0; i < segmentsLength; ++i) {
|
|
78579
|
+
var vertex = null;
|
|
78580
|
+
var segmentData = segments[i];
|
|
78581
|
+
if (segmentData.feature.getGeometry().getType() === GeometryType.CIRCLE) {
|
|
78582
|
+
var circleGeometry = segmentData.feature.getGeometry();
|
|
78583
|
+
var userProjection = getUserProjection();
|
|
78584
|
+
if (userProjection) {
|
|
78585
|
+
circleGeometry = circleGeometry
|
|
78586
|
+
.clone()
|
|
78587
|
+
.transform(userProjection, projection);
|
|
78588
|
+
}
|
|
78589
|
+
vertex = toUserCoordinate(closestOnCircle(projectedCoordinate,
|
|
78590
|
+
/** @type {import("../geom/Circle.js").default} */ (circleGeometry)));
|
|
78591
|
+
}
|
|
78592
|
+
else {
|
|
78593
|
+
var _a = segmentData.segment, segmentStart = _a[0], segmentEnd = _a[1];
|
|
78594
|
+
// points have only one coordinate
|
|
78595
|
+
if (segmentEnd) {
|
|
78596
|
+
tempSegment$1[0] = fromUserCoordinate(segmentStart);
|
|
78597
|
+
tempSegment$1[1] = fromUserCoordinate(segmentEnd);
|
|
78598
|
+
vertex = closestOnSegment(projectedCoordinate, tempSegment$1);
|
|
78599
|
+
}
|
|
78600
|
+
}
|
|
78601
|
+
if (vertex) {
|
|
78602
|
+
var delta = squaredDistance$1(projectedCoordinate, vertex);
|
|
78603
|
+
if (delta < minSquaredDistance) {
|
|
78604
|
+
closestVertex = vertex;
|
|
78605
|
+
minSquaredDistance = delta;
|
|
78606
|
+
}
|
|
78607
|
+
}
|
|
78608
|
+
}
|
|
78609
|
+
var result = getResult();
|
|
78610
|
+
if (result) {
|
|
78611
|
+
return result;
|
|
78612
|
+
}
|
|
78560
78613
|
}
|
|
78561
|
-
return
|
|
78562
|
-
snapped: snapped,
|
|
78563
|
-
vertex: vertex,
|
|
78564
|
-
vertexPixel: vertexPixel,
|
|
78565
|
-
};
|
|
78614
|
+
return null;
|
|
78566
78615
|
};
|
|
78567
78616
|
/**
|
|
78568
78617
|
* @param {import("../Feature.js").default} feature Feature
|
|
@@ -78573,140 +78622,104 @@ var Snap = /** @class */ (function (_super) {
|
|
|
78573
78622
|
this.addFeature(feature, false);
|
|
78574
78623
|
};
|
|
78575
78624
|
/**
|
|
78576
|
-
* @param {import(
|
|
78625
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78577
78626
|
* @param {import("../geom/Circle.js").default} geometry Geometry.
|
|
78578
78627
|
* @private
|
|
78579
78628
|
*/
|
|
78580
|
-
Snap.prototype.
|
|
78629
|
+
Snap.prototype.segmentCircleGemetry_ = function (segments, geometry) {
|
|
78581
78630
|
var projection = this.getMap().getView().getProjection();
|
|
78582
78631
|
var circleGeometry = geometry;
|
|
78583
78632
|
var polygon = fromCircle(circleGeometry);
|
|
78584
78633
|
var coordinates = polygon.getCoordinates()[0];
|
|
78585
78634
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78586
|
-
|
|
78587
|
-
var segmentData = {
|
|
78588
|
-
feature: feature,
|
|
78589
|
-
segment: segment,
|
|
78590
|
-
};
|
|
78591
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78635
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78592
78636
|
}
|
|
78593
78637
|
};
|
|
78594
78638
|
/**
|
|
78595
|
-
* @param {import(
|
|
78639
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78596
78640
|
* @param {import("../geom/GeometryCollection.js").default} geometry Geometry.
|
|
78597
78641
|
* @private
|
|
78598
78642
|
*/
|
|
78599
|
-
Snap.prototype.
|
|
78643
|
+
Snap.prototype.segmentGeometryCollectionGemetry_ = function (segments, geometry) {
|
|
78600
78644
|
var geometries = geometry.getGeometriesArray();
|
|
78601
78645
|
for (var i = 0; i < geometries.length; ++i) {
|
|
78602
|
-
var
|
|
78603
|
-
if (
|
|
78604
|
-
|
|
78646
|
+
var segmenter = this.GEOMETRY_SEGMENTERS_[geometries[i].getType()];
|
|
78647
|
+
if (segmenter) {
|
|
78648
|
+
segmenter(segments, geometries[i]);
|
|
78605
78649
|
}
|
|
78606
78650
|
}
|
|
78607
78651
|
};
|
|
78608
78652
|
/**
|
|
78609
|
-
* @param {import(
|
|
78653
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78610
78654
|
* @param {import("../geom/LineString.js").default} geometry Geometry.
|
|
78611
78655
|
* @private
|
|
78612
78656
|
*/
|
|
78613
|
-
Snap.prototype.
|
|
78657
|
+
Snap.prototype.segmentLineStringGemetry_ = function (segments, geometry) {
|
|
78614
78658
|
var coordinates = geometry.getCoordinates();
|
|
78615
78659
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78616
|
-
|
|
78617
|
-
var segmentData = {
|
|
78618
|
-
feature: feature,
|
|
78619
|
-
segment: segment,
|
|
78620
|
-
};
|
|
78621
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78660
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78622
78661
|
}
|
|
78623
78662
|
};
|
|
78624
78663
|
/**
|
|
78625
|
-
* @param {import(
|
|
78664
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78626
78665
|
* @param {import("../geom/MultiLineString.js").default} geometry Geometry.
|
|
78627
78666
|
* @private
|
|
78628
78667
|
*/
|
|
78629
|
-
Snap.prototype.
|
|
78668
|
+
Snap.prototype.segmentMultiLineStringGemetry_ = function (segments, geometry) {
|
|
78630
78669
|
var lines = geometry.getCoordinates();
|
|
78631
78670
|
for (var j = 0, jj = lines.length; j < jj; ++j) {
|
|
78632
78671
|
var coordinates = lines[j];
|
|
78633
78672
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78634
|
-
|
|
78635
|
-
var segmentData = {
|
|
78636
|
-
feature: feature,
|
|
78637
|
-
segment: segment,
|
|
78638
|
-
};
|
|
78639
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78673
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78640
78674
|
}
|
|
78641
78675
|
}
|
|
78642
78676
|
};
|
|
78643
78677
|
/**
|
|
78644
|
-
* @param {import(
|
|
78678
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78645
78679
|
* @param {import("../geom/MultiPoint.js").default} geometry Geometry.
|
|
78646
78680
|
* @private
|
|
78647
78681
|
*/
|
|
78648
|
-
Snap.prototype.
|
|
78649
|
-
|
|
78650
|
-
|
|
78651
|
-
|
|
78652
|
-
var segmentData = {
|
|
78653
|
-
feature: feature,
|
|
78654
|
-
segment: [coordinates, coordinates],
|
|
78655
|
-
};
|
|
78656
|
-
this.rBush_.insert(geometry.getExtent(), segmentData);
|
|
78657
|
-
}
|
|
78682
|
+
Snap.prototype.segmentMultiPointGemetry_ = function (segments, geometry) {
|
|
78683
|
+
geometry.getCoordinates().forEach(function (point) {
|
|
78684
|
+
segments.push([point]);
|
|
78685
|
+
});
|
|
78658
78686
|
};
|
|
78659
78687
|
/**
|
|
78660
|
-
* @param {import(
|
|
78688
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78661
78689
|
* @param {import("../geom/MultiPolygon.js").default} geometry Geometry.
|
|
78662
78690
|
* @private
|
|
78663
78691
|
*/
|
|
78664
|
-
Snap.prototype.
|
|
78692
|
+
Snap.prototype.segmentMultiPolygonGemetry_ = function (segments, geometry) {
|
|
78665
78693
|
var polygons = geometry.getCoordinates();
|
|
78666
78694
|
for (var k = 0, kk = polygons.length; k < kk; ++k) {
|
|
78667
78695
|
var rings = polygons[k];
|
|
78668
78696
|
for (var j = 0, jj = rings.length; j < jj; ++j) {
|
|
78669
78697
|
var coordinates = rings[j];
|
|
78670
78698
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78671
|
-
|
|
78672
|
-
var segmentData = {
|
|
78673
|
-
feature: feature,
|
|
78674
|
-
segment: segment,
|
|
78675
|
-
};
|
|
78676
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78699
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78677
78700
|
}
|
|
78678
78701
|
}
|
|
78679
78702
|
}
|
|
78680
78703
|
};
|
|
78681
78704
|
/**
|
|
78682
|
-
* @param {import(
|
|
78705
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78683
78706
|
* @param {import("../geom/Point.js").default} geometry Geometry.
|
|
78684
78707
|
* @private
|
|
78685
78708
|
*/
|
|
78686
|
-
Snap.prototype.
|
|
78687
|
-
|
|
78688
|
-
var segmentData = {
|
|
78689
|
-
feature: feature,
|
|
78690
|
-
segment: [coordinates, coordinates],
|
|
78691
|
-
};
|
|
78692
|
-
this.rBush_.insert(geometry.getExtent(), segmentData);
|
|
78709
|
+
Snap.prototype.segmentPointGemetry_ = function (segments, geometry) {
|
|
78710
|
+
segments.push([geometry.getCoordinates()]);
|
|
78693
78711
|
};
|
|
78694
78712
|
/**
|
|
78695
|
-
* @param {import(
|
|
78713
|
+
* @param {Array<Array<import('../coordinate.js').Coordinate>>} segments Segments
|
|
78696
78714
|
* @param {import("../geom/Polygon.js").default} geometry Geometry.
|
|
78697
78715
|
* @private
|
|
78698
78716
|
*/
|
|
78699
|
-
Snap.prototype.
|
|
78717
|
+
Snap.prototype.segmentPolygonGemetry_ = function (segments, geometry) {
|
|
78700
78718
|
var rings = geometry.getCoordinates();
|
|
78701
78719
|
for (var j = 0, jj = rings.length; j < jj; ++j) {
|
|
78702
78720
|
var coordinates = rings[j];
|
|
78703
78721
|
for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
78704
|
-
|
|
78705
|
-
var segmentData = {
|
|
78706
|
-
feature: feature,
|
|
78707
|
-
segment: segment,
|
|
78708
|
-
};
|
|
78709
|
-
this.rBush_.insert(boundingExtent(segment), segmentData);
|
|
78722
|
+
segments.push(coordinates.slice(i, i + 2));
|
|
78710
78723
|
}
|
|
78711
78724
|
}
|
|
78712
78725
|
};
|
|
@@ -79381,7 +79394,8 @@ var createNode$1 = function createNode(options, map) {
|
|
|
79381
79394
|
styleFn: options.styleFn,
|
|
79382
79395
|
favorite: false,
|
|
79383
79396
|
userDefaultLayer: false,
|
|
79384
|
-
selectAllLayers: options.selectAllLayers
|
|
79397
|
+
selectAllLayers: options.selectAllLayers,
|
|
79398
|
+
hoverText: options.hoverText
|
|
79385
79399
|
};
|
|
79386
79400
|
return node;
|
|
79387
79401
|
};
|
|
@@ -79890,7 +79904,10 @@ var mapLayersBundle = {
|
|
|
79890
79904
|
function formatLabeledUrl(url) {
|
|
79891
79905
|
var delim = url.indexOf("?") === -1 ? "?" : "&";
|
|
79892
79906
|
return "".concat(url).concat(delim, "label=true");
|
|
79893
|
-
}
|
|
79907
|
+
} // if (node.HoverText){
|
|
79908
|
+
// set the text popup to the hover text value
|
|
79909
|
+
// }
|
|
79910
|
+
|
|
79894
79911
|
|
|
79895
79912
|
if (node.mapLayer) {
|
|
79896
79913
|
node.labelsOn = labelsOn;
|
|
@@ -106402,7 +106419,7 @@ var config = {
|
|
|
106402
106419
|
};
|
|
106403
106420
|
|
|
106404
106421
|
var name = "@corpsmap/corpsmap";
|
|
106405
|
-
var version$1 = "3.0.
|
|
106422
|
+
var version$1 = "3.0.13";
|
|
106406
106423
|
var description = "CorpsMap as React Components";
|
|
106407
106424
|
var main = "index.js";
|
|
106408
106425
|
var scripts = {
|
|
@@ -106460,6 +106477,8 @@ var dependencies = {
|
|
|
106460
106477
|
async: "^2.6.1",
|
|
106461
106478
|
classnames: "^2.2.5",
|
|
106462
106479
|
css: "^2.2.4",
|
|
106480
|
+
decompress: "^4.2.1",
|
|
106481
|
+
"extract-files": "^12.0.0",
|
|
106463
106482
|
"file-saver": "^2.0.2",
|
|
106464
106483
|
"is-html": "^2.0.0",
|
|
106465
106484
|
jspdf: "^1.5.3",
|
|
@@ -106470,6 +106489,7 @@ var dependencies = {
|
|
|
106470
106489
|
"money-clip": "^3.0.1",
|
|
106471
106490
|
ol: "^6.4.3",
|
|
106472
106491
|
"ol-esri-style": "^2.0.7",
|
|
106492
|
+
"parse2-kmz": "^1.0.5",
|
|
106473
106493
|
proj4: "^2.4.4",
|
|
106474
106494
|
"react-data-grid": "^6.1.0",
|
|
106475
106495
|
"react-datepicker": "^2.9.6",
|
|
@@ -107302,20 +107322,38 @@ var TreeListFolder = /*#__PURE__*/function (_React$Component) {
|
|
|
107302
107322
|
key: "render",
|
|
107303
107323
|
value: function render() {
|
|
107304
107324
|
var _this$props = this.props,
|
|
107325
|
+
displayName = _this$props.displayName,
|
|
107305
107326
|
item = _this$props.item,
|
|
107306
107327
|
collapsed = _this$props.collapsed,
|
|
107307
107328
|
toggleCollapsed = _this$props.toggleCollapsed;
|
|
107329
|
+
var testText = "LAYER_X";
|
|
107330
|
+
var hoverText = testText ;
|
|
107331
|
+
var _this$props2 = this.props,
|
|
107332
|
+
isOver = _this$props2.isOver,
|
|
107333
|
+
theme = _this$props2.theme,
|
|
107334
|
+
mapZoom = _this$props2.mapZoom;
|
|
107335
|
+
var enabled = item.minzoom <= mapZoom && item.maxzoom >= mapZoom;
|
|
107336
|
+
var itemTxtStyle = enabled ? {
|
|
107337
|
+
color: "#666"
|
|
107338
|
+
} : {
|
|
107339
|
+
color: "#bbb"
|
|
107340
|
+
};
|
|
107308
107341
|
var iconClass = classnames({
|
|
107309
|
-
|
|
107342
|
+
mdi: true,
|
|
107310
107343
|
"mdi-folder-open": !collapsed,
|
|
107311
107344
|
"mdi-folder": collapsed
|
|
107312
107345
|
});
|
|
107313
107346
|
var itemClass = classnames({
|
|
107314
107347
|
"tree-list-item-hover": false
|
|
107315
107348
|
});
|
|
107349
|
+
var itemClassTest = classnames({
|
|
107350
|
+
"cm-checkbox-inline": true,
|
|
107351
|
+
"cm-checkbox-ellipsis": true,
|
|
107352
|
+
"tree-list-item-hover": isOver
|
|
107353
|
+
});
|
|
107316
107354
|
var divStyle = {
|
|
107317
|
-
display:
|
|
107318
|
-
paddingLeft:
|
|
107355
|
+
display: "inline-block",
|
|
107356
|
+
paddingLeft: "8px"
|
|
107319
107357
|
};
|
|
107320
107358
|
var count = item.children.length;
|
|
107321
107359
|
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("i", {
|
|
@@ -107323,14 +107361,18 @@ var TreeListFolder = /*#__PURE__*/function (_React$Component) {
|
|
|
107323
107361
|
onClick: toggleCollapsed,
|
|
107324
107362
|
className: iconClass,
|
|
107325
107363
|
style: {
|
|
107326
|
-
fontSize:
|
|
107327
|
-
cursor:
|
|
107364
|
+
fontSize: "16px",
|
|
107365
|
+
cursor: "pointer"
|
|
107328
107366
|
}
|
|
107329
107367
|
}), /*#__PURE__*/React$1__default.createElement("span", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
107330
107368
|
className: itemClass,
|
|
107331
107369
|
style: divStyle,
|
|
107332
107370
|
onDoubleClick: toggleCollapsed
|
|
107333
|
-
}, item.displayName), /*#__PURE__*/React$1__default.createElement("span", null,
|
|
107371
|
+
}, item.displayName), /*#__PURE__*/React$1__default.createElement("span", null, " (" + count + ")"), /*#__PURE__*/React$1__default.createElement("label", {
|
|
107372
|
+
className: itemClassTest,
|
|
107373
|
+
title: "".concat(hoverText, " ").concat(!enabled ? "- zoom in to enable" : ""),
|
|
107374
|
+
style: itemTxtStyle
|
|
107375
|
+
})));
|
|
107334
107376
|
}
|
|
107335
107377
|
}]);
|
|
107336
107378
|
|
|
@@ -132541,12 +132583,21 @@ var bundle = {
|
|
|
132541
132583
|
var u8arr = new Uint8Array(fileInfo);
|
|
132542
132584
|
var decodedFileInfo = utf8decoder.decode(u8arr);
|
|
132543
132585
|
console.log(decodedFileInfo); // read in our KML file and then parse it
|
|
132544
|
-
|
|
132545
|
-
|
|
132586
|
+
// const KMZ = new DOMParser().parseFromString(decodedFileInfo);
|
|
132587
|
+
// convert our kml to geojson and store the results
|
|
132546
132588
|
// const geojson = KMLConvert.kml(parsedKML);
|
|
132589
|
+
// const file1 = new File(["1"], "BuxtonNC.kmz", {
|
|
132590
|
+
// type: "text/plain",
|
|
132591
|
+
// });
|
|
132592
|
+
// const value = {
|
|
132593
|
+
// a: file1,
|
|
132594
|
+
// };
|
|
132595
|
+
// const { clone, files } = extractFiles(
|
|
132596
|
+
// value,
|
|
132597
|
+
// isExtractableFile,
|
|
132598
|
+
// "prefix"
|
|
132599
|
+
// );
|
|
132547
132600
|
// store.doAddDataGeojson(file.name, geojson);
|
|
132548
|
-
|
|
132549
|
-
console.log(parsedKMZ);
|
|
132550
132601
|
} catch (err) {
|
|
132551
132602
|
store.doDispatchNotification(err.message || "Error adding data");
|
|
132552
132603
|
}
|
|
@@ -157630,6 +157681,7 @@ var TreeListItemDataset = /*#__PURE__*/function (_React$Component) {
|
|
|
157630
157681
|
showLegend: false,
|
|
157631
157682
|
visible: props.item.visible,
|
|
157632
157683
|
displayName: props.item.displayName,
|
|
157684
|
+
hoverText: props.item.hoverText,
|
|
157633
157685
|
type: props.item.type,
|
|
157634
157686
|
expanded: false
|
|
157635
157687
|
};
|
|
@@ -157719,7 +157771,9 @@ var TreeListItemDataset = /*#__PURE__*/function (_React$Component) {
|
|
|
157719
157771
|
type = item.type,
|
|
157720
157772
|
identifyType = item.identifyType,
|
|
157721
157773
|
favorite = item.favorite,
|
|
157722
|
-
userDefaultLayer = item.userDefaultLayer
|
|
157774
|
+
userDefaultLayer = item.userDefaultLayer,
|
|
157775
|
+
hoverText = item.hoverText;
|
|
157776
|
+
var hoverTextDisplay = hoverText ? hoverText : displayName;
|
|
157723
157777
|
if (!item.passFilter) return null;
|
|
157724
157778
|
var enabled = item.minzoom <= mapZoom && item.maxzoom >= mapZoom;
|
|
157725
157779
|
var itemTxtStyle = enabled ? {
|
|
@@ -157753,7 +157807,7 @@ var TreeListItemDataset = /*#__PURE__*/function (_React$Component) {
|
|
|
157753
157807
|
title: "More Info"
|
|
157754
157808
|
}))), /*#__PURE__*/React$1__default.createElement("label", {
|
|
157755
157809
|
className: itemClass,
|
|
157756
|
-
title: "".concat(
|
|
157810
|
+
title: "".concat(hoverTextDisplay, " ").concat(!enabled ? "- zoom in to enable" : ""),
|
|
157757
157811
|
style: itemTxtStyle
|
|
157758
157812
|
}, /*#__PURE__*/React$1__default.createElement("input", {
|
|
157759
157813
|
disabled: !enabled,
|
|
@@ -161006,7 +161060,7 @@ var LayerSubpanel = function LayerSubpanel(props) {
|
|
|
161006
161060
|
});
|
|
161007
161061
|
var listTop = primaryPanelShowClose ? 70 : 30;
|
|
161008
161062
|
var showDownload = treeViewDownloadEnabled && treeViewSelectedItem.identifyType === "MAP" ? true : false;
|
|
161009
|
-
var url = treeViewSelectedItem.identifyType == "MAP" ? "".concat(treeViewSelectedItem.url, "
|
|
161063
|
+
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;
|
|
161010
161064
|
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("span", {
|
|
161011
161065
|
onClick: doRenderTreeView,
|
|
161012
161066
|
title: "Go back",
|
|
@@ -161633,7 +161687,7 @@ var treeViewDownload = {
|
|
|
161633
161687
|
var url = null;
|
|
161634
161688
|
|
|
161635
161689
|
if (layer.identifyType === "MAP") {
|
|
161636
|
-
var params = "
|
|
161690
|
+
var params = "?&service=WFS&version=1.1.0&request=GetFeature&typeName=".concat(layer.layerList, "&outputformat=").concat(format, "&outfile=").concat(layer.layerList);
|
|
161637
161691
|
url = "".concat(layer.url).concat(params);
|
|
161638
161692
|
}
|
|
161639
161693
|
|
|
@@ -161708,7 +161762,7 @@ var treeViewDownload = {
|
|
|
161708
161762
|
|
|
161709
161763
|
switch (layer.identifyType) {
|
|
161710
161764
|
case "MAP":
|
|
161711
|
-
var params = "
|
|
161765
|
+
var params = "?&service=WFS&version=1.1.0&request=GetFeature&typeName=".concat(layer.layerList, "&outputformat=").concat(format, "&outfile=").concat(layer.layerList);
|
|
161712
161766
|
url = "".concat(layer.url).concat(params);
|
|
161713
161767
|
break;
|
|
161714
161768
|
}
|