zywlgis 0.5.38 → 0.5.40
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/dist/ZYWLGIS.es.js +724 -681
- package/dist/ZYWLGIS.umd.js +16 -16
- package/dist/libs/Cesium/Cesium-Extend.js +54 -0
- package/package.json +2 -3
- package/dist/libs/Cesium/Cesium-Version.js +0 -124
package/dist/ZYWLGIS.es.js
CHANGED
|
@@ -10946,21 +10946,42 @@ class Gi {
|
|
|
10946
10946
|
isHighlight: this.isHighlight,
|
|
10947
10947
|
customHTML: this.data_?.customHTML
|
|
10948
10948
|
});
|
|
10949
|
-
this.calculatePosition(
|
|
10949
|
+
this.calculatePosition(
|
|
10950
|
+
t.scene,
|
|
10951
|
+
this.HTMLInstance_,
|
|
10952
|
+
this.presentationMode_,
|
|
10953
|
+
this.destination_,
|
|
10954
|
+
this.data_?.customHTML,
|
|
10955
|
+
this.isHighlight
|
|
10956
|
+
), this.addShowHTML({
|
|
10957
|
+
HTMLInstance: this.HTMLInstance_,
|
|
10958
|
+
destination: this.destination_,
|
|
10959
|
+
presentationMode: this.presentationMode_,
|
|
10960
|
+
isHighlight: this.isHighlight,
|
|
10961
|
+
customHTML: this.data_?.customHTML
|
|
10962
|
+
});
|
|
10950
10963
|
}
|
|
10951
|
-
window.CustomHTMLRender || (window.CustomHTMLRender = t.scene.camera.changed.addEventListener(
|
|
10964
|
+
window.CustomHTMLRender || (window.CustomHTMLRender = t.scene.camera.changed.addEventListener(
|
|
10965
|
+
this.postRenderCustomHTML
|
|
10966
|
+
));
|
|
10952
10967
|
};
|
|
10953
10968
|
// 渲染回调方法(帧更新)
|
|
10954
10969
|
postRenderCustomHTML = () => {
|
|
10955
|
-
if (window.
|
|
10956
|
-
|
|
10957
|
-
for (const
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
if (i === 0 || !t || t && t.style.display !== "block")
|
|
10970
|
+
if (window.ShowHTMLInstances_) {
|
|
10971
|
+
const e = k.getMapEngineInstance(this.containerID_).scene;
|
|
10972
|
+
for (const t of [...window.ShowHTMLInstances_]) {
|
|
10973
|
+
const i = t[1].HTMLInstance, r = t[1].presentationMode;
|
|
10974
|
+
if (r === 0 || !i || i && i.style.display !== "block")
|
|
10961
10975
|
continue;
|
|
10962
|
-
const
|
|
10963
|
-
this.calculatePosition(
|
|
10976
|
+
const s = t[1].destination, o = t[1].isHighlight, a = t[1].customHTML;
|
|
10977
|
+
this.calculatePosition(
|
|
10978
|
+
e,
|
|
10979
|
+
i,
|
|
10980
|
+
r,
|
|
10981
|
+
s,
|
|
10982
|
+
a,
|
|
10983
|
+
o
|
|
10984
|
+
);
|
|
10964
10985
|
}
|
|
10965
10986
|
}
|
|
10966
10987
|
};
|
|
@@ -10988,7 +11009,14 @@ class Gi {
|
|
|
10988
11009
|
let A = k.getMapEngineInstance(this.containerID_), e = this.data_.ID + "-ZYWLCustomHTML";
|
|
10989
11010
|
if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(e)) {
|
|
10990
11011
|
let t = window.CustomHTMLInstances_.get(e);
|
|
10991
|
-
t.presentationMode === 2 && (t.HTMLInstance.style.display = "block"), t.isHighlight = !0, this.calculatePosition(
|
|
11012
|
+
t.presentationMode === 2 && (t.HTMLInstance.style.display = "block"), t.isHighlight = !0, this.calculatePosition(
|
|
11013
|
+
A.scene,
|
|
11014
|
+
t.HTMLInstance,
|
|
11015
|
+
t.presentationMode,
|
|
11016
|
+
t.destination,
|
|
11017
|
+
t.customHTML,
|
|
11018
|
+
t.isHighlight
|
|
11019
|
+
), this.addShowHTML(t);
|
|
10992
11020
|
}
|
|
10993
11021
|
};
|
|
10994
11022
|
// 隐藏方法
|
|
@@ -10996,9 +11024,22 @@ class Gi {
|
|
|
10996
11024
|
let A = k.getMapEngineInstance(this.containerID_), e = this.data_.ID + "-ZYWLCustomHTML";
|
|
10997
11025
|
if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(e)) {
|
|
10998
11026
|
let t = window.CustomHTMLInstances_.get(e);
|
|
10999
|
-
t.presentationMode === 2 && (t.HTMLInstance.style.display = "none"), t.isHighlight = !1, this.calculatePosition(
|
|
11027
|
+
t.presentationMode === 2 && (t.HTMLInstance.style.display = "none"), t.isHighlight = !1, this.calculatePosition(
|
|
11028
|
+
A.scene,
|
|
11029
|
+
t.HTMLInstance,
|
|
11030
|
+
t.presentationMode,
|
|
11031
|
+
t.destination,
|
|
11032
|
+
t.customHTML,
|
|
11033
|
+
t.isHighlight
|
|
11034
|
+
), this.removeShowHTML(t);
|
|
11000
11035
|
}
|
|
11001
11036
|
};
|
|
11037
|
+
addShowHTML = (A) => {
|
|
11038
|
+
window.ShowHTMLInstances_ || (window.ShowHTMLInstances_ = /* @__PURE__ */ new Map()), window.ShowHTMLInstances_.has(A.HTMLInstance.id) && window.ShowHTMLInstances_.delete(A.HTMLInstance.id), (A.presentationMode === 1 || A.presentationMode === 2 && A.isHighlight) && window.ShowHTMLInstances_.set(A.HTMLInstance.id, A);
|
|
11039
|
+
};
|
|
11040
|
+
removeShowHTML = (A) => {
|
|
11041
|
+
window.ShowHTMLInstances_ || (window.ShowHTMLInstances_ = /* @__PURE__ */ new Map()), window.ShowHTMLInstances_ && window.ShowHTMLInstances_.has(A.HTMLInstance.id) && window.ShowHTMLInstances_.delete(A.HTMLInstance.id);
|
|
11042
|
+
};
|
|
11002
11043
|
// 销毁方法
|
|
11003
11044
|
clear = () => {
|
|
11004
11045
|
let e = k.getMapEngineInstance(this.containerID_)?.cesiumWidget?.container;
|
|
@@ -97447,7 +97488,7 @@ class zZ extends b5 {
|
|
|
97447
97488
|
}
|
|
97448
97489
|
}
|
|
97449
97490
|
Tf.registerRenderer("gl", zZ), Tf.registerRenderer("gpu", zZ), Tf.registerRenderer("canvas", null), xQ.setLayerClass(ug, Qg, OQ);
|
|
97450
|
-
const { PackUtil:
|
|
97491
|
+
const { PackUtil: fie, FilterUtil: die, SYMBOLS_NEED_REBUILD_IN_VT: vie, SYMBOLS_NEED_REBUILD_IN_VECTOR: Cie } = js();
|
|
97451
97492
|
Be.ShaderLib.register("vt_position_vert", `#ifdef HAS_TERRAIN_ALTITUDE
|
|
97452
97493
|
attribute float aTerrainAltitude;
|
|
97453
97494
|
#endif
|
|
@@ -100908,7 +100949,7 @@ var Wl;
|
|
|
100908
100949
|
zC.mergeOptions(IjA), zC.registerRenderer("gl", oK), zC.registerRenderer("gpu", oK), zC.registerJSONType("Geo3DTilesLayer"), (function(n) {
|
|
100909
100950
|
n[n.OUT_OF_FRUSTUM = 0] = "OUT_OF_FRUSTUM", n[n.SCREEN_ERROR_TOO_SMALL = 1] = "SCREEN_ERROR_TOO_SMALL", n[n.VISIBLE = 2] = "VISIBLE";
|
|
100910
100951
|
})(Wl || (Wl = {}));
|
|
100911
|
-
const { Ajax:
|
|
100952
|
+
const { Ajax: Bie, GLTFLoader: pie } = a0(), { Ajax: mie, GLTFLoader: Iie } = a0(), { Ajax: Mie } = a0(), { Ajax: Tie, GLTFLoader: yie } = a0();
|
|
100912
100953
|
if (Al) {
|
|
100913
100954
|
const n = qi.VERSION;
|
|
100914
100955
|
if (n.indexOf("1.0.0-beta") >= 0 || n.indexOf("1.0.0-alpha") >= 0) {
|
|
@@ -133360,29 +133401,37 @@ class k {
|
|
|
133360
133401
|
];
|
|
133361
133402
|
return z6A(P, "EPSG:3857", "EPSG:4326");
|
|
133362
133403
|
};
|
|
133404
|
+
/**根据camera高度近似计算当前层级*/
|
|
133405
|
+
static heightToZoom = (A) => {
|
|
133406
|
+
const t = 7096758e-11, i = 91610.74, r = -40467.74;
|
|
133407
|
+
return Math.round(r + (40487.57 - r) / (1 + Math.pow(A / i, t)));
|
|
133408
|
+
};
|
|
133363
133409
|
/**通过层级和维度来计算对应的高程*/
|
|
133364
133410
|
static getMapHeightByZoom = (A, e, t) => {
|
|
133365
133411
|
let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.openlayersID), s = this.getMapEngineInstance(i.cesiumID);
|
|
133366
133412
|
if (r && s) {
|
|
133367
133413
|
let o, a = r.getView().getResolutionForZoom(e);
|
|
133414
|
+
const l = this.degreesToRadians(t?.latitude);
|
|
133368
133415
|
return o = this.calcDistanceForResolution(
|
|
133369
133416
|
A,
|
|
133370
133417
|
a,
|
|
133371
|
-
|
|
133418
|
+
l
|
|
133372
133419
|
), o;
|
|
133373
133420
|
}
|
|
133374
133421
|
};
|
|
133375
133422
|
static calcDistanceForResolution = (A, e, t) => {
|
|
133376
133423
|
let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.openlayersID);
|
|
133377
133424
|
const o = this.getMapEngineInstance(i.cesiumID).scene, a = o.camera.frustum, l = o.canvas.clientHeight, D = r.getView().getProjection().getMetersPerUnit(), P = Math.cos(Math.abs(t));
|
|
133378
|
-
let c
|
|
133379
|
-
|
|
133425
|
+
let c;
|
|
133426
|
+
const h = e * D * P * l;
|
|
133427
|
+
let g = 0.7302107096371538;
|
|
133428
|
+
return a instanceof Cesium.PerspectiveFrustum && (g = a.fovy), c = h / 2 / Math.tan(g / 2), c;
|
|
133380
133429
|
};
|
|
133381
133430
|
static calcResolutionForDistance = (A, e, t) => {
|
|
133382
133431
|
let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.openlayersID);
|
|
133383
|
-
const o = this.getMapEngineInstance(i.cesiumID).scene, a = o.camera.frustum, l = r.getView().getProjection().getMetersPerUnit(),
|
|
133384
|
-
let
|
|
133385
|
-
return a instanceof Cesium.PerspectiveFrustum && (
|
|
133432
|
+
const o = this.getMapEngineInstance(i.cesiumID).scene, a = o.camera.frustum, l = o.canvas.clientHeight, D = r.getView().getProjection().getMetersPerUnit(), P = Math.cos(Math.abs(t));
|
|
133433
|
+
let c, h = 0.7302107096371538;
|
|
133434
|
+
return a instanceof Cesium.PerspectiveFrustum && (h = a.fovy), c = 2 * e * Math.tan(h / 2), c / D / P / l;
|
|
133386
133435
|
};
|
|
133387
133436
|
static calculateZoom = (A, e) => {
|
|
133388
133437
|
let t = e.getView().getZoomForResolution(A);
|
|
@@ -133397,15 +133446,14 @@ class k {
|
|
|
133397
133446
|
a.clientHeight / 2
|
|
133398
133447
|
), D;
|
|
133399
133448
|
if (D = k.getCartesian(s, l), D) {
|
|
133400
|
-
let P = Cesium.Cartesian3.distance(D, o.position), c = s.globe.ellipsoid.cartesianToCartographic(D)
|
|
133401
|
-
|
|
133402
|
-
|
|
133403
|
-
|
|
133404
|
-
|
|
133405
|
-
|
|
133406
|
-
|
|
133407
|
-
);
|
|
133408
|
-
return h < 0 && (h = 0), parseInt(h);
|
|
133449
|
+
let P = Cesium.Cartesian3.distance(D, o.position), c = s.globe.ellipsoid.cartesianToCartographic(D);
|
|
133450
|
+
const h = c ? c.latitude : 0;
|
|
133451
|
+
let g = this.calcResolutionForDistance(
|
|
133452
|
+
A,
|
|
133453
|
+
P,
|
|
133454
|
+
h
|
|
133455
|
+
), u = this.calculateZoom(g, i);
|
|
133456
|
+
return u < 0 && (u = 0), parseInt(u);
|
|
133409
133457
|
}
|
|
133410
133458
|
} else {
|
|
133411
133459
|
if (i)
|
|
@@ -133455,11 +133503,7 @@ class k {
|
|
|
133455
133503
|
let a = Cesium.Cartesian3.distance(
|
|
133456
133504
|
t.scene.camera.position,
|
|
133457
133505
|
i
|
|
133458
|
-
), l = new Cesium.HeadingPitchRange(
|
|
133459
|
-
0,
|
|
133460
|
-
s,
|
|
133461
|
-
a
|
|
133462
|
-
);
|
|
133506
|
+
), l = new Cesium.HeadingPitchRange(0, s, a);
|
|
133463
133507
|
t.scene.camera.lookAt(i, l), t.scene.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
|
|
133464
133508
|
} else
|
|
133465
133509
|
t.scene.camera.setView({
|
|
@@ -135449,14 +135493,18 @@ class k {
|
|
|
135449
135493
|
else if (A.includes("-openlayers"))
|
|
135450
135494
|
t && (e ? e === "TakeOffCursor.png" ? t.getTargetElement().style.cursor = `url(${ra.getIconBase64(e)}) 16 21, auto` : t.getTargetElement().style.cursor = e : t.getTargetElement().style.cursor = "");
|
|
135451
135495
|
else if (A.includes("-maptalks"))
|
|
135452
|
-
t && (e ? e === "TakeOffCursor.png" ? t.setCursor(
|
|
135496
|
+
t && (e ? e === "TakeOffCursor.png" ? t.setCursor(
|
|
135497
|
+
`url(${ra.getIconBase64(e)}) 16 21, auto`
|
|
135498
|
+
) : t.setCursor(e) : t.setCursor(""));
|
|
135453
135499
|
else {
|
|
135454
135500
|
let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.cesiumID);
|
|
135455
135501
|
r && (e ? e === "TakeOffCursor.png" ? r.container.style.cursor = `url(${ra.getIconBase64(e)}) 16 21, auto` : r.container.style.cursor = e : r.container.style.cursor = "", console.log(r.container));
|
|
135456
135502
|
let s = this.getMapEngineInstance(i.openlayersID);
|
|
135457
135503
|
s && (e ? e === "TakeOffCursor.png" ? s.getTargetElement().style.cursor = `url(${ra.getIconBase64(e)}) 16 21, auto` : s.getTargetElement().style.cursor = e : s.getTargetElement().style.cursor = "");
|
|
135458
135504
|
let o = this.getMapEngineInstance(i.maptalksID);
|
|
135459
|
-
o && (e ? e === "TakeOffCursor.png" ? o.setCursor(
|
|
135505
|
+
o && (e ? e === "TakeOffCursor.png" ? o.setCursor(
|
|
135506
|
+
`url(${ra.getIconBase64(e)}) 16 21, auto`
|
|
135507
|
+
) : o.setCursor(e) : o.setCursor(""));
|
|
135460
135508
|
}
|
|
135461
135509
|
};
|
|
135462
135510
|
/**恢复鼠标样式*/
|
|
@@ -160971,11 +161019,13 @@ function MoA(...n) {
|
|
|
160971
161019
|
return new IoA(...n);
|
|
160972
161020
|
}
|
|
160973
161021
|
MoA.localizePositions = IoA.localizePositions;
|
|
160974
|
-
const
|
|
161022
|
+
const WqA = "0.5.40", XqA = {
|
|
161023
|
+
version: WqA
|
|
161024
|
+
}, hU = {
|
|
160975
161025
|
POINTERMOVE: "pointermove",
|
|
160976
161026
|
POINTERDOWN: "pointerdown"
|
|
160977
161027
|
};
|
|
160978
|
-
class
|
|
161028
|
+
class _qA extends HI {
|
|
160979
161029
|
/**
|
|
160980
161030
|
* @param {import("./Map.js").default} map The map with the viewport to listen to events on.
|
|
160981
161031
|
* @param {number} [moveTolerance] The minimal distance the pointer must travel to trigger a move.
|
|
@@ -161264,7 +161314,7 @@ class G6 extends Ph {
|
|
|
161264
161314
|
this.target_ = typeof A == "string" ? document.getElementById(A) : A;
|
|
161265
161315
|
}
|
|
161266
161316
|
}
|
|
161267
|
-
class
|
|
161317
|
+
class $qA extends G6 {
|
|
161268
161318
|
/**
|
|
161269
161319
|
* @param {Options} [options] Attribution options.
|
|
161270
161320
|
*/
|
|
@@ -161385,7 +161435,7 @@ class XqA extends G6 {
|
|
|
161385
161435
|
this.updateElement_(A.frameState);
|
|
161386
161436
|
}
|
|
161387
161437
|
}
|
|
161388
|
-
class
|
|
161438
|
+
class AWA extends G6 {
|
|
161389
161439
|
/**
|
|
161390
161440
|
* @param {Options} [options] Rotate options.
|
|
161391
161441
|
*/
|
|
@@ -161448,7 +161498,7 @@ class _qA extends G6 {
|
|
|
161448
161498
|
this.rotation_ = t;
|
|
161449
161499
|
}
|
|
161450
161500
|
}
|
|
161451
|
-
class
|
|
161501
|
+
class eWA extends G6 {
|
|
161452
161502
|
/**
|
|
161453
161503
|
* @param {Options} [options] Zoom options.
|
|
161454
161504
|
*/
|
|
@@ -161503,12 +161553,12 @@ class $qA extends G6 {
|
|
|
161503
161553
|
}
|
|
161504
161554
|
}
|
|
161505
161555
|
}
|
|
161506
|
-
function
|
|
161556
|
+
function tWA(n) {
|
|
161507
161557
|
n = n || {};
|
|
161508
161558
|
const A = new Ol();
|
|
161509
|
-
return (n.zoom === void 0 || n.zoom) && A.push(new
|
|
161559
|
+
return (n.zoom === void 0 || n.zoom) && A.push(new eWA(n.zoomOptions)), (n.rotate === void 0 || n.rotate) && A.push(new AWA(n.rotateOptions)), (n.attribution === void 0 || n.attribution) && A.push(new $qA(n.attributionOptions)), A;
|
|
161510
161560
|
}
|
|
161511
|
-
class
|
|
161561
|
+
class iWA extends YI {
|
|
161512
161562
|
/**
|
|
161513
161563
|
* @param {import("../Map.js").default} map Map.
|
|
161514
161564
|
*/
|
|
@@ -161641,13 +161691,13 @@ class eWA extends YI {
|
|
|
161641
161691
|
* @protected
|
|
161642
161692
|
*/
|
|
161643
161693
|
scheduleExpireIconCache(A) {
|
|
161644
|
-
XD.canExpireCache() && A.postRenderFunctions.push(
|
|
161694
|
+
XD.canExpireCache() && A.postRenderFunctions.push(nWA);
|
|
161645
161695
|
}
|
|
161646
161696
|
}
|
|
161647
|
-
function
|
|
161697
|
+
function nWA(n, A) {
|
|
161648
161698
|
XD.expire();
|
|
161649
161699
|
}
|
|
161650
|
-
class
|
|
161700
|
+
class rWA extends iWA {
|
|
161651
161701
|
/**
|
|
161652
161702
|
* @param {import("../Map.js").default} map Map.
|
|
161653
161703
|
*/
|
|
@@ -161773,14 +161823,14 @@ function yoA(n, A) {
|
|
|
161773
161823
|
yoA(e[t], A);
|
|
161774
161824
|
}
|
|
161775
161825
|
}
|
|
161776
|
-
let
|
|
161826
|
+
let sWA = class extends Ph {
|
|
161777
161827
|
/**
|
|
161778
161828
|
* @param {MapOptions} [options] Map options.
|
|
161779
161829
|
*/
|
|
161780
161830
|
constructor(A) {
|
|
161781
161831
|
super(), A = A || {}, this.on, this.once, this.un;
|
|
161782
|
-
const e =
|
|
161783
|
-
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = A.maxTilesLoading !== void 0 ? A.maxTilesLoading : 16, this.pixelRatio_ = A.pixelRatio !== void 0 ? A.pixelRatio : hFA, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Bo(), this.pixelToCoordinateTransform_ = Bo(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, WD || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = A.moveTolerance, this.keyboardEventTarget_ = e.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, WD || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = e.controls || (WD ? new Ol() :
|
|
161832
|
+
const e = oWA(A);
|
|
161833
|
+
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = A.maxTilesLoading !== void 0 ? A.maxTilesLoading : 16, this.pixelRatio_ = A.pixelRatio !== void 0 ? A.pixelRatio : hFA, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Bo(), this.pixelToCoordinateTransform_ = Bo(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, WD || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = A.moveTolerance, this.keyboardEventTarget_ = e.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, WD || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = e.controls || (WD ? new Ol() : tWA()), this.interactions = e.interactions || (WD ? new Ol() : CsA({
|
|
161784
161834
|
onFocusOnly: !0
|
|
161785
161835
|
})), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new THA(
|
|
161786
161836
|
this.getTilePriority.bind(this),
|
|
@@ -162411,8 +162461,8 @@ let nWA = class extends Ph {
|
|
|
162411
162461
|
if (this.targetElement_ = e, !e)
|
|
162412
162462
|
this.renderer_ && (clearTimeout(this.postRenderTimeoutHandle_), this.postRenderTimeoutHandle_ = void 0, this.postRenderFunctions_.length = 0, this.renderer_.dispose(), this.renderer_ = null), this.animationDelayKey_ && (cancelAnimationFrame(this.animationDelayKey_), this.animationDelayKey_ = void 0);
|
|
162413
162463
|
else {
|
|
162414
|
-
if (cQ(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new
|
|
162415
|
-
this.mapBrowserEventHandler_ = new
|
|
162464
|
+
if (cQ(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new rWA(this)), !cQ(e)) {
|
|
162465
|
+
this.mapBrowserEventHandler_ = new _qA(
|
|
162416
162466
|
this,
|
|
162417
162467
|
this.moveTolerance_
|
|
162418
162468
|
);
|
|
@@ -162728,7 +162778,7 @@ let nWA = class extends Ph {
|
|
|
162728
162778
|
e && e.setViewportSize(A);
|
|
162729
162779
|
}
|
|
162730
162780
|
};
|
|
162731
|
-
function
|
|
162781
|
+
function oWA(n) {
|
|
162732
162782
|
let A = null;
|
|
162733
162783
|
n.keyboardEventTarget !== void 0 && (A = typeof n.keyboardEventTarget == "string" ? document.getElementById(n.keyboardEventTarget) : n.keyboardEventTarget);
|
|
162734
162784
|
const e = {}, t = n.layers && typeof /** @type {?} */
|
|
@@ -162849,7 +162899,7 @@ class OoA {
|
|
|
162849
162899
|
)), this.context.globalAlpha = 1;
|
|
162850
162900
|
}
|
|
162851
162901
|
}
|
|
162852
|
-
class
|
|
162902
|
+
class aWA extends OoA {
|
|
162853
162903
|
constructor(A, e, t) {
|
|
162854
162904
|
super(A, e, t), this.vsyncValue = 0, this.SMALL_HEIGHT = 9 * this.PR, this.HEIGHT = this.SMALL_HEIGHT, this.WIDTH = 35 * this.PR, this.TEXT_Y = 0 * this.PR, this.canvas.height = this.HEIGHT, this.canvas.width = this.WIDTH, this.canvas.style.height = "9px", this.canvas.style.width = "35px", this.canvas.style.cssText = `
|
|
162855
162905
|
width: 35px;
|
|
@@ -162909,7 +162959,7 @@ const koA = class mC {
|
|
|
162909
162959
|
this.fpsPanel && this.resizePanel(this.fpsPanel), this.msPanel && this.resizePanel(this.msPanel), this.gpuPanel && this.resizePanel(this.gpuPanel), this.gpuPanelCompute && this.resizePanel(this.gpuPanelCompute);
|
|
162910
162960
|
}, this.mode = c, this.horizontal = P, this.minimal = D, this.trackGPU = A, this.trackCPT = e, this.trackHz = t, this.trackFPS = i, this.samplesLog = o, this.samplesGraph = a, this.precision = l, this.logsPerSecond = r, this.graphsPerSecond = s;
|
|
162911
162961
|
const h = performance.now();
|
|
162912
|
-
this.prevGraphTime = h, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new mC.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new mC.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new
|
|
162962
|
+
this.prevGraphTime = h, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new mC.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new mC.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new aWA("", "#f0f", "#202"), this.dom.appendChild(this.vsyncPanel.canvas), this.vsyncPanel.setOffset(56, 35)), this.setupEventListeners();
|
|
162913
162963
|
}
|
|
162914
162964
|
initializeDOM() {
|
|
162915
162965
|
this.dom.style.cssText = `
|
|
@@ -163113,7 +163163,7 @@ const koA = class mC {
|
|
|
163113
163163
|
}
|
|
163114
163164
|
};
|
|
163115
163165
|
koA.Panel = OoA;
|
|
163116
|
-
let
|
|
163166
|
+
let lWA = koA;
|
|
163117
163167
|
class boA {
|
|
163118
163168
|
containerID_ = void 0;
|
|
163119
163169
|
// 地图容器ID(关联地图实例)
|
|
@@ -163339,7 +163389,7 @@ class boA {
|
|
|
163339
163389
|
});
|
|
163340
163390
|
};
|
|
163341
163391
|
}
|
|
163342
|
-
class
|
|
163392
|
+
class DWA {
|
|
163343
163393
|
// 地图容器ID(DOM元素标识)
|
|
163344
163394
|
containerID_ = void 0;
|
|
163345
163395
|
// 数据类型校验类
|
|
@@ -163658,7 +163708,7 @@ class zoA {
|
|
|
163658
163708
|
this.modelInstance_ && A.scene.primitives.remove(this.modelInstance_), this.modelInstance_ = D, A.scene.primitives.add(this.modelInstance_);
|
|
163659
163709
|
});
|
|
163660
163710
|
}
|
|
163661
|
-
this.frustumInstance_ || (this.frustumInstance_ = new
|
|
163711
|
+
this.frustumInstance_ || (this.frustumInstance_ = new DWA(this.containerID_, "Models")), this.frustumInstance_.DataProcessing(this.data_, e);
|
|
163662
163712
|
};
|
|
163663
163713
|
/**
|
|
163664
163714
|
* 重新绘制中心点标签
|
|
@@ -163833,7 +163883,7 @@ class zoA {
|
|
|
163833
163883
|
this.customHTMLInstances_ = [];
|
|
163834
163884
|
};
|
|
163835
163885
|
}
|
|
163836
|
-
class
|
|
163886
|
+
class PWA {
|
|
163837
163887
|
// 成员变量声明
|
|
163838
163888
|
containerID_ = void 0;
|
|
163839
163889
|
// 地图容器ID
|
|
@@ -164017,7 +164067,7 @@ class lWA {
|
|
|
164017
164067
|
this.customHTMLInstances_ = [];
|
|
164018
164068
|
};
|
|
164019
164069
|
}
|
|
164020
|
-
class
|
|
164070
|
+
class cWA {
|
|
164021
164071
|
containerID_ = void 0;
|
|
164022
164072
|
// 地图容器ID(关联地图实例)
|
|
164023
164073
|
dataClass_ = void 0;
|
|
@@ -164279,7 +164329,7 @@ class DWA {
|
|
|
164279
164329
|
});
|
|
164280
164330
|
};
|
|
164281
164331
|
}
|
|
164282
|
-
class
|
|
164332
|
+
class hWA {
|
|
164283
164333
|
containerID_ = void 0;
|
|
164284
164334
|
// 地图容器ID(关联地图实例)
|
|
164285
164335
|
dataClass_ = void 0;
|
|
@@ -164582,7 +164632,7 @@ class PWA {
|
|
|
164582
164632
|
});
|
|
164583
164633
|
};
|
|
164584
164634
|
}
|
|
164585
|
-
class
|
|
164635
|
+
class gWA {
|
|
164586
164636
|
containerID_ = void 0;
|
|
164587
164637
|
// 地图容器ID(关联地图实例)
|
|
164588
164638
|
dataClass_ = void 0;
|
|
@@ -164827,7 +164877,7 @@ class cWA {
|
|
|
164827
164877
|
});
|
|
164828
164878
|
};
|
|
164829
164879
|
}
|
|
164830
|
-
class
|
|
164880
|
+
class uWA {
|
|
164831
164881
|
containerID_ = void 0;
|
|
164832
164882
|
// 地图容器ID(关联地图实例)
|
|
164833
164883
|
dataClass_ = void 0;
|
|
@@ -165069,7 +165119,7 @@ class hWA {
|
|
|
165069
165119
|
});
|
|
165070
165120
|
};
|
|
165071
165121
|
}
|
|
165072
|
-
class
|
|
165122
|
+
class QWA {
|
|
165073
165123
|
containerID_ = void 0;
|
|
165074
165124
|
// 地图容器ID(关联地图实例)
|
|
165075
165125
|
dataClass_ = void 0;
|
|
@@ -165559,7 +165609,7 @@ class NoA {
|
|
|
165559
165609
|
});
|
|
165560
165610
|
};
|
|
165561
165611
|
}
|
|
165562
|
-
class
|
|
165612
|
+
class wWA {
|
|
165563
165613
|
// 地图容器ID(DOM元素标识)
|
|
165564
165614
|
containerID_ = void 0;
|
|
165565
165615
|
// 数据类型校验类(用于类型约束)
|
|
@@ -166026,7 +166076,7 @@ class Pm {
|
|
|
166026
166076
|
return e;
|
|
166027
166077
|
};
|
|
166028
166078
|
}
|
|
166029
|
-
class
|
|
166079
|
+
class fWA {
|
|
166030
166080
|
// 地图容器ID(DOM元素标识)
|
|
166031
166081
|
containerID_ = void 0;
|
|
166032
166082
|
// 数据类型校验类(用于类型约束)
|
|
@@ -166516,7 +166566,7 @@ class QWA {
|
|
|
166516
166566
|
this.customHTMLInstances_ = [];
|
|
166517
166567
|
};
|
|
166518
166568
|
}
|
|
166519
|
-
class
|
|
166569
|
+
class dWA {
|
|
166520
166570
|
// 容器ID和数据类标识
|
|
166521
166571
|
containerID_ = void 0;
|
|
166522
166572
|
dataClass_ = void 0;
|
|
@@ -166768,7 +166818,7 @@ class wWA {
|
|
|
166768
166818
|
this.customHTMLInstances_ = [];
|
|
166769
166819
|
};
|
|
166770
166820
|
}
|
|
166771
|
-
class
|
|
166821
|
+
class vWA {
|
|
166772
166822
|
// 地图容器ID(DOM元素标识)
|
|
166773
166823
|
containerID_ = void 0;
|
|
166774
166824
|
// 数据类型校验类(用于类型约束)
|
|
@@ -166846,7 +166896,7 @@ class fWA {
|
|
|
166846
166896
|
this.data_?.symbol?.pointColor && this.data_?.symbol?.pointColor.length && (i = this.data_?.symbol?.pointColor), i = Cesium.Color.fromCssColorString(i);
|
|
166847
166897
|
const r = this.data_?.symbol?.pixelSize ?? 10;
|
|
166848
166898
|
new Promise((s) => {
|
|
166849
|
-
const o = this.containerID_.split("-cesium")[0], a = k.transformCoordinate(e), l = k.getMapHeightByZoom(o,
|
|
166899
|
+
const o = this.containerID_.split("-cesium")[0], a = k.transformCoordinate(e), l = k.getMapHeightByZoom(o, 20, a), D = k.getMapHeightByZoom(o, 4, a);
|
|
166850
166900
|
s({
|
|
166851
166901
|
nearHeight: l,
|
|
166852
166902
|
farHeight: D
|
|
@@ -167011,7 +167061,7 @@ class fWA {
|
|
|
167011
167061
|
this.customHTMLInstances_ = [];
|
|
167012
167062
|
};
|
|
167013
167063
|
}
|
|
167014
|
-
class
|
|
167064
|
+
class CWA {
|
|
167015
167065
|
// 地图容器ID(DOM元素标识)
|
|
167016
167066
|
containerID_ = void 0;
|
|
167017
167067
|
// 数据类型校验类(用于类型约束)
|
|
@@ -168325,7 +168375,7 @@ class Xq {
|
|
|
168325
168375
|
});
|
|
168326
168376
|
};
|
|
168327
168377
|
}
|
|
168328
|
-
class
|
|
168378
|
+
class EWA {
|
|
168329
168379
|
containerID_ = void 0;
|
|
168330
168380
|
// 地图容器ID(关联地图实例)
|
|
168331
168381
|
dataClass_ = void 0;
|
|
@@ -170780,7 +170830,7 @@ class LL {
|
|
|
170780
170830
|
});
|
|
170781
170831
|
};
|
|
170782
170832
|
}
|
|
170783
|
-
class
|
|
170833
|
+
class BWA {
|
|
170784
170834
|
containerID_ = void 0;
|
|
170785
170835
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
170786
170836
|
dataClass_ = void 0;
|
|
@@ -171743,7 +171793,7 @@ class CWA {
|
|
|
171743
171793
|
))));
|
|
171744
171794
|
};
|
|
171745
171795
|
}
|
|
171746
|
-
class
|
|
171796
|
+
class pWA {
|
|
171747
171797
|
containerID_ = void 0;
|
|
171748
171798
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
171749
171799
|
dataClass_ = void 0;
|
|
@@ -172512,7 +172562,7 @@ class AW {
|
|
|
172512
172562
|
this.customHTMLInstances_ = [];
|
|
172513
172563
|
};
|
|
172514
172564
|
}
|
|
172515
|
-
class
|
|
172565
|
+
class mWA {
|
|
172516
172566
|
containerID_ = void 0;
|
|
172517
172567
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
172518
172568
|
dataClass_ = void 0;
|
|
@@ -174239,7 +174289,7 @@ var wE = {
|
|
|
174239
174289
|
defaultYField: "y",
|
|
174240
174290
|
defaultValueField: "value",
|
|
174241
174291
|
plugins: {}
|
|
174242
|
-
},
|
|
174292
|
+
}, IWA = (function() {
|
|
174243
174293
|
var A = function(i) {
|
|
174244
174294
|
this._coordinator = {}, this._data = [], this._radi = [], this._min = 10, this._max = 1, this._xField = i.xField || i.defaultXField, this._yField = i.yField || i.defaultYField, this._valueField = i.valueField || i.defaultValueField, i.radius && (this._cfgRadius = i.radius);
|
|
174245
174295
|
}, e = wE.defaultRadius;
|
|
@@ -174324,7 +174374,7 @@ var wE = {
|
|
|
174324
174374
|
return this._unOrganizeData();
|
|
174325
174375
|
}
|
|
174326
174376
|
}, A;
|
|
174327
|
-
})(),
|
|
174377
|
+
})(), MWA = (function() {
|
|
174328
174378
|
var A = function(r) {
|
|
174329
174379
|
var s = r.gradient || r.defaultGradient, o = document.createElement("canvas"), a = o.getContext("2d");
|
|
174330
174380
|
o.width = 256, o.height = 1;
|
|
@@ -174421,9 +174471,9 @@ var wE = {
|
|
|
174421
174471
|
return this.canvas.toDataURL();
|
|
174422
174472
|
}
|
|
174423
174473
|
}, i;
|
|
174424
|
-
})(),
|
|
174474
|
+
})(), TWA = (function() {
|
|
174425
174475
|
var A = !1;
|
|
174426
|
-
return wE.defaultRenderer === "canvas2d" && (A =
|
|
174476
|
+
return wE.defaultRenderer === "canvas2d" && (A = MWA), A;
|
|
174427
174477
|
})(), tW = {
|
|
174428
174478
|
merge: function() {
|
|
174429
174479
|
for (var n = {}, A = arguments.length, e = 0; e < A; e++) {
|
|
@@ -174433,7 +174483,7 @@ var wE = {
|
|
|
174433
174483
|
}
|
|
174434
174484
|
return n;
|
|
174435
174485
|
}
|
|
174436
|
-
},
|
|
174486
|
+
}, yWA = (function() {
|
|
174437
174487
|
var A = (function() {
|
|
174438
174488
|
function r() {
|
|
174439
174489
|
this.cStore = {};
|
|
@@ -174476,7 +174526,7 @@ var wE = {
|
|
|
174476
174526
|
"Plugin '" + r + "' not found. Maybe it was not registered."
|
|
174477
174527
|
);
|
|
174478
174528
|
} else
|
|
174479
|
-
this._renderer = new
|
|
174529
|
+
this._renderer = new TWA(i), this._store = new IWA(i);
|
|
174480
174530
|
e(this);
|
|
174481
174531
|
}
|
|
174482
174532
|
return t.prototype = {
|
|
@@ -174511,9 +174561,9 @@ var wE = {
|
|
|
174511
174561
|
return this._store.getValueAt ? this._store.getValueAt(i) : this._renderer.getValueAt ? this._renderer.getValueAt(i) : null;
|
|
174512
174562
|
}
|
|
174513
174563
|
}, t;
|
|
174514
|
-
})(),
|
|
174564
|
+
})(), OWA = {
|
|
174515
174565
|
create: function(n) {
|
|
174516
|
-
return new
|
|
174566
|
+
return new yWA(n);
|
|
174517
174567
|
},
|
|
174518
174568
|
register: function(n, A) {
|
|
174519
174569
|
wE.plugins[n] = A;
|
|
@@ -174556,7 +174606,7 @@ var xoA = { exports: {} };
|
|
|
174556
174606
|
return typeof document < "u" ? document.createElement("canvas") : new this._canvas.constructor();
|
|
174557
174607
|
} };
|
|
174558
174608
|
})();
|
|
174559
|
-
var
|
|
174609
|
+
var kWA = xoA.exports;
|
|
174560
174610
|
const LoA = { max: 1, gradient: { 0.4: "blue", 0.6: "cyan", 0.7: "lime", 0.8: "yellow", 1: "red" }, radius: 25, blur: 15, heatValueScale: 1, minOpacity: 0.05 };
|
|
174561
174611
|
class fE extends Co {
|
|
174562
174612
|
constructor(A, e, t) {
|
|
@@ -174613,7 +174663,7 @@ fE.mergeOptions(LoA), fE.registerJSONType("HeatLayer"), fE.registerRenderer("can
|
|
|
174613
174663
|
if (t = t.convertTo(((o) => n._pointToContainerPoint(o))), !t.intersects(e)) return void this.completeRender();
|
|
174614
174664
|
i = e.intersection(t);
|
|
174615
174665
|
}
|
|
174616
|
-
this._heater || (this._heater =
|
|
174666
|
+
this._heater || (this._heater = kWA(this.canvas)), this._heater.radius(A.options.radius || this._heater.defaultRadius, A.options.blur), A.options.gradient && this._heater.gradient(A.options.gradient), this._heater.max(A.options.max), this._heatViews || (this._heatViews = []);
|
|
174617
174667
|
const r = A.getData();
|
|
174618
174668
|
if (r.length === 0) return void this.completeRender();
|
|
174619
174669
|
const s = this._heatData(r, i);
|
|
@@ -174732,7 +174782,7 @@ class iW {
|
|
|
174732
174782
|
});
|
|
174733
174783
|
}
|
|
174734
174784
|
}).then((a) => {
|
|
174735
|
-
this.heatMapInstance_ || (this.heatMapInstance_ =
|
|
174785
|
+
this.heatMapInstance_ || (this.heatMapInstance_ = OWA.create(a.nuConfig)), this.heatMapInstance_.setData({
|
|
174736
174786
|
max: r,
|
|
174737
174787
|
min: i,
|
|
174738
174788
|
data: a.datas
|
|
@@ -174945,7 +174995,7 @@ class iW {
|
|
|
174945
174995
|
A && this.containerID_.includes("-cesium") ? e = A.container : A && this.containerID_.includes("-openlayers") ? e = A.getTargetElement() : A && this.containerID_.includes("-maptalks") && (e = A.getContainer()), e && this.colorLegendBGDiv && e.removeChild(this.colorLegendBGDiv), this.colorLegendMaxDiv && this.colorLegendBGDiv.removeChild(this.colorLegendMaxDiv), this.colorLegendMinDiv && this.colorLegendBGDiv.removeChild(this.colorLegendMinDiv), this.colorLegendDiv && this.colorLegendBGDiv.removeChild(this.colorLegendDiv), this.colorLegendBGDiv = void 0, this.colorLegendMaxDiv = void 0, this.colorLegendMinDiv = void 0, this.colorLegendDiv = void 0;
|
|
174946
174996
|
};
|
|
174947
174997
|
}
|
|
174948
|
-
class
|
|
174998
|
+
class bWA {
|
|
174949
174999
|
containerID_ = void 0;
|
|
174950
175000
|
// 地图容器ID(关联地图实例)
|
|
174951
175001
|
dataClass_ = void 0;
|
|
@@ -175509,7 +175559,7 @@ class OWA {
|
|
|
175509
175559
|
}
|
|
175510
175560
|
};
|
|
175511
175561
|
}
|
|
175512
|
-
class
|
|
175562
|
+
class zWA {
|
|
175513
175563
|
containerID_ = void 0;
|
|
175514
175564
|
// 地图容器ID(关联地图实例)
|
|
175515
175565
|
dataClass_ = void 0;
|
|
@@ -176091,7 +176141,7 @@ class kWA {
|
|
|
176091
176141
|
}
|
|
176092
176142
|
};
|
|
176093
176143
|
}
|
|
176094
|
-
class
|
|
176144
|
+
class NWA {
|
|
176095
176145
|
containerID_ = void 0;
|
|
176096
176146
|
// 地图容器ID(用于关联地图实例)
|
|
176097
176147
|
dataClass_ = void 0;
|
|
@@ -176155,7 +176205,7 @@ class bWA {
|
|
|
176155
176205
|
}
|
|
176156
176206
|
};
|
|
176157
176207
|
}
|
|
176158
|
-
class
|
|
176208
|
+
class xWA {
|
|
176159
176209
|
containerID_ = void 0;
|
|
176160
176210
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
176161
176211
|
dataClass_ = void 0;
|
|
@@ -177031,7 +177081,7 @@ class zWA {
|
|
|
177031
177081
|
)));
|
|
177032
177082
|
};
|
|
177033
177083
|
}
|
|
177034
|
-
class
|
|
177084
|
+
class LWA {
|
|
177035
177085
|
containerID_ = void 0;
|
|
177036
177086
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
177037
177087
|
dataClass_ = void 0;
|
|
@@ -177868,7 +177918,7 @@ class NWA {
|
|
|
177868
177918
|
)));
|
|
177869
177919
|
};
|
|
177870
177920
|
}
|
|
177871
|
-
class
|
|
177921
|
+
class UWA {
|
|
177872
177922
|
containerID_ = void 0;
|
|
177873
177923
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
177874
177924
|
dataClass_ = void 0;
|
|
@@ -178597,7 +178647,7 @@ class xWA {
|
|
|
178597
178647
|
this.customHTMLInstances_ = [];
|
|
178598
178648
|
};
|
|
178599
178649
|
}
|
|
178600
|
-
class
|
|
178650
|
+
class jWA {
|
|
178601
178651
|
containerID_ = void 0;
|
|
178602
178652
|
dataClass_ = void 0;
|
|
178603
178653
|
data_ = void 0;
|
|
@@ -180340,7 +180390,7 @@ class Z6 {
|
|
|
180340
180390
|
this.translationPlane_ && (this.translationPlane_ = void 0), this.translationDirection_ && (this.translationDirection_ = void 0), this.rotationPlane_ && (this.rotationPlane_ = void 0), this.rotationDirection_ && (this.rotationDirection_ = void 0);
|
|
180341
180391
|
};
|
|
180342
180392
|
}
|
|
180343
|
-
class
|
|
180393
|
+
class SWA {
|
|
180344
180394
|
containerID_ = void 0;
|
|
180345
180395
|
dataClass_ = void 0;
|
|
180346
180396
|
data_ = void 0;
|
|
@@ -181262,7 +181312,7 @@ class UWA {
|
|
|
181262
181312
|
this.customHTMLInstances_ = [];
|
|
181263
181313
|
};
|
|
181264
181314
|
}
|
|
181265
|
-
class
|
|
181315
|
+
class FWA {
|
|
181266
181316
|
containerID_ = void 0;
|
|
181267
181317
|
dataClass_ = void 0;
|
|
181268
181318
|
data_ = void 0;
|
|
@@ -182362,7 +182412,7 @@ class jWA {
|
|
|
182362
182412
|
this.customHTMLInstances_ = [];
|
|
182363
182413
|
};
|
|
182364
182414
|
}
|
|
182365
|
-
class
|
|
182415
|
+
class RWA {
|
|
182366
182416
|
containerID_ = void 0;
|
|
182367
182417
|
dataClass_ = void 0;
|
|
182368
182418
|
data_ = void 0;
|
|
@@ -183247,7 +183297,7 @@ class SWA {
|
|
|
183247
183297
|
}), this.customHTMLInstances_ = [];
|
|
183248
183298
|
};
|
|
183249
183299
|
}
|
|
183250
|
-
class
|
|
183300
|
+
class YWA {
|
|
183251
183301
|
containerID_ = void 0;
|
|
183252
183302
|
dataClass_ = void 0;
|
|
183253
183303
|
data_ = void 0;
|
|
@@ -184126,7 +184176,7 @@ class FWA {
|
|
|
184126
184176
|
this.customHTMLInstances_ = [];
|
|
184127
184177
|
};
|
|
184128
184178
|
}
|
|
184129
|
-
class
|
|
184179
|
+
class HWA {
|
|
184130
184180
|
// 容器ID(地图容器DOM元素标识)
|
|
184131
184181
|
containerID_ = void 0;
|
|
184132
184182
|
// 数据类型类(可能用于类型校验或扩展)
|
|
@@ -184210,7 +184260,7 @@ class RWA {
|
|
|
184210
184260
|
this.geometryInstance_ && A && A?.scene && A?.scene?.primitives && A.scene.primitives.remove(this.geometryInstance_), this.geometryInstance_ = void 0;
|
|
184211
184261
|
};
|
|
184212
184262
|
}
|
|
184213
|
-
class
|
|
184263
|
+
class JWA {
|
|
184214
184264
|
containerID_ = void 0;
|
|
184215
184265
|
dataClass_ = void 0;
|
|
184216
184266
|
data_ = void 0;
|
|
@@ -184357,7 +184407,7 @@ class YWA {
|
|
|
184357
184407
|
this.radar_ && A && A?.entities && A.entities.remove(this.radar_), this.scan_ && A && A?.entities && A.entities.remove(this.scan_), this.radar_ = void 0, this.scan_ = void 0, this.scanAnimation_ && A && A?.clock && A.clock.onTick.removeEventListener(this.scanAnimation_), this.scanAnimation_ = void 0;
|
|
184358
184408
|
};
|
|
184359
184409
|
}
|
|
184360
|
-
class
|
|
184410
|
+
class GWA {
|
|
184361
184411
|
containerID_ = void 0;
|
|
184362
184412
|
dataClass_ = void 0;
|
|
184363
184413
|
data_ = void 0;
|
|
@@ -184418,7 +184468,7 @@ class HWA {
|
|
|
184418
184468
|
}), this.layers_ = [], this.S3MBPromise_ = void 0;
|
|
184419
184469
|
};
|
|
184420
184470
|
}
|
|
184421
|
-
class
|
|
184471
|
+
class ZWA {
|
|
184422
184472
|
// 定义并导出影像主题处理类
|
|
184423
184473
|
/**
|
|
184424
184474
|
* 构造函数,初始化参数和着色器代码
|
|
@@ -184595,7 +184645,7 @@ function dy(n) {
|
|
|
184595
184645
|
}
|
|
184596
184646
|
var UL = { exports: {} };
|
|
184597
184647
|
var nW;
|
|
184598
|
-
function
|
|
184648
|
+
function KWA() {
|
|
184599
184649
|
return nW || (nW = 1, (function(n, A) {
|
|
184600
184650
|
(function(e) {
|
|
184601
184651
|
n.exports = e();
|
|
@@ -186896,8 +186946,8 @@ function GWA() {
|
|
|
186896
186946
|
});
|
|
186897
186947
|
})(UL)), UL.exports;
|
|
186898
186948
|
}
|
|
186899
|
-
var
|
|
186900
|
-
const
|
|
186949
|
+
var VWA = KWA();
|
|
186950
|
+
const qWA = /* @__PURE__ */ YQ(VWA), WWA = /\s*/g, XWA = /^\s*|\s*$/g, _WA = /\s+/;
|
|
186901
186951
|
function rW(n) {
|
|
186902
186952
|
if (!n || !n.length)
|
|
186903
186953
|
return 0;
|
|
@@ -186915,7 +186965,7 @@ function fr(n, A) {
|
|
|
186915
186965
|
const e = ND(n, A);
|
|
186916
186966
|
return e.length ? e[0] : null;
|
|
186917
186967
|
}
|
|
186918
|
-
function
|
|
186968
|
+
function $WA(n) {
|
|
186919
186969
|
return n.normalize && n.normalize(), n;
|
|
186920
186970
|
}
|
|
186921
186971
|
function UoA(n) {
|
|
@@ -186924,18 +186974,18 @@ function UoA(n) {
|
|
|
186924
186974
|
return e;
|
|
186925
186975
|
}
|
|
186926
186976
|
function Gs(n) {
|
|
186927
|
-
return n &&
|
|
186977
|
+
return n && $WA(n), n && n.textContent || "";
|
|
186928
186978
|
}
|
|
186929
186979
|
function joA(n) {
|
|
186930
|
-
return UoA(n.replace(
|
|
186980
|
+
return UoA(n.replace(WWA, "").split(","));
|
|
186931
186981
|
}
|
|
186932
186982
|
function sW(n) {
|
|
186933
|
-
const A = n.replace(
|
|
186983
|
+
const A = n.replace(XWA, "").split(_WA), e = [];
|
|
186934
186984
|
for (let t = 0; t < A.length; t++)
|
|
186935
186985
|
e.push(joA(A[t]));
|
|
186936
186986
|
return e;
|
|
186937
186987
|
}
|
|
186938
|
-
function
|
|
186988
|
+
function AXA() {
|
|
186939
186989
|
return {
|
|
186940
186990
|
type: "FeatureCollection",
|
|
186941
186991
|
features: []
|
|
@@ -186947,7 +186997,7 @@ function oW(n) {
|
|
|
186947
186997
|
return n.xml !== void 0 ? n.xml : gU.serializeToString(n);
|
|
186948
186998
|
}
|
|
186949
186999
|
function Dp(n) {
|
|
186950
|
-
const A =
|
|
187000
|
+
const A = AXA(), e = {}, t = {}, i = {}, r = ["Polygon", "LineString", "Point", "Track", "gx:Track"], s = ND(n, "Placemark"), o = ND(n, "Style"), a = ND(n, "StyleMap");
|
|
186951
187001
|
for (let g = 0; g < o.length; g++) {
|
|
186952
187002
|
const u = rW(oW(o[g])).toString(16);
|
|
186953
187003
|
e["#" + lp(o[g], "id")] = u, t[u] = o[g];
|
|
@@ -187086,25 +187136,25 @@ function Dp(n) {
|
|
|
187086
187136
|
}
|
|
187087
187137
|
return A;
|
|
187088
187138
|
}
|
|
187089
|
-
const K6 = (n) => new DOMParser().parseFromString(n, "application/xml"), SoA = (n) => n.split(".").pop(), aW = (n) => new
|
|
187139
|
+
const K6 = (n) => new DOMParser().parseFromString(n, "application/xml"), SoA = (n) => n.split(".").pop(), aW = (n) => new qWA().loadAsync(n).then((e) => {
|
|
187090
187140
|
let t = null;
|
|
187091
187141
|
return e.forEach((i, r) => {
|
|
187092
187142
|
SoA(i) === "kml" && t === null && (t = r.async("string").then(K6));
|
|
187093
187143
|
}), t;
|
|
187094
187144
|
});
|
|
187095
|
-
function
|
|
187145
|
+
function eXA(n, A) {
|
|
187096
187146
|
if (!n) {
|
|
187097
187147
|
console.warn("toGeoJSON参数不能为空");
|
|
187098
187148
|
return;
|
|
187099
187149
|
}
|
|
187100
|
-
if (
|
|
187150
|
+
if (tXA(n)) {
|
|
187101
187151
|
const e = SoA(n);
|
|
187102
187152
|
if (e === "kml")
|
|
187103
|
-
return
|
|
187153
|
+
return iXA(n, A).then(function(t) {
|
|
187104
187154
|
return Dp(t);
|
|
187105
187155
|
});
|
|
187106
187156
|
if (e === "kmz")
|
|
187107
|
-
return
|
|
187157
|
+
return nXA(n, A).then(function(t) {
|
|
187108
187158
|
return aW(t);
|
|
187109
187159
|
}).then(function(t) {
|
|
187110
187160
|
return Dp(t);
|
|
@@ -187121,10 +187171,10 @@ function $WA(n, A) {
|
|
|
187121
187171
|
return Dp(e);
|
|
187122
187172
|
});
|
|
187123
187173
|
}
|
|
187124
|
-
function
|
|
187174
|
+
function tXA(n) {
|
|
187125
187175
|
return typeof n == "string" && n.constructor === String;
|
|
187126
187176
|
}
|
|
187127
|
-
function
|
|
187177
|
+
function iXA(n, A) {
|
|
187128
187178
|
const e = {
|
|
187129
187179
|
method: "GET",
|
|
187130
187180
|
// headers: { "Content-Type": "application/xml" },
|
|
@@ -187132,20 +187182,20 @@ function eXA(n, A) {
|
|
|
187132
187182
|
};
|
|
187133
187183
|
return fetch(n, e).then((t) => t.text()).then((t) => K6(t));
|
|
187134
187184
|
}
|
|
187135
|
-
function
|
|
187185
|
+
function nXA(n, A) {
|
|
187136
187186
|
const e = {
|
|
187137
187187
|
method: "GET",
|
|
187138
187188
|
...A
|
|
187139
187189
|
};
|
|
187140
187190
|
return fetch(n, e).then((t) => t.blob());
|
|
187141
187191
|
}
|
|
187142
|
-
function
|
|
187192
|
+
function rXA(n) {
|
|
187143
187193
|
n("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), n("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), n("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +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 +no_defs");
|
|
187144
187194
|
for (var A = 1; A <= 60; ++A)
|
|
187145
187195
|
n("EPSG:" + (32600 + A), "+proj=utm +zone=" + A + " +datum=WGS84 +units=m"), n("EPSG:" + (32700 + A), "+proj=utm +zone=" + A + " +south +datum=WGS84 +units=m");
|
|
187146
187196
|
n("EPSG:5041", "+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), n("EPSG:5042", "+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), n.WGS84 = n["EPSG:4326"], n["EPSG:3785"] = n["EPSG:3857"], n.GOOGLE = n["EPSG:3857"], n["EPSG:900913"] = n["EPSG:3857"], n["EPSG:102113"] = n["EPSG:3857"];
|
|
187147
187197
|
}
|
|
187148
|
-
var Vf = 1, qf = 2, dE = 3,
|
|
187198
|
+
var Vf = 1, qf = 2, dE = 3, sXA = 4, uU = 5, lW = 6378137, oXA = 6356752314e-3, DW = 0.0066943799901413165, cm = 484813681109536e-20, Vt = Math.PI / 2, aXA = 0.16666666666666666, lXA = 0.04722222222222222, DXA = 0.022156084656084655, oi = 1e-10, ys = 0.017453292519943295, kl = 57.29577951308232, pr = Math.PI / 4, uI = Math.PI * 2, Zs = 3.14159265359, jl = {};
|
|
187149
187199
|
jl.greenwich = 0;
|
|
187150
187200
|
jl.lisbon = -9.131906111111;
|
|
187151
187201
|
jl.paris = 2.337229166667;
|
|
@@ -187159,7 +187209,7 @@ jl.brussels = 4.367975;
|
|
|
187159
187209
|
jl.stockholm = 18.058277777778;
|
|
187160
187210
|
jl.athens = 23.7163375;
|
|
187161
187211
|
jl.oslo = 10.722916666667;
|
|
187162
|
-
const
|
|
187212
|
+
const PXA = {
|
|
187163
187213
|
mm: { to_meter: 1e-3 },
|
|
187164
187214
|
cm: { to_meter: 0.01 },
|
|
187165
187215
|
ft: { to_meter: 0.3048 },
|
|
@@ -187273,7 +187323,7 @@ function QU(n) {
|
|
|
187273
187323
|
},
|
|
187274
187324
|
units: function(o) {
|
|
187275
187325
|
A.units = o;
|
|
187276
|
-
var a = SQ(
|
|
187326
|
+
var a = SQ(PXA, o);
|
|
187277
187327
|
a && (A.to_meter = a.to_meter);
|
|
187278
187328
|
},
|
|
187279
187329
|
from_greenwich: function(o) {
|
|
@@ -187469,12 +187519,12 @@ class FoA {
|
|
|
187469
187519
|
return e;
|
|
187470
187520
|
}
|
|
187471
187521
|
}
|
|
187472
|
-
class
|
|
187522
|
+
class cXA extends FoA {
|
|
187473
187523
|
static convert(A, e = {}) {
|
|
187474
187524
|
return super.convert(A, e), e.coordinate_system && e.coordinate_system.subtype === "Cartesian" && delete e.coordinate_system, e.usage && delete e.usage, e;
|
|
187475
187525
|
}
|
|
187476
187526
|
}
|
|
187477
|
-
class
|
|
187527
|
+
class hXA extends FoA {
|
|
187478
187528
|
static convert(A, e = {}) {
|
|
187479
187529
|
super.convert(A, e);
|
|
187480
187530
|
const t = A.find((r) => Array.isArray(r) && r[0] === "CS");
|
|
@@ -187490,17 +187540,17 @@ class PXA extends FoA {
|
|
|
187490
187540
|
return e;
|
|
187491
187541
|
}
|
|
187492
187542
|
}
|
|
187493
|
-
function
|
|
187543
|
+
function gXA(n) {
|
|
187494
187544
|
return n.find((A) => Array.isArray(A) && A[0] === "USAGE") ? "2019" : (n.find((A) => Array.isArray(A) && A[0] === "CS") || n[0] === "BOUNDCRS" || n[0] === "PROJCRS" || n[0] === "GEOGCRS", "2015");
|
|
187495
187545
|
}
|
|
187496
|
-
function
|
|
187497
|
-
return (
|
|
187546
|
+
function uXA(n) {
|
|
187547
|
+
return (gXA(n) === "2019" ? hXA : cXA).convert(n);
|
|
187498
187548
|
}
|
|
187499
|
-
function
|
|
187549
|
+
function QXA(n) {
|
|
187500
187550
|
const A = n.toUpperCase();
|
|
187501
187551
|
return A.includes("PROJCRS") || A.includes("GEOGCRS") || A.includes("BOUNDCRS") || A.includes("VERTCRS") || A.includes("LENGTHUNIT") || A.includes("ANGLEUNIT") || A.includes("SCALEUNIT") ? "WKT2" : (A.includes("PROJCS") || A.includes("GEOGCS") || A.includes("LOCAL_CS") || A.includes("VERT_CS") || A.includes("UNIT"), "WKT1");
|
|
187502
187552
|
}
|
|
187503
|
-
var QI = 1, RoA = 2, YoA = 3, YO = 4, HoA = 5, V6 = -1,
|
|
187553
|
+
var QI = 1, RoA = 2, YoA = 3, YO = 4, HoA = 5, V6 = -1, wXA = /\s/, fXA = /[A-Za-z]/, dXA = /[A-Za-z84_]/, hb = /[,\]]/, JoA = /[\d\.E\-\+]/;
|
|
187504
187554
|
function jg(n) {
|
|
187505
187555
|
if (typeof n != "string")
|
|
187506
187556
|
throw new Error("not a string");
|
|
@@ -187509,7 +187559,7 @@ function jg(n) {
|
|
|
187509
187559
|
jg.prototype.readCharicter = function() {
|
|
187510
187560
|
var n = this.text[this.place++];
|
|
187511
187561
|
if (this.state !== YO)
|
|
187512
|
-
for (;
|
|
187562
|
+
for (; wXA.test(n); ) {
|
|
187513
187563
|
if (this.place >= this.text.length)
|
|
187514
187564
|
return;
|
|
187515
187565
|
n = this.text[this.place++];
|
|
@@ -187569,7 +187619,7 @@ jg.prototype.quoted = function(n) {
|
|
|
187569
187619
|
this.word += n;
|
|
187570
187620
|
};
|
|
187571
187621
|
jg.prototype.keyword = function(n) {
|
|
187572
|
-
if (
|
|
187622
|
+
if (dXA.test(n)) {
|
|
187573
187623
|
this.word += n;
|
|
187574
187624
|
return;
|
|
187575
187625
|
}
|
|
@@ -187585,7 +187635,7 @@ jg.prototype.keyword = function(n) {
|
|
|
187585
187635
|
throw new Error(`havn't handled "` + n + '" in keyword yet, index ' + this.place);
|
|
187586
187636
|
};
|
|
187587
187637
|
jg.prototype.neutral = function(n) {
|
|
187588
|
-
if (
|
|
187638
|
+
if (fXA.test(n)) {
|
|
187589
187639
|
this.word = n, this.state = RoA;
|
|
187590
187640
|
return;
|
|
187591
187641
|
}
|
|
@@ -187610,7 +187660,7 @@ jg.prototype.output = function() {
|
|
|
187610
187660
|
return this.root;
|
|
187611
187661
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
187612
187662
|
};
|
|
187613
|
-
function
|
|
187663
|
+
function vXA(n) {
|
|
187614
187664
|
var A = new jg(n);
|
|
187615
187665
|
return A.output();
|
|
187616
187666
|
}
|
|
@@ -187700,9 +187750,9 @@ function FC(n, A) {
|
|
|
187700
187750
|
return jL(A, e, n);
|
|
187701
187751
|
}
|
|
187702
187752
|
}
|
|
187703
|
-
var
|
|
187753
|
+
var CXA = 0.017453292519943295;
|
|
187704
187754
|
function yP(n) {
|
|
187705
|
-
return n *
|
|
187755
|
+
return n * CXA;
|
|
187706
187756
|
}
|
|
187707
187757
|
function GoA(n) {
|
|
187708
187758
|
const A = (n.projName || "").toLowerCase().replace(/_/g, " ");
|
|
@@ -187777,7 +187827,7 @@ function HO(n, A = {}) {
|
|
|
187777
187827
|
}
|
|
187778
187828
|
}), A.latitude_of_false_origin !== void 0 && (A.lat0 = A.latitude_of_false_origin), A.longitude_of_false_origin !== void 0 && (A.long0 = A.longitude_of_false_origin), A.latitude_of_standard_parallel !== void 0 && (A.lat0 = A.latitude_of_standard_parallel, A.lat1 = A.latitude_of_standard_parallel), A.latitude_of_1st_standard_parallel !== void 0 && (A.lat1 = A.latitude_of_1st_standard_parallel), A.latitude_of_2nd_standard_parallel !== void 0 && (A.lat2 = A.latitude_of_2nd_standard_parallel), A.latitude_of_projection_centre !== void 0 && (A.lat0 = A.latitude_of_projection_centre), A.longitude_of_projection_centre !== void 0 && (A.longc = A.longitude_of_projection_centre), A.easting_at_false_origin !== void 0 && (A.x0 = A.easting_at_false_origin), A.northing_at_false_origin !== void 0 && (A.y0 = A.northing_at_false_origin), A.latitude_of_natural_origin !== void 0 && (A.lat0 = A.latitude_of_natural_origin), A.longitude_of_natural_origin !== void 0 && (A.long0 = A.longitude_of_natural_origin), A.longitude_of_origin !== void 0 && (A.long0 = A.longitude_of_origin), A.false_easting !== void 0 && (A.x0 = A.false_easting), A.easting_at_projection_centre && (A.x0 = A.easting_at_projection_centre), A.false_northing !== void 0 && (A.y0 = A.false_northing), A.northing_at_projection_centre && (A.y0 = A.northing_at_projection_centre), A.standard_parallel_1 !== void 0 && (A.lat1 = A.standard_parallel_1), A.standard_parallel_2 !== void 0 && (A.lat2 = A.standard_parallel_2), A.scale_factor_at_natural_origin !== void 0 && (A.k0 = A.scale_factor_at_natural_origin), A.scale_factor_at_projection_centre !== void 0 && (A.k0 = A.scale_factor_at_projection_centre), A.scale_factor_on_pseudo_standard_parallel !== void 0 && (A.k0 = A.scale_factor_on_pseudo_standard_parallel), A.azimuth !== void 0 && (A.alpha = A.azimuth), A.azimuth_at_projection_centre !== void 0 && (A.alpha = A.azimuth_at_projection_centre), A.angle_from_rectified_to_skew_grid && (A.rectified_grid_angle = A.angle_from_rectified_to_skew_grid), GoA(A), A);
|
|
187779
187829
|
}
|
|
187780
|
-
var
|
|
187830
|
+
var EXA = [
|
|
187781
187831
|
"PROJECTEDCRS",
|
|
187782
187832
|
"PROJCRS",
|
|
187783
187833
|
"GEOGCS",
|
|
@@ -187790,17 +187840,17 @@ var vXA = [
|
|
|
187790
187840
|
"ENGCRS",
|
|
187791
187841
|
"ENGINEERINGCRS"
|
|
187792
187842
|
];
|
|
187793
|
-
function
|
|
187843
|
+
function BXA(n, A) {
|
|
187794
187844
|
var e = A[0], t = A[1];
|
|
187795
187845
|
!(e in n) && t in n && (n[e] = n[t], A.length === 3 && (n[e] = A[2](n[e])));
|
|
187796
187846
|
}
|
|
187797
187847
|
function ZoA(n) {
|
|
187798
187848
|
for (var A = Object.keys(n), e = 0, t = A.length; e < t; ++e) {
|
|
187799
187849
|
var i = A[e];
|
|
187800
|
-
|
|
187850
|
+
EXA.indexOf(i) !== -1 && pXA(n[i]), typeof n[i] == "object" && ZoA(n[i]);
|
|
187801
187851
|
}
|
|
187802
187852
|
}
|
|
187803
|
-
function
|
|
187853
|
+
function pXA(n) {
|
|
187804
187854
|
if (n.AUTHORITY) {
|
|
187805
187855
|
var A = Object.keys(n.AUTHORITY)[0];
|
|
187806
187856
|
A && A in n.AUTHORITY && (n.title = A + ":" + n.AUTHORITY[A]);
|
|
@@ -187820,7 +187870,7 @@ function EXA(n) {
|
|
|
187820
187870
|
return D * P;
|
|
187821
187871
|
}
|
|
187822
187872
|
var a = function(D) {
|
|
187823
|
-
return
|
|
187873
|
+
return BXA(n, D);
|
|
187824
187874
|
}, l = [
|
|
187825
187875
|
["standard_parallel_1", "Standard_Parallel_1"],
|
|
187826
187876
|
["standard_parallel_1", "Latitude of 1st standard parallel"],
|
|
@@ -187863,10 +187913,10 @@ function EXA(n) {
|
|
|
187863
187913
|
function JO(n) {
|
|
187864
187914
|
if (typeof n == "object")
|
|
187865
187915
|
return HO(n);
|
|
187866
|
-
const A =
|
|
187867
|
-
var e =
|
|
187916
|
+
const A = QXA(n);
|
|
187917
|
+
var e = vXA(n);
|
|
187868
187918
|
if (A === "WKT2") {
|
|
187869
|
-
const r =
|
|
187919
|
+
const r = uXA(e);
|
|
187870
187920
|
return HO(r);
|
|
187871
187921
|
}
|
|
187872
187922
|
var t = e[0], i = {};
|
|
@@ -187904,44 +187954,44 @@ function ta(n) {
|
|
|
187904
187954
|
return;
|
|
187905
187955
|
}
|
|
187906
187956
|
}
|
|
187907
|
-
|
|
187908
|
-
function
|
|
187957
|
+
rXA(ta);
|
|
187958
|
+
function mXA(n) {
|
|
187909
187959
|
return typeof n == "string";
|
|
187910
187960
|
}
|
|
187911
|
-
function
|
|
187961
|
+
function IXA(n) {
|
|
187912
187962
|
return n in ta;
|
|
187913
187963
|
}
|
|
187914
|
-
function
|
|
187964
|
+
function MXA(n) {
|
|
187915
187965
|
return n.indexOf("+") !== 0 && n.indexOf("[") !== -1 || typeof n == "object" && !("srsCode" in n);
|
|
187916
187966
|
}
|
|
187917
|
-
var
|
|
187918
|
-
function
|
|
187967
|
+
var TXA = ["3857", "900913", "3785", "102113"];
|
|
187968
|
+
function yXA(n) {
|
|
187919
187969
|
var A = SQ(n, "authority");
|
|
187920
187970
|
if (A) {
|
|
187921
187971
|
var e = SQ(A, "epsg");
|
|
187922
|
-
return e &&
|
|
187972
|
+
return e && TXA.indexOf(e) > -1;
|
|
187923
187973
|
}
|
|
187924
187974
|
}
|
|
187925
|
-
function
|
|
187975
|
+
function OXA(n) {
|
|
187926
187976
|
var A = SQ(n, "extension");
|
|
187927
187977
|
if (A)
|
|
187928
187978
|
return SQ(A, "proj4");
|
|
187929
187979
|
}
|
|
187930
|
-
function
|
|
187980
|
+
function kXA(n) {
|
|
187931
187981
|
return n[0] === "+";
|
|
187932
187982
|
}
|
|
187933
|
-
function
|
|
187934
|
-
if (
|
|
187935
|
-
if (
|
|
187983
|
+
function bXA(n) {
|
|
187984
|
+
if (mXA(n)) {
|
|
187985
|
+
if (IXA(n))
|
|
187936
187986
|
return ta[n];
|
|
187937
|
-
if (
|
|
187987
|
+
if (MXA(n)) {
|
|
187938
187988
|
var A = JO(n);
|
|
187939
|
-
if (
|
|
187989
|
+
if (yXA(A))
|
|
187940
187990
|
return ta["EPSG:3857"];
|
|
187941
|
-
var e =
|
|
187991
|
+
var e = OXA(A);
|
|
187942
187992
|
return e ? QU(e) : A;
|
|
187943
187993
|
}
|
|
187944
|
-
if (
|
|
187994
|
+
if (kXA(n))
|
|
187945
187995
|
return QU(n);
|
|
187946
187996
|
} else return "projName" in n ? n : JO(n);
|
|
187947
187997
|
}
|
|
@@ -187974,11 +188024,11 @@ function wI(n, A) {
|
|
|
187974
188024
|
return r;
|
|
187975
188025
|
return -9999;
|
|
187976
188026
|
}
|
|
187977
|
-
function
|
|
188027
|
+
function zXA() {
|
|
187978
188028
|
var n = this.b / this.a;
|
|
187979
188029
|
this.es = 1 - n * n, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = rh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
187980
188030
|
}
|
|
187981
|
-
function
|
|
188031
|
+
function NXA(n) {
|
|
187982
188032
|
var A = n.x, e = n.y;
|
|
187983
188033
|
if (e * kl > 90 && e * kl < -90 && A * kl > 180 && A * kl < -180)
|
|
187984
188034
|
return null;
|
|
@@ -187993,7 +188043,7 @@ function bXA(n) {
|
|
|
187993
188043
|
}
|
|
187994
188044
|
return n.x = t, n.y = i, n;
|
|
187995
188045
|
}
|
|
187996
|
-
function
|
|
188046
|
+
function xXA(n) {
|
|
187997
188047
|
var A = n.x - this.x0, e = n.y - this.y0, t, i;
|
|
187998
188048
|
if (this.sphere)
|
|
187999
188049
|
i = Vt - 2 * Math.atan(Math.exp(-e / (this.a * this.k0)));
|
|
@@ -188004,26 +188054,26 @@ function zXA(n) {
|
|
|
188004
188054
|
}
|
|
188005
188055
|
return t = Qi(this.long0 + A / (this.a * this.k0), this.over), n.x = t, n.y = i, n;
|
|
188006
188056
|
}
|
|
188007
|
-
var
|
|
188008
|
-
const
|
|
188009
|
-
init:
|
|
188010
|
-
forward:
|
|
188011
|
-
inverse:
|
|
188012
|
-
names:
|
|
188057
|
+
var LXA = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
|
|
188058
|
+
const UXA = {
|
|
188059
|
+
init: zXA,
|
|
188060
|
+
forward: NXA,
|
|
188061
|
+
inverse: xXA,
|
|
188062
|
+
names: LXA
|
|
188013
188063
|
};
|
|
188014
|
-
function
|
|
188064
|
+
function jXA() {
|
|
188015
188065
|
}
|
|
188016
188066
|
function QW(n) {
|
|
188017
188067
|
return n;
|
|
188018
188068
|
}
|
|
188019
188069
|
var KoA = ["longlat", "identity"];
|
|
188020
|
-
const
|
|
188021
|
-
init:
|
|
188070
|
+
const SXA = {
|
|
188071
|
+
init: jXA,
|
|
188022
188072
|
forward: QW,
|
|
188023
188073
|
inverse: QW,
|
|
188024
188074
|
names: KoA
|
|
188025
188075
|
};
|
|
188026
|
-
var
|
|
188076
|
+
var FXA = [UXA, SXA], $w = {}, RC = [];
|
|
188027
188077
|
function VoA(n, A) {
|
|
188028
188078
|
var e = RC.length;
|
|
188029
188079
|
return n.names ? (RC[e] = n, n.names.forEach(function(t) {
|
|
@@ -188033,20 +188083,20 @@ function VoA(n, A) {
|
|
|
188033
188083
|
function qoA(n) {
|
|
188034
188084
|
return n.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
|
|
188035
188085
|
}
|
|
188036
|
-
function
|
|
188086
|
+
function RXA(n) {
|
|
188037
188087
|
if (!n)
|
|
188038
188088
|
return !1;
|
|
188039
188089
|
var A = n.toLowerCase();
|
|
188040
188090
|
if (typeof $w[A] < "u" && RC[$w[A]] || (A = qoA(A), A in $w && RC[$w[A]]))
|
|
188041
188091
|
return RC[$w[A]];
|
|
188042
188092
|
}
|
|
188043
|
-
function
|
|
188044
|
-
|
|
188093
|
+
function YXA() {
|
|
188094
|
+
FXA.forEach(VoA);
|
|
188045
188095
|
}
|
|
188046
|
-
const
|
|
188047
|
-
start:
|
|
188096
|
+
const HXA = {
|
|
188097
|
+
start: YXA,
|
|
188048
188098
|
add: VoA,
|
|
188049
|
-
get:
|
|
188099
|
+
get: RXA
|
|
188050
188100
|
};
|
|
188051
188101
|
var WoA = {
|
|
188052
188102
|
MERIT: {
|
|
@@ -188271,10 +188321,10 @@ var WoA = {
|
|
|
188271
188321
|
ellipseName: "Normal Sphere (r=6370997)"
|
|
188272
188322
|
}
|
|
188273
188323
|
};
|
|
188274
|
-
const
|
|
188275
|
-
function
|
|
188324
|
+
const JXA = WoA.WGS84;
|
|
188325
|
+
function GXA(n, A, e, t) {
|
|
188276
188326
|
var i = n * n, r = A * A, s = (i - r) / i, o = 0;
|
|
188277
|
-
t ? (n *= 1 - s * (
|
|
188327
|
+
t ? (n *= 1 - s * (aXA + s * (lXA + s * DXA)), i = n * n, s = 0) : o = Math.sqrt(s);
|
|
188278
188328
|
var a = (i - r) / r;
|
|
188279
188329
|
return {
|
|
188280
188330
|
es: s,
|
|
@@ -188282,10 +188332,10 @@ function HXA(n, A, e, t) {
|
|
|
188282
188332
|
ep2: a
|
|
188283
188333
|
};
|
|
188284
188334
|
}
|
|
188285
|
-
function
|
|
188335
|
+
function ZXA(n, A, e, t, i) {
|
|
188286
188336
|
if (!n) {
|
|
188287
188337
|
var r = SQ(WoA, t);
|
|
188288
|
-
r || (r =
|
|
188338
|
+
r || (r = JXA), n = r.a, A = r.b, e = r.rf;
|
|
188289
188339
|
}
|
|
188290
188340
|
return e && !A && (A = (1 - 1 / e) * n), (e === 0 || Math.abs(n - A) < oi) && (i = !0, A = n), {
|
|
188291
188341
|
a: n,
|
|
@@ -189565,25 +189615,25 @@ var e1 = {
|
|
|
189565
189615
|
towgs84: "589,76,480"
|
|
189566
189616
|
}
|
|
189567
189617
|
};
|
|
189568
|
-
for (var
|
|
189569
|
-
var SL = e1[
|
|
189618
|
+
for (var KXA in e1) {
|
|
189619
|
+
var SL = e1[KXA];
|
|
189570
189620
|
SL.datumName && (e1[SL.datumName] = SL);
|
|
189571
189621
|
}
|
|
189572
|
-
function
|
|
189622
|
+
function VXA(n, A, e, t, i, r, s) {
|
|
189573
189623
|
var o = {};
|
|
189574
|
-
return n === void 0 || n === "none" ? o.datum_type = uU : o.datum_type =
|
|
189624
|
+
return n === void 0 || n === "none" ? o.datum_type = uU : o.datum_type = sXA, A && (o.datum_params = A.map(parseFloat), (o.datum_params[0] !== 0 || o.datum_params[1] !== 0 || o.datum_params[2] !== 0) && (o.datum_type = Vf), o.datum_params.length > 3 && (o.datum_params[3] !== 0 || o.datum_params[4] !== 0 || o.datum_params[5] !== 0 || o.datum_params[6] !== 0) && (o.datum_type = qf, o.datum_params[3] *= cm, o.datum_params[4] *= cm, o.datum_params[5] *= cm, o.datum_params[6] = o.datum_params[6] / 1e6 + 1)), s && (o.datum_type = dE, o.grids = s), o.a = e, o.b = t, o.es = i, o.ep2 = r, o;
|
|
189575
189625
|
}
|
|
189576
189626
|
var q6 = {};
|
|
189577
|
-
function
|
|
189578
|
-
return A instanceof ArrayBuffer ?
|
|
189627
|
+
function qXA(n, A, e) {
|
|
189628
|
+
return A instanceof ArrayBuffer ? WXA(n, A, e) : { ready: XXA(n, A) };
|
|
189579
189629
|
}
|
|
189580
|
-
function
|
|
189630
|
+
function WXA(n, A, e) {
|
|
189581
189631
|
var t = !0;
|
|
189582
189632
|
e !== void 0 && e.includeErrorFields === !1 && (t = !1);
|
|
189583
|
-
var i = new DataView(A), r =
|
|
189633
|
+
var i = new DataView(A), r = A_A(i), s = e_A(i, r), o = t_A(i, s, r, t), a = { header: s, subgrids: o };
|
|
189584
189634
|
return q6[n] = a, a;
|
|
189585
189635
|
}
|
|
189586
|
-
async function
|
|
189636
|
+
async function XXA(n, A) {
|
|
189587
189637
|
for (var e = [], t = await A.getImageCount(), i = t - 1; i >= 0; i--) {
|
|
189588
189638
|
var r = await A.getImage(i), s = await r.readRasters(), o = s, a = [r.getWidth(), r.getHeight()], l = r.getBoundingBox().map(wW), D = [r.fileDirectory.ModelPixelScale[0], r.fileDirectory.ModelPixelScale[1]].map(wW), P = l[0] + (a[0] - 1) * D[0], c = l[3] - (a[1] - 1) * D[1], h = o[0], g = o[1], u = [];
|
|
189589
189639
|
for (let C = a[1] - 1; C >= 0; C--)
|
|
@@ -189606,13 +189656,13 @@ async function qXA(n, A) {
|
|
|
189606
189656
|
};
|
|
189607
189657
|
return q6[n] = w, w;
|
|
189608
189658
|
}
|
|
189609
|
-
function
|
|
189659
|
+
function _XA(n) {
|
|
189610
189660
|
if (n === void 0)
|
|
189611
189661
|
return null;
|
|
189612
189662
|
var A = n.split(",");
|
|
189613
|
-
return A.map(
|
|
189663
|
+
return A.map($XA);
|
|
189614
189664
|
}
|
|
189615
|
-
function
|
|
189665
|
+
function $XA(n) {
|
|
189616
189666
|
if (n.length === 0)
|
|
189617
189667
|
return null;
|
|
189618
189668
|
var A = n[0] === "@";
|
|
@@ -189629,11 +189679,11 @@ function wW(n) {
|
|
|
189629
189679
|
function wQ(n) {
|
|
189630
189680
|
return n / 3600 * Math.PI / 180;
|
|
189631
189681
|
}
|
|
189632
|
-
function
|
|
189682
|
+
function A_A(n) {
|
|
189633
189683
|
var A = n.getInt32(8, !1);
|
|
189634
189684
|
return A === 11 ? !1 : (A = n.getInt32(8, !0), A !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
|
|
189635
189685
|
}
|
|
189636
|
-
function
|
|
189686
|
+
function e_A(n, A) {
|
|
189637
189687
|
return {
|
|
189638
189688
|
nFields: n.getInt32(8, A),
|
|
189639
189689
|
nSubgridFields: n.getInt32(24, A),
|
|
@@ -189648,9 +189698,9 @@ function $XA(n, A) {
|
|
|
189648
189698
|
function wU(n, A, e) {
|
|
189649
189699
|
return String.fromCharCode.apply(null, new Uint8Array(n.buffer.slice(A, e)));
|
|
189650
189700
|
}
|
|
189651
|
-
function
|
|
189701
|
+
function t_A(n, A, e, t) {
|
|
189652
189702
|
for (var i = 176, r = [], s = 0; s < A.nSubgrids; s++) {
|
|
189653
|
-
var o =
|
|
189703
|
+
var o = n_A(n, i, e), a = r_A(n, i, o, e, t), l = Math.round(
|
|
189654
189704
|
1 + (o.upperLongitude - o.lowerLongitude) / o.longitudeInterval
|
|
189655
189705
|
), D = Math.round(
|
|
189656
189706
|
1 + (o.upperLatitude - o.lowerLatitude) / o.latitudeInterval
|
|
@@ -189660,19 +189710,19 @@ function A_A(n, A, e, t) {
|
|
|
189660
189710
|
del: [wQ(o.longitudeInterval), wQ(o.latitudeInterval)],
|
|
189661
189711
|
lim: [l, D],
|
|
189662
189712
|
count: o.gridNodeCount,
|
|
189663
|
-
cvs:
|
|
189713
|
+
cvs: i_A(a)
|
|
189664
189714
|
});
|
|
189665
189715
|
var P = 16;
|
|
189666
189716
|
t === !1 && (P = 8), i += 176 + o.gridNodeCount * P;
|
|
189667
189717
|
}
|
|
189668
189718
|
return r;
|
|
189669
189719
|
}
|
|
189670
|
-
function
|
|
189720
|
+
function i_A(n) {
|
|
189671
189721
|
return n.map(function(A) {
|
|
189672
189722
|
return [wQ(A.longitudeShift), wQ(A.latitudeShift)];
|
|
189673
189723
|
});
|
|
189674
189724
|
}
|
|
189675
|
-
function
|
|
189725
|
+
function n_A(n, A, e) {
|
|
189676
189726
|
return {
|
|
189677
189727
|
name: wU(n, A + 8, A + 16).trim(),
|
|
189678
189728
|
parent: wU(n, A + 24, A + 24 + 8).trim(),
|
|
@@ -189685,7 +189735,7 @@ function t_A(n, A, e) {
|
|
|
189685
189735
|
gridNodeCount: n.getInt32(A + 168, e)
|
|
189686
189736
|
};
|
|
189687
189737
|
}
|
|
189688
|
-
function
|
|
189738
|
+
function r_A(n, A, e, t, i) {
|
|
189689
189739
|
var r = A + 176, s = 16;
|
|
189690
189740
|
i === !1 && (s = 8);
|
|
189691
189741
|
for (var o = [], a = 0; a < e.gridNodeCount; a++) {
|
|
@@ -189704,7 +189754,7 @@ function tP(n, A) {
|
|
|
189704
189754
|
if (l)
|
|
189705
189755
|
throw l;
|
|
189706
189756
|
};
|
|
189707
|
-
var e =
|
|
189757
|
+
var e = bXA(n);
|
|
189708
189758
|
if (typeof e != "object") {
|
|
189709
189759
|
A("Could not parse to valid json: " + n);
|
|
189710
189760
|
return;
|
|
@@ -189719,7 +189769,7 @@ function tP(n, A) {
|
|
|
189719
189769
|
i && (e.datum_params = e.datum_params || (i.towgs84 ? i.towgs84.split(",") : null), e.ellps = i.ellipse, e.datumName = i.datumName ? i.datumName : e.datumCode);
|
|
189720
189770
|
}
|
|
189721
189771
|
e.k0 = e.k0 || 1, e.axis = e.axis || "enu", e.ellps = e.ellps || "wgs84", e.lat1 = e.lat1 || e.lat0;
|
|
189722
|
-
var r =
|
|
189772
|
+
var r = ZXA(e.a, e.b, e.rf, e.ellps, e.sphere), s = GXA(r.a, r.b, r.rf, e.R_A), o = _XA(e.nadgrids), a = e.datum || VXA(
|
|
189723
189773
|
e.datumCode,
|
|
189724
189774
|
e.datum_params,
|
|
189725
189775
|
r.a,
|
|
@@ -189730,9 +189780,9 @@ function tP(n, A) {
|
|
|
189730
189780
|
);
|
|
189731
189781
|
uW(this, e), uW(this, t), this.a = r.a, this.b = r.b, this.rf = r.rf, this.sphere = r.sphere, this.es = s.es, this.e = s.e, this.ep2 = s.ep2, this.datum = a, "init" in this && typeof this.init == "function" && this.init(), A(null, this);
|
|
189732
189782
|
}
|
|
189733
|
-
tP.projections =
|
|
189783
|
+
tP.projections = HXA;
|
|
189734
189784
|
tP.projections.start();
|
|
189735
|
-
function
|
|
189785
|
+
function s_A(n, A) {
|
|
189736
189786
|
return n.datum_type !== A.datum_type || n.a !== A.a || Math.abs(n.es - A.es) > 5e-11 ? !1 : n.datum_type === Vf ? n.datum_params[0] === A.datum_params[0] && n.datum_params[1] === A.datum_params[1] && n.datum_params[2] === A.datum_params[2] : n.datum_type === qf ? n.datum_params[0] === A.datum_params[0] && n.datum_params[1] === A.datum_params[1] && n.datum_params[2] === A.datum_params[2] && n.datum_params[3] === A.datum_params[3] && n.datum_params[4] === A.datum_params[4] && n.datum_params[5] === A.datum_params[5] && n.datum_params[6] === A.datum_params[6] : !0;
|
|
189737
189787
|
}
|
|
189738
189788
|
function XoA(n, A, e) {
|
|
@@ -189774,7 +189824,7 @@ function _oA(n, A, e, t) {
|
|
|
189774
189824
|
z: b
|
|
189775
189825
|
};
|
|
189776
189826
|
}
|
|
189777
|
-
function
|
|
189827
|
+
function o_A(n, A, e) {
|
|
189778
189828
|
if (A === Vf)
|
|
189779
189829
|
return {
|
|
189780
189830
|
x: n.x + e[0],
|
|
@@ -189790,7 +189840,7 @@ function r_A(n, A, e) {
|
|
|
189790
189840
|
};
|
|
189791
189841
|
}
|
|
189792
189842
|
}
|
|
189793
|
-
function
|
|
189843
|
+
function a_A(n, A, e) {
|
|
189794
189844
|
if (A === Vf)
|
|
189795
189845
|
return {
|
|
189796
189846
|
x: n.x - e[0],
|
|
@@ -189809,8 +189859,8 @@ function s_A(n, A, e) {
|
|
|
189809
189859
|
function vy(n) {
|
|
189810
189860
|
return n === Vf || n === qf;
|
|
189811
189861
|
}
|
|
189812
|
-
function
|
|
189813
|
-
if (
|
|
189862
|
+
function l_A(n, A, e) {
|
|
189863
|
+
if (s_A(n, A) || n.datum_type === uU || A.datum_type === uU)
|
|
189814
189864
|
return e;
|
|
189815
189865
|
var t = n.a, i = n.es;
|
|
189816
189866
|
if (n.datum_type === dE) {
|
|
@@ -189820,9 +189870,9 @@ function o_A(n, A, e) {
|
|
|
189820
189870
|
t = lW, i = DW;
|
|
189821
189871
|
}
|
|
189822
189872
|
var s = A.a, o = A.b, a = A.es;
|
|
189823
|
-
if (A.datum_type === dE && (s = lW, o =
|
|
189873
|
+
if (A.datum_type === dE && (s = lW, o = oXA, a = DW), i === a && t === s && !vy(n.datum_type) && !vy(A.datum_type))
|
|
189824
189874
|
return e;
|
|
189825
|
-
if (e = XoA(e, i, t), vy(n.datum_type) && (e =
|
|
189875
|
+
if (e = XoA(e, i, t), vy(n.datum_type) && (e = o_A(e, n.datum_type, n.datum_params)), vy(A.datum_type) && (e = a_A(e, A.datum_type, A.datum_params)), e = _oA(e, a, s, o), A.datum_type === dE) {
|
|
189826
189876
|
var l = fW(A, !0, e);
|
|
189827
189877
|
if (l !== 0)
|
|
189828
189878
|
return;
|
|
@@ -189847,13 +189897,13 @@ function fW(n, A, e) {
|
|
|
189847
189897
|
}
|
|
189848
189898
|
for (var a = o.grid.subgrids, l = 0, D = a.length; l < D; l++) {
|
|
189849
189899
|
var P = a[l], c = (Math.abs(P.del[1]) + Math.abs(P.del[0])) / 1e4, h = P.ll[0] - c, g = P.ll[1] - c, u = P.ll[0] + (P.lim[0] - 1) * P.del[0] + c, Q = P.ll[1] + (P.lim[1] - 1) * P.del[1] + c;
|
|
189850
|
-
if (!(g > t.y || h > t.x || Q < t.y || u < t.x) && (i =
|
|
189900
|
+
if (!(g > t.y || h > t.x || Q < t.y || u < t.x) && (i = D_A(t, A, P), !isNaN(i.x)))
|
|
189851
189901
|
break A;
|
|
189852
189902
|
}
|
|
189853
189903
|
}
|
|
189854
189904
|
return isNaN(i.x) ? (console.log("Failed to find a grid shift table for location '" + -t.x * kl + " " + t.y * kl + " tried: '" + r + "'"), -1) : (e.x = -i.x, e.y = i.y, 0);
|
|
189855
189905
|
}
|
|
189856
|
-
function
|
|
189906
|
+
function D_A(n, A, e) {
|
|
189857
189907
|
var t = { x: Number.NaN, y: Number.NaN };
|
|
189858
189908
|
if (isNaN(n.x))
|
|
189859
189909
|
return t;
|
|
@@ -189928,7 +189978,7 @@ function $oA(n) {
|
|
|
189928
189978
|
};
|
|
189929
189979
|
return n.length > 2 && (A.z = n[2]), n.length > 3 && (A.m = n[3]), A;
|
|
189930
189980
|
}
|
|
189931
|
-
function
|
|
189981
|
+
function P_A(n) {
|
|
189932
189982
|
CW(n.x), CW(n.y);
|
|
189933
189983
|
}
|
|
189934
189984
|
function CW(n) {
|
|
@@ -189940,7 +189990,7 @@ function CW(n) {
|
|
|
189940
189990
|
if (typeof n != "number" || n !== n || !isFinite(n))
|
|
189941
189991
|
throw new TypeError("coordinates must be finite numbers");
|
|
189942
189992
|
}
|
|
189943
|
-
function
|
|
189993
|
+
function c_A(n, A) {
|
|
189944
189994
|
return (n.datum.datum_type === Vf || n.datum.datum_type === qf || n.datum.datum_type === dE) && A.datumCode !== "WGS84" || (A.datum.datum_type === Vf || A.datum.datum_type === qf || A.datum.datum_type === dE) && n.datumCode !== "WGS84";
|
|
189945
189995
|
}
|
|
189946
189996
|
function GO(n, A, e, t) {
|
|
@@ -189952,7 +190002,7 @@ function GO(n, A, e, t) {
|
|
|
189952
190002
|
m: e.m
|
|
189953
190003
|
};
|
|
189954
190004
|
var r = e.z !== void 0;
|
|
189955
|
-
if (
|
|
190005
|
+
if (P_A(e), n.datum && A.datum && c_A(n, A) && (i = new tP("WGS84"), e = GO(n, i, e, t), n = i), t && n.axis !== "enu" && (e = vW(n, !1, e)), n.projName === "longlat")
|
|
189956
190006
|
e = {
|
|
189957
190007
|
x: e.x * ys,
|
|
189958
190008
|
y: e.y * ys,
|
|
@@ -189964,7 +190014,7 @@ function GO(n, A, e, t) {
|
|
|
189964
190014
|
z: e.z || 0
|
|
189965
190015
|
}), e = n.inverse(e), !e)
|
|
189966
190016
|
return;
|
|
189967
|
-
if (n.from_greenwich && (e.x += n.from_greenwich), e =
|
|
190017
|
+
if (n.from_greenwich && (e.x += n.from_greenwich), e = l_A(n.datum, A.datum, e), !!e)
|
|
189968
190018
|
return e = /** @type {import('./core').InterfaceCoordinates} */
|
|
189969
190019
|
e, A.from_greenwich && (e = {
|
|
189970
190020
|
x: e.x - A.from_greenwich,
|
|
@@ -190011,7 +190061,7 @@ function Cy(n) {
|
|
|
190011
190061
|
n
|
|
190012
190062
|
);
|
|
190013
190063
|
}
|
|
190014
|
-
function
|
|
190064
|
+
function h_A(n, A, e) {
|
|
190015
190065
|
var t, i, r = !1, s;
|
|
190016
190066
|
return typeof A > "u" ? (i = Cy(n), t = EW, r = !0) : (typeof /** @type {?} */
|
|
190017
190067
|
A.x < "u" || Array.isArray(A)) && (e = /** @type {T} */
|
|
@@ -190041,18 +190091,18 @@ function P_A(n, A, e) {
|
|
|
190041
190091
|
}, r && (s.oProj = i), s);
|
|
190042
190092
|
}
|
|
190043
190093
|
var BW = 6, AaA = "AJSAJS", eaA = "AFAFAF", YC = 65, vl = 73, jD = 79, Vp = 86, qp = 90;
|
|
190044
|
-
const
|
|
190094
|
+
const g_A = {
|
|
190045
190095
|
forward: taA,
|
|
190046
|
-
inverse:
|
|
190096
|
+
inverse: u_A,
|
|
190047
190097
|
toPoint: iaA
|
|
190048
190098
|
};
|
|
190049
190099
|
function taA(n, A) {
|
|
190050
|
-
return A = A || 5, Q_A(
|
|
190100
|
+
return A = A || 5, f_A(Q_A({
|
|
190051
190101
|
lat: n[1],
|
|
190052
190102
|
lon: n[0]
|
|
190053
190103
|
}), A);
|
|
190054
190104
|
}
|
|
190055
|
-
function
|
|
190105
|
+
function u_A(n) {
|
|
190056
190106
|
var A = W6(raA(n.toUpperCase()));
|
|
190057
190107
|
return A.lat && A.lon ? [A.lon, A.lat, A.lon, A.lat] : [A.left, A.bottom, A.right, A.top];
|
|
190058
190108
|
}
|
|
@@ -190066,7 +190116,7 @@ function RL(n) {
|
|
|
190066
190116
|
function pW(n) {
|
|
190067
190117
|
return 180 * (n / Math.PI);
|
|
190068
190118
|
}
|
|
190069
|
-
function
|
|
190119
|
+
function Q_A(n) {
|
|
190070
190120
|
var A = n.lat, e = n.lon, t = 6378137, i = 669438e-8, r = 0.9996, s, o, a, l, D, P, c, h = RL(A), g = RL(e), u, Q;
|
|
190071
190121
|
Q = Math.floor((e + 180) / 6) + 1, e === 180 && (Q = 60), A >= 56 && A < 64 && e >= 3 && e < 12 && (Q = 32), A >= 72 && A < 84 && (e >= 0 && e < 9 ? Q = 31 : e >= 9 && e < 21 ? Q = 33 : e >= 21 && e < 33 ? Q = 35 : e >= 33 && e < 42 && (Q = 37)), s = (Q - 1) * 6 - 180 + 3, u = RL(s), o = i / (1 - i), a = t / Math.sqrt(1 - i * Math.sin(h) * Math.sin(h)), l = Math.tan(h) * Math.tan(h), D = o * Math.cos(h) * Math.cos(h), P = Math.cos(h) * (g - u), c = t * ((1 - i / 4 - 3 * i * i / 64 - 5 * i * i * i / 256) * h - (3 * i / 8 + 3 * i * i / 32 + 45 * i * i * i / 1024) * Math.sin(2 * h) + (15 * i * i / 256 + 45 * i * i * i / 1024) * Math.sin(4 * h) - 35 * i * i * i / 3072 * Math.sin(6 * h));
|
|
190072
190122
|
var w = r * a * (P + (1 - l + D) * P * P * P / 6 + (5 - 18 * l + l * l + 72 * D - 58 * o) * P * P * P * P * P / 120) + 5e5, C = r * (c + a * Math.tan(h) * (P * P / 2 + (5 - l + 9 * D + 4 * D * D) * P * P * P * P / 24 + (61 - 58 * l + l * l + 600 * D - 330 * o) * P * P * P * P * P * P / 720));
|
|
@@ -190074,7 +190124,7 @@ function g_A(n) {
|
|
|
190074
190124
|
northing: Math.round(C),
|
|
190075
190125
|
easting: Math.round(w),
|
|
190076
190126
|
zoneNumber: Q,
|
|
190077
|
-
zoneLetter:
|
|
190127
|
+
zoneLetter: w_A(A)
|
|
190078
190128
|
};
|
|
190079
190129
|
}
|
|
190080
190130
|
function W6(n) {
|
|
@@ -190108,23 +190158,23 @@ function W6(n) {
|
|
|
190108
190158
|
};
|
|
190109
190159
|
return z;
|
|
190110
190160
|
}
|
|
190111
|
-
function
|
|
190161
|
+
function w_A(n) {
|
|
190112
190162
|
var A = "Z";
|
|
190113
190163
|
return 84 >= n && n >= 72 ? A = "X" : 72 > n && n >= 64 ? A = "W" : 64 > n && n >= 56 ? A = "V" : 56 > n && n >= 48 ? A = "U" : 48 > n && n >= 40 ? A = "T" : 40 > n && n >= 32 ? A = "S" : 32 > n && n >= 24 ? A = "R" : 24 > n && n >= 16 ? A = "Q" : 16 > n && n >= 8 ? A = "P" : 8 > n && n >= 0 ? A = "N" : 0 > n && n >= -8 ? A = "M" : -8 > n && n >= -16 ? A = "L" : -16 > n && n >= -24 ? A = "K" : -24 > n && n >= -32 ? A = "J" : -32 > n && n >= -40 ? A = "H" : -40 > n && n >= -48 ? A = "G" : -48 > n && n >= -56 ? A = "F" : -56 > n && n >= -64 ? A = "E" : -64 > n && n >= -72 ? A = "D" : -72 > n && n >= -80 && (A = "C"), A;
|
|
190114
190164
|
}
|
|
190115
|
-
function
|
|
190165
|
+
function f_A(n, A) {
|
|
190116
190166
|
var e = "00000" + n.easting, t = "00000" + n.northing;
|
|
190117
|
-
return n.zoneNumber + n.zoneLetter +
|
|
190167
|
+
return n.zoneNumber + n.zoneLetter + d_A(n.easting, n.northing, n.zoneNumber) + e.substr(e.length - 5, A) + t.substr(t.length - 5, A);
|
|
190118
190168
|
}
|
|
190119
|
-
function
|
|
190169
|
+
function d_A(n, A, e) {
|
|
190120
190170
|
var t = naA(e), i = Math.floor(n / 1e5), r = Math.floor(A / 1e5) % 20;
|
|
190121
|
-
return
|
|
190171
|
+
return v_A(i, r, t);
|
|
190122
190172
|
}
|
|
190123
190173
|
function naA(n) {
|
|
190124
190174
|
var A = n % BW;
|
|
190125
190175
|
return A === 0 && (A = BW), A;
|
|
190126
190176
|
}
|
|
190127
|
-
function
|
|
190177
|
+
function v_A(n, A, e) {
|
|
190128
190178
|
var t = e - 1, i = AaA.charCodeAt(t), r = eaA.charCodeAt(t), s = i + n - 1, o = r + A, a = !1;
|
|
190129
190179
|
s > qp && (s = s - qp + YC - 1, a = !0), (s === vl || i < vl && s > vl || (s > vl || i < vl) && a) && s++, (s === jD || i < jD && s > jD || (s > jD || i < jD) && a) && (s++, s === vl && s++), s > qp && (s = s - qp + YC - 1), o > Vp ? (o = o - Vp + YC - 1, a = !0) : a = !1, (o === vl || r < vl && o > vl || (o > vl || r < vl) && a) && o++, (o === jD || r < jD && o > jD || (o > jD || r < jD) && a) && (o++, o === vl && o++), o > Vp && (o = o - Vp + YC - 1);
|
|
190130
190180
|
var l = String.fromCharCode(s) + String.fromCharCode(o);
|
|
@@ -190145,7 +190195,7 @@ function raA(n) {
|
|
|
190145
190195
|
if (o <= "A" || o === "B" || o === "Y" || o >= "Z" || o === "I" || o === "O")
|
|
190146
190196
|
throw "MGRSPoint zone letter " + o + " not handled: " + n;
|
|
190147
190197
|
e = n.substring(r, r += 2);
|
|
190148
|
-
for (var a = naA(s), l =
|
|
190198
|
+
for (var a = naA(s), l = C_A(e.charAt(0), a), D = E_A(e.charAt(1), a); D < B_A(o); )
|
|
190149
190199
|
D += 2e6;
|
|
190150
190200
|
var P = A - r;
|
|
190151
190201
|
if (P % 2 !== 0)
|
|
@@ -190162,7 +190212,7 @@ northing meters` + n;
|
|
|
190162
190212
|
accuracy: u
|
|
190163
190213
|
};
|
|
190164
190214
|
}
|
|
190165
|
-
function
|
|
190215
|
+
function C_A(n, A) {
|
|
190166
190216
|
for (var e = AaA.charCodeAt(A - 1), t = 1e5, i = !1; e !== n.charCodeAt(0); ) {
|
|
190167
190217
|
if (e++, e === vl && e++, e === jD && e++, e > qp) {
|
|
190168
190218
|
if (i)
|
|
@@ -190173,7 +190223,7 @@ function d_A(n, A) {
|
|
|
190173
190223
|
}
|
|
190174
190224
|
return t;
|
|
190175
190225
|
}
|
|
190176
|
-
function
|
|
190226
|
+
function E_A(n, A) {
|
|
190177
190227
|
if (n > "V")
|
|
190178
190228
|
throw "MGRSPoint given invalid Northing " + n;
|
|
190179
190229
|
for (var e = eaA.charCodeAt(A - 1), t = 0, i = !1; e !== n.charCodeAt(0); ) {
|
|
@@ -190186,7 +190236,7 @@ function v_A(n, A) {
|
|
|
190186
190236
|
}
|
|
190187
190237
|
return t;
|
|
190188
190238
|
}
|
|
190189
|
-
function
|
|
190239
|
+
function B_A(n) {
|
|
190190
190240
|
var A;
|
|
190191
190241
|
switch (n) {
|
|
190192
190242
|
case "C":
|
|
@@ -190276,29 +190326,29 @@ qE.fromMGRS = function(n) {
|
|
|
190276
190326
|
qE.prototype.toMGRS = function(n) {
|
|
190277
190327
|
return taA([this.x, this.y], n);
|
|
190278
190328
|
};
|
|
190279
|
-
var
|
|
190329
|
+
var p_A = 1, m_A = 0.25, mW = 0.046875, IW = 0.01953125, MW = 0.01068115234375, I_A = 0.75, M_A = 0.46875, T_A = 0.013020833333333334, y_A = 0.007120768229166667, O_A = 0.3645833333333333, k_A = 0.005696614583333333, b_A = 0.3076171875;
|
|
190280
190330
|
function X6(n) {
|
|
190281
190331
|
var A = [];
|
|
190282
|
-
A[0] =
|
|
190332
|
+
A[0] = p_A - n * (m_A + n * (mW + n * (IW + n * MW))), A[1] = n * (I_A - n * (mW + n * (IW + n * MW)));
|
|
190283
190333
|
var e = n * n;
|
|
190284
|
-
return A[2] = e * (
|
|
190334
|
+
return A[2] = e * (M_A - n * (T_A + n * y_A)), e *= n, A[3] = e * (O_A - n * k_A), A[4] = e * n * b_A, A;
|
|
190285
190335
|
}
|
|
190286
190336
|
function Q0(n, A, e, t) {
|
|
190287
190337
|
return e *= A, A *= A, t[0] * n - e * (t[1] + A * (t[2] + A * (t[3] + A * t[4])));
|
|
190288
190338
|
}
|
|
190289
|
-
var
|
|
190339
|
+
var z_A = 20;
|
|
190290
190340
|
function _6(n, A, e) {
|
|
190291
|
-
for (var t = 1 / (1 - A), i = n, r =
|
|
190341
|
+
for (var t = 1 / (1 - A), i = n, r = z_A; r; --r) {
|
|
190292
190342
|
var s = Math.sin(i), o = 1 - A * s * s;
|
|
190293
190343
|
if (o = (Q0(i, s, Math.cos(i), e) - n) * (o * Math.sqrt(o)) * t, i -= o, Math.abs(o) < oi)
|
|
190294
190344
|
return i;
|
|
190295
190345
|
}
|
|
190296
190346
|
return i;
|
|
190297
190347
|
}
|
|
190298
|
-
function
|
|
190348
|
+
function N_A() {
|
|
190299
190349
|
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = X6(this.es), this.ml0 = Q0(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
190300
190350
|
}
|
|
190301
|
-
function
|
|
190351
|
+
function x_A(n) {
|
|
190302
190352
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i, r, s, o = Math.sin(e), a = Math.cos(e);
|
|
190303
190353
|
if (this.es) {
|
|
190304
190354
|
var D = a * t, P = Math.pow(D, 2), c = this.ep2 * Math.pow(a, 2), h = Math.pow(c, 2), g = Math.abs(a) > oi ? Math.tan(e) : 0, u = Math.pow(g, 2), Q = Math.pow(u, 2);
|
|
@@ -190319,7 +190369,7 @@ function z_A(n) {
|
|
|
190319
190369
|
}
|
|
190320
190370
|
return n.x = r, n.y = s, n;
|
|
190321
190371
|
}
|
|
190322
|
-
function
|
|
190372
|
+
function L_A(n) {
|
|
190323
190373
|
var A, e, t, i, r = (n.x - this.x0) * (1 / this.a), s = (n.y - this.y0) * (1 / this.a);
|
|
190324
190374
|
if (this.es)
|
|
190325
190375
|
if (A = this.ml0 + s / this.k0, e = _6(A, this.es, this.en), Math.abs(e) < Vt) {
|
|
@@ -190335,12 +190385,12 @@ function N_A(n) {
|
|
|
190335
190385
|
}
|
|
190336
190386
|
return n.x = i, n.y = t, n;
|
|
190337
190387
|
}
|
|
190338
|
-
var
|
|
190388
|
+
var U_A = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
|
|
190339
190389
|
const t1 = {
|
|
190340
|
-
init:
|
|
190341
|
-
forward:
|
|
190342
|
-
inverse:
|
|
190343
|
-
names:
|
|
190390
|
+
init: N_A,
|
|
190391
|
+
forward: x_A,
|
|
190392
|
+
inverse: L_A,
|
|
190393
|
+
names: U_A
|
|
190344
190394
|
};
|
|
190345
190395
|
function saA(n) {
|
|
190346
190396
|
var A = Math.exp(n);
|
|
@@ -190351,53 +190401,53 @@ function Ml(n, A) {
|
|
|
190351
190401
|
var e = Math.max(n, A), t = Math.min(n, A) / (e || 1);
|
|
190352
190402
|
return e * Math.sqrt(1 + Math.pow(t, 2));
|
|
190353
190403
|
}
|
|
190354
|
-
function
|
|
190404
|
+
function j_A(n) {
|
|
190355
190405
|
var A = 1 + n, e = A - 1;
|
|
190356
190406
|
return e === 0 ? n : n * Math.log(A) / e;
|
|
190357
190407
|
}
|
|
190358
|
-
function
|
|
190408
|
+
function S_A(n) {
|
|
190359
190409
|
var A = Math.abs(n);
|
|
190360
|
-
return A =
|
|
190410
|
+
return A = j_A(A * (1 + A / (Ml(1, A) + 1))), n < 0 ? -A : A;
|
|
190361
190411
|
}
|
|
190362
190412
|
function $6(n, A) {
|
|
190363
190413
|
for (var e = 2 * Math.cos(2 * A), t = n.length - 1, i = n[t], r = 0, s; --t >= 0; )
|
|
190364
190414
|
s = -r + e * i + n[t], r = i, i = s;
|
|
190365
190415
|
return A + s * Math.sin(2 * A);
|
|
190366
190416
|
}
|
|
190367
|
-
function
|
|
190417
|
+
function F_A(n, A) {
|
|
190368
190418
|
for (var e = 2 * Math.cos(A), t = n.length - 1, i = n[t], r = 0, s; --t >= 0; )
|
|
190369
190419
|
s = -r + e * i + n[t], r = i, i = s;
|
|
190370
190420
|
return Math.sin(A) * s;
|
|
190371
190421
|
}
|
|
190372
|
-
function
|
|
190422
|
+
function R_A(n) {
|
|
190373
190423
|
var A = Math.exp(n);
|
|
190374
190424
|
return A = (A + 1 / A) / 2, A;
|
|
190375
190425
|
}
|
|
190376
190426
|
function oaA(n, A, e) {
|
|
190377
|
-
for (var t = Math.sin(A), i = Math.cos(A), r = saA(e), s =
|
|
190427
|
+
for (var t = Math.sin(A), i = Math.cos(A), r = saA(e), s = R_A(e), o = 2 * i * s, a = -2 * t * r, l = n.length - 1, D = n[l], P = 0, c = 0, h = 0, g, u; --l >= 0; )
|
|
190378
190428
|
g = c, u = P, c = D, P = h, D = -g + o * c - a * P + n[l], h = -u + a * c + o * P;
|
|
190379
190429
|
return o = t * s, a = i * r, [o * D - a * h, o * h + a * D];
|
|
190380
190430
|
}
|
|
190381
|
-
function
|
|
190431
|
+
function Y_A() {
|
|
190382
190432
|
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
|
190383
190433
|
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
|
190384
190434
|
this.approx && (t1.init.apply(this), this.forward = t1.forward, this.inverse = t1.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
|
|
190385
190435
|
var n = this.es / (1 + Math.sqrt(1 - this.es)), A = n / (2 - n), e = A;
|
|
190386
190436
|
this.cgb[0] = A * (2 + A * (-2 / 3 + A * (-2 + A * (116 / 45 + A * (26 / 45 + A * (-2854 / 675)))))), this.cbg[0] = A * (-2 + A * (2 / 3 + A * (4 / 3 + A * (-82 / 45 + A * (32 / 45 + A * (4642 / 4725)))))), e = e * A, this.cgb[1] = e * (7 / 3 + A * (-8 / 5 + A * (-227 / 45 + A * (2704 / 315 + A * (2323 / 945))))), this.cbg[1] = e * (5 / 3 + A * (-16 / 15 + A * (-13 / 9 + A * (904 / 315 + A * (-1522 / 945))))), e = e * A, this.cgb[2] = e * (56 / 15 + A * (-136 / 35 + A * (-1262 / 105 + A * (73814 / 2835)))), this.cbg[2] = e * (-26 / 15 + A * (34 / 21 + A * (8 / 5 + A * (-12686 / 2835)))), e = e * A, this.cgb[3] = e * (4279 / 630 + A * (-332 / 35 + A * (-399572 / 14175))), this.cbg[3] = e * (1237 / 630 + A * (-12 / 5 + A * (-24832 / 14175))), e = e * A, this.cgb[4] = e * (4174 / 315 + A * (-144838 / 6237)), this.cbg[4] = e * (-734 / 315 + A * (109598 / 31185)), e = e * A, this.cgb[5] = e * (601676 / 22275), this.cbg[5] = e * (444337 / 155925), e = Math.pow(A, 2), this.Qn = this.k0 / (1 + A) * (1 + e * (1 / 4 + e * (1 / 64 + e / 256))), this.utg[0] = A * (-0.5 + A * (2 / 3 + A * (-37 / 96 + A * (1 / 360 + A * (81 / 512 + A * (-96199 / 604800)))))), this.gtu[0] = A * (0.5 + A * (-2 / 3 + A * (5 / 16 + A * (41 / 180 + A * (-127 / 288 + A * (7891 / 37800)))))), this.utg[1] = e * (-1 / 48 + A * (-1 / 15 + A * (437 / 1440 + A * (-46 / 105 + A * (1118711 / 3870720))))), this.gtu[1] = e * (13 / 48 + A * (-3 / 5 + A * (557 / 1440 + A * (281 / 630 + A * (-1983433 / 1935360))))), e = e * A, this.utg[2] = e * (-17 / 480 + A * (37 / 840 + A * (209 / 4480 + A * (-5569 / 90720)))), this.gtu[2] = e * (61 / 240 + A * (-103 / 140 + A * (15061 / 26880 + A * (167603 / 181440)))), e = e * A, this.utg[3] = e * (-4397 / 161280 + A * (11 / 504 + A * (830251 / 7257600))), this.gtu[3] = e * (49561 / 161280 + A * (-179 / 168 + A * (6601661 / 7257600))), e = e * A, this.utg[4] = e * (-4583 / 161280 + A * (108847 / 3991680)), this.gtu[4] = e * (34729 / 80640 + A * (-3418889 / 1995840)), e = e * A, this.utg[5] = e * (-20648693 / 638668800), this.gtu[5] = e * (212378941 / 319334400);
|
|
190387
190437
|
var t = $6(this.cbg, this.lat0);
|
|
190388
|
-
this.Zb = -this.Qn * (t +
|
|
190438
|
+
this.Zb = -this.Qn * (t + F_A(this.gtu, 2 * t));
|
|
190389
190439
|
}
|
|
190390
|
-
function
|
|
190440
|
+
function H_A(n) {
|
|
190391
190441
|
var A = Qi(n.x - this.long0, this.over), e = n.y;
|
|
190392
190442
|
e = $6(this.cbg, e);
|
|
190393
190443
|
var t = Math.sin(e), i = Math.cos(e), r = Math.sin(A), s = Math.cos(A);
|
|
190394
|
-
e = Math.atan2(t, s * i), A = Math.atan2(r * i, Ml(t, i * s)), A =
|
|
190444
|
+
e = Math.atan2(t, s * i), A = Math.atan2(r * i, Ml(t, i * s)), A = S_A(Math.tan(A));
|
|
190395
190445
|
var o = oaA(this.gtu, 2 * e, 2 * A);
|
|
190396
190446
|
e = e + o[0], A = A + o[1];
|
|
190397
190447
|
var a, l;
|
|
190398
190448
|
return Math.abs(A) <= 2.623395162778 ? (a = this.a * (this.Qn * A) + this.x0, l = this.a * (this.Qn * e + this.Zb) + this.y0) : (a = 1 / 0, l = 1 / 0), n.x = a, n.y = l, n;
|
|
190399
190449
|
}
|
|
190400
|
-
function
|
|
190450
|
+
function J_A(n) {
|
|
190401
190451
|
var A = (n.x - this.x0) * (1 / this.a), e = (n.y - this.y0) * (1 / this.a);
|
|
190402
190452
|
e = (e - this.Zb) / this.Qn, A = A / this.Qn;
|
|
190403
190453
|
var t, i;
|
|
@@ -190410,14 +190460,14 @@ function Y_A(n) {
|
|
|
190410
190460
|
t = 1 / 0, i = 1 / 0;
|
|
190411
190461
|
return n.x = t, n.y = i, n;
|
|
190412
190462
|
}
|
|
190413
|
-
var
|
|
190463
|
+
var G_A = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
|
|
190414
190464
|
const i1 = {
|
|
190415
|
-
init:
|
|
190416
|
-
forward:
|
|
190417
|
-
inverse:
|
|
190418
|
-
names:
|
|
190465
|
+
init: Y_A,
|
|
190466
|
+
forward: H_A,
|
|
190467
|
+
inverse: J_A,
|
|
190468
|
+
names: G_A
|
|
190419
190469
|
};
|
|
190420
|
-
function
|
|
190470
|
+
function Z_A(n, A) {
|
|
190421
190471
|
if (n === void 0) {
|
|
190422
190472
|
if (n = Math.floor((Qi(A) + Math.PI) * 30 / Math.PI) + 1, n < 0)
|
|
190423
190473
|
return 0;
|
|
@@ -190426,49 +190476,49 @@ function J_A(n, A) {
|
|
|
190426
190476
|
}
|
|
190427
190477
|
return n;
|
|
190428
190478
|
}
|
|
190429
|
-
var
|
|
190430
|
-
function
|
|
190431
|
-
var n =
|
|
190479
|
+
var K_A = "etmerc";
|
|
190480
|
+
function V_A() {
|
|
190481
|
+
var n = Z_A(this.zone, this.long0);
|
|
190432
190482
|
if (n === void 0)
|
|
190433
190483
|
throw new Error("unknown utm zone");
|
|
190434
190484
|
this.lat0 = 0, this.long0 = (6 * Math.abs(n) - 183) * ys, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, i1.init.apply(this), this.forward = i1.forward, this.inverse = i1.inverse;
|
|
190435
190485
|
}
|
|
190436
|
-
var
|
|
190437
|
-
const
|
|
190438
|
-
init:
|
|
190439
|
-
names:
|
|
190440
|
-
dependsOn:
|
|
190486
|
+
var q_A = ["Universal Transverse Mercator System", "utm"];
|
|
190487
|
+
const W_A = {
|
|
190488
|
+
init: V_A,
|
|
190489
|
+
names: q_A,
|
|
190490
|
+
dependsOn: K_A
|
|
190441
190491
|
};
|
|
190442
190492
|
function AF(n, A) {
|
|
190443
190493
|
return Math.pow((1 - n) / (1 + n), A);
|
|
190444
190494
|
}
|
|
190445
|
-
var
|
|
190446
|
-
function
|
|
190495
|
+
var X_A = 20;
|
|
190496
|
+
function __A() {
|
|
190447
190497
|
var n = Math.sin(this.lat0), A = Math.cos(this.lat0);
|
|
190448
190498
|
A *= A, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * n * n), this.C = Math.sqrt(1 + this.es * A * A / (1 - this.es)), this.phic0 = Math.asin(n / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + pr) / (Math.pow(Math.tan(0.5 * this.lat0 + pr), this.C) * AF(this.e * n, this.ratexp));
|
|
190449
190499
|
}
|
|
190450
|
-
function
|
|
190500
|
+
function $_A(n) {
|
|
190451
190501
|
var A = n.x, e = n.y;
|
|
190452
190502
|
return n.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + pr), this.C) * AF(this.e * Math.sin(e), this.ratexp)) - Vt, n.x = this.C * A, n;
|
|
190453
190503
|
}
|
|
190454
|
-
function
|
|
190455
|
-
for (var A = 1e-14, e = n.x / this.C, t = n.y, i = Math.pow(Math.tan(0.5 * t + pr) / this.K, 1 / this.C), r =
|
|
190504
|
+
function A$A(n) {
|
|
190505
|
+
for (var A = 1e-14, e = n.x / this.C, t = n.y, i = Math.pow(Math.tan(0.5 * t + pr) / this.K, 1 / this.C), r = X_A; r > 0 && (t = 2 * Math.atan(i * AF(this.e * Math.sin(n.y), -0.5 * this.e)) - Vt, !(Math.abs(t - n.y) < A)); --r)
|
|
190456
190506
|
n.y = t;
|
|
190457
190507
|
return r ? (n.x = e, n.y = t, n) : null;
|
|
190458
190508
|
}
|
|
190459
190509
|
const eF = {
|
|
190460
|
-
init:
|
|
190461
|
-
forward:
|
|
190462
|
-
inverse:
|
|
190510
|
+
init: __A,
|
|
190511
|
+
forward: $_A,
|
|
190512
|
+
inverse: A$A
|
|
190463
190513
|
};
|
|
190464
|
-
function $
|
|
190514
|
+
function e$A() {
|
|
190465
190515
|
eF.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
|
|
190466
190516
|
}
|
|
190467
|
-
function
|
|
190517
|
+
function t$A(n) {
|
|
190468
190518
|
var A, e, t, i;
|
|
190469
190519
|
return n.x = Qi(n.x - this.long0, this.over), eF.forward.apply(this, [n]), A = Math.sin(n.y), e = Math.cos(n.y), t = Math.cos(n.x), i = this.k0 * this.R2 / (1 + this.sinc0 * A + this.cosc0 * e * t), n.x = i * e * Math.sin(n.x), n.y = i * (this.cosc0 * A - this.sinc0 * e * t), n.x = this.a * n.x + this.x0, n.y = this.a * n.y + this.y0, n;
|
|
190470
190520
|
}
|
|
190471
|
-
function
|
|
190521
|
+
function i$A(n) {
|
|
190472
190522
|
var A, e, t, i, r;
|
|
190473
190523
|
if (n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a, n.x /= this.k0, n.y /= this.k0, r = Ml(n.x, n.y)) {
|
|
190474
190524
|
var s = 2 * Math.atan2(r, this.R2);
|
|
@@ -190477,24 +190527,24 @@ function e$A(n) {
|
|
|
190477
190527
|
i = this.phic0, t = 0;
|
|
190478
190528
|
return n.x = t, n.y = i, eF.inverse.apply(this, [n]), n.x = Qi(n.x + this.long0, this.over), n;
|
|
190479
190529
|
}
|
|
190480
|
-
var
|
|
190481
|
-
const
|
|
190482
|
-
init: $
|
|
190483
|
-
forward:
|
|
190484
|
-
inverse:
|
|
190485
|
-
names:
|
|
190530
|
+
var n$A = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
190531
|
+
const r$A = {
|
|
190532
|
+
init: e$A,
|
|
190533
|
+
forward: t$A,
|
|
190534
|
+
inverse: i$A,
|
|
190535
|
+
names: n$A
|
|
190486
190536
|
};
|
|
190487
190537
|
function tF(n, A, e) {
|
|
190488
190538
|
return A *= e, Math.tan(0.5 * (Vt + n)) * Math.pow((1 - A) / (1 + A), 0.5 * e);
|
|
190489
190539
|
}
|
|
190490
|
-
function
|
|
190540
|
+
function s$A() {
|
|
190491
190541
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= oi && (this.k0 = 0.5 * (1 + nM(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= oi && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= oi && Math.abs(Math.cos(this.lat_ts)) > oi && (this.k0 = 0.5 * this.cons * rh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / YP(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = rh(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(tF(this.lat0, this.sinlat0, this.e)) - Vt, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
190492
190542
|
}
|
|
190493
|
-
function
|
|
190543
|
+
function o$A(n) {
|
|
190494
190544
|
var A = n.x, e = n.y, t = Math.sin(e), i = Math.cos(e), r, s, o, a, l, D, P = Qi(A - this.long0, this.over);
|
|
190495
190545
|
return Math.abs(Math.abs(A - this.long0) - Math.PI) <= oi && Math.abs(e + this.lat0) <= oi ? (n.x = NaN, n.y = NaN, n) : this.sphere ? (r = 2 * this.k0 / (1 + this.sinlat0 * t + this.coslat0 * i * Math.cos(P)), n.x = this.a * r * i * Math.sin(P) + this.x0, n.y = this.a * r * (this.coslat0 * t - this.sinlat0 * i * Math.cos(P)) + this.y0, n) : (s = 2 * Math.atan(tF(e, t, this.e)) - Vt, a = Math.cos(s), o = Math.sin(s), Math.abs(this.coslat0) <= oi ? (l = YP(this.e, e * this.con, this.con * t), D = 2 * this.a * this.k0 * l / this.cons, n.x = this.x0 + D * Math.sin(A - this.long0), n.y = this.y0 - this.con * D * Math.cos(A - this.long0), n) : (Math.abs(this.sinlat0) < oi ? (r = 2 * this.a * this.k0 / (1 + a * Math.cos(P)), n.y = r * o) : (r = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * o + this.cosX0 * a * Math.cos(P))), n.y = r * (this.cosX0 * o - this.sinX0 * a * Math.cos(P)) + this.y0), n.x = r * a * Math.sin(P) + this.x0, n));
|
|
190496
190546
|
}
|
|
190497
|
-
function
|
|
190547
|
+
function a$A(n) {
|
|
190498
190548
|
n.x -= this.x0, n.y -= this.y0;
|
|
190499
190549
|
var A, e, t, i, r, s = Math.sqrt(n.x * n.x + n.y * n.y);
|
|
190500
190550
|
if (this.sphere) {
|
|
@@ -190508,15 +190558,15 @@ function s$A(n) {
|
|
|
190508
190558
|
i = 2 * Math.atan(s * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), A = this.long0, s <= oi ? r = this.X0 : (r = Math.asin(Math.cos(i) * this.sinX0 + n.y * Math.sin(i) * this.cosX0 / s), A = Qi(this.long0 + Math.atan2(n.x * Math.sin(i), s * this.cosX0 * Math.cos(i) - n.y * this.sinX0 * Math.sin(i)), this.over)), e = -1 * wI(this.e, Math.tan(0.5 * (Vt + r)));
|
|
190509
190559
|
return n.x = A, n.y = e, n;
|
|
190510
190560
|
}
|
|
190511
|
-
var
|
|
190512
|
-
const
|
|
190513
|
-
init:
|
|
190514
|
-
forward:
|
|
190515
|
-
inverse:
|
|
190516
|
-
names:
|
|
190561
|
+
var l$A = ["stere", "Stereographic_South_Pole", "Polar_Stereographic_variant_A", "Polar_Stereographic_variant_B", "Polar_Stereographic"];
|
|
190562
|
+
const D$A = {
|
|
190563
|
+
init: s$A,
|
|
190564
|
+
forward: o$A,
|
|
190565
|
+
inverse: a$A,
|
|
190566
|
+
names: l$A,
|
|
190517
190567
|
ssfn_: tF
|
|
190518
190568
|
};
|
|
190519
|
-
function
|
|
190569
|
+
function P$A() {
|
|
190520
190570
|
var n = this.lat0;
|
|
190521
190571
|
this.lambda0 = this.long0;
|
|
190522
190572
|
var A = Math.sin(n), e = this.a, t = this.rf, i = 1 / t, r = 2 * i - Math.pow(i, 2), s = this.e = Math.sqrt(r);
|
|
@@ -190524,11 +190574,11 @@ function l$A() {
|
|
|
190524
190574
|
var o = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), a = Math.log(Math.tan(Math.PI / 4 + n / 2)), l = Math.log((1 + s * A) / (1 - s * A));
|
|
190525
190575
|
this.K = o - this.alpha * a + this.alpha * s / 2 * l;
|
|
190526
190576
|
}
|
|
190527
|
-
function
|
|
190577
|
+
function c$A(n) {
|
|
190528
190578
|
var A = Math.log(Math.tan(Math.PI / 4 - n.y / 2)), e = this.e / 2 * Math.log((1 + this.e * Math.sin(n.y)) / (1 - this.e * Math.sin(n.y))), t = -this.alpha * (A + e) + this.K, i = 2 * (Math.atan(Math.exp(t)) - Math.PI / 4), r = this.alpha * (n.x - this.lambda0), s = Math.atan(Math.sin(r) / (Math.sin(this.b0) * Math.tan(i) + Math.cos(this.b0) * Math.cos(r))), o = Math.asin(Math.cos(this.b0) * Math.sin(i) - Math.sin(this.b0) * Math.cos(i) * Math.cos(r));
|
|
190529
190579
|
return n.y = this.R / 2 * Math.log((1 + Math.sin(o)) / (1 - Math.sin(o))) + this.y0, n.x = this.R * s + this.x0, n;
|
|
190530
190580
|
}
|
|
190531
|
-
function
|
|
190581
|
+
function h$A(n) {
|
|
190532
190582
|
for (var A = n.x - this.x0, e = n.y - this.y0, t = A / this.R, i = 2 * (Math.atan(Math.exp(e / this.R)) - Math.PI / 4), r = Math.asin(Math.cos(this.b0) * Math.sin(i) + Math.sin(this.b0) * Math.cos(i) * Math.cos(t)), s = Math.atan(Math.sin(t) / (Math.cos(this.b0) * Math.cos(t) - Math.sin(this.b0) * Math.tan(i))), o = this.lambda0 + s / this.alpha, a = 0, l = r, D = -1e3, P = 0; Math.abs(l - D) > 1e-7; ) {
|
|
190533
190583
|
if (++P > 20)
|
|
190534
190584
|
return;
|
|
@@ -190536,21 +190586,21 @@ function P$A(n) {
|
|
|
190536
190586
|
}
|
|
190537
190587
|
return n.x = o, n.y = l, n;
|
|
190538
190588
|
}
|
|
190539
|
-
var
|
|
190540
|
-
const
|
|
190541
|
-
init:
|
|
190542
|
-
forward:
|
|
190543
|
-
inverse:
|
|
190544
|
-
names:
|
|
190589
|
+
var g$A = ["somerc"];
|
|
190590
|
+
const u$A = {
|
|
190591
|
+
init: P$A,
|
|
190592
|
+
forward: c$A,
|
|
190593
|
+
inverse: h$A,
|
|
190594
|
+
names: g$A
|
|
190545
190595
|
};
|
|
190546
190596
|
var IC = 1e-7;
|
|
190547
|
-
function
|
|
190597
|
+
function Q$A(n) {
|
|
190548
190598
|
var A = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], e = typeof n.projName == "object" ? Object.keys(n.projName)[0] : n.projName;
|
|
190549
190599
|
return "no_uoff" in n || "no_off" in n || A.indexOf(e) !== -1 || A.indexOf(qoA(e)) !== -1;
|
|
190550
190600
|
}
|
|
190551
|
-
function
|
|
190601
|
+
function w$A() {
|
|
190552
190602
|
var n, A, e, t, i, r, s, o, a, l, D = 0, P, c = 0, h = 0, g = 0, u = 0, Q = 0, w = 0;
|
|
190553
|
-
this.no_off =
|
|
190603
|
+
this.no_off = Q$A(this), this.no_rot = "no_rot" in this;
|
|
190554
190604
|
var C = !1;
|
|
190555
190605
|
"alpha" in this && (C = !0);
|
|
190556
190606
|
var E = !1;
|
|
@@ -190561,7 +190611,7 @@ function u$A() {
|
|
|
190561
190611
|
var p = 1 - this.es;
|
|
190562
190612
|
A = Math.sqrt(p), Math.abs(this.lat0) > oi ? (o = Math.sin(this.lat0), e = Math.cos(this.lat0), n = 1 - this.es * o * o, this.B = e * e, this.B = Math.sqrt(1 + this.es * this.B * this.B / p), this.A = this.B * this.k0 * A / n, t = this.B * A / (e * Math.sqrt(n)), i = t * t - 1, i <= 0 ? i = 0 : (i = Math.sqrt(i), this.lat0 < 0 && (i = -i)), this.E = i += t, this.E *= Math.pow(YP(this.e, this.lat0, o), this.B)) : (this.B = 1 / A, this.A = this.k0, this.E = t = i = 1), C || E ? (C ? (P = Math.asin(Math.sin(w) / t), E || (D = w)) : (P = D, w = Math.asin(t * Math.sin(P))), this.lam0 = c - Math.asin(0.5 * (i - 1 / i) * Math.tan(P)) / this.B) : (r = Math.pow(YP(this.e, u, Math.sin(u)), this.B), s = Math.pow(YP(this.e, Q, Math.sin(Q)), this.B), i = this.E / r, a = (s - r) / (s + r), l = this.E * this.E, l = (l - s * r) / (l + s * r), n = h - g, n < -Math.PI ? g -= uI : n > Math.PI && (g += uI), this.lam0 = Qi(0.5 * (h + g) - Math.atan(l * Math.tan(0.5 * this.B * (h - g)) / a) / this.B, this.over), P = Math.atan(2 * Math.sin(this.B * Qi(h - this.lam0, this.over)) / (i - 1 / i)), D = w = Math.asin(t * Math.sin(P))), this.singam = Math.sin(P), this.cosgam = Math.cos(P), this.sinrot = Math.sin(D), this.cosrot = Math.cos(D), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(t * t - 1) / Math.cos(w))), this.lat0 < 0 && (this.u_0 = -this.u_0)), i = 0.5 * P, this.v_pole_n = this.ArB * Math.log(Math.tan(pr - i)), this.v_pole_s = this.ArB * Math.log(Math.tan(pr + i));
|
|
190563
190613
|
}
|
|
190564
|
-
function
|
|
190614
|
+
function f$A(n) {
|
|
190565
190615
|
var A = {}, e, t, i, r, s, o, a, l;
|
|
190566
190616
|
if (n.x = n.x - this.lam0, Math.abs(Math.abs(n.y) - Vt) > oi) {
|
|
190567
190617
|
if (s = this.E / Math.pow(YP(this.e, n.y, Math.sin(n.y)), this.B), o = 1 / s, e = 0.5 * (s - o), t = 0.5 * (s + o), r = Math.sin(this.B * n.x), i = (e * this.singam - r * this.cosgam) / t, Math.abs(Math.abs(i) - 1) < oi)
|
|
@@ -190571,7 +190621,7 @@ function Q$A(n) {
|
|
|
190571
190621
|
l = n.y > 0 ? this.v_pole_n : this.v_pole_s, a = this.ArB * n.y;
|
|
190572
190622
|
return this.no_rot ? (A.x = a, A.y = l) : (a -= this.u_0, A.x = l * this.cosrot + a * this.sinrot, A.y = a * this.cosrot - l * this.sinrot), A.x = this.a * A.x + this.x0, A.y = this.a * A.y + this.y0, A;
|
|
190573
190623
|
}
|
|
190574
|
-
function
|
|
190624
|
+
function d$A(n) {
|
|
190575
190625
|
var A, e, t, i, r, s, o, a = {};
|
|
190576
190626
|
if (n.x = (n.x - this.x0) * (1 / this.a), n.y = (n.y - this.y0) * (1 / this.a), this.no_rot ? (e = n.y, A = n.x) : (e = n.x * this.cosrot - n.y * this.sinrot, A = n.y * this.cosrot + n.x * this.sinrot + this.u_0), t = Math.exp(-this.BrA * e), i = 0.5 * (t - 1 / t), r = 0.5 * (t + 1 / t), s = Math.sin(this.BrA * A), o = (s * this.cosgam + i * this.singam) / r, Math.abs(Math.abs(o) - 1) < oi)
|
|
190577
190627
|
a.x = 0, a.y = o < 0 ? -Vt : Vt;
|
|
@@ -190582,14 +190632,14 @@ function w$A(n) {
|
|
|
190582
190632
|
}
|
|
190583
190633
|
return a.x += this.lam0, a;
|
|
190584
190634
|
}
|
|
190585
|
-
var
|
|
190586
|
-
const
|
|
190587
|
-
init:
|
|
190588
|
-
forward:
|
|
190589
|
-
inverse:
|
|
190590
|
-
names:
|
|
190635
|
+
var v$A = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Variant_B", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
|
|
190636
|
+
const C$A = {
|
|
190637
|
+
init: w$A,
|
|
190638
|
+
forward: f$A,
|
|
190639
|
+
inverse: d$A,
|
|
190640
|
+
names: v$A
|
|
190591
190641
|
};
|
|
190592
|
-
function
|
|
190642
|
+
function E$A() {
|
|
190593
190643
|
if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < oi)) {
|
|
190594
190644
|
var n = this.b / this.a;
|
|
190595
190645
|
this.e = Math.sqrt(1 - n * n);
|
|
@@ -190597,7 +190647,7 @@ function v$A() {
|
|
|
190597
190647
|
Math.abs(this.lat1 - this.lat2) > oi ? this.ns = Math.log(t / o) / Math.log(i / a) : this.ns = A, isNaN(this.ns) && (this.ns = A), this.f0 = t / (this.ns * Math.pow(i, this.ns)), this.rh = this.a * this.f0 * Math.pow(l, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
190598
190648
|
}
|
|
190599
190649
|
}
|
|
190600
|
-
function
|
|
190650
|
+
function B$A(n) {
|
|
190601
190651
|
var A = n.x, e = n.y;
|
|
190602
190652
|
Math.abs(2 * Math.abs(e) - Math.PI) <= oi && (e = nM(e) * (Vt - 2 * oi));
|
|
190603
190653
|
var t = Math.abs(Math.abs(e) - Vt), i, r;
|
|
@@ -190611,7 +190661,7 @@ function C$A(n) {
|
|
|
190611
190661
|
var s = this.ns * Qi(A - this.long0, this.over);
|
|
190612
190662
|
return n.x = this.k0 * (r * Math.sin(s)) + this.x0, n.y = this.k0 * (this.rh - r * Math.cos(s)) + this.y0, n;
|
|
190613
190663
|
}
|
|
190614
|
-
function
|
|
190664
|
+
function p$A(n) {
|
|
190615
190665
|
var A, e, t, i, r, s = (n.x - this.x0) / this.k0, o = this.rh - (n.y - this.y0) / this.k0;
|
|
190616
190666
|
this.ns > 0 ? (A = Math.sqrt(s * s + o * o), e = 1) : (A = -Math.sqrt(s * s + o * o), e = -1);
|
|
190617
190667
|
var a = 0;
|
|
@@ -190622,7 +190672,7 @@ function E$A(n) {
|
|
|
190622
190672
|
i = -Vt;
|
|
190623
190673
|
return r = Qi(a / this.ns + this.long0, this.over), n.x = r, n.y = i, n;
|
|
190624
190674
|
}
|
|
190625
|
-
var
|
|
190675
|
+
var m$A = [
|
|
190626
190676
|
"Lambert Tangential Conformal Conic Projection",
|
|
190627
190677
|
"Lambert_Conformal_Conic",
|
|
190628
190678
|
"Lambert_Conformal_Conic_1SP",
|
|
@@ -190631,20 +190681,20 @@ var B$A = [
|
|
|
190631
190681
|
"Lambert Conic Conformal (1SP)",
|
|
190632
190682
|
"Lambert Conic Conformal (2SP)"
|
|
190633
190683
|
];
|
|
190634
|
-
const
|
|
190635
|
-
init:
|
|
190636
|
-
forward:
|
|
190637
|
-
inverse:
|
|
190638
|
-
names:
|
|
190684
|
+
const I$A = {
|
|
190685
|
+
init: E$A,
|
|
190686
|
+
forward: B$A,
|
|
190687
|
+
inverse: p$A,
|
|
190688
|
+
names: m$A
|
|
190639
190689
|
};
|
|
190640
|
-
function
|
|
190690
|
+
function M$A() {
|
|
190641
190691
|
this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2)), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
|
|
190642
190692
|
}
|
|
190643
|
-
function
|
|
190693
|
+
function T$A(n) {
|
|
190644
190694
|
var A, e, t, i, r, s, o, a = n.x, l = n.y, D = Qi(a - this.long0, this.over);
|
|
190645
190695
|
return A = Math.pow((1 + this.e * Math.sin(l)) / (1 - this.e * Math.sin(l)), this.alfa * this.e / 2), e = 2 * (Math.atan(this.k * Math.pow(Math.tan(l / 2 + this.s45), this.alfa) / A) - this.s45), t = -D * this.alfa, i = Math.asin(Math.cos(this.ad) * Math.sin(e) + Math.sin(this.ad) * Math.cos(e) * Math.cos(t)), r = Math.asin(Math.cos(e) * Math.sin(t) / Math.cos(i)), s = this.n * r, o = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(i / 2 + this.s45), this.n), n.y = o * Math.cos(s) / 1, n.x = o * Math.sin(s) / 1, this.czech || (n.y *= -1, n.x *= -1), n;
|
|
190646
190696
|
}
|
|
190647
|
-
function
|
|
190697
|
+
function y$A(n) {
|
|
190648
190698
|
var A, e, t, i, r, s, o, a, l = n.x;
|
|
190649
190699
|
n.x = n.y, n.y = l, this.czech || (n.y *= -1, n.x *= -1), s = Math.sqrt(n.x * n.x + n.y * n.y), r = Math.atan2(n.y, n.x), i = r / Math.sin(this.s0), t = 2 * (Math.atan(Math.pow(this.ro0 / s, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), A = Math.asin(Math.cos(this.ad) * Math.sin(t) - Math.sin(this.ad) * Math.cos(t) * Math.cos(i)), e = Math.asin(Math.cos(t) * Math.sin(i) / Math.cos(A)), n.x = this.long0 - e / this.alfa, o = A, a = 0;
|
|
190650
190700
|
var D = 0;
|
|
@@ -190653,12 +190703,12 @@ function M$A(n) {
|
|
|
190653
190703
|
while (a === 0 && D < 15);
|
|
190654
190704
|
return D >= 15 ? null : n;
|
|
190655
190705
|
}
|
|
190656
|
-
var
|
|
190657
|
-
const
|
|
190658
|
-
init:
|
|
190659
|
-
forward:
|
|
190660
|
-
inverse:
|
|
190661
|
-
names:
|
|
190706
|
+
var O$A = ["Krovak", "krovak"];
|
|
190707
|
+
const k$A = {
|
|
190708
|
+
init: M$A,
|
|
190709
|
+
forward: T$A,
|
|
190710
|
+
inverse: y$A,
|
|
190711
|
+
names: O$A
|
|
190662
190712
|
};
|
|
190663
190713
|
function Xa(n, A, e, t, i) {
|
|
190664
190714
|
return n * i - A * Math.sin(2 * i) + e * Math.sin(4 * i) - t * Math.sin(6 * i);
|
|
@@ -190690,10 +190740,10 @@ function ZO(n, A, e, t, i) {
|
|
|
190690
190740
|
return r;
|
|
190691
190741
|
return NaN;
|
|
190692
190742
|
}
|
|
190693
|
-
function
|
|
190743
|
+
function b$A() {
|
|
190694
190744
|
this.sphere || (this.e0 = rM(this.es), this.e1 = sM(this.es), this.e2 = oM(this.es), this.e3 = aM(this.es), this.ml0 = this.a * Xa(this.e0, this.e1, this.e2, this.e3, this.lat0));
|
|
190695
190745
|
}
|
|
190696
|
-
function
|
|
190746
|
+
function z$A(n) {
|
|
190697
190747
|
var A, e, t = n.x, i = n.y;
|
|
190698
190748
|
if (t = Qi(t - this.long0, this.over), this.sphere)
|
|
190699
190749
|
A = this.a * Math.asin(Math.cos(i) * Math.sin(t)), e = this.a * (Math.atan2(Math.tan(i), Math.cos(t)) - this.lat0);
|
|
@@ -190703,7 +190753,7 @@ function k$A(n) {
|
|
|
190703
190753
|
}
|
|
190704
190754
|
return n.x = A + this.x0, n.y = e + this.y0, n;
|
|
190705
190755
|
}
|
|
190706
|
-
function
|
|
190756
|
+
function N$A(n) {
|
|
190707
190757
|
n.x -= this.x0, n.y -= this.y0;
|
|
190708
190758
|
var A = n.x / this.a, e = n.y / this.a, t, i;
|
|
190709
190759
|
if (this.sphere) {
|
|
@@ -190718,23 +190768,23 @@ function b$A(n) {
|
|
|
190718
190768
|
}
|
|
190719
190769
|
return n.x = Qi(i + this.long0, this.over), n.y = _Q(t), n;
|
|
190720
190770
|
}
|
|
190721
|
-
var
|
|
190722
|
-
const
|
|
190723
|
-
init:
|
|
190724
|
-
forward:
|
|
190725
|
-
inverse:
|
|
190726
|
-
names:
|
|
190771
|
+
var x$A = ["Cassini", "Cassini_Soldner", "cass"];
|
|
190772
|
+
const L$A = {
|
|
190773
|
+
init: b$A,
|
|
190774
|
+
forward: z$A,
|
|
190775
|
+
inverse: N$A,
|
|
190776
|
+
names: x$A
|
|
190727
190777
|
};
|
|
190728
190778
|
function NQ(n, A) {
|
|
190729
190779
|
var e;
|
|
190730
190780
|
return n > 1e-7 ? (e = n * A, (1 - n * n) * (A / (1 - e * e) - 0.5 / n * Math.log((1 - e) / (1 + e)))) : 2 * A;
|
|
190731
190781
|
}
|
|
190732
190782
|
var fU = 1, dU = 2, vU = 3, n1 = 4;
|
|
190733
|
-
function
|
|
190783
|
+
function U$A() {
|
|
190734
190784
|
var n = Math.abs(this.lat0);
|
|
190735
190785
|
if (Math.abs(n - Vt) < oi ? this.mode = this.lat0 < 0 ? fU : dU : Math.abs(n) < oi ? this.mode = vU : this.mode = n1, this.es > 0) {
|
|
190736
190786
|
var A;
|
|
190737
|
-
switch (this.qp = NQ(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa =
|
|
190787
|
+
switch (this.qp = NQ(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = Z$A(this.es), this.mode) {
|
|
190738
190788
|
case dU:
|
|
190739
190789
|
this.dd = 1;
|
|
190740
190790
|
break;
|
|
@@ -190751,7 +190801,7 @@ function x$A() {
|
|
|
190751
190801
|
} else
|
|
190752
190802
|
this.mode === n1 && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
|
|
190753
190803
|
}
|
|
190754
|
-
function
|
|
190804
|
+
function j$A(n) {
|
|
190755
190805
|
var A, e, t, i, r, s, o, a, l, D, P = n.x, c = n.y;
|
|
190756
190806
|
if (P = Qi(P - this.long0, this.over), this.sphere) {
|
|
190757
190807
|
if (r = Math.sin(c), D = Math.cos(c), t = Math.cos(P), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
@@ -190793,7 +190843,7 @@ function L$A(n) {
|
|
|
190793
190843
|
}
|
|
190794
190844
|
return n.x = this.a * A + this.x0, n.y = this.a * e + this.y0, n;
|
|
190795
190845
|
}
|
|
190796
|
-
function
|
|
190846
|
+
function S$A(n) {
|
|
190797
190847
|
n.x -= this.x0, n.y -= this.y0;
|
|
190798
190848
|
var A = n.x / this.a, e = n.y / this.a, t, i, r, s, o, a, l;
|
|
190799
190849
|
if (this.sphere) {
|
|
@@ -190825,25 +190875,25 @@ function U$A(n) {
|
|
|
190825
190875
|
return n.x = this.long0, n.y = this.lat0, n;
|
|
190826
190876
|
l = 1 - o / this.qp, this.mode === this.S_POLE && (l = -l);
|
|
190827
190877
|
}
|
|
190828
|
-
t = Math.atan2(A, e), i =
|
|
190878
|
+
t = Math.atan2(A, e), i = K$A(Math.asin(l), this.apa);
|
|
190829
190879
|
}
|
|
190830
190880
|
return n.x = Qi(this.long0 + t, this.over), n.y = i, n;
|
|
190831
190881
|
}
|
|
190832
|
-
var
|
|
190833
|
-
function
|
|
190882
|
+
var F$A = 0.3333333333333333, R$A = 0.17222222222222222, Y$A = 0.10257936507936508, H$A = 0.06388888888888888, J$A = 0.0664021164021164, G$A = 0.016415012942191543;
|
|
190883
|
+
function Z$A(n) {
|
|
190834
190884
|
var A, e = [];
|
|
190835
|
-
return e[0] = n *
|
|
190885
|
+
return e[0] = n * F$A, A = n * n, e[0] += A * R$A, e[1] = A * H$A, A *= n, e[0] += A * Y$A, e[1] += A * J$A, e[2] = A * G$A, e;
|
|
190836
190886
|
}
|
|
190837
|
-
function
|
|
190887
|
+
function K$A(n, A) {
|
|
190838
190888
|
var e = n + n;
|
|
190839
190889
|
return n + A[0] * Math.sin(e) + A[1] * Math.sin(e + e) + A[2] * Math.sin(e + e + e);
|
|
190840
190890
|
}
|
|
190841
|
-
var
|
|
190842
|
-
const
|
|
190843
|
-
init:
|
|
190844
|
-
forward:
|
|
190845
|
-
inverse:
|
|
190846
|
-
names:
|
|
190891
|
+
var V$A = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
|
|
190892
|
+
const q$A = {
|
|
190893
|
+
init: U$A,
|
|
190894
|
+
forward: j$A,
|
|
190895
|
+
inverse: S$A,
|
|
190896
|
+
names: V$A,
|
|
190847
190897
|
S_POLE: fU,
|
|
190848
190898
|
N_POLE: dU,
|
|
190849
190899
|
EQUIT: vU,
|
|
@@ -190852,20 +190902,20 @@ const K$A = {
|
|
|
190852
190902
|
function FQ(n) {
|
|
190853
190903
|
return Math.abs(n) > 1 && (n = n > 1 ? 1 : -1), Math.asin(n);
|
|
190854
190904
|
}
|
|
190855
|
-
function
|
|
190905
|
+
function W$A() {
|
|
190856
190906
|
Math.abs(this.lat1 + this.lat2) < oi || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = rh(this.e3, this.sin_po, this.cos_po), this.qs1 = NQ(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = rh(this.e3, this.sin_po, this.cos_po), this.qs2 = NQ(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = NQ(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > oi ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
|
|
190857
190907
|
}
|
|
190858
|
-
function
|
|
190908
|
+
function X$A(n) {
|
|
190859
190909
|
var A = n.x, e = n.y;
|
|
190860
190910
|
this.sin_phi = Math.sin(e), this.cos_phi = Math.cos(e);
|
|
190861
190911
|
var t = NQ(this.e3, this.sin_phi), i = this.a * Math.sqrt(this.c - this.ns0 * t) / this.ns0, r = this.ns0 * Qi(A - this.long0, this.over), s = i * Math.sin(r) + this.x0, o = this.rh - i * Math.cos(r) + this.y0;
|
|
190862
190912
|
return n.x = s, n.y = o, n;
|
|
190863
190913
|
}
|
|
190864
|
-
function
|
|
190914
|
+
function _$A(n) {
|
|
190865
190915
|
var A, e, t, i, r, s;
|
|
190866
190916
|
return n.x -= this.x0, n.y = this.rh - n.y + this.y0, this.ns0 >= 0 ? (A = Math.sqrt(n.x * n.x + n.y * n.y), t = 1) : (A = -Math.sqrt(n.x * n.x + n.y * n.y), t = -1), i = 0, A !== 0 && (i = Math.atan2(t * n.x, t * n.y)), t = A * this.ns0 / this.a, this.sphere ? s = Math.asin((this.c - t * t) / (2 * this.ns0)) : (e = (this.c - t * t) / this.ns0, s = this.phi1z(this.e3, e)), r = Qi(i / this.ns0 + this.long0, this.over), n.x = r, n.y = s, n;
|
|
190867
190917
|
}
|
|
190868
|
-
function
|
|
190918
|
+
function $$A(n, A) {
|
|
190869
190919
|
var e, t, i, r, s, o = FQ(0.5 * A);
|
|
190870
190920
|
if (n < oi)
|
|
190871
190921
|
return o;
|
|
@@ -190874,33 +190924,33 @@ function X$A(n, A) {
|
|
|
190874
190924
|
return o;
|
|
190875
190925
|
return null;
|
|
190876
190926
|
}
|
|
190877
|
-
var
|
|
190878
|
-
const
|
|
190879
|
-
init:
|
|
190880
|
-
forward:
|
|
190881
|
-
inverse:
|
|
190882
|
-
names:
|
|
190883
|
-
phi1z:
|
|
190927
|
+
var AAe = ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers", "aea"];
|
|
190928
|
+
const eAe = {
|
|
190929
|
+
init: W$A,
|
|
190930
|
+
forward: X$A,
|
|
190931
|
+
inverse: _$A,
|
|
190932
|
+
names: AAe,
|
|
190933
|
+
phi1z: $$A
|
|
190884
190934
|
};
|
|
190885
|
-
function
|
|
190935
|
+
function tAe() {
|
|
190886
190936
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
|
|
190887
190937
|
}
|
|
190888
|
-
function
|
|
190938
|
+
function iAe(n) {
|
|
190889
190939
|
var A, e, t, i, r, s, o, a, l = n.x, D = n.y;
|
|
190890
190940
|
return t = Qi(l - this.long0, this.over), A = Math.sin(D), e = Math.cos(D), i = Math.cos(t), s = this.sin_p14 * A + this.cos_p14 * e * i, r = 1, s > 0 || Math.abs(s) <= oi ? (o = this.x0 + this.a * r * e * Math.sin(t) / s, a = this.y0 + this.a * r * (this.cos_p14 * A - this.sin_p14 * e * i) / s) : (o = this.x0 + this.infinity_dist * e * Math.sin(t), a = this.y0 + this.infinity_dist * (this.cos_p14 * A - this.sin_p14 * e * i)), n.x = o, n.y = a, n;
|
|
190891
190941
|
}
|
|
190892
|
-
function
|
|
190942
|
+
function nAe(n) {
|
|
190893
190943
|
var A, e, t, i, r, s;
|
|
190894
190944
|
return n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a, n.x /= this.k0, n.y /= this.k0, (A = Math.sqrt(n.x * n.x + n.y * n.y)) ? (i = Math.atan2(A, this.rc), e = Math.sin(i), t = Math.cos(i), s = FQ(t * this.sin_p14 + n.y * e * this.cos_p14 / A), r = Math.atan2(n.x * e, A * this.cos_p14 * t - n.y * this.sin_p14 * e), r = Qi(this.long0 + r, this.over)) : (s = this.phic0, r = 0), n.x = r, n.y = s, n;
|
|
190895
190945
|
}
|
|
190896
|
-
var
|
|
190897
|
-
const
|
|
190898
|
-
init:
|
|
190899
|
-
forward:
|
|
190900
|
-
inverse:
|
|
190901
|
-
names:
|
|
190946
|
+
var rAe = ["gnom"];
|
|
190947
|
+
const sAe = {
|
|
190948
|
+
init: tAe,
|
|
190949
|
+
forward: iAe,
|
|
190950
|
+
inverse: nAe,
|
|
190951
|
+
names: rAe
|
|
190902
190952
|
};
|
|
190903
|
-
function
|
|
190953
|
+
function oAe(n, A) {
|
|
190904
190954
|
var e = 1 - (1 - n * n) / (2 * n) * Math.log((1 - n) / (1 + n));
|
|
190905
190955
|
if (Math.abs(Math.abs(A) - e) < 1e-6)
|
|
190906
190956
|
return A < 0 ? -1 * Vt : Vt;
|
|
@@ -190909,10 +190959,10 @@ function rAe(n, A) {
|
|
|
190909
190959
|
return t;
|
|
190910
190960
|
return NaN;
|
|
190911
190961
|
}
|
|
190912
|
-
function
|
|
190962
|
+
function aAe() {
|
|
190913
190963
|
this.sphere || (this.k0 = rh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
190914
190964
|
}
|
|
190915
|
-
function
|
|
190965
|
+
function lAe(n) {
|
|
190916
190966
|
var A = n.x, e = n.y, t, i, r = Qi(A - this.long0, this.over);
|
|
190917
190967
|
if (this.sphere)
|
|
190918
190968
|
t = this.x0 + this.a * r * Math.cos(this.lat_ts), i = this.y0 + this.a * Math.sin(e) / Math.cos(this.lat_ts);
|
|
@@ -190922,41 +190972,41 @@ function oAe(n) {
|
|
|
190922
190972
|
}
|
|
190923
190973
|
return n.x = t, n.y = i, n;
|
|
190924
190974
|
}
|
|
190925
|
-
function
|
|
190975
|
+
function DAe(n) {
|
|
190926
190976
|
n.x -= this.x0, n.y -= this.y0;
|
|
190927
190977
|
var A, e;
|
|
190928
|
-
return this.sphere ? (A = Qi(this.long0 + n.x / this.a / Math.cos(this.lat_ts), this.over), e = Math.asin(n.y / this.a * Math.cos(this.lat_ts))) : (e =
|
|
190929
|
-
}
|
|
190930
|
-
var
|
|
190931
|
-
const
|
|
190932
|
-
init:
|
|
190933
|
-
forward:
|
|
190934
|
-
inverse:
|
|
190935
|
-
names:
|
|
190978
|
+
return this.sphere ? (A = Qi(this.long0 + n.x / this.a / Math.cos(this.lat_ts), this.over), e = Math.asin(n.y / this.a * Math.cos(this.lat_ts))) : (e = oAe(this.e, 2 * n.y * this.k0 / this.a), A = Qi(this.long0 + n.x / (this.a * this.k0), this.over)), n.x = A, n.y = e, n;
|
|
190979
|
+
}
|
|
190980
|
+
var PAe = ["cea"];
|
|
190981
|
+
const cAe = {
|
|
190982
|
+
init: aAe,
|
|
190983
|
+
forward: lAe,
|
|
190984
|
+
inverse: DAe,
|
|
190985
|
+
names: PAe
|
|
190936
190986
|
};
|
|
190937
|
-
function
|
|
190987
|
+
function hAe() {
|
|
190938
190988
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Equidistant Cylindrical (Plate Carre)", this.rc = Math.cos(this.lat_ts);
|
|
190939
190989
|
}
|
|
190940
|
-
function
|
|
190990
|
+
function gAe(n) {
|
|
190941
190991
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i = _Q(e - this.lat0);
|
|
190942
190992
|
return n.x = this.x0 + this.a * t * this.rc, n.y = this.y0 + this.a * i, n;
|
|
190943
190993
|
}
|
|
190944
|
-
function
|
|
190994
|
+
function uAe(n) {
|
|
190945
190995
|
var A = n.x, e = n.y;
|
|
190946
190996
|
return n.x = Qi(this.long0 + (A - this.x0) / (this.a * this.rc), this.over), n.y = _Q(this.lat0 + (e - this.y0) / this.a), n;
|
|
190947
190997
|
}
|
|
190948
|
-
var
|
|
190949
|
-
const
|
|
190950
|
-
init:
|
|
190951
|
-
forward:
|
|
190952
|
-
inverse:
|
|
190953
|
-
names:
|
|
190998
|
+
var QAe = ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical", "eqc"];
|
|
190999
|
+
const wAe = {
|
|
191000
|
+
init: hAe,
|
|
191001
|
+
forward: gAe,
|
|
191002
|
+
inverse: uAe,
|
|
191003
|
+
names: QAe
|
|
190954
191004
|
};
|
|
190955
191005
|
var TW = 20;
|
|
190956
|
-
function
|
|
191006
|
+
function fAe() {
|
|
190957
191007
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = rM(this.es), this.e1 = sM(this.es), this.e2 = oM(this.es), this.e3 = aM(this.es), this.ml0 = this.a * Xa(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
190958
191008
|
}
|
|
190959
|
-
function
|
|
191009
|
+
function dAe(n) {
|
|
190960
191010
|
var A = n.x, e = n.y, t, i, r, s = Qi(A - this.long0, this.over);
|
|
190961
191011
|
if (r = s * Math.sin(e), this.sphere)
|
|
190962
191012
|
Math.abs(e) <= oi ? (t = this.a * s, i = -1 * this.a * this.lat0) : (t = this.a * Math.sin(r) / Math.tan(e), i = this.a * (_Q(e - this.lat0) + (1 - Math.cos(r)) / Math.tan(e)));
|
|
@@ -190968,7 +191018,7 @@ function wAe(n) {
|
|
|
190968
191018
|
}
|
|
190969
191019
|
return n.x = t + this.x0, n.y = i + this.y0, n;
|
|
190970
191020
|
}
|
|
190971
|
-
function
|
|
191021
|
+
function vAe(n) {
|
|
190972
191022
|
var A, e, t, i, r, s, o, a, l;
|
|
190973
191023
|
if (t = n.x - this.x0, i = n.y - this.y0, this.sphere)
|
|
190974
191024
|
if (Math.abs(i + this.a * this.lat0) <= oi)
|
|
@@ -190997,17 +191047,17 @@ function fAe(n) {
|
|
|
190997
191047
|
}
|
|
190998
191048
|
return n.x = A, n.y = e, n;
|
|
190999
191049
|
}
|
|
191000
|
-
var
|
|
191001
|
-
const
|
|
191002
|
-
init:
|
|
191003
|
-
forward:
|
|
191004
|
-
inverse:
|
|
191005
|
-
names:
|
|
191050
|
+
var CAe = ["Polyconic", "American_Polyconic", "poly"];
|
|
191051
|
+
const EAe = {
|
|
191052
|
+
init: fAe,
|
|
191053
|
+
forward: dAe,
|
|
191054
|
+
inverse: vAe,
|
|
191055
|
+
names: CAe
|
|
191006
191056
|
};
|
|
191007
|
-
function
|
|
191057
|
+
function BAe() {
|
|
191008
191058
|
this.A = [], this.A[1] = 0.6399175073, this.A[2] = -0.1358797613, this.A[3] = 0.063294409, this.A[4] = -0.02526853, this.A[5] = 0.0117879, this.A[6] = -55161e-7, this.A[7] = 26906e-7, this.A[8] = -1333e-6, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = 0.7557853228, this.B_im[1] = 0, this.B_re[2] = 0.249204646, this.B_im[2] = 3371507e-9, this.B_re[3] = -1541739e-9, this.B_im[3] = 0.04105856, this.B_re[4] = -0.10162907, this.B_im[4] = 0.01727609, this.B_re[5] = -0.26623489, this.B_im[5] = -0.36249218, this.B_re[6] = -0.6870983, this.B_im[6] = -1.1651967, this.C_re = [], this.C_im = [], this.C_re[1] = 1.3231270439, this.C_im[1] = 0, this.C_re[2] = -0.577245789, this.C_im[2] = -7809598e-9, this.C_re[3] = 0.508307513, this.C_im[3] = -0.112208952, this.C_re[4] = -0.15094762, this.C_im[4] = 0.18200602, this.C_re[5] = 1.01418179, this.C_im[5] = 1.64497696, this.C_re[6] = 1.9660549, this.C_im[6] = 2.5127645, this.D = [], this.D[1] = 1.5627014243, this.D[2] = 0.5185406398, this.D[3] = -0.03333098, this.D[4] = -0.1052906, this.D[5] = -0.0368594, this.D[6] = 7317e-6, this.D[7] = 0.0122, this.D[8] = 394e-5, this.D[9] = -13e-4;
|
|
191009
191059
|
}
|
|
191010
|
-
function
|
|
191060
|
+
function pAe(n) {
|
|
191011
191061
|
var A, e = n.x, t = n.y, i = t - this.lat0, r = e - this.long0, s = i / cm * 1e-5, o = r, a = 1, l = 0;
|
|
191012
191062
|
for (A = 1; A <= 10; A++)
|
|
191013
191063
|
a = a * s, l = l + this.A[A] * a;
|
|
@@ -191016,7 +191066,7 @@ function EAe(n) {
|
|
|
191016
191066
|
g = c * D - h * P, u = h * D + c * P, c = g, h = u, Q = Q + this.B_re[A] * c - this.B_im[A] * h, w = w + this.B_im[A] * c + this.B_re[A] * h;
|
|
191017
191067
|
return n.x = w * this.a + this.x0, n.y = Q * this.a + this.y0, n;
|
|
191018
191068
|
}
|
|
191019
|
-
function
|
|
191069
|
+
function mAe(n) {
|
|
191020
191070
|
var A, e = n.x, t = n.y, i = e - this.x0, r = t - this.y0, s = r / this.a, o = i / this.a, a = 1, l = 0, D, P, c = 0, h = 0;
|
|
191021
191071
|
for (A = 1; A <= 6; A++)
|
|
191022
191072
|
D = a * s - l * o, P = l * s + a * o, a = D, l = P, c = c + this.C_re[A] * a - this.C_im[A] * l, h = h + this.C_im[A] * a + this.C_re[A] * l;
|
|
@@ -191037,42 +191087,42 @@ function BAe(n) {
|
|
|
191037
191087
|
var R = this.lat0 + Y * cm * 1e5, J = this.long0 + b;
|
|
191038
191088
|
return n.x = J, n.y = R, n;
|
|
191039
191089
|
}
|
|
191040
|
-
var
|
|
191041
|
-
const
|
|
191042
|
-
init:
|
|
191043
|
-
forward:
|
|
191044
|
-
inverse:
|
|
191045
|
-
names:
|
|
191090
|
+
var IAe = ["New_Zealand_Map_Grid", "nzmg"];
|
|
191091
|
+
const MAe = {
|
|
191092
|
+
init: BAe,
|
|
191093
|
+
forward: pAe,
|
|
191094
|
+
inverse: mAe,
|
|
191095
|
+
names: IAe
|
|
191046
191096
|
};
|
|
191047
|
-
function
|
|
191097
|
+
function TAe() {
|
|
191048
191098
|
}
|
|
191049
|
-
function
|
|
191099
|
+
function yAe(n) {
|
|
191050
191100
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i = this.x0 + this.a * t, r = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + e / 2.5)) * 1.25;
|
|
191051
191101
|
return n.x = i, n.y = r, n;
|
|
191052
191102
|
}
|
|
191053
|
-
function
|
|
191103
|
+
function OAe(n) {
|
|
191054
191104
|
n.x -= this.x0, n.y -= this.y0;
|
|
191055
191105
|
var A = Qi(this.long0 + n.x / this.a, this.over), e = 2.5 * (Math.atan(Math.exp(0.8 * n.y / this.a)) - Math.PI / 4);
|
|
191056
191106
|
return n.x = A, n.y = e, n;
|
|
191057
191107
|
}
|
|
191058
|
-
var
|
|
191059
|
-
const
|
|
191060
|
-
init:
|
|
191061
|
-
forward:
|
|
191062
|
-
inverse:
|
|
191063
|
-
names:
|
|
191108
|
+
var kAe = ["Miller_Cylindrical", "mill"];
|
|
191109
|
+
const bAe = {
|
|
191110
|
+
init: TAe,
|
|
191111
|
+
forward: yAe,
|
|
191112
|
+
inverse: OAe,
|
|
191113
|
+
names: kAe
|
|
191064
191114
|
};
|
|
191065
|
-
var
|
|
191066
|
-
function
|
|
191115
|
+
var zAe = 20;
|
|
191116
|
+
function NAe() {
|
|
191067
191117
|
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = X6(this.es);
|
|
191068
191118
|
}
|
|
191069
|
-
function
|
|
191119
|
+
function xAe(n) {
|
|
191070
191120
|
var A, e, t = n.x, i = n.y;
|
|
191071
191121
|
if (t = Qi(t - this.long0, this.over), this.sphere) {
|
|
191072
191122
|
if (!this.m)
|
|
191073
191123
|
i = this.n !== 1 ? Math.asin(this.n * Math.sin(i)) : i;
|
|
191074
191124
|
else
|
|
191075
|
-
for (var r = this.n * Math.sin(i), s =
|
|
191125
|
+
for (var r = this.n * Math.sin(i), s = zAe; s; --s) {
|
|
191076
191126
|
var o = (this.m * i + Math.sin(i) - r) / (this.m + Math.cos(i));
|
|
191077
191127
|
if (i -= o, Math.abs(o) < oi)
|
|
191078
191128
|
break;
|
|
@@ -191084,21 +191134,21 @@ function zAe(n) {
|
|
|
191084
191134
|
}
|
|
191085
191135
|
return n.x = A, n.y = e, n;
|
|
191086
191136
|
}
|
|
191087
|
-
function
|
|
191137
|
+
function LAe(n) {
|
|
191088
191138
|
var A, e, t, i;
|
|
191089
191139
|
return n.x -= this.x0, t = n.x / this.a, n.y -= this.y0, A = n.y / this.a, this.sphere ? (A /= this.C_y, t = t / (this.C_x * (this.m + Math.cos(A))), this.m ? A = FQ((this.m * A + Math.sin(A)) / this.n) : this.n !== 1 && (A = FQ(Math.sin(A) / this.n)), t = Qi(t + this.long0, this.over), A = _Q(A)) : (A = _6(n.y / this.a, this.es, this.en), i = Math.abs(A), i < Vt ? (i = Math.sin(A), e = this.long0 + n.x * Math.sqrt(1 - this.es * i * i) / (this.a * Math.cos(A)), t = Qi(e, this.over)) : i - oi < Vt && (t = this.long0)), n.x = t, n.y = A, n;
|
|
191090
191140
|
}
|
|
191091
|
-
var
|
|
191092
|
-
const
|
|
191093
|
-
init:
|
|
191094
|
-
forward:
|
|
191095
|
-
inverse:
|
|
191096
|
-
names:
|
|
191141
|
+
var UAe = ["Sinusoidal", "sinu"];
|
|
191142
|
+
const jAe = {
|
|
191143
|
+
init: NAe,
|
|
191144
|
+
forward: xAe,
|
|
191145
|
+
inverse: LAe,
|
|
191146
|
+
names: UAe
|
|
191097
191147
|
};
|
|
191098
|
-
function
|
|
191148
|
+
function SAe() {
|
|
191099
191149
|
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
|
|
191100
191150
|
}
|
|
191101
|
-
function
|
|
191151
|
+
function FAe(n) {
|
|
191102
191152
|
for (var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i = e, r = Math.PI * Math.sin(e); ; ) {
|
|
191103
191153
|
var s = -(i + Math.sin(i) - r) / (1 + Math.cos(i));
|
|
191104
191154
|
if (i += s, Math.abs(s) < oi)
|
|
@@ -191108,7 +191158,7 @@ function jAe(n) {
|
|
|
191108
191158
|
var o = 0.900316316158 * this.a * t * Math.cos(i) + this.x0, a = 1.4142135623731 * this.a * Math.sin(i) + this.y0;
|
|
191109
191159
|
return n.x = o, n.y = a, n;
|
|
191110
191160
|
}
|
|
191111
|
-
function
|
|
191161
|
+
function RAe(n) {
|
|
191112
191162
|
var A, e;
|
|
191113
191163
|
n.x -= this.x0, n.y -= this.y0, e = n.y / (1.4142135623731 * this.a), Math.abs(e) > 0.999999999999 && (e = 0.999999999999), A = Math.asin(e);
|
|
191114
191164
|
var t = Qi(this.long0 + n.x / (0.900316316158 * this.a * Math.cos(A)), this.over);
|
|
@@ -191116,17 +191166,17 @@ function SAe(n) {
|
|
|
191116
191166
|
var i = Math.asin(e);
|
|
191117
191167
|
return n.x = t, n.y = i, n;
|
|
191118
191168
|
}
|
|
191119
|
-
var
|
|
191120
|
-
const
|
|
191121
|
-
init:
|
|
191122
|
-
forward:
|
|
191123
|
-
inverse:
|
|
191124
|
-
names:
|
|
191169
|
+
var YAe = ["Mollweide", "moll"];
|
|
191170
|
+
const HAe = {
|
|
191171
|
+
init: SAe,
|
|
191172
|
+
forward: FAe,
|
|
191173
|
+
inverse: RAe,
|
|
191174
|
+
names: YAe
|
|
191125
191175
|
};
|
|
191126
|
-
function
|
|
191176
|
+
function JAe() {
|
|
191127
191177
|
Math.abs(this.lat1 + this.lat2) < oi || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = rM(this.es), this.e1 = sM(this.es), this.e2 = oM(this.es), this.e3 = aM(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = rh(this.e, this.sin_phi, this.cos_phi), this.ml1 = Xa(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < oi ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = rh(this.e, this.sin_phi, this.cos_phi), this.ml2 = Xa(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = Xa(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
191128
191178
|
}
|
|
191129
|
-
function
|
|
191179
|
+
function GAe(n) {
|
|
191130
191180
|
var A = n.x, e = n.y, t;
|
|
191131
191181
|
if (this.sphere)
|
|
191132
191182
|
t = this.a * (this.g - e);
|
|
@@ -191137,7 +191187,7 @@ function HAe(n) {
|
|
|
191137
191187
|
var r = this.ns * Qi(A - this.long0, this.over), s = this.x0 + t * Math.sin(r), o = this.y0 + this.rh - t * Math.cos(r);
|
|
191138
191188
|
return n.x = s, n.y = o, n;
|
|
191139
191189
|
}
|
|
191140
|
-
function
|
|
191190
|
+
function ZAe(n) {
|
|
191141
191191
|
n.x -= this.x0, n.y = this.rh - n.y + this.y0;
|
|
191142
191192
|
var A, e, t, i;
|
|
191143
191193
|
this.ns >= 0 ? (e = Math.sqrt(n.x * n.x + n.y * n.y), A = 1) : (e = -Math.sqrt(n.x * n.x + n.y * n.y), A = -1);
|
|
@@ -191147,17 +191197,17 @@ function JAe(n) {
|
|
|
191147
191197
|
var s = this.g - e / this.a;
|
|
191148
191198
|
return t = ZO(s, this.e0, this.e1, this.e2, this.e3), i = Qi(this.long0 + r / this.ns, this.over), n.x = i, n.y = t, n;
|
|
191149
191199
|
}
|
|
191150
|
-
var
|
|
191151
|
-
const
|
|
191152
|
-
init:
|
|
191153
|
-
forward:
|
|
191154
|
-
inverse:
|
|
191155
|
-
names:
|
|
191200
|
+
var KAe = ["Equidistant_Conic", "eqdc"];
|
|
191201
|
+
const VAe = {
|
|
191202
|
+
init: JAe,
|
|
191203
|
+
forward: GAe,
|
|
191204
|
+
inverse: ZAe,
|
|
191205
|
+
names: KAe
|
|
191156
191206
|
};
|
|
191157
|
-
function
|
|
191207
|
+
function qAe() {
|
|
191158
191208
|
this.R = this.a;
|
|
191159
191209
|
}
|
|
191160
|
-
function
|
|
191210
|
+
function WAe(n) {
|
|
191161
191211
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i, r;
|
|
191162
191212
|
Math.abs(e) <= oi && (i = this.x0 + this.R * t, r = this.y0);
|
|
191163
191213
|
var s = FQ(2 * Math.abs(e / Math.PI));
|
|
@@ -191167,18 +191217,18 @@ function VAe(n) {
|
|
|
191167
191217
|
var Q = a + P;
|
|
191168
191218
|
return u = Math.PI * this.R * (h * Q - o * Math.sqrt((g + a) * (a + 1) - Q * Q)) / (g + a), e >= 0 ? r = this.y0 + u : r = this.y0 - u, n.x = i, n.y = r, n;
|
|
191169
191219
|
}
|
|
191170
|
-
function
|
|
191220
|
+
function XAe(n) {
|
|
191171
191221
|
var A, e, t, i, r, s, o, a, l, D, P, c, h;
|
|
191172
191222
|
return n.x -= this.x0, n.y -= this.y0, P = Math.PI * this.R, t = n.x / P, i = n.y / P, r = t * t + i * i, s = -Math.abs(i) * (1 + r), o = s - 2 * i * i + t * t, a = -2 * s + 1 + 2 * i * i + r * r, h = i * i / a + (2 * o * o * o / a / a / a - 9 * s * o / a / a) / 27, l = (s - o * o / 3 / a) / a, D = 2 * Math.sqrt(-l / 3), P = 3 * h / l / D, Math.abs(P) > 1 && (P >= 0 ? P = 1 : P = -1), c = Math.acos(P) / 3, n.y >= 0 ? e = (-D * Math.cos(c + Math.PI / 3) - o / 3 / a) * Math.PI : e = -(-D * Math.cos(c + Math.PI / 3) - o / 3 / a) * Math.PI, Math.abs(t) < oi ? A = this.long0 : A = Qi(this.long0 + Math.PI * (r - 1 + Math.sqrt(1 + 2 * (t * t - i * i) + r * r)) / 2 / t, this.over), n.x = A, n.y = e, n;
|
|
191173
191223
|
}
|
|
191174
|
-
var
|
|
191175
|
-
const
|
|
191176
|
-
init:
|
|
191177
|
-
forward:
|
|
191178
|
-
inverse:
|
|
191179
|
-
names:
|
|
191224
|
+
var _Ae = ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"];
|
|
191225
|
+
const $Ae = {
|
|
191226
|
+
init: qAe,
|
|
191227
|
+
forward: WAe,
|
|
191228
|
+
inverse: XAe,
|
|
191229
|
+
names: _Ae
|
|
191180
191230
|
};
|
|
191181
|
-
function
|
|
191231
|
+
function Aee(n, A, e, t, i, r) {
|
|
191182
191232
|
const s = t - A, o = Math.atan((1 - r) * Math.tan(n)), a = Math.atan((1 - r) * Math.tan(e)), l = Math.sin(o), D = Math.cos(o), P = Math.sin(a), c = Math.cos(a);
|
|
191183
191233
|
let h = s, g, u = 100, Q, w, C, E, p, m, T, z, L, b, U, Y, R, J;
|
|
191184
191234
|
do {
|
|
@@ -191190,7 +191240,7 @@ function _Ae(n, A, e, t, i, r) {
|
|
|
191190
191240
|
} while (Math.abs(h - g) > 1e-12 && --u > 0);
|
|
191191
191241
|
return u === 0 ? { azi1: NaN, s12: NaN } : (b = T * (i * i - i * (1 - r) * (i * (1 - r))) / (i * (1 - r) * (i * (1 - r))), U = 1 + b / 16384 * (4096 + b * (-768 + b * (320 - 175 * b))), Y = b / 1024 * (256 + b * (-128 + b * (74 - 47 * b))), R = Y * C * (z + Y / 4 * (E * (-1 + 2 * z * z) - Y / 6 * z * (-3 + 4 * C * C) * (-3 + 4 * z * z))), J = i * (1 - r) * U * (p - R), { azi1: Math.atan2(c * Q, D * P - l * c * w), s12: J });
|
|
191192
191242
|
}
|
|
191193
|
-
function
|
|
191243
|
+
function eee(n, A, e, t, i, r) {
|
|
191194
191244
|
const s = Math.atan((1 - r) * Math.tan(n)), o = Math.sin(s), a = Math.cos(s), l = Math.sin(e), D = Math.cos(e), P = Math.atan2(o, a * D), c = a * l, h = 1 - c * c, g = h * (i * i - i * (1 - r) * (i * (1 - r))) / (i * (1 - r) * (i * (1 - r))), u = 1 + g / 16384 * (4096 + g * (-768 + g * (320 - 175 * g))), Q = g / 1024 * (256 + g * (-128 + g * (74 - 47 * g)));
|
|
191195
191245
|
let w = t / (i * (1 - r) * u), C, E = 100, p, m, T, z;
|
|
191196
191246
|
do
|
|
@@ -191207,42 +191257,42 @@ function $Ae(n, A, e, t, i, r) {
|
|
|
191207
191257
|
), Y = r / 16 * h * (4 + r * (4 - 3 * h)), R = U - (1 - Y) * r * c * (w + Y * m * (p + Y * T * (-1 + 2 * p * p))), J = A + R;
|
|
191208
191258
|
return { lat2: b, lon2: J };
|
|
191209
191259
|
}
|
|
191210
|
-
function
|
|
191260
|
+
function tee() {
|
|
191211
191261
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0), this.f = this.es / (1 + Math.sqrt(1 - this.es));
|
|
191212
191262
|
}
|
|
191213
|
-
function
|
|
191263
|
+
function iee(n) {
|
|
191214
191264
|
var A = n.x, e = n.y, t = Math.sin(n.y), i = Math.cos(n.y), r = Qi(A - this.long0, this.over), s, o, a, l, D, P, c, h, g, u, Q;
|
|
191215
|
-
return this.sphere ? Math.abs(this.sin_p12 - 1) <= oi ? (n.x = this.x0 + this.a * (Vt - e) * Math.sin(r), n.y = this.y0 - this.a * (Vt - e) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (n.x = this.x0 + this.a * (Vt + e) * Math.sin(r), n.y = this.y0 + this.a * (Vt + e) * Math.cos(r), n) : (g = this.sin_p12 * t + this.cos_p12 * i * Math.cos(r), c = Math.acos(g), h = c ? c / Math.sin(c) : 1, n.x = this.x0 + this.a * h * i * Math.sin(r), n.y = this.y0 + this.a * h * (this.cos_p12 * t - this.sin_p12 * i * Math.cos(r)), n) : (s = rM(this.es), o = sM(this.es), a = oM(this.es), l = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D - P) * Math.sin(r), n.y = this.y0 - (D - P) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D + P) * Math.sin(r), n.y = this.y0 + (D + P) * Math.cos(r), n) : Math.abs(A) < oi && Math.abs(e - this.lat0) < oi ? (n.x = n.y = 0, n) : (u =
|
|
191265
|
+
return this.sphere ? Math.abs(this.sin_p12 - 1) <= oi ? (n.x = this.x0 + this.a * (Vt - e) * Math.sin(r), n.y = this.y0 - this.a * (Vt - e) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (n.x = this.x0 + this.a * (Vt + e) * Math.sin(r), n.y = this.y0 + this.a * (Vt + e) * Math.cos(r), n) : (g = this.sin_p12 * t + this.cos_p12 * i * Math.cos(r), c = Math.acos(g), h = c ? c / Math.sin(c) : 1, n.x = this.x0 + this.a * h * i * Math.sin(r), n.y = this.y0 + this.a * h * (this.cos_p12 * t - this.sin_p12 * i * Math.cos(r)), n) : (s = rM(this.es), o = sM(this.es), a = oM(this.es), l = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D - P) * Math.sin(r), n.y = this.y0 - (D - P) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D + P) * Math.sin(r), n.y = this.y0 + (D + P) * Math.cos(r), n) : Math.abs(A) < oi && Math.abs(e - this.lat0) < oi ? (n.x = n.y = 0, n) : (u = Aee(this.lat0, this.long0, e, A, this.a, this.f), Q = u.azi1, n.x = u.s12 * Math.sin(Q), n.y = u.s12 * Math.cos(Q), n));
|
|
191216
191266
|
}
|
|
191217
|
-
function
|
|
191267
|
+
function nee(n) {
|
|
191218
191268
|
n.x -= this.x0, n.y -= this.y0;
|
|
191219
191269
|
var A, e, t, i, r, s, o, a, l, D, P, c, h, g, u, Q;
|
|
191220
|
-
return this.sphere ? (A = Math.sqrt(n.x * n.x + n.y * n.y), A > 2 * Vt * this.a ? void 0 : (e = A / this.a, t = Math.sin(e), i = Math.cos(e), r = this.long0, Math.abs(A) <= oi ? s = this.lat0 : (s = FQ(i * this.sin_p12 + n.y * t * this.cos_p12 / A), o = Math.abs(this.lat0) - Vt, Math.abs(o) <= oi ? this.lat0 >= 0 ? r = Qi(this.long0 + Math.atan2(n.x, -n.y), this.over) : r = Qi(this.long0 - Math.atan2(-n.x, n.y), this.over) : r = Qi(this.long0 + Math.atan2(n.x * t, A * this.cos_p12 * i - n.y * this.sin_p12 * t), this.over)), n.x = r, n.y = s, n)) : (a = rM(this.es), l = sM(this.es), D = oM(this.es), P = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = c - A, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, -1 * n.y), this.over), n.x = r, n.y = s, n) : Math.abs(this.sin_p12 + 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = A - c, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, n.y), this.over), n.x = r, n.y = s, n) : (g = Math.atan2(n.x, n.y), u = Math.sqrt(n.x * n.x + n.y * n.y), Q =
|
|
191221
|
-
}
|
|
191222
|
-
var
|
|
191223
|
-
const
|
|
191224
|
-
init:
|
|
191225
|
-
forward:
|
|
191226
|
-
inverse:
|
|
191227
|
-
names:
|
|
191270
|
+
return this.sphere ? (A = Math.sqrt(n.x * n.x + n.y * n.y), A > 2 * Vt * this.a ? void 0 : (e = A / this.a, t = Math.sin(e), i = Math.cos(e), r = this.long0, Math.abs(A) <= oi ? s = this.lat0 : (s = FQ(i * this.sin_p12 + n.y * t * this.cos_p12 / A), o = Math.abs(this.lat0) - Vt, Math.abs(o) <= oi ? this.lat0 >= 0 ? r = Qi(this.long0 + Math.atan2(n.x, -n.y), this.over) : r = Qi(this.long0 - Math.atan2(-n.x, n.y), this.over) : r = Qi(this.long0 + Math.atan2(n.x * t, A * this.cos_p12 * i - n.y * this.sin_p12 * t), this.over)), n.x = r, n.y = s, n)) : (a = rM(this.es), l = sM(this.es), D = oM(this.es), P = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = c - A, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, -1 * n.y), this.over), n.x = r, n.y = s, n) : Math.abs(this.sin_p12 + 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = A - c, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, n.y), this.over), n.x = r, n.y = s, n) : (g = Math.atan2(n.x, n.y), u = Math.sqrt(n.x * n.x + n.y * n.y), Q = eee(this.lat0, this.long0, g, u, this.a, this.f), n.x = Q.lon2, n.y = Q.lat2, n));
|
|
191271
|
+
}
|
|
191272
|
+
var ree = ["Azimuthal_Equidistant", "aeqd"];
|
|
191273
|
+
const see = {
|
|
191274
|
+
init: tee,
|
|
191275
|
+
forward: iee,
|
|
191276
|
+
inverse: nee,
|
|
191277
|
+
names: ree
|
|
191228
191278
|
};
|
|
191229
|
-
function
|
|
191279
|
+
function oee() {
|
|
191230
191280
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
|
|
191231
191281
|
}
|
|
191232
|
-
function
|
|
191282
|
+
function aee(n) {
|
|
191233
191283
|
var A, e, t, i, r, s, o, a, l = n.x, D = n.y;
|
|
191234
191284
|
return t = Qi(l - this.long0, this.over), A = Math.sin(D), e = Math.cos(D), i = Math.cos(t), s = this.sin_p14 * A + this.cos_p14 * e * i, r = 1, (s > 0 || Math.abs(s) <= oi) && (o = this.a * r * e * Math.sin(t), a = this.y0 + this.a * r * (this.cos_p14 * A - this.sin_p14 * e * i)), n.x = o, n.y = a, n;
|
|
191235
191285
|
}
|
|
191236
|
-
function
|
|
191286
|
+
function lee(n) {
|
|
191237
191287
|
var A, e, t, i, r, s, o;
|
|
191238
191288
|
return n.x -= this.x0, n.y -= this.y0, A = Math.sqrt(n.x * n.x + n.y * n.y), e = FQ(A / this.a), t = Math.sin(e), i = Math.cos(e), s = this.long0, Math.abs(A) <= oi ? (o = this.lat0, n.x = s, n.y = o, n) : (o = FQ(i * this.sin_p14 + n.y * t * this.cos_p14 / A), r = Math.abs(this.lat0) - Vt, Math.abs(r) <= oi ? (this.lat0 >= 0 ? s = Qi(this.long0 + Math.atan2(n.x, -n.y), this.over) : s = Qi(this.long0 - Math.atan2(-n.x, n.y), this.over), n.x = s, n.y = o, n) : (s = Qi(this.long0 + Math.atan2(n.x * t, A * this.cos_p14 * i - n.y * this.sin_p14 * t), this.over), n.x = s, n.y = o, n));
|
|
191239
191289
|
}
|
|
191240
|
-
var
|
|
191241
|
-
const
|
|
191242
|
-
init:
|
|
191243
|
-
forward:
|
|
191244
|
-
inverse:
|
|
191245
|
-
names:
|
|
191290
|
+
var Dee = ["ortho"];
|
|
191291
|
+
const Pee = {
|
|
191292
|
+
init: oee,
|
|
191293
|
+
forward: aee,
|
|
191294
|
+
inverse: lee,
|
|
191295
|
+
names: Dee
|
|
191246
191296
|
};
|
|
191247
191297
|
var cs = {
|
|
191248
191298
|
FRONT: 1,
|
|
@@ -191257,10 +191307,10 @@ var cs = {
|
|
|
191257
191307
|
AREA_2: 3,
|
|
191258
191308
|
AREA_3: 4
|
|
191259
191309
|
};
|
|
191260
|
-
function
|
|
191310
|
+
function cee() {
|
|
191261
191311
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= Vt - pr / 2 ? this.face = cs.TOP : this.lat0 <= -(Vt - pr / 2) ? this.face = cs.BOTTOM : Math.abs(this.long0) <= pr ? this.face = cs.FRONT : Math.abs(this.long0) <= Vt + pr ? this.face = this.long0 > 0 ? cs.RIGHT : cs.LEFT : this.face = cs.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
|
|
191262
191312
|
}
|
|
191263
|
-
function
|
|
191313
|
+
function hee(n) {
|
|
191264
191314
|
var A = { x: 0, y: 0 }, e, t, i, r, s, o, a = { value: 0 };
|
|
191265
191315
|
if (n.x -= this.long0, this.es !== 0 ? e = Math.atan(this.one_minus_f_squared * Math.tan(n.y)) : e = n.y, t = n.x, this.face === cs.TOP)
|
|
191266
191316
|
r = Vt - e, t >= pr && t <= Vt + pr ? (a.value = mr.AREA_0, i = t - Vt) : t > Vt + pr || t <= -(Vt + pr) ? (a.value = mr.AREA_1, i = t > 0 ? t - Zs : t + Zs) : t > -(Vt + pr) && t <= -pr ? (a.value = mr.AREA_2, i = t + Vt) : (a.value = mr.AREA_3, i = t);
|
|
@@ -191272,7 +191322,7 @@ function Pee(n) {
|
|
|
191272
191322
|
}
|
|
191273
191323
|
return o = Math.atan(12 / Zs * (i + Math.acos(Math.sin(i) * Math.cos(pr)) - Vt)), s = Math.sqrt((1 - Math.cos(r)) / (Math.cos(o) * Math.cos(o)) / (1 - Math.cos(Math.atan(1 / Math.cos(i))))), a.value === mr.AREA_1 ? o += Vt : a.value === mr.AREA_2 ? o += Zs : a.value === mr.AREA_3 && (o += 1.5 * Zs), A.x = s * Math.cos(o), A.y = s * Math.sin(o), A.x = A.x * this.a + this.x0, A.y = A.y * this.a + this.y0, n.x = A.x, n.y = A.y, n;
|
|
191274
191324
|
}
|
|
191275
|
-
function
|
|
191325
|
+
function gee(n) {
|
|
191276
191326
|
var A = { lam: 0, phi: 0 }, e, t, i, r, s, o, a, l, D, P = { value: 0 };
|
|
191277
191327
|
if (n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a, t = Math.atan(Math.sqrt(n.x * n.x + n.y * n.y)), e = Math.atan2(n.y, n.x), n.x >= 0 && n.x >= Math.abs(n.y) ? P.value = mr.AREA_0 : n.y >= 0 && n.y >= Math.abs(n.x) ? (P.value = mr.AREA_1, e -= Vt) : n.x < 0 && -n.x >= Math.abs(n.y) ? (P.value = mr.AREA_2, e = e < 0 ? e + Zs : e - Zs) : (P.value = mr.AREA_3, e += Vt), D = Zs / 12 * Math.tan(e), s = Math.sin(D) / (Math.cos(D) - 1 / Math.sqrt(2)), o = Math.atan(s), i = Math.cos(e), r = Math.tan(t), a = 1 - i * i * r * r * (1 - Math.cos(Math.atan(1 / Math.cos(o)))), a < -1 ? a = -1 : a > 1 && (a = 1), this.face === cs.TOP)
|
|
191278
191328
|
l = Math.acos(a), A.phi = Vt - l, P.value === mr.AREA_0 ? A.lam = o + Vt : P.value === mr.AREA_1 ? A.lam = o < 0 ? o + Zs : o - Zs : P.value === mr.AREA_2 ? A.lam = o - Vt : A.lam = o;
|
|
@@ -191296,12 +191346,12 @@ function vE(n, A) {
|
|
|
191296
191346
|
var e = n + A;
|
|
191297
191347
|
return e < -Zs ? e += uI : e > +Zs && (e -= uI), e;
|
|
191298
191348
|
}
|
|
191299
|
-
var
|
|
191300
|
-
const
|
|
191301
|
-
init:
|
|
191302
|
-
forward:
|
|
191303
|
-
inverse:
|
|
191304
|
-
names:
|
|
191349
|
+
var uee = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
|
|
191350
|
+
const Qee = {
|
|
191351
|
+
init: cee,
|
|
191352
|
+
forward: hee,
|
|
191353
|
+
inverse: gee,
|
|
191354
|
+
names: uee
|
|
191305
191355
|
};
|
|
191306
191356
|
var CU = [
|
|
191307
191357
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
@@ -191343,12 +191393,12 @@ var CU = [
|
|
|
191343
191393
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
191344
191394
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
191345
191395
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
191346
|
-
], aaA = 0.8487, laA = 1.3523, DaA = kl / 5,
|
|
191396
|
+
], aaA = 0.8487, laA = 1.3523, DaA = kl / 5, wee = 1 / DaA, HC = 18, KO = function(n, A) {
|
|
191347
191397
|
return n[0] + A * (n[1] + A * (n[2] + A * n[3]));
|
|
191348
|
-
},
|
|
191398
|
+
}, fee = function(n, A) {
|
|
191349
191399
|
return n[1] + A * (2 * n[2] + A * 3 * n[3]);
|
|
191350
191400
|
};
|
|
191351
|
-
function
|
|
191401
|
+
function dee(n, A, e, t) {
|
|
191352
191402
|
for (var i = A; t; --t) {
|
|
191353
191403
|
var r = n(i);
|
|
191354
191404
|
if (i -= r, Math.abs(r) < e)
|
|
@@ -191356,19 +191406,19 @@ function wee(n, A, e, t) {
|
|
|
191356
191406
|
}
|
|
191357
191407
|
return i;
|
|
191358
191408
|
}
|
|
191359
|
-
function
|
|
191409
|
+
function vee() {
|
|
191360
191410
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
191361
191411
|
}
|
|
191362
|
-
function
|
|
191412
|
+
function Cee(n) {
|
|
191363
191413
|
var A = Qi(n.x - this.long0, this.over), e = Math.abs(n.y), t = Math.floor(e * DaA);
|
|
191364
|
-
t < 0 ? t = 0 : t >= HC && (t = HC - 1), e = kl * (e -
|
|
191414
|
+
t < 0 ? t = 0 : t >= HC && (t = HC - 1), e = kl * (e - wee * t);
|
|
191365
191415
|
var i = {
|
|
191366
191416
|
x: KO(CU[t], e) * A,
|
|
191367
191417
|
y: KO(Wp[t], e)
|
|
191368
191418
|
};
|
|
191369
191419
|
return n.y < 0 && (i.y = -i.y), i.x = i.x * this.a * aaA + this.x0, i.y = i.y * this.a * laA + this.y0, i;
|
|
191370
191420
|
}
|
|
191371
|
-
function
|
|
191421
|
+
function Eee(n) {
|
|
191372
191422
|
var A = {
|
|
191373
191423
|
x: (n.x - this.x0) / (this.a * aaA),
|
|
191374
191424
|
y: Math.abs(n.y - this.y0) / (this.a * laA)
|
|
@@ -191385,36 +191435,36 @@ function vee(n) {
|
|
|
191385
191435
|
else
|
|
191386
191436
|
break;
|
|
191387
191437
|
var t = Wp[e], i = 5 * (A.y - t[0]) / (Wp[e + 1][0] - t[0]);
|
|
191388
|
-
i =
|
|
191389
|
-
return (KO(t, r) - A.y) /
|
|
191438
|
+
i = dee(function(r) {
|
|
191439
|
+
return (KO(t, r) - A.y) / fee(t, r);
|
|
191390
191440
|
}, i, oi, 100), A.x /= KO(CU[e], i), A.y = (5 * e + i) * ys, n.y < 0 && (A.y = -A.y);
|
|
191391
191441
|
}
|
|
191392
191442
|
return A.x = Qi(A.x + this.long0, this.over), A;
|
|
191393
191443
|
}
|
|
191394
|
-
var
|
|
191395
|
-
const
|
|
191396
|
-
init:
|
|
191397
|
-
forward:
|
|
191398
|
-
inverse:
|
|
191399
|
-
names:
|
|
191444
|
+
var Bee = ["Robinson", "robin"];
|
|
191445
|
+
const pee = {
|
|
191446
|
+
init: vee,
|
|
191447
|
+
forward: Cee,
|
|
191448
|
+
inverse: Eee,
|
|
191449
|
+
names: Bee
|
|
191400
191450
|
};
|
|
191401
|
-
function
|
|
191451
|
+
function mee() {
|
|
191402
191452
|
this.name = "geocent";
|
|
191403
191453
|
}
|
|
191404
|
-
function
|
|
191454
|
+
function Iee(n) {
|
|
191405
191455
|
var A = XoA(n, this.es, this.a);
|
|
191406
191456
|
return A;
|
|
191407
191457
|
}
|
|
191408
|
-
function
|
|
191458
|
+
function Mee(n) {
|
|
191409
191459
|
var A = _oA(n, this.es, this.a, this.b);
|
|
191410
191460
|
return A;
|
|
191411
191461
|
}
|
|
191412
|
-
var
|
|
191413
|
-
const
|
|
191414
|
-
init:
|
|
191415
|
-
forward:
|
|
191416
|
-
inverse:
|
|
191417
|
-
names:
|
|
191462
|
+
var Tee = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
191463
|
+
const yee = {
|
|
191464
|
+
init: mee,
|
|
191465
|
+
forward: Iee,
|
|
191466
|
+
inverse: Mee,
|
|
191467
|
+
names: Tee
|
|
191418
191468
|
};
|
|
191419
191469
|
var Ia = {
|
|
191420
191470
|
N_POLE: 0,
|
|
@@ -191433,7 +191483,7 @@ var Ia = {
|
|
|
191433
191483
|
lat0: { def: 0, num: !0 }
|
|
191434
191484
|
// default is Equator, conversion to rad is automatic
|
|
191435
191485
|
};
|
|
191436
|
-
function
|
|
191486
|
+
function Oee() {
|
|
191437
191487
|
if (Object.keys(Pp).forEach((function(e) {
|
|
191438
191488
|
if (typeof this[e] > "u")
|
|
191439
191489
|
this[e] = Pp[e].def;
|
|
@@ -191449,7 +191499,7 @@ function Tee() {
|
|
|
191449
191499
|
var n = this.tilt, A = this.azi;
|
|
191450
191500
|
this.cg = Math.cos(A), this.sg = Math.sin(A), this.cw = Math.cos(n), this.sw = Math.sin(n);
|
|
191451
191501
|
}
|
|
191452
|
-
function
|
|
191502
|
+
function kee(n) {
|
|
191453
191503
|
n.x -= this.long0;
|
|
191454
191504
|
var A = Math.sin(n.y), e = Math.cos(n.y), t = Math.cos(n.x), i, r;
|
|
191455
191505
|
switch (this.mode) {
|
|
@@ -191483,7 +191533,7 @@ function yee(n) {
|
|
|
191483
191533
|
var s, o;
|
|
191484
191534
|
return s = r * this.cg + i * this.sg, o = 1 / (s * this.sw * this.h1 + this.cw), i = (i * this.cg - r * this.sg) * this.cw * o, r = s * o, n.x = i * this.a, n.y = r * this.a, n;
|
|
191485
191535
|
}
|
|
191486
|
-
function
|
|
191536
|
+
function bee(n) {
|
|
191487
191537
|
n.x /= this.a, n.y /= this.a;
|
|
191488
191538
|
var A = { x: n.x, y: n.y }, e, t, i;
|
|
191489
191539
|
i = 1 / (this.pn1 - n.y * this.sw), e = this.pn1 * n.x * i, t = this.pn1 * n.y * this.cw * i, n.x = e * this.cg + t * this.sg, n.y = t * this.cg - e * this.sg;
|
|
@@ -191510,14 +191560,14 @@ function Oee(n) {
|
|
|
191510
191560
|
}
|
|
191511
191561
|
return n.x = A.x + this.long0, n.y = A.y, n;
|
|
191512
191562
|
}
|
|
191513
|
-
var
|
|
191514
|
-
const
|
|
191515
|
-
init:
|
|
191516
|
-
forward:
|
|
191517
|
-
inverse:
|
|
191518
|
-
names:
|
|
191563
|
+
var zee = ["Tilted_Perspective", "tpers"];
|
|
191564
|
+
const Nee = {
|
|
191565
|
+
init: Oee,
|
|
191566
|
+
forward: kee,
|
|
191567
|
+
inverse: bee,
|
|
191568
|
+
names: zee
|
|
191519
191569
|
};
|
|
191520
|
-
function
|
|
191570
|
+
function xee() {
|
|
191521
191571
|
if (this.flip_axis = this.sweep === "x" ? 1 : 0, this.h = Number(this.h), this.radius_g_1 = this.h / this.a, this.radius_g_1 <= 0 || this.radius_g_1 > 1e10)
|
|
191522
191572
|
throw new Error();
|
|
191523
191573
|
if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
|
|
@@ -191527,7 +191577,7 @@ function zee() {
|
|
|
191527
191577
|
this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
|
|
191528
191578
|
this.title || (this.title = "Geostationary Satellite View");
|
|
191529
191579
|
}
|
|
191530
|
-
function
|
|
191580
|
+
function Lee(n) {
|
|
191531
191581
|
var A = n.x, e = n.y, t, i, r, s;
|
|
191532
191582
|
if (A = A - this.long0, this.shape === "ellipse") {
|
|
191533
191583
|
e = Math.atan(this.radius_p2 * Math.tan(e));
|
|
@@ -191538,7 +191588,7 @@ function Nee(n) {
|
|
|
191538
191588
|
} else this.shape === "sphere" && (t = Math.cos(e), i = Math.cos(A) * t, r = Math.sin(A) * t, s = Math.sin(e), t = this.radius_g - i, this.flip_axis ? (n.x = this.radius_g_1 * Math.atan(r / Ml(s, t)), n.y = this.radius_g_1 * Math.atan(s / t)) : (n.x = this.radius_g_1 * Math.atan(r / t), n.y = this.radius_g_1 * Math.atan(s / Ml(r, t))));
|
|
191539
191589
|
return n.x = n.x * this.a, n.y = n.y * this.a, n;
|
|
191540
191590
|
}
|
|
191541
|
-
function
|
|
191591
|
+
function Uee(n) {
|
|
191542
191592
|
var A = -1, e = 0, t = 0, i, r, s, o;
|
|
191543
191593
|
if (n.x = n.x / this.a, n.y = n.y / this.a, this.shape === "ellipse") {
|
|
191544
191594
|
this.flip_axis ? (t = Math.tan(n.y / this.radius_g_1), e = Math.tan(n.x / this.radius_g_1) * Ml(1, t)) : (e = Math.tan(n.x / this.radius_g_1), t = Math.tan(n.y / this.radius_g_1) * Ml(1, e));
|
|
@@ -191553,37 +191603,37 @@ function xee(n) {
|
|
|
191553
191603
|
}
|
|
191554
191604
|
return n.x = n.x + this.long0, n;
|
|
191555
191605
|
}
|
|
191556
|
-
var
|
|
191557
|
-
const
|
|
191558
|
-
init:
|
|
191559
|
-
forward:
|
|
191560
|
-
inverse:
|
|
191561
|
-
names:
|
|
191606
|
+
var jee = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
|
|
191607
|
+
const See = {
|
|
191608
|
+
init: xee,
|
|
191609
|
+
forward: Lee,
|
|
191610
|
+
inverse: Uee,
|
|
191611
|
+
names: jee
|
|
191562
191612
|
};
|
|
191563
191613
|
var hm = 1.340264, gm = -0.081106, um = 893e-6, Qm = 3796e-6, VO = Math.sqrt(3) / 2;
|
|
191564
|
-
function
|
|
191614
|
+
function Fee() {
|
|
191565
191615
|
this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0;
|
|
191566
191616
|
}
|
|
191567
|
-
function
|
|
191617
|
+
function Ree(n) {
|
|
191568
191618
|
var A = Qi(n.x - this.long0, this.over), e = n.y, t = Math.asin(VO * Math.sin(e)), i = t * t, r = i * i * i;
|
|
191569
191619
|
return n.x = A * Math.cos(t) / (VO * (hm + 3 * gm * i + r * (7 * um + 9 * Qm * i))), n.y = t * (hm + gm * i + r * (um + Qm * i)), n.x = this.a * n.x + this.x0, n.y = this.a * n.y + this.y0, n;
|
|
191570
191620
|
}
|
|
191571
|
-
function
|
|
191621
|
+
function Yee(n) {
|
|
191572
191622
|
n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a;
|
|
191573
191623
|
var A = 1e-9, e = 12, t = n.y, i, r, s, o, a, l;
|
|
191574
191624
|
for (l = 0; l < e && (i = t * t, r = i * i * i, s = t * (hm + gm * i + r * (um + Qm * i)) - n.y, o = hm + 3 * gm * i + r * (7 * um + 9 * Qm * i), t -= a = s / o, !(Math.abs(a) < A)); ++l)
|
|
191575
191625
|
;
|
|
191576
191626
|
return i = t * t, r = i * i * i, n.x = VO * n.x * (hm + 3 * gm * i + r * (7 * um + 9 * Qm * i)) / Math.cos(t), n.y = Math.asin(Math.sin(t) / VO), n.x = Qi(n.x + this.long0, this.over), n;
|
|
191577
191627
|
}
|
|
191578
|
-
var
|
|
191579
|
-
const
|
|
191580
|
-
init:
|
|
191581
|
-
forward:
|
|
191582
|
-
inverse:
|
|
191583
|
-
names:
|
|
191628
|
+
var Hee = ["eqearth", "Equal Earth", "Equal_Earth"];
|
|
191629
|
+
const Jee = {
|
|
191630
|
+
init: Fee,
|
|
191631
|
+
forward: Ree,
|
|
191632
|
+
inverse: Yee,
|
|
191633
|
+
names: Hee
|
|
191584
191634
|
};
|
|
191585
191635
|
var fI = 1e-10;
|
|
191586
|
-
function
|
|
191636
|
+
function Gee() {
|
|
191587
191637
|
var n;
|
|
191588
191638
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < fI)
|
|
191589
191639
|
throw new Error();
|
|
@@ -191592,13 +191642,13 @@ function Hee() {
|
|
|
191592
191642
|
this.am1 = Math.sin(this.phi1),
|
|
191593
191643
|
n = Math.cos(this.phi1),
|
|
191594
191644
|
this.en
|
|
191595
|
-
), this.am1 = n / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse =
|
|
191645
|
+
), this.am1 = n / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = Kee, this.forward = Zee) : (Math.abs(this.phi1) + fI >= Vt ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = qee, this.forward = Vee);
|
|
191596
191646
|
}
|
|
191597
|
-
function
|
|
191647
|
+
function Zee(n) {
|
|
191598
191648
|
var A = Qi(n.x - (this.long0 || 0), this.over), e = n.y, t, i, r;
|
|
191599
191649
|
return t = this.am1 + this.m1 - Q0(e, i = Math.sin(e), r = Math.cos(e), this.en), i = r * A / (t * Math.sqrt(1 - this.es * i * i)), n.x = t * Math.sin(i), n.y = this.am1 - t * Math.cos(i), n.x = this.a * n.x + (this.x0 || 0), n.y = this.a * n.y + (this.y0 || 0), n;
|
|
191600
191650
|
}
|
|
191601
|
-
function
|
|
191651
|
+
function Kee(n) {
|
|
191602
191652
|
n.x = (n.x - (this.x0 || 0)) / this.a, n.y = (n.y - (this.y0 || 0)) / this.a;
|
|
191603
191653
|
var A, e, t, i;
|
|
191604
191654
|
if (e = Ml(n.x, n.y = this.am1 - n.y), i = _6(this.am1 + this.m1 - e, this.es, this.en), (A = Math.abs(i)) < Vt)
|
|
@@ -191609,29 +191659,29 @@ function Gee(n) {
|
|
|
191609
191659
|
throw new Error();
|
|
191610
191660
|
return n.x = Qi(t + (this.long0 || 0), this.over), n.y = _Q(i), n;
|
|
191611
191661
|
}
|
|
191612
|
-
function
|
|
191662
|
+
function Vee(n) {
|
|
191613
191663
|
var A = Qi(n.x - (this.long0 || 0), this.over), e = n.y, t, i;
|
|
191614
191664
|
return i = this.cphi1 + this.phi1 - e, Math.abs(i) > fI ? (n.x = i * Math.sin(t = A * Math.cos(e) / i), n.y = this.cphi1 - i * Math.cos(t)) : n.x = n.y = 0, n.x = this.a * n.x + (this.x0 || 0), n.y = this.a * n.y + (this.y0 || 0), n;
|
|
191615
191665
|
}
|
|
191616
|
-
function
|
|
191666
|
+
function qee(n) {
|
|
191617
191667
|
n.x = (n.x - (this.x0 || 0)) / this.a, n.y = (n.y - (this.y0 || 0)) / this.a;
|
|
191618
191668
|
var A, e, t = Ml(n.x, n.y = this.cphi1 - n.y);
|
|
191619
191669
|
if (e = this.cphi1 + this.phi1 - t, Math.abs(e) > Vt)
|
|
191620
191670
|
throw new Error();
|
|
191621
191671
|
return Math.abs(Math.abs(e) - Vt) <= fI ? A = 0 : A = t * Math.atan2(n.x, n.y) / Math.cos(e), n.x = Qi(A + (this.long0 || 0), this.over), n.y = _Q(e), n;
|
|
191622
191672
|
}
|
|
191623
|
-
var
|
|
191624
|
-
const
|
|
191625
|
-
init:
|
|
191626
|
-
names:
|
|
191673
|
+
var Wee = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
191674
|
+
const Xee = {
|
|
191675
|
+
init: Gee,
|
|
191676
|
+
names: Wee
|
|
191627
191677
|
}, yW = {
|
|
191628
191678
|
OBLIQUE: {
|
|
191629
|
-
forward:
|
|
191630
|
-
inverse:
|
|
191679
|
+
forward: tte,
|
|
191680
|
+
inverse: nte
|
|
191631
191681
|
},
|
|
191632
191682
|
TRANSVERSE: {
|
|
191633
|
-
forward:
|
|
191634
|
-
inverse:
|
|
191683
|
+
forward: ite,
|
|
191684
|
+
inverse: rte
|
|
191635
191685
|
}
|
|
191636
191686
|
}, qO = {
|
|
191637
191687
|
ROTATE: {
|
|
@@ -191650,7 +191700,7 @@ const qee = {
|
|
|
191650
191700
|
o_lat_2: "oLat2"
|
|
191651
191701
|
}
|
|
191652
191702
|
};
|
|
191653
|
-
function
|
|
191703
|
+
function _ee() {
|
|
191654
191704
|
if (this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.title = this.title || "General Oblique Transformation", this.isIdentity = KoA.includes(this.o_proj), !this.o_proj)
|
|
191655
191705
|
throw new Error("Missing parameter: o_proj");
|
|
191656
191706
|
if (this.o_proj === "ob_tran")
|
|
@@ -191685,16 +191735,16 @@ function Wee() {
|
|
|
191685
191735
|
}
|
|
191686
191736
|
if (!e)
|
|
191687
191737
|
throw new Error("No valid parameters provided for ob_tran projection.");
|
|
191688
|
-
const { lamp: r, phip: s } =
|
|
191738
|
+
const { lamp: r, phip: s } = ete(this, e);
|
|
191689
191739
|
this.lamp = r, Math.abs(s) > oi ? (this.cphip = Math.cos(s), this.sphip = Math.sin(s), this.projectionType = yW.OBLIQUE) : this.projectionType = yW.TRANSVERSE;
|
|
191690
191740
|
}
|
|
191691
|
-
function
|
|
191741
|
+
function $ee(n) {
|
|
191692
191742
|
return this.projectionType.forward(this, n);
|
|
191693
191743
|
}
|
|
191694
|
-
function
|
|
191744
|
+
function Ate(n) {
|
|
191695
191745
|
return this.projectionType.inverse(this, n);
|
|
191696
191746
|
}
|
|
191697
|
-
function
|
|
191747
|
+
function ete(n, A) {
|
|
191698
191748
|
let e, t;
|
|
191699
191749
|
if (A === qO.ROTATE) {
|
|
191700
191750
|
let i = n.oLongC, r = n.oLatC, s = n.oAlpha;
|
|
@@ -191720,7 +191770,7 @@ function $ee(n, A) {
|
|
|
191720
191770
|
}
|
|
191721
191771
|
return { lamp: t, phip: e };
|
|
191722
191772
|
}
|
|
191723
|
-
function
|
|
191773
|
+
function tte(n, A) {
|
|
191724
191774
|
let { x: e, y: t } = A;
|
|
191725
191775
|
e += n.long0;
|
|
191726
191776
|
const i = Math.cos(e), r = Math.sin(t), s = Math.cos(t);
|
|
@@ -191735,7 +191785,7 @@ function Ate(n, A) {
|
|
|
191735
191785
|
const o = n.obliqueProjection.forward(A);
|
|
191736
191786
|
return n.isIdentity && (o.x *= kl, o.y *= kl), o;
|
|
191737
191787
|
}
|
|
191738
|
-
function
|
|
191788
|
+
function ite(n, A) {
|
|
191739
191789
|
let { x: e, y: t } = A;
|
|
191740
191790
|
e += n.long0;
|
|
191741
191791
|
const i = Math.cos(t), r = Math.cos(e);
|
|
@@ -191748,7 +191798,7 @@ function ete(n, A) {
|
|
|
191748
191798
|
const s = n.obliqueProjection.forward(A);
|
|
191749
191799
|
return n.isIdentity && (s.x *= kl, s.y *= kl), s;
|
|
191750
191800
|
}
|
|
191751
|
-
function
|
|
191801
|
+
function nte(n, A) {
|
|
191752
191802
|
n.isIdentity && (A.x *= ys, A.y *= ys);
|
|
191753
191803
|
const e = n.obliqueProjection.inverse(A);
|
|
191754
191804
|
let { x: t, y: i } = e;
|
|
@@ -191764,7 +191814,7 @@ function tte(n, A) {
|
|
|
191764
191814
|
}
|
|
191765
191815
|
return A.x = Qi(A.x + n.long0), A;
|
|
191766
191816
|
}
|
|
191767
|
-
function
|
|
191817
|
+
function rte(n, A) {
|
|
191768
191818
|
n.isIdentity && (A.x *= ys, A.y *= ys);
|
|
191769
191819
|
const e = n.obliqueProjection.inverse(A);
|
|
191770
191820
|
let { x: t, y: i } = e;
|
|
@@ -191779,29 +191829,29 @@ function ite(n, A) {
|
|
|
191779
191829
|
}
|
|
191780
191830
|
return A.x = Qi(A.x + n.long0), A;
|
|
191781
191831
|
}
|
|
191782
|
-
var
|
|
191783
|
-
const
|
|
191784
|
-
init:
|
|
191785
|
-
forward:
|
|
191786
|
-
inverse:
|
|
191787
|
-
names:
|
|
191832
|
+
var ste = ["General Oblique Transformation", "General_Oblique_Transformation", "ob_tran"];
|
|
191833
|
+
const ote = {
|
|
191834
|
+
init: _ee,
|
|
191835
|
+
forward: $ee,
|
|
191836
|
+
inverse: Ate,
|
|
191837
|
+
names: ste
|
|
191788
191838
|
};
|
|
191789
|
-
function
|
|
191790
|
-
n.Proj.projections.add(t1), n.Proj.projections.add(i1), n.Proj.projections.add(
|
|
191839
|
+
function ate(n) {
|
|
191840
|
+
n.Proj.projections.add(t1), n.Proj.projections.add(i1), n.Proj.projections.add(W_A), n.Proj.projections.add(r$A), n.Proj.projections.add(D$A), n.Proj.projections.add(u$A), n.Proj.projections.add(C$A), n.Proj.projections.add(I$A), n.Proj.projections.add(k$A), n.Proj.projections.add(L$A), n.Proj.projections.add(q$A), n.Proj.projections.add(eAe), n.Proj.projections.add(sAe), n.Proj.projections.add(cAe), n.Proj.projections.add(wAe), n.Proj.projections.add(EAe), n.Proj.projections.add(MAe), n.Proj.projections.add(bAe), n.Proj.projections.add(jAe), n.Proj.projections.add(HAe), n.Proj.projections.add(VAe), n.Proj.projections.add($Ae), n.Proj.projections.add(see), n.Proj.projections.add(Pee), n.Proj.projections.add(Qee), n.Proj.projections.add(pee), n.Proj.projections.add(yee), n.Proj.projections.add(Nee), n.Proj.projections.add(See), n.Proj.projections.add(Jee), n.Proj.projections.add(Xee), n.Proj.projections.add(ote);
|
|
191791
191841
|
}
|
|
191792
|
-
const gb = Object.assign(
|
|
191842
|
+
const gb = Object.assign(h_A, {
|
|
191793
191843
|
defaultDatum: "WGS84",
|
|
191794
191844
|
Proj: tP,
|
|
191795
191845
|
WGS84: new tP("WGS84"),
|
|
191796
191846
|
Point: qE,
|
|
191797
191847
|
toPoint: $oA,
|
|
191798
191848
|
defs: ta,
|
|
191799
|
-
nadgrid:
|
|
191849
|
+
nadgrid: qXA,
|
|
191800
191850
|
transform: GO,
|
|
191801
|
-
mgrs:
|
|
191851
|
+
mgrs: g_A,
|
|
191802
191852
|
version: "__VERSION__"
|
|
191803
191853
|
});
|
|
191804
|
-
|
|
191854
|
+
ate(gb);
|
|
191805
191855
|
var PaA, OW = () => new DecompressionStream("deflate-raw");
|
|
191806
191856
|
try {
|
|
191807
191857
|
OW(), PaA = async (n) => {
|
|
@@ -191811,10 +191861,10 @@ try {
|
|
|
191811
191861
|
};
|
|
191812
191862
|
} catch {
|
|
191813
191863
|
}
|
|
191814
|
-
var
|
|
191864
|
+
var lte = new TextDecoder(), YL = (n) => {
|
|
191815
191865
|
throw new Error("but-unzip~" + n);
|
|
191816
|
-
}, kW = (n) =>
|
|
191817
|
-
function*
|
|
191866
|
+
}, kW = (n) => lte.decode(n);
|
|
191867
|
+
function* Dte(n, A = PaA) {
|
|
191818
191868
|
let e = n.length - 20, t = Math.max(e - 65516, 2);
|
|
191819
191869
|
for (; (e = n.lastIndexOf(80, e - 1)) !== -1 && !(n[e + 1] === 75 && n[e + 2] === 5 && n[e + 3] === 6) && e > t; ) ;
|
|
191820
191870
|
e === -1 && YL(2);
|
|
@@ -191824,23 +191874,23 @@ function* ate(n, A = PaA) {
|
|
|
191824
191874
|
e = h, w = i(30 + s(26) + s(28), c), yield { filename: g, comment: u, read: () => l & 8 ? A(w) : l ? YL(1) : w }, e = Q;
|
|
191825
191875
|
}
|
|
191826
191876
|
}
|
|
191827
|
-
const
|
|
191877
|
+
const Pte = /.+\.(shp|dbf|json|prj|cpg)$/i, cte = async (n) => {
|
|
191828
191878
|
const A = {}, e = [];
|
|
191829
|
-
for (const r of
|
|
191830
|
-
|
|
191879
|
+
for (const r of Dte(n))
|
|
191880
|
+
Pte.test(r.filename) && e.push(Promise.resolve(r.read()).then((s) => A[r.filename] = s));
|
|
191831
191881
|
await Promise.all(e);
|
|
191832
191882
|
const t = {}, i = new TextDecoder();
|
|
191833
191883
|
for (const [r, s] of Object.entries(A))
|
|
191834
191884
|
r.slice(-3).toLowerCase() === "shp" || r.slice(-3).toLowerCase() === "dbf" ? t[r] = new DataView(s.buffer, s.byteOffset, s.byteLength) : t[r] = i.decode(s);
|
|
191835
191885
|
return t;
|
|
191836
|
-
},
|
|
191886
|
+
}, hte = globalThis.URL, gte = (n, A) => {
|
|
191837
191887
|
if (!A)
|
|
191838
191888
|
return n;
|
|
191839
|
-
const e = new
|
|
191889
|
+
const e = new hte(n);
|
|
191840
191890
|
return e.pathname = `${e.pathname}.${A}`, e.href;
|
|
191841
191891
|
};
|
|
191842
191892
|
async function dI(n, A) {
|
|
191843
|
-
const e =
|
|
191893
|
+
const e = gte(n, A), t = A === "prj" || A === "cpg";
|
|
191844
191894
|
try {
|
|
191845
191895
|
const i = await fetch(e);
|
|
191846
191896
|
if (i.status > 399)
|
|
@@ -191855,7 +191905,7 @@ async function dI(n, A) {
|
|
|
191855
191905
|
throw i;
|
|
191856
191906
|
}
|
|
191857
191907
|
}
|
|
191858
|
-
function
|
|
191908
|
+
function ute(n) {
|
|
191859
191909
|
let A = 0, e = 1;
|
|
191860
191910
|
const t = n.length;
|
|
191861
191911
|
let i, r;
|
|
@@ -191875,7 +191925,7 @@ function bW(n, A) {
|
|
|
191875
191925
|
function caA(n, A = !1) {
|
|
191876
191926
|
const e = [], t = [];
|
|
191877
191927
|
for (const s of n) {
|
|
191878
|
-
const o =
|
|
191928
|
+
const o = ute(s);
|
|
191879
191929
|
o.clockWise !== A ? e.push(o) : t.push(o);
|
|
191880
191930
|
}
|
|
191881
191931
|
const i = [];
|
|
@@ -192009,7 +192059,7 @@ const zW = {
|
|
|
192009
192059
|
15: "parseZPolygon",
|
|
192010
192060
|
18: "parseZMultiPoint"
|
|
192011
192061
|
};
|
|
192012
|
-
function
|
|
192062
|
+
function Qte(n) {
|
|
192013
192063
|
return n ? function(A, e) {
|
|
192014
192064
|
const t = [A.getFloat64(e, !0), A.getFloat64(e + 8, !0)];
|
|
192015
192065
|
return n.inverse(t);
|
|
@@ -192026,7 +192076,7 @@ Xs.prototype.shpFuncs = function(n) {
|
|
|
192026
192076
|
let A = this.headers.shpCode;
|
|
192027
192077
|
if (A > 20 && (A -= 20), !(A in zW))
|
|
192028
192078
|
throw new Error(`I don't know shp type "${A}"`);
|
|
192029
|
-
this.parseFunc = this[zW[A]], this.parseCoord =
|
|
192079
|
+
this.parseFunc = this[zW[A]], this.parseCoord = Qte(n);
|
|
192030
192080
|
};
|
|
192031
192081
|
Xs.prototype.getShpCode = function() {
|
|
192032
192082
|
return this.parseHeader().shpCode;
|
|
@@ -192072,14 +192122,14 @@ Xs.prototype.getRow = function(n) {
|
|
|
192072
192122
|
function nF(n, A) {
|
|
192073
192123
|
return new Xs(n, A).rows;
|
|
192074
192124
|
}
|
|
192075
|
-
var
|
|
192125
|
+
var wte = /^(?:ANSI\s)?(\d+)$/m;
|
|
192076
192126
|
function haA(n, A) {
|
|
192077
192127
|
if (!n)
|
|
192078
192128
|
return t;
|
|
192079
192129
|
try {
|
|
192080
192130
|
new TextDecoder(n.trim());
|
|
192081
192131
|
} catch {
|
|
192082
|
-
var e =
|
|
192132
|
+
var e = wte.exec(n);
|
|
192083
192133
|
return e && !A ? haA("windows-" + e[1], !0) : (n = void 0, t);
|
|
192084
192134
|
}
|
|
192085
192135
|
return t;
|
|
@@ -192090,11 +192140,11 @@ function haA(n, A) {
|
|
|
192090
192140
|
return s.replace(/\0/g, "").trim();
|
|
192091
192141
|
}
|
|
192092
192142
|
}
|
|
192093
|
-
function
|
|
192143
|
+
function fte(n) {
|
|
192094
192144
|
var A = {};
|
|
192095
192145
|
return A.lastUpdated = new Date(n.getUint8(1) + 1900, n.getUint8(2), n.getUint8(3)), A.records = n.getUint32(4, !0), A.headerLen = n.getUint16(8, !0), A.recLen = n.getUint16(10, !0), A;
|
|
192096
192146
|
}
|
|
192097
|
-
function
|
|
192147
|
+
function dte(n, A, e) {
|
|
192098
192148
|
for (var t = [], i = 32; i < A && (t.push({
|
|
192099
192149
|
name: e(new Uint8Array(n.buffer.slice(n.byteOffset + i, n.byteOffset + i + 11))),
|
|
192100
192150
|
dataType: String.fromCharCode(n.getUint8(i + 11)),
|
|
@@ -192104,7 +192154,7 @@ function wte(n, A, e) {
|
|
|
192104
192154
|
i += 32;
|
|
192105
192155
|
return t;
|
|
192106
192156
|
}
|
|
192107
|
-
function
|
|
192157
|
+
function vte(n, A, e, t, i) {
|
|
192108
192158
|
const r = new Uint8Array(n.buffer.slice(n.byteOffset + A, n.byteOffset + A + e));
|
|
192109
192159
|
var s = i(r);
|
|
192110
192160
|
switch (t) {
|
|
@@ -192120,17 +192170,17 @@ function fte(n, A, e, t, i) {
|
|
|
192120
192170
|
return s;
|
|
192121
192171
|
}
|
|
192122
192172
|
}
|
|
192123
|
-
function
|
|
192173
|
+
function Cte(n, A, e, t) {
|
|
192124
192174
|
for (var i = {}, r = 0, s = e.length, o, a; r < s; )
|
|
192125
|
-
a = e[r], o =
|
|
192175
|
+
a = e[r], o = vte(n, A, a.len, a.dataType, t), A += a.len, typeof o < "u" && (i[a.name] = o), r++;
|
|
192126
192176
|
return i;
|
|
192127
192177
|
}
|
|
192128
192178
|
function rF(n, A) {
|
|
192129
|
-
for (var e = haA(A), t =
|
|
192130
|
-
a.push(
|
|
192179
|
+
for (var e = haA(A), t = fte(n), i = dte(n, t.headerLen - 1, e), r = (i.length + 1 << 5) + 2, s = t.recLen, o = t.records, a = []; o; )
|
|
192180
|
+
a.push(Cte(n, r, i, e)), r += s, o--;
|
|
192131
192181
|
return a;
|
|
192132
192182
|
}
|
|
192133
|
-
const
|
|
192183
|
+
const Ete = globalThis.URL, Bte = (n) => {
|
|
192134
192184
|
if (!n)
|
|
192135
192185
|
throw new Error("forgot to pass buffer");
|
|
192136
192186
|
if (WE(n))
|
|
@@ -192138,12 +192188,12 @@ const vte = globalThis.URL, Cte = (n) => {
|
|
|
192138
192188
|
if (WE(n.buffer))
|
|
192139
192189
|
return n.BYTES_PER_ELEMENT === 1 ? n : new Uint8Array(n.buffer, n.byteOffset, n.byteLength);
|
|
192140
192190
|
throw new Error("invalid buffer like object");
|
|
192141
|
-
},
|
|
192191
|
+
}, pte = new TextDecoder(), gaA = (n) => {
|
|
192142
192192
|
if (n) {
|
|
192143
192193
|
if (typeof n == "string")
|
|
192144
192194
|
return n;
|
|
192145
192195
|
if (WE(n) || ArrayBuffer.isView(n) || sF(n))
|
|
192146
|
-
return
|
|
192196
|
+
return pte.decode(n);
|
|
192147
192197
|
}
|
|
192148
192198
|
}, uaA = (n) => {
|
|
192149
192199
|
if (!n)
|
|
@@ -192176,8 +192226,8 @@ const oF = function([n, A]) {
|
|
|
192176
192226
|
return e;
|
|
192177
192227
|
}, QaA = async function(n, A) {
|
|
192178
192228
|
let e;
|
|
192179
|
-
n =
|
|
192180
|
-
const t = await
|
|
192229
|
+
n = Bte(n);
|
|
192230
|
+
const t = await cte(n), i = [];
|
|
192181
192231
|
A = A || [];
|
|
192182
192232
|
for (e in t)
|
|
192183
192233
|
e.indexOf("__MACOSX") === -1 && (e.slice(-4).toLowerCase() === ".shp" ? (i.push(e.slice(0, -4)), t[e.slice(0, -3) + e.slice(-3).toLowerCase()] = t[e]) : e.slice(-4).toLowerCase() === ".prj" ? t[e.slice(0, -3) + e.slice(-3).toLowerCase()] = gb(t[e]) : e.slice(-5).toLowerCase() === ".json" || A.indexOf(e.split(".").pop()) > -1 ? i.push(e.slice(0, -3) + e.slice(-3).toLowerCase()) : (e.slice(-4).toLowerCase() === ".dbf" || e.slice(-4).toLowerCase() === ".cpg") && (t[e.slice(0, -3) + e.slice(-3).toLowerCase()] = t[e]));
|
|
@@ -192190,11 +192240,11 @@ const oF = function([n, A]) {
|
|
|
192190
192240
|
});
|
|
192191
192241
|
return r.length === 1 ? r[0] : r;
|
|
192192
192242
|
};
|
|
192193
|
-
async function
|
|
192243
|
+
async function mte(n, A) {
|
|
192194
192244
|
const e = await dI(n);
|
|
192195
192245
|
return QaA(e, A);
|
|
192196
192246
|
}
|
|
192197
|
-
const
|
|
192247
|
+
const Ite = async (n) => {
|
|
192198
192248
|
const A = await Promise.all([
|
|
192199
192249
|
dI(n, "shp"),
|
|
192200
192250
|
dI(n, "prj")
|
|
@@ -192206,35 +192256,35 @@ const pte = async (n) => {
|
|
|
192206
192256
|
e = !1;
|
|
192207
192257
|
}
|
|
192208
192258
|
return nF(A[0], e);
|
|
192209
|
-
},
|
|
192259
|
+
}, Mte = async (n) => {
|
|
192210
192260
|
const [A, e] = await Promise.all([
|
|
192211
192261
|
dI(n, "dbf"),
|
|
192212
192262
|
dI(n, "cpg")
|
|
192213
192263
|
]);
|
|
192214
192264
|
if (A)
|
|
192215
192265
|
return rF(A, e);
|
|
192216
|
-
}, NW = (n, A) => new
|
|
192266
|
+
}, NW = (n, A) => new Ete(n, globalThis?.document?.location).pathname.slice(-4).toLowerCase() === A, Tte = ({ shp: n, dbf: A, cpg: e, prj: t }) => {
|
|
192217
192267
|
const i = [
|
|
192218
|
-
|
|
192268
|
+
Ote(n, t)
|
|
192219
192269
|
];
|
|
192220
|
-
return A && i.push(
|
|
192221
|
-
},
|
|
192270
|
+
return A && i.push(kte(A, e)), oF(i);
|
|
192271
|
+
}, yte = async function(n, A) {
|
|
192222
192272
|
if (typeof n != "string") {
|
|
192223
192273
|
if (WE(n) || ArrayBuffer.isView(n) || sF(n))
|
|
192224
192274
|
return QaA(n);
|
|
192225
192275
|
if (n.shp)
|
|
192226
|
-
return
|
|
192276
|
+
return Tte(n);
|
|
192227
192277
|
throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property");
|
|
192228
192278
|
}
|
|
192229
192279
|
if (NW(n, ".zip"))
|
|
192230
|
-
return
|
|
192280
|
+
return mte(n, A);
|
|
192231
192281
|
NW(n, ".shp") && (n = n.slice(0, -4));
|
|
192232
192282
|
const e = await Promise.all([
|
|
192233
|
-
|
|
192234
|
-
|
|
192283
|
+
Ite(n),
|
|
192284
|
+
Mte(n)
|
|
192235
192285
|
]);
|
|
192236
192286
|
return oF(e);
|
|
192237
|
-
},
|
|
192287
|
+
}, Ote = function(n, A) {
|
|
192238
192288
|
if (n = uaA(n), A = gaA(A), typeof A == "string")
|
|
192239
192289
|
try {
|
|
192240
192290
|
A = gb(A);
|
|
@@ -192242,7 +192292,7 @@ const pte = async (n) => {
|
|
|
192242
192292
|
A = !1;
|
|
192243
192293
|
}
|
|
192244
192294
|
return nF(n, A);
|
|
192245
|
-
},
|
|
192295
|
+
}, kte = function(n, A) {
|
|
192246
192296
|
return n = uaA(n), A = gaA(A), rF(n, A);
|
|
192247
192297
|
};
|
|
192248
192298
|
class xW {
|
|
@@ -192282,7 +192332,7 @@ class xW {
|
|
|
192282
192332
|
new Promise((e) => {
|
|
192283
192333
|
if (A) {
|
|
192284
192334
|
let t = A?.shp;
|
|
192285
|
-
t && t.length &&
|
|
192335
|
+
t && t.length && yte(t).then((o) => {
|
|
192286
192336
|
e(o);
|
|
192287
192337
|
});
|
|
192288
192338
|
let i = A?.geoJSON;
|
|
@@ -192290,7 +192340,7 @@ class xW {
|
|
|
192290
192340
|
e(o);
|
|
192291
192341
|
}).catch((o) => console.error("error:", o));
|
|
192292
192342
|
let r = A?.kml;
|
|
192293
|
-
r && r.length &&
|
|
192343
|
+
r && r.length && eXA(r).then((o) => {
|
|
192294
192344
|
e(o);
|
|
192295
192345
|
});
|
|
192296
192346
|
let s = A?.geoJSONData;
|
|
@@ -192593,7 +192643,7 @@ class xW {
|
|
|
192593
192643
|
this.customLabel_ && this.customLabel_.presentationMode === 2 && this.customLabel_.infoWindow.hide();
|
|
192594
192644
|
};
|
|
192595
192645
|
}
|
|
192596
|
-
class
|
|
192646
|
+
class bte {
|
|
192597
192647
|
constructor() {
|
|
192598
192648
|
this.PI = 3.141592653589793, this.a = 6378137, this.b = 63567523142e-4, this.f = (this.a - this.b) / this.a, this.e_sq = this.f * (2 - this.f), this.ee = 0.00669437999013, this.WGSF = 1 / 298.257223563, this.WGSe2 = this.WGSF * (2 - this.WGSF), this.WGSa = 6378137, this.EPSILON = 1e-12;
|
|
192599
192649
|
}
|
|
@@ -192700,7 +192750,7 @@ class Ote {
|
|
|
192700
192750
|
return this.PI / 180 * A;
|
|
192701
192751
|
}
|
|
192702
192752
|
}
|
|
192703
|
-
const
|
|
192753
|
+
const zte = `
|
|
192704
192754
|
#version 300 es
|
|
192705
192755
|
precision highp float;
|
|
192706
192756
|
|
|
@@ -192830,10 +192880,10 @@ void main() {
|
|
|
192830
192880
|
}
|
|
192831
192881
|
}
|
|
192832
192882
|
`;
|
|
192833
|
-
class
|
|
192883
|
+
class Nte {
|
|
192834
192884
|
// 构造函数
|
|
192835
192885
|
constructor(A, e) {
|
|
192836
|
-
this.optionType = { Color: 1, Image: 2, Video: 3 }, this.near = 0.1, this.far = 1e3, this._alpha = 1, this._debugFrustum = !0, this._aspectRatio = 1, this._camerafov = 0, this._videoPlay = !0, this.defaultShow = !0, this._show = !0, this.viewer = A, this.param = e, this.ECEF = new
|
|
192886
|
+
this.optionType = { Color: 1, Image: 2, Video: 3 }, this.near = 0.1, this.far = 1e3, this._alpha = 1, this._debugFrustum = !0, this._aspectRatio = 1, this._camerafov = 0, this._videoPlay = !0, this.defaultShow = !0, this._show = !0, this.viewer = A, this.param = e, this.ECEF = new bte();
|
|
192837
192887
|
const t = this._initCameraParam();
|
|
192838
192888
|
if (this.near = t.near ? t.near : 0.1, this.far = t.far ? t.far : 1e3, this._cameraPosition = t.cameraPosition, this._position = t.position, this.type = t.type, this._alpha = t.alpha || 1, this.url = t.url, this.color = t.color, this._debugFrustum = t.debugFrustum || !0, this._aspectRatio = t.aspectRatio || this._getWinWidHei(), this._camerafov = t.fov || Cesium.Math.toDegrees(this.viewer.scene.camera.frustum.fov), this.texture = t.texture || new Cesium.Texture({
|
|
192839
192889
|
context: this.viewer.scene.context,
|
|
@@ -193237,7 +193287,7 @@ class bte {
|
|
|
193237
193287
|
// 添加后处理效果(视频投射)
|
|
193238
193288
|
_addPostProcess() {
|
|
193239
193289
|
this.postProcess = new Cesium.PostProcessStage({
|
|
193240
|
-
fragmentShader:
|
|
193290
|
+
fragmentShader: zte,
|
|
193241
193291
|
uniforms: {
|
|
193242
193292
|
mixNum: () => this.alpha,
|
|
193243
193293
|
stcshadow: () => this.viewShadowMap._shadowMapTexture,
|
|
@@ -193393,7 +193443,7 @@ class LW {
|
|
|
193393
193443
|
//高度
|
|
193394
193444
|
};
|
|
193395
193445
|
let o = k.getMapEngineInstance(this.containerID_);
|
|
193396
|
-
this.ZYWLCesiumVideo_ = new
|
|
193446
|
+
this.ZYWLCesiumVideo_ = new Nte(o, {
|
|
193397
193447
|
position: s,
|
|
193398
193448
|
// 视点位置
|
|
193399
193449
|
rotation: {
|
|
@@ -193518,16 +193568,15 @@ class LW {
|
|
|
193518
193568
|
this.videoBGElement_ = void 0, this.videoElement_ = void 0;
|
|
193519
193569
|
};
|
|
193520
193570
|
}
|
|
193521
|
-
const
|
|
193571
|
+
const xte = (n, A) => {
|
|
193522
193572
|
const e = n.__vccOpts || n;
|
|
193523
193573
|
for (const [t, i] of A)
|
|
193524
193574
|
e[t] = i;
|
|
193525
193575
|
return e;
|
|
193526
|
-
},
|
|
193576
|
+
}, Lte = {
|
|
193527
193577
|
name: "ZYWLGIS",
|
|
193528
193578
|
data() {
|
|
193529
193579
|
return {
|
|
193530
|
-
version: "0.5.0",
|
|
193531
193580
|
stats: void 0,
|
|
193532
193581
|
isLoadInitMapTerrainHeight: !1,
|
|
193533
193582
|
tileLoadProgress: 0,
|
|
@@ -193965,7 +194014,6 @@ const zte = (n, A) => {
|
|
|
193965
194014
|
console.log("需要刷新的地图视图》》》》》》》》》》", window.activeContainerIDs);
|
|
193966
194015
|
},
|
|
193967
194016
|
beforeMount() {
|
|
193968
|
-
console.log("组件挂载前");
|
|
193969
194017
|
},
|
|
193970
194018
|
mounted() {
|
|
193971
194019
|
window.isStartMapModeChange = !0, window.isPointOfInterestOpen = !1, this.isBeginRangingTool = !1, window.isRangingToolDistance = !0, this.rangingToolType = 1, this.MapEngine_Temp = cA.cloneDeep(this.MapEngine), window.DefaultMapEngine = cA.cloneDeep(this.MapEngine), this.MapTerrain_Temp = cA.cloneDeep(this.MapTerrain), this.MapConfiguration_Temp = cA.cloneDeep(this.MapConfiguration), window.DefaultMapConfiguration = cA.cloneDeep(this.MapConfiguration), this.MapPlugins_Temp = cA.cloneDeep(this.MapPlugins), this.containerID = this.MapEngine_Temp.containerID, k.setContainerID(this.containerID);
|
|
@@ -193978,14 +194026,14 @@ const zte = (n, A) => {
|
|
|
193978
194026
|
camera: cA.cloneDeep(this.MapEngine_Temp.camera)
|
|
193979
194027
|
}), k.addGraphClickHandlerHandler(this.GraphClickHandler), k.addGraphNodeClickHandlerHandler(this.GraphNodeClickHandler), k.addGraphChangingHandler(this.GraphChangingHandler), k.addGraphChangedHandler(this.GraphChangedHandler), k.addGraphRemovedHandler(this.GraphRemovedHandler), k.addGraphEditedHandler(this.GraphEditedHandler), k.addMapInitializationCompletedHandler(this.MapInitCompletedHandler), k.addMapRightClickHandler(this.MapRightClickHandler), k.addNoReturnNodeHandler(this.MapRightClickHandler), this.loadExternalResources(() => {
|
|
193980
194028
|
console.log(
|
|
193981
|
-
`版本号>>>>>>>>>>${
|
|
194029
|
+
`版本号>>>>>>>>>>${XqA.version};CESIUM版本号>>>>>>>>>>${Cesium.VERSION}`,
|
|
193982
194030
|
Cesium
|
|
193983
194031
|
), this.initializeMapEngine();
|
|
193984
194032
|
});
|
|
193985
194033
|
},
|
|
193986
194034
|
methods: {
|
|
193987
194035
|
syncZoom(n) {
|
|
193988
|
-
|
|
194036
|
+
window.MapCurrentZooms || (window.MapCurrentZooms = /* @__PURE__ */ new Map()), window.MapCurrentZooms.has(this.containerID) && window.MapCurrentZooms.delete(this.containerID), window.MapCurrentZooms.set(this.containerID, cA.cloneDeep(n));
|
|
193989
194037
|
},
|
|
193990
194038
|
loadZoom() {
|
|
193991
194039
|
return window.MapCurrentZooms && window.MapCurrentZooms.has(this.containerID) ? window.MapCurrentZooms.get(this.containerID) : 10;
|
|
@@ -193998,7 +194046,7 @@ const zte = (n, A) => {
|
|
|
193998
194046
|
{ type: "css", url: "/libs/Cesium/Widgets/widgets.css" },
|
|
193999
194047
|
// JavaScript资源 - 按依赖顺序加载
|
|
194000
194048
|
{ type: "js", url: "/libs/Cesium/Cesium.js" },
|
|
194001
|
-
{ type: "js", url: "/libs/Cesium/Cesium-
|
|
194049
|
+
{ type: "js", url: "/libs/Cesium/Cesium-Extend.js" },
|
|
194002
194050
|
{ type: "js", url: "/libs/SuperMap3D/SuperMap3D.js" },
|
|
194003
194051
|
{ type: "js", url: "/libs/cpRPA.js" },
|
|
194004
194052
|
{ type: "js", url: "/libs/egm96_mhl.js" }
|
|
@@ -194108,7 +194156,6 @@ const zte = (n, A) => {
|
|
|
194108
194156
|
},
|
|
194109
194157
|
// 初始化数据
|
|
194110
194158
|
async initializeData() {
|
|
194111
|
-
console.log("初始化数据", this);
|
|
194112
194159
|
const n = [
|
|
194113
194160
|
"MapLayers",
|
|
194114
194161
|
"Tilesets",
|
|
@@ -194162,7 +194209,7 @@ const zte = (n, A) => {
|
|
|
194162
194209
|
createStats() {
|
|
194163
194210
|
if ((this.MapEngine_Temp?.trackStats ?? !1) && window.sceneIntegrator && window.sceneIntegrator.threeRenderer.isWebGLRenderer) {
|
|
194164
194211
|
const A = document.getElementById(this.containerID);
|
|
194165
|
-
this.stats = new
|
|
194212
|
+
this.stats = new lWA({ trackHz: !0 });
|
|
194166
194213
|
const e = k.getMapEngineInstance(this.cesiumID);
|
|
194167
194214
|
e && this.stats.init(e.scene.context._gl), A.appendChild(this.stats.dom);
|
|
194168
194215
|
let t = this.MapPlugins_Temp?.style ?? { right: 0 };
|
|
@@ -194229,7 +194276,7 @@ const zte = (n, A) => {
|
|
|
194229
194276
|
let e = this.MapEngine_Temp?.center?.longitude ?? 117.21833231944812, t = this.MapEngine_Temp?.center?.latitude ?? 39.06565050593017, i = this.MapEngine_Temp?.zoom?.max ?? 22, r = this.MapEngine_Temp?.zoom?.min ?? 1, s = new vsA({
|
|
194230
194277
|
useAnchor: this.MapConfiguration_Temp?.isZoomInCenter ?? !1
|
|
194231
194278
|
});
|
|
194232
|
-
return new
|
|
194279
|
+
return new sWA({
|
|
194233
194280
|
target: this.openlayersID,
|
|
194234
194281
|
view: new kc({
|
|
194235
194282
|
center: om([e, t]),
|
|
@@ -194248,7 +194295,7 @@ const zte = (n, A) => {
|
|
|
194248
194295
|
createCesium(n) {
|
|
194249
194296
|
let A = this.MapConfiguration_Temp?.isAR ?? !1, e = document.getElementById(this.cesiumID);
|
|
194250
194297
|
e || (e = document.createElement("div"), e.id = this.cesiumID, e.tabIndex = "0", e.style.position = "absolute", e.style.height = "100%", e.style.width = "100%", e.style.zIndex = 2, e.style.backgroundColor = "#232323", n && n.appendChild(e));
|
|
194251
|
-
let t = this.MapEngine_Temp?.zoom?.max ??
|
|
194298
|
+
let t = this.MapEngine_Temp?.zoom?.max ?? 20, i = this.MapEngine_Temp?.zoom?.min ?? 1, r = this.MapEngine_Temp?.camera?.pitch ?? -90, s = k.isSupportWebGL2(), o = k.getMapEngineInstance(this.cesiumID);
|
|
194252
194299
|
return o || (o = new Cesium.Viewer(this.cesiumID, {
|
|
194253
194300
|
geocoder: !1,
|
|
194254
194301
|
animation: !1,
|
|
@@ -194341,7 +194388,7 @@ const zte = (n, A) => {
|
|
|
194341
194388
|
if (A.scene.sun.show = !1, A.scene.moon.show = !1, A.scene.skyBox.show = !1, A.scene.logarithmicDepthBuffer = !1, e)
|
|
194342
194389
|
A.scene.skyAtmosphere.show = !1, A.scene.backgroundColor = Cesium.Color.TRANSPARENT, A.scene.globe.translucency.enabled = !0, A.scene.globe.translucency.backFaceAlpha = 0, A.scene.globe.translucency.frontFaceAlpha = 0;
|
|
194343
194390
|
else {
|
|
194344
|
-
this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.globe.maximumScreenSpaceError = 1,
|
|
194391
|
+
this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.globe.maximumScreenSpaceError = 1, t > 20 && (t = 20);
|
|
194345
194392
|
let r = k.getMapHeightByZoom(
|
|
194346
194393
|
this.containerID,
|
|
194347
194394
|
t,
|
|
@@ -194704,8 +194751,8 @@ const zte = (n, A) => {
|
|
|
194704
194751
|
if (Q) {
|
|
194705
194752
|
w || (w = document.createElement("img"), w.id = `${this.containerID}-MapEngineZoomIn`, n.appendChild(w), w.addEventListener("click", () => {
|
|
194706
194753
|
this.setMapEngineRangingTool(!1);
|
|
194707
|
-
let m = this.loadZoom(), T = this.MapEngine_Temp?.zoom?.max ??
|
|
194708
|
-
T >
|
|
194754
|
+
let m = this.loadZoom(), T = this.MapEngine_Temp?.zoom?.max ?? 20;
|
|
194755
|
+
T > 20 && (T = 20), m < T && (m++, this.syncZoom(m), window.isStartMapModeChange = !0, k.setMapEnginePosition(
|
|
194709
194756
|
this.MapEngine_Temp,
|
|
194710
194757
|
this.loadZoom(),
|
|
194711
194758
|
!0,
|
|
@@ -195728,16 +195775,12 @@ const zte = (n, A) => {
|
|
|
195728
195775
|
if (L && (m = new Cesium.ImageryLayer(L, {
|
|
195729
195776
|
show: u,
|
|
195730
195777
|
splitDirection: E
|
|
195731
|
-
}),
|
|
195732
|
-
console.log("readyEvent", b);
|
|
195733
|
-
}), m.errorEvent.addEventListener((b) => {
|
|
195734
|
-
console.log("errorEvent", b);
|
|
195735
|
-
}), i.imageryLayers.add(m), console.log(m), c)) {
|
|
195778
|
+
}), i.imageryLayers.add(m), c)) {
|
|
195736
195779
|
let b = Cesium.Color.fromCssColorString(
|
|
195737
195780
|
k.setMapColor(c)
|
|
195738
195781
|
);
|
|
195739
195782
|
if (b) {
|
|
195740
|
-
const U = new
|
|
195783
|
+
const U = new ZWA({
|
|
195741
195784
|
bgColor: b,
|
|
195742
195785
|
alpha: 0.5,
|
|
195743
195786
|
invert: !0,
|
|
@@ -195862,7 +195905,7 @@ const zte = (n, A) => {
|
|
|
195862
195905
|
const r = e.added ?? [];
|
|
195863
195906
|
Array.isArray(r) && r.length && (await this.processArrayAsync(r, (s) => {
|
|
195864
195907
|
const o = s.ID.toString();
|
|
195865
|
-
let a = new
|
|
195908
|
+
let a = new PWA(this.cesiumID, n);
|
|
195866
195909
|
a && (k.setPointCloudRecognition(o, a), a.DataProcessing(cA.cloneDeep(s)));
|
|
195867
195910
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, r));
|
|
195868
195911
|
});
|
|
@@ -195897,7 +195940,7 @@ const zte = (n, A) => {
|
|
|
195897
195940
|
let D;
|
|
195898
195941
|
switch (a.type) {
|
|
195899
195942
|
case 1:
|
|
195900
|
-
s ? D = new
|
|
195943
|
+
s ? D = new vWA(this.cesiumID, n) : D = new uWA(
|
|
195901
195944
|
this.maptalksID,
|
|
195902
195945
|
n
|
|
195903
195946
|
);
|
|
@@ -195912,25 +195955,25 @@ const zte = (n, A) => {
|
|
|
195912
195955
|
);
|
|
195913
195956
|
break;
|
|
195914
195957
|
case 3:
|
|
195915
|
-
s ? D = new
|
|
195958
|
+
s ? D = new CWA(
|
|
195916
195959
|
this.cesiumID,
|
|
195917
195960
|
n
|
|
195918
|
-
) : D = new
|
|
195961
|
+
) : D = new QWA(
|
|
195919
195962
|
this.maptalksID,
|
|
195920
195963
|
n
|
|
195921
195964
|
);
|
|
195922
195965
|
break;
|
|
195923
195966
|
case 4:
|
|
195924
|
-
s ? D = new
|
|
195967
|
+
s ? D = new wWA(
|
|
195925
195968
|
this.cesiumID,
|
|
195926
195969
|
n
|
|
195927
|
-
) : D = new
|
|
195970
|
+
) : D = new cWA(
|
|
195928
195971
|
this.maptalksID,
|
|
195929
195972
|
n
|
|
195930
195973
|
);
|
|
195931
195974
|
break;
|
|
195932
195975
|
case 5:
|
|
195933
|
-
s ? D = new
|
|
195976
|
+
s ? D = new dWA(this.cesiumID, n) : D = new gWA(
|
|
195934
195977
|
this.maptalksID,
|
|
195935
195978
|
n
|
|
195936
195979
|
);
|
|
@@ -195994,7 +196037,7 @@ const zte = (n, A) => {
|
|
|
195994
196037
|
);
|
|
195995
196038
|
break;
|
|
195996
196039
|
case 3:
|
|
195997
|
-
s ? D = new
|
|
196040
|
+
s ? D = new mWA(
|
|
195998
196041
|
this.cesiumID,
|
|
195999
196042
|
n
|
|
196000
196043
|
) : D = new $q(
|
|
@@ -196003,7 +196046,7 @@ const zte = (n, A) => {
|
|
|
196003
196046
|
);
|
|
196004
196047
|
break;
|
|
196005
196048
|
case 4:
|
|
196006
|
-
s ? D = new
|
|
196049
|
+
s ? D = new BWA(
|
|
196007
196050
|
this.cesiumID,
|
|
196008
196051
|
n
|
|
196009
196052
|
) : D = new Xq(
|
|
@@ -196012,10 +196055,10 @@ const zte = (n, A) => {
|
|
|
196012
196055
|
);
|
|
196013
196056
|
break;
|
|
196014
196057
|
case 5:
|
|
196015
|
-
s ? D = new
|
|
196058
|
+
s ? D = new pWA(
|
|
196016
196059
|
this.cesiumID,
|
|
196017
196060
|
n
|
|
196018
|
-
) : D = new
|
|
196061
|
+
) : D = new EWA(
|
|
196019
196062
|
this.maptalksID,
|
|
196020
196063
|
n
|
|
196021
196064
|
);
|
|
@@ -196045,7 +196088,7 @@ const zte = (n, A) => {
|
|
|
196045
196088
|
Array.isArray(s) && s.length && (await this.processArrayAsync(s, (o) => {
|
|
196046
196089
|
const a = o.ID.toString();
|
|
196047
196090
|
let l;
|
|
196048
|
-
r ? l = new
|
|
196091
|
+
r ? l = new fWA(this.cesiumID, n) : l = new hWA(
|
|
196049
196092
|
this.maptalksID,
|
|
196050
196093
|
n
|
|
196051
196094
|
), l && (k.setFlightPath(a, l), l.DataProcessing(cA.cloneDeep(o)));
|
|
@@ -196112,7 +196155,7 @@ const zte = (n, A) => {
|
|
|
196112
196155
|
Array.isArray(s) && s.length && (await this.processArrayAsync(s, (o) => {
|
|
196113
196156
|
const a = o.ID.toString();
|
|
196114
196157
|
let l;
|
|
196115
|
-
r ? l = new
|
|
196158
|
+
r ? l = new HWA(this.cesiumID, n) : l = new NWA(this.maptalksID, n), l && (k.setOrthophote(a, l), l.DataProcessing(cA.cloneDeep(o)));
|
|
196116
196159
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, s));
|
|
196117
196160
|
});
|
|
196118
196161
|
},
|
|
@@ -196145,7 +196188,7 @@ const zte = (n, A) => {
|
|
|
196145
196188
|
);
|
|
196146
196189
|
break;
|
|
196147
196190
|
case 3:
|
|
196148
|
-
r ? l = new
|
|
196191
|
+
r ? l = new FWA(
|
|
196149
196192
|
this.cesiumID,
|
|
196150
196193
|
n
|
|
196151
196194
|
) : l = new $q(
|
|
@@ -196154,7 +196197,7 @@ const zte = (n, A) => {
|
|
|
196154
196197
|
);
|
|
196155
196198
|
break;
|
|
196156
196199
|
case 4:
|
|
196157
|
-
r ? l = new
|
|
196200
|
+
r ? l = new jWA(
|
|
196158
196201
|
this.cesiumID,
|
|
196159
196202
|
n
|
|
196160
196203
|
) : l = new Xq(
|
|
@@ -196163,25 +196206,25 @@ const zte = (n, A) => {
|
|
|
196163
196206
|
);
|
|
196164
196207
|
break;
|
|
196165
196208
|
case 5:
|
|
196166
|
-
r && (l = new
|
|
196209
|
+
r && (l = new YWA(
|
|
196167
196210
|
this.cesiumID,
|
|
196168
196211
|
n
|
|
196169
196212
|
));
|
|
196170
196213
|
break;
|
|
196171
196214
|
case 6:
|
|
196172
|
-
r && (l = new
|
|
196215
|
+
r && (l = new RWA(
|
|
196173
196216
|
this.cesiumID,
|
|
196174
196217
|
n
|
|
196175
196218
|
));
|
|
196176
196219
|
break;
|
|
196177
196220
|
case 7:
|
|
196178
|
-
r && (l = new
|
|
196221
|
+
r && (l = new SWA(
|
|
196179
196222
|
this.cesiumID,
|
|
196180
196223
|
n
|
|
196181
196224
|
));
|
|
196182
196225
|
break;
|
|
196183
196226
|
case 8:
|
|
196184
|
-
r && (l = new
|
|
196227
|
+
r && (l = new UWA(
|
|
196185
196228
|
this.cesiumID,
|
|
196186
196229
|
n
|
|
196187
196230
|
));
|
|
@@ -196275,7 +196318,7 @@ const zte = (n, A) => {
|
|
|
196275
196318
|
Array.isArray(o) && o.length && (await this.processArrayAsync(o, (a) => {
|
|
196276
196319
|
const l = a.ID.toString();
|
|
196277
196320
|
let D;
|
|
196278
|
-
s && (D = new
|
|
196321
|
+
s && (D = new GWA(this.cesiumID, n)), D && (k.setS3M(l, D), D.DataProcessing(cA.cloneDeep(a)));
|
|
196279
196322
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, o));
|
|
196280
196323
|
});
|
|
196281
196324
|
},
|
|
@@ -196297,7 +196340,7 @@ const zte = (n, A) => {
|
|
|
196297
196340
|
Array.isArray(s) && s.length && (await this.processArrayAsync(s, (o) => {
|
|
196298
196341
|
const a = o.ID.toString();
|
|
196299
196342
|
let l;
|
|
196300
|
-
r && (l = new
|
|
196343
|
+
r && (l = new JWA(this.cesiumID, n)), l && (k.setRadar(a, l), l.DataProcessing(cA.cloneDeep(o)));
|
|
196301
196344
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, s));
|
|
196302
196345
|
});
|
|
196303
196346
|
},
|
|
@@ -196331,19 +196374,19 @@ const zte = (n, A) => {
|
|
|
196331
196374
|
var D;
|
|
196332
196375
|
switch (a.type) {
|
|
196333
196376
|
case 3:
|
|
196334
|
-
s ? D = new
|
|
196377
|
+
s ? D = new LWA(
|
|
196335
196378
|
this.cesiumID,
|
|
196336
196379
|
n
|
|
196337
|
-
) : D = new
|
|
196380
|
+
) : D = new zWA(
|
|
196338
196381
|
this.maptalksID,
|
|
196339
196382
|
n
|
|
196340
196383
|
);
|
|
196341
196384
|
break;
|
|
196342
196385
|
case 4:
|
|
196343
|
-
s ? D = new
|
|
196386
|
+
s ? D = new xWA(
|
|
196344
196387
|
this.cesiumID,
|
|
196345
196388
|
n
|
|
196346
|
-
) : D = new
|
|
196389
|
+
) : D = new bWA(
|
|
196347
196390
|
this.maptalksID,
|
|
196348
196391
|
n
|
|
196349
196392
|
);
|
|
@@ -196564,10 +196607,10 @@ const zte = (n, A) => {
|
|
|
196564
196607
|
}
|
|
196565
196608
|
}
|
|
196566
196609
|
};
|
|
196567
|
-
function
|
|
196610
|
+
function Ute(n, A, e, t, i, r) {
|
|
196568
196611
|
return null;
|
|
196569
196612
|
}
|
|
196570
|
-
const
|
|
196613
|
+
const Rie = /* @__PURE__ */ xte(Lte, [["render", Ute]]);
|
|
196571
196614
|
class xD {
|
|
196572
196615
|
/**计算北斗二维网格码*/
|
|
196573
196616
|
static calculateBeiDouGridCode = (A, e = 2) => {
|
|
@@ -198102,5 +198145,5 @@ export {
|
|
|
198102
198145
|
ra as GISIcon,
|
|
198103
198146
|
Pm as GISModel,
|
|
198104
198147
|
k as GISTool,
|
|
198105
|
-
|
|
198148
|
+
Rie as default
|
|
198106
198149
|
};
|