@baidumap/mapv-three 1.4.0 → 1.4.1
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/README.md +3 -3
- package/dist/assets/textures/weather/thunder.jpg +0 -0
- package/dist/assets/wasm/lanelet.wasm +0 -0
- package/dist/assets/workers/{BaiduVectorParser.worker-f7fcc351.js → BaiduVectorParser.worker-486240e8.js} +82 -85
- package/dist/assets/workers/{CesiumTerrainParser.worker-fcae0cc9.js → CesiumTerrainParser.worker-ba35b937.js} +108 -113
- package/dist/assets/workers/{MVTParser.worker-0dd27c39.js → MVTParser.worker-bb80e3b4.js} +9 -14
- package/dist/devtool/panel.js +9 -0
- package/dist/mapvthree.module.js +40003 -38856
- package/dist/mapvthree.umd.js +5 -5
- package/dist/types/Internal.d.ts +1 -0
- package/dist/types/adapters/bmap/Icon.d.ts +18 -0
- package/dist/types/adapters/bmap/InfoWindow.d.ts +124 -0
- package/dist/types/adapters/bmap/Label.d.ts +58 -0
- package/dist/types/adapters/bmap/Map.d.ts +124 -0
- package/dist/types/adapters/bmap/Marker.d.ts +28 -0
- package/dist/types/adapters/bmap/Overlay.d.ts +18 -0
- package/dist/types/adapters/bmap/Pixel.d.ts +1 -0
- package/dist/types/adapters/bmap/Point.d.ts +8 -0
- package/dist/types/adapters/bmap/Size.d.ts +8 -0
- package/dist/types/adapters/bmap/index.d.ts +8 -0
- package/dist/types/adapters/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.open.d.ts +1 -0
- package/dist/types/threejs/geometries/text/ScreenTextGeometry.d.ts +15 -0
- package/dist/types/threejs/materials/effects/LightningBillboardMaterial.d.ts +3 -0
- package/dist/types/threejs/materials/text/ScreenTextMaterial.d.ts +25 -0
- package/dist/types/threejs/objects/line/FatLineInternal.d.ts +4 -0
- package/dist/types/threejs/objects/point/Label.d.ts +10 -1
- package/dist/types/threejs/objects/text/ScreenText.d.ts +273 -0
- package/dist/types/threejs/objects/text/font-atlas-manager.d.ts +10 -2
- package/dist/types/threemap/Engine.d.ts +17 -4
- package/dist/types/threemap/engine/Controller.d.ts +141 -0
- package/dist/types/threemap/engine/Map.d.ts +14 -2
- package/dist/types/threemap/engine/event/EntityProxy.d.ts +1 -0
- package/dist/types/threemap/engine/map/BlankMap.d.ts +1 -1
- package/dist/types/threemap/engine/map/BlankMap3DControl.d.ts +4 -1
- package/dist/types/{threejs → threemap/engine/map}/controls/DraggingMovementAggregator.d.ts +3 -0
- package/dist/types/{threejs → threemap/engine/map}/controls/MapControl3D.d.ts +19 -2
- package/dist/types/{threejs → threemap/engine/map}/controls/PointerMovementAggregator.d.ts +3 -0
- package/dist/types/threemap/engine/map/earth/Earth.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/Collision.d.ts +5 -0
- package/dist/types/threemap/engine/rendering/Label.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +2 -2
- package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +1 -1
- package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +11 -4
- package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +1 -1
- package/dist/types/threemap/mapView/surface/strategy/FastTileLoaderStrategy.d.ts +16 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduVectorTileProvider.d.ts +3 -0
- package/dist/types/threemap/natural/DynamicWeather.d.ts +2 -0
- package/dist/types/threemap/natural/Thunderstorm.d.ts +23 -8
- package/dist/types/threemap/overlay/Marker.d.ts +3 -0
- package/dist/types/threemap/services/autoComplete/AutoComplete.d.ts +1 -1
- package/dist/types/threemap/services/boundary/Boundary.d.ts +3 -3
- package/dist/types/threemap/services/common/baiduRequest.d.ts +1 -1
- package/dist/types/threemap/services/configs.d.ts +2 -2
- package/dist/types/threemap/services/district/DistrictLayer.d.ts +3 -3
- package/dist/types/threemap/services/geocoder/Geocoder.d.ts +5 -5
- package/dist/types/threemap/services/localSearch/LocalSearch.d.ts +5 -5
- package/dist/types/threemap/services/routeSearch/DrivingRoute.d.ts +2 -2
- package/dist/types/threemap/services/routeSearch/TransitRoute.d.ts +3 -3
- package/package.json +1 -1
- /package/dist/types/{threejs → threemap/engine/map}/controls/MapControl.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# JSAPI Three
|
|
2
2
|
|
|
3
|
-
JSAPI Three 是由百度地图开放平台推出的基于 WebGL 的下一代二三维一体化地图引擎,帮助开发者快速搭建自己的二三维地图场景。JSAPI Three 采用`mapvthree`作为命名空间,基于 Three.js
|
|
3
|
+
JSAPI Three 是由百度地图开放平台推出的基于 WebGL 的下一代二三维一体化地图引擎,帮助开发者快速搭建自己的二三维地图场景。JSAPI Three 采用`mapvthree`作为命名空间,基于 Three.js 版本开发,采用 Three.js 作为底层渲染引擎。
|
|
4
4
|
|
|
5
5
|
官网:https://lbsyun.baidu.com/faq/api?title=jsapithree
|
|
6
6
|
|
|
@@ -13,9 +13,9 @@ JSAPI Three 是由百度地图开放平台推出的基于 WebGL 的下一代二
|
|
|
13
13
|
## 开始使用
|
|
14
14
|
|
|
15
15
|
### 1. 安装依赖
|
|
16
|
-
mapvthree 基于 Three.js
|
|
16
|
+
mapvthree 基于 Three.js 版本开发,采用 Three.js 作为底层渲染引擎。请执行以下命令安装必要的依赖:
|
|
17
17
|
```shell static
|
|
18
|
-
npm i -S @baidumap/mapv-three three
|
|
18
|
+
npm i -S @baidumap/mapv-three three
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### 2. 静态资源配置
|
|
Binary file
|
|
Binary file
|
|
@@ -1455,8 +1455,8 @@ class Matrix4 {
|
|
|
1455
1455
|
return this.multiplyMatrices(t, this);
|
|
1456
1456
|
}
|
|
1457
1457
|
multiplyMatrices(t, e) {
|
|
1458
|
-
const s = t.elements, i = e.elements, r = this.elements, a = s[0], n = s[4], o = s[8], h = s[12], c = s[1], l = s[5], u = s[9], d = s[13], _ = s[2], m = s[6], p = s[10], f = s[14], y = s[3], g = s[7], M = s[11], x = s[15], w = i[0], S = i[4], C = i[8], E = i[12], P = i[1], b = i[5],
|
|
1459
|
-
return r[0] = a * w + n * P + o * T + h * N, r[4] = a * S + n * b + o * I + h * G, r[8] = a * C + n *
|
|
1458
|
+
const s = t.elements, i = e.elements, r = this.elements, a = s[0], n = s[4], o = s[8], h = s[12], c = s[1], l = s[5], u = s[9], d = s[13], _ = s[2], m = s[6], p = s[10], f = s[14], y = s[3], g = s[7], M = s[11], x = s[15], w = i[0], S = i[4], C = i[8], E = i[12], P = i[1], b = i[5], A2 = i[9], v = i[13], T = i[2], I = i[6], z = i[10], O = i[14], N = i[3], G = i[7], R = i[11], L = i[15];
|
|
1459
|
+
return r[0] = a * w + n * P + o * T + h * N, r[4] = a * S + n * b + o * I + h * G, r[8] = a * C + n * A2 + o * z + h * R, r[12] = a * E + n * v + o * O + h * L, r[1] = c * w + l * P + u * T + d * N, r[5] = c * S + l * b + u * I + d * G, r[9] = c * C + l * A2 + u * z + d * R, r[13] = c * E + l * v + u * O + d * L, r[2] = _ * w + m * P + p * T + f * N, r[6] = _ * S + m * b + p * I + f * G, r[10] = _ * C + m * A2 + p * z + f * R, r[14] = _ * E + m * v + p * O + f * L, r[3] = y * w + g * P + M * T + x * N, r[7] = y * S + g * b + M * I + x * G, r[11] = y * C + g * A2 + M * z + x * R, r[15] = y * E + g * v + M * O + x * L, this;
|
|
1460
1460
|
}
|
|
1461
1461
|
multiplyScalar(t) {
|
|
1462
1462
|
const e = this.elements;
|
|
@@ -2702,9 +2702,9 @@ function scaleToGeodeticSurface(t, e, s, i, r) {
|
|
|
2702
2702
|
return r || (r = new Vector3$1()), isFinite(p) ? r.copy(f) : void 0;
|
|
2703
2703
|
const y = s.x, g = s.y, M = s.z, x = scaleToGeodeticSurfaceGradient;
|
|
2704
2704
|
x.x = f.x * y * 2, x.y = f.y * g * 2, x.z = f.z * M * 2;
|
|
2705
|
-
let w, S, C, E, P, b,
|
|
2705
|
+
let w, S, C, E, P, b, A2, v, T, I, z, O = (1 - p) * t.length() / (0.5 * x.length()), N = 0;
|
|
2706
2706
|
do {
|
|
2707
|
-
O -= N, C = 1 / (1 + O * y), E = 1 / (1 + O * g), P = 1 / (1 + O * M), b = C * C,
|
|
2707
|
+
O -= N, C = 1 / (1 + O * y), E = 1 / (1 + O * g), P = 1 / (1 + O * M), b = C * C, A2 = E * E, v = P * P, T = b * C, I = A2 * E, z = v * P, w = u * b + d * A2 + _ * v - 1, S = u * T * y + d * I * g + _ * z * M, N = w / (-2 * S);
|
|
2708
2708
|
} while (Math.abs(w) > 1e-12);
|
|
2709
2709
|
return r ? (r.x = a * C, r.y = n * E, r.z = o * P, r) : new Vector3$1(a * C, n * E, o * P);
|
|
2710
2710
|
}
|
|
@@ -3013,13 +3013,13 @@ function computeRealRoots(t, e, s, i) {
|
|
|
3013
3013
|
var w = -(x < 0 ? -1 : 1) * Math.abs(g) * Math.sqrt(-y), S = (a = -x + w) / 2, C = S < 0 ? -Math.pow(-S, 1 / 3) : Math.pow(S, 1 / 3), E = a === w ? -C : -M / C;
|
|
3014
3014
|
return r = M <= 0 ? C + E : -x / (C * C + E * E + M), d * u >= l * _ ? [(r - o) / n] : [-c / (r + h)];
|
|
3015
3015
|
}
|
|
3016
|
-
var P = m, b = -2 * o * m + n * p,
|
|
3016
|
+
var P = m, b = -2 * o * m + n * p, A2 = f, v = -c * p + 2 * h * f, T = Math.sqrt(y), I = Math.sqrt(3) / 2, z = Math.abs(Math.atan2(n * T, -b) / 3);
|
|
3017
3017
|
r = 2 * Math.sqrt(-P);
|
|
3018
3018
|
var O = Math.cos(z);
|
|
3019
3019
|
a = r * O;
|
|
3020
3020
|
var N = r * (-O / 2 - I * Math.sin(z)), G = a + N > 2 * o ? a - o : N - o, R = n, L = G / R;
|
|
3021
|
-
z = Math.abs(Math.atan2(c * T, -
|
|
3022
|
-
var $ = -c, V = (a = (r = 2 * Math.sqrt(-
|
|
3021
|
+
z = Math.abs(Math.atan2(c * T, -v) / 3);
|
|
3022
|
+
var $ = -c, V = (a = (r = 2 * Math.sqrt(-A2)) * (O = Math.cos(z))) + (N = r * (-O / 2 - I * Math.sin(z))) < 2 * h ? a + h : N + h, q = $ / V, j = -G * V - R * $, D = (h * j - o * (G * $)) / (-o * j + h * (R * V));
|
|
3023
3023
|
return L <= D ? L <= q ? D <= q ? [L, D, q] : [L, q, D] : [q, L, D] : L <= q ? [D, L, q] : D <= q ? [D, q, L] : [q, D, L];
|
|
3024
3024
|
}
|
|
3025
3025
|
CubicRealPolynomial.computeDiscriminant = function(t, e, s, i) {
|
|
@@ -3095,11 +3095,11 @@ function neumark(t, e, s, i) {
|
|
|
3095
3095
|
c = 0 === P ? 0 : (t * M - s) / P, l = P / 2;
|
|
3096
3096
|
}
|
|
3097
3097
|
0 === g && 0 === c ? (u = 0, d = 0) : CesiumMath.sign(g) === CesiumMath.sign(c) ? d = p / (u = g + c) : u = p / (d = g - c), 0 === M && 0 === l ? (_ = 0, m = 0) : CesiumMath.sign(M) === CesiumMath.sign(l) ? m = i / (_ = M + l) : _ = i / (m = M - l);
|
|
3098
|
-
var b = QuadraticRealPolynomial.computeRealRoots(1, u, _),
|
|
3098
|
+
var b = QuadraticRealPolynomial.computeRealRoots(1, u, _), A2 = QuadraticRealPolynomial.computeRealRoots(1, d, m);
|
|
3099
3099
|
if (0 !== b.length)
|
|
3100
|
-
return 0 !==
|
|
3101
|
-
if (0 !==
|
|
3102
|
-
return
|
|
3100
|
+
return 0 !== A2.length ? b[1] <= A2[0] ? [b[0], b[1], A2[0], A2[1]] : A2[1] <= b[0] ? [A2[0], A2[1], b[0], b[1]] : b[0] >= A2[0] && b[1] <= A2[1] ? [A2[0], b[0], b[1], A2[1]] : A2[0] >= b[0] && A2[1] <= b[1] ? [b[0], A2[0], A2[1], b[1]] : b[0] > A2[0] && b[0] < A2[1] ? [A2[0], b[0], A2[1], b[1]] : [b[0], A2[0], b[1], A2[1]] : b;
|
|
3101
|
+
if (0 !== A2.length)
|
|
3102
|
+
return A2;
|
|
3103
3103
|
}
|
|
3104
3104
|
return [];
|
|
3105
3105
|
}
|
|
@@ -3283,9 +3283,9 @@ function quadraticVectorExpression(t, e, s, i, r) {
|
|
|
3283
3283
|
var b = (a = QuarticRealPolynomial.computeRealRoots(w, S, C, E, P)).length;
|
|
3284
3284
|
if (0 === b)
|
|
3285
3285
|
return _;
|
|
3286
|
-
for (var
|
|
3287
|
-
var
|
|
3288
|
-
O < 0 ? _.push(new Vector3$1(i, r *
|
|
3286
|
+
for (var A2 = 0; A2 < b; ++A2) {
|
|
3287
|
+
var v = a[A2], T = v * v, I = Math.max(1 - T, 0), z = Math.sqrt(I), O = (CesiumMath.sign(h) === CesiumMath.sign(l) ? addWithCancellationCheck(h * T + l, c * v, CesiumMath.EPSILON12) : CesiumMath.sign(l) === CesiumMath.sign(c * v) ? addWithCancellationCheck(h * T, c * v + l, CesiumMath.EPSILON12) : addWithCancellationCheck(h * T + c * v, l, CesiumMath.EPSILON12)) * addWithCancellationCheck(u * v, d, CesiumMath.EPSILON15);
|
|
3288
|
+
O < 0 ? _.push(new Vector3$1(i, r * v, r * z)) : O > 0 ? _.push(new Vector3$1(i, r * v, r * -z)) : 0 !== z ? (_.push(new Vector3$1(i, r * v, r * -z)), _.push(new Vector3$1(i, r * v, r * z)), ++A2) : _.push(new Vector3$1(i, r * v, r * z));
|
|
3289
3289
|
}
|
|
3290
3290
|
return _;
|
|
3291
3291
|
}
|
|
@@ -3331,11 +3331,11 @@ IntersectionTests.grazingAltitudeLocation = function(t, e) {
|
|
|
3331
3331
|
if (S > 0) {
|
|
3332
3332
|
for (var C = Cartesian3.clone(Cartesian3.ZERO, closestScratch), E = Number.NEGATIVE_INFINITY, P = 0; P < S; ++P) {
|
|
3333
3333
|
f = StaticMatrix3.multiplyByVector(_, StaticMatrix3.multiplyByVector(u, w[P], sScratch), sScratch);
|
|
3334
|
-
var b = Cartesian3.normalize(Cartesian3.subtract(f, s, referenceScratch), referenceScratch),
|
|
3335
|
-
|
|
3334
|
+
var b = Cartesian3.normalize(Cartesian3.subtract(f, s, referenceScratch), referenceScratch), A2 = Cartesian3.dot(b, i);
|
|
3335
|
+
A2 > E && (E = A2, C = Cartesian3.clone(f, C));
|
|
3336
3336
|
}
|
|
3337
|
-
var
|
|
3338
|
-
return E = CesiumMath.clamp(E, 0, 1), y = Cartesian3.magnitude(Cartesian3.subtract(C, s, referenceScratch)) * Math.sqrt(1 - E * E), y = a ? -y : y,
|
|
3337
|
+
var v = e.cartesianToCartographic(C, surfPointScratch);
|
|
3338
|
+
return E = CesiumMath.clamp(E, 0, 1), y = Cartesian3.magnitude(Cartesian3.subtract(C, s, referenceScratch)) * Math.sqrt(1 - E * E), y = a ? -y : y, v.z = y, e.cartographicToCartesian(v, new Vector3$1());
|
|
3339
3339
|
}
|
|
3340
3340
|
};
|
|
3341
3341
|
var lineSegmentPlaneDifference = new Vector3$1();
|
|
@@ -3866,8 +3866,8 @@ OrientedBoundingBox.fromRectangle = function(t, e, s, i, r) {
|
|
|
3866
3866
|
let C = i.cartographicToCartesian(g2, scratchPerimeterCartesianNW);
|
|
3867
3867
|
const E = i.cartographicToCartesian(M2, scratchPerimeterCartesianCW);
|
|
3868
3868
|
let P = i.cartographicToCartesian(x2, scratchPerimeterCartesianSW);
|
|
3869
|
-
const b = i.cartographicToCartesian(w2, scratchPerimeterCartesianSC),
|
|
3870
|
-
return a = Math.min(
|
|
3869
|
+
const b = i.cartographicToCartesian(w2, scratchPerimeterCartesianSC), A2 = m2.projectPointToNearestOnPlane(S, scratchPerimeterProjectedNC), v = m2.projectPointToNearestOnPlane(C, scratchPerimeterProjectedNW), T = m2.projectPointToNearestOnPlane(E, scratchPerimeterProjectedCW), I = m2.projectPointToNearestOnPlane(P, scratchPerimeterProjectedSW), z = m2.projectPointToNearestOnPlane(b, scratchPerimeterProjectedSC);
|
|
3870
|
+
return a = Math.min(v.x, T.x, I.x), n = -a, h = Math.max(v.y, A2.y), o = Math.min(I.y, z.y), g2.z = x2.z = e, C = i.cartographicToCartesian(g2, scratchPerimeterCartesianNW), P = i.cartographicToCartesian(x2, scratchPerimeterCartesianSW), c = Math.min(StaticPlane.getPointDistance(u, C), StaticPlane.getPointDistance(u, P)), l = s, fromPlaneExtents(m2.origin, m2.xAxis, m2.yAxis, m2.zAxis, a, n, o, h, c, l, r);
|
|
3871
3871
|
}
|
|
3872
3872
|
const d = t.south > 0, _ = t.north < 0, m = d ? t.south : _ ? t.north : 0, p = Rectangle.center(t, scratchRectangleCenterCartographic).x, f = Cartesian3.fromRadians(p, m, s, i, scratchPlaneOrigin);
|
|
3873
3873
|
f.z = 0;
|
|
@@ -4008,26 +4008,21 @@ extend(Point.prototype, { equals: function(t) {
|
|
|
4008
4008
|
if (t.lng > 180 || t.lng < -180 || t.lat > 90 || t.lat < -90)
|
|
4009
4009
|
return t;
|
|
4010
4010
|
let e, s;
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
return i.lat = 31890685e-1 * Math.log((1 + Math.sin(a)) / (1 - Math.sin(a))), new Point(Number(i.lng), Number(i.lat));
|
|
4016
|
-
}
|
|
4017
|
-
for (var n = 0; n < this.LLBAND.length; n++)
|
|
4018
|
-
if (e.lat >= this.LLBAND[n]) {
|
|
4019
|
-
s = this.LL2MC[n];
|
|
4011
|
+
t.lng = this.getLoop(t.lng, -180, 180), t.lat = this.getRange(t.lat, -74, 74), e = new Point(t.lng, t.lat);
|
|
4012
|
+
for (var i = 0; i < this.LLBAND.length; i++)
|
|
4013
|
+
if (e.lat >= this.LLBAND[i]) {
|
|
4014
|
+
s = this.LL2MC[i];
|
|
4020
4015
|
break;
|
|
4021
4016
|
}
|
|
4022
4017
|
if (!s) {
|
|
4023
|
-
for (
|
|
4024
|
-
if (e.lat <= -this.LLBAND[
|
|
4025
|
-
s = this.LL2MC[
|
|
4018
|
+
for (i = 0; i < this.LLBAND.length; i++)
|
|
4019
|
+
if (e.lat <= -this.LLBAND[i]) {
|
|
4020
|
+
s = this.LL2MC[i];
|
|
4026
4021
|
break;
|
|
4027
4022
|
}
|
|
4028
4023
|
}
|
|
4029
|
-
let
|
|
4030
|
-
return t = new Point(Number(
|
|
4024
|
+
let r = this.convertor(t, s);
|
|
4025
|
+
return t = new Point(Number(r.lng), Number(r.lat));
|
|
4031
4026
|
}, convertor: function(t, e) {
|
|
4032
4027
|
if (!t || !e)
|
|
4033
4028
|
return;
|
|
@@ -4335,7 +4330,7 @@ proj4Src.exports = function() {
|
|
|
4335
4330
|
return super.convert(t2, e2), "Cartesian" === ((_a2 = e2.coordinate_system) == null ? void 0 : _a2.subtype) && delete e2.coordinate_system, e2.usage && delete e2.usage, e2;
|
|
4336
4331
|
}
|
|
4337
4332
|
}
|
|
4338
|
-
class
|
|
4333
|
+
class A2 extends P {
|
|
4339
4334
|
static convert(t2, e2 = {}) {
|
|
4340
4335
|
var _a2, _b, _c;
|
|
4341
4336
|
super.convert(t2, e2);
|
|
@@ -4345,11 +4340,11 @@ proj4Src.exports = function() {
|
|
|
4345
4340
|
return i2 && (e2.usage = { scope: (_a2 = i2.find((t3) => Array.isArray(t3) && "SCOPE" === t3[0])) == null ? void 0 : _a2[1], area: (_b = i2.find((t3) => Array.isArray(t3) && "AREA" === t3[0])) == null ? void 0 : _b[1], bbox: (_c = i2.find((t3) => Array.isArray(t3) && "BBOX" === t3[0])) == null ? void 0 : _c.slice(1) }), e2;
|
|
4346
4341
|
}
|
|
4347
4342
|
}
|
|
4348
|
-
function
|
|
4343
|
+
function v(t2) {
|
|
4349
4344
|
return t2.find((t3) => Array.isArray(t3) && "USAGE" === t3[0]) ? "2019" : (t2.find((t3) => Array.isArray(t3) && "CS" === t3[0]) || "BOUNDCRS" === t2[0] || "PROJCRS" === t2[0] || t2[0], "2015");
|
|
4350
4345
|
}
|
|
4351
4346
|
function T(t2) {
|
|
4352
|
-
return ("2019" ===
|
|
4347
|
+
return ("2019" === v(t2) ? A2 : b).convert(t2);
|
|
4353
4348
|
}
|
|
4354
4349
|
function I(t2) {
|
|
4355
4350
|
const e2 = t2.toUpperCase();
|
|
@@ -4738,25 +4733,25 @@ proj4Src.exports = function() {
|
|
|
4738
4733
|
return t2;
|
|
4739
4734
|
}
|
|
4740
4735
|
var Et = [{ init: Mt, forward: xt, inverse: wt, names: ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"] }, { init: St, forward: Ct, inverse: Ct, names: ["longlat", "identity"] }], Pt = {}, bt = [];
|
|
4741
|
-
function
|
|
4736
|
+
function At(t2, e2) {
|
|
4742
4737
|
var s2 = bt.length;
|
|
4743
4738
|
return t2.names ? (bt[s2] = t2, t2.names.forEach(function(t3) {
|
|
4744
4739
|
Pt[t3.toLowerCase()] = s2;
|
|
4745
4740
|
}), this) : (console.log(e2), true);
|
|
4746
4741
|
}
|
|
4747
|
-
function
|
|
4742
|
+
function vt(t2) {
|
|
4748
4743
|
return t2.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
|
|
4749
4744
|
}
|
|
4750
4745
|
function Tt(t2) {
|
|
4751
4746
|
if (!t2)
|
|
4752
4747
|
return false;
|
|
4753
4748
|
var e2 = t2.toLowerCase();
|
|
4754
|
-
return void 0 !== Pt[e2] && bt[Pt[e2]] || (e2 =
|
|
4749
|
+
return void 0 !== Pt[e2] && bt[Pt[e2]] || (e2 = vt(e2)) in Pt && bt[Pt[e2]] ? bt[Pt[e2]] : void 0;
|
|
4755
4750
|
}
|
|
4756
4751
|
function It() {
|
|
4757
|
-
Et.forEach(
|
|
4752
|
+
Et.forEach(At);
|
|
4758
4753
|
}
|
|
4759
|
-
var zt = { start: It, add:
|
|
4754
|
+
var zt = { start: It, add: At, get: Tt }, Ot = { MERIT: { a: 6378137, rf: 298.257, ellipseName: "MERIT 1983" }, SGS85: { a: 6378136, rf: 298.257, ellipseName: "Soviet Geodetic System 85" }, GRS80: { a: 6378137, rf: 298.257222101, ellipseName: "GRS 1980(IUGG, 1980)" }, IAU76: { a: 6378140, rf: 298.257, ellipseName: "IAU 1976" }, airy: { a: 6377563396e-3, b: 635625691e-2, ellipseName: "Airy 1830" }, APL4: { a: 6378137, rf: 298.25, ellipseName: "Appl. Physics. 1965" }, NWL9D: { a: 6378145, rf: 298.25, ellipseName: "Naval Weapons Lab., 1965" }, mod_airy: { a: 6377340189e-3, b: 6356034446e-3, ellipseName: "Modified Airy" }, andrae: { a: 637710443e-2, rf: 300, ellipseName: "Andrae 1876 (Den., Iclnd.)" }, aust_SA: { a: 6378160, rf: 298.25, ellipseName: "Australian Natl & S. Amer. 1969" }, GRS67: { a: 6378160, rf: 298.247167427, ellipseName: "GRS 67(IUGG 1967)" }, bessel: { a: 6377397155e-3, rf: 299.1528128, ellipseName: "Bessel 1841" }, bess_nam: { a: 6377483865e-3, rf: 299.1528128, ellipseName: "Bessel 1841 (Namibia)" }, clrk66: { a: 63782064e-1, b: 63565838e-1, ellipseName: "Clarke 1866" }, clrk80: { a: 6378249145e-3, rf: 293.4663, ellipseName: "Clarke 1880 mod." }, clrk80ign: { a: 63782492e-1, b: 6356515, rf: 293.4660213, ellipseName: "Clarke 1880 (IGN)" }, clrk58: { a: 6378293645208759e-9, rf: 294.2606763692654, ellipseName: "Clarke 1858" }, CPM: { a: 63757387e-1, rf: 334.29, ellipseName: "Comm. des Poids et Mesures 1799" }, delmbr: { a: 6376428, rf: 311.5, ellipseName: "Delambre 1810 (Belgium)" }, engelis: { a: 637813605e-2, rf: 298.2566, ellipseName: "Engelis 1985" }, evrst30: { a: 6377276345e-3, rf: 300.8017, ellipseName: "Everest 1830" }, evrst48: { a: 6377304063e-3, rf: 300.8017, ellipseName: "Everest 1948" }, evrst56: { a: 6377301243e-3, rf: 300.8017, ellipseName: "Everest 1956" }, evrst69: { a: 6377295664e-3, rf: 300.8017, ellipseName: "Everest 1969" }, evrstSS: { a: 6377298556e-3, rf: 300.8017, ellipseName: "Everest (Sabah & Sarawak)" }, fschr60: { a: 6378166, rf: 298.3, ellipseName: "Fischer (Mercury Datum) 1960" }, fschr60m: { a: 6378155, rf: 298.3, ellipseName: "Fischer 1960" }, fschr68: { a: 6378150, rf: 298.3, ellipseName: "Fischer 1968" }, helmert: { a: 6378200, rf: 298.3, ellipseName: "Helmert 1906" }, hough: { a: 6378270, rf: 297, ellipseName: "Hough" }, intl: { a: 6378388, rf: 297, ellipseName: "International 1909 (Hayford)" }, kaula: { a: 6378163, rf: 298.24, ellipseName: "Kaula 1961" }, lerch: { a: 6378139, rf: 298.257, ellipseName: "Lerch 1979" }, mprts: { a: 6397300, rf: 191, ellipseName: "Maupertius 1738" }, new_intl: { a: 63781575e-1, b: 63567722e-1, ellipseName: "New International 1967" }, plessis: { a: 6376523, rf: 6355863, ellipseName: "Plessis 1817 (France)" }, krass: { a: 6378245, rf: 298.3, ellipseName: "Krassovsky, 1942" }, SEasia: { a: 6378155, b: 63567733205e-4, ellipseName: "Southeast Asia" }, walbeck: { a: 6376896, b: 63558348467e-4, ellipseName: "Walbeck" }, WGS60: { a: 6378165, rf: 298.3, ellipseName: "WGS 60" }, WGS66: { a: 6378145, rf: 298.25, ellipseName: "WGS 66" }, WGS7: { a: 6378135, rf: 298.26, ellipseName: "WGS 72" }, WGS84: { a: 6378137, rf: 298.257223563, ellipseName: "WGS 84" }, sphere: { a: 6370997, b: 6370997, ellipseName: "Normal Sphere (r=6370997)" } };
|
|
4760
4755
|
const Nt = Ot.WGS84;
|
|
4761
4756
|
function Gt(t2, e2, s2, i2) {
|
|
4762
4757
|
var r2 = t2 * t2, a2 = e2 * e2, n2 = (r2 - a2) / r2, o2 = 0;
|
|
@@ -5079,7 +5074,7 @@ proj4Src.exports = function() {
|
|
|
5079
5074
|
return Me(e2, t2, s3, i3);
|
|
5080
5075
|
} }, r2 && (i2.oProj = e2), i2);
|
|
5081
5076
|
}
|
|
5082
|
-
var Se = 6, Ce = "AJSAJS", Ee = "AFAFAF", Pe = 65, be = 73,
|
|
5077
|
+
var Se = 6, Ce = "AJSAJS", Ee = "AFAFAF", Pe = 65, be = 73, Ae = 79, ve = 86, Te = 90, Ie = { forward: ze, inverse: Oe, toPoint: Ne };
|
|
5083
5078
|
function ze(t2, e2) {
|
|
5084
5079
|
return e2 = e2 || 5, qe(Le({ lat: t2[1], lon: t2[0] }), e2);
|
|
5085
5080
|
}
|
|
@@ -5137,7 +5132,7 @@ proj4Src.exports = function() {
|
|
|
5137
5132
|
}
|
|
5138
5133
|
function Be(t2, e2, s2) {
|
|
5139
5134
|
var i2 = s2 - 1, r2 = Ce.charCodeAt(i2), a2 = Ee.charCodeAt(i2), n2 = r2 + t2 - 1, o2 = a2 + e2, h2 = false;
|
|
5140
|
-
return n2 > Te && (n2 = n2 - Te + Pe - 1, h2 = true), (n2 === be || r2 < be && n2 > be || (n2 > be || r2 < be) && h2) && n2++, (n2 ===
|
|
5135
|
+
return n2 > Te && (n2 = n2 - Te + Pe - 1, h2 = true), (n2 === be || r2 < be && n2 > be || (n2 > be || r2 < be) && h2) && n2++, (n2 === Ae || r2 < Ae && n2 > Ae || (n2 > Ae || r2 < Ae) && h2) && ++n2 === be && n2++, n2 > Te && (n2 = n2 - Te + Pe - 1), o2 > ve ? (o2 = o2 - ve + Pe - 1, h2 = true) : h2 = false, (o2 === be || a2 < be && o2 > be || (o2 > be || a2 < be) && h2) && o2++, (o2 === Ae || a2 < Ae && o2 > Ae || (o2 > Ae || a2 < Ae) && h2) && ++o2 === be && o2++, o2 > ve && (o2 = o2 - ve + Pe - 1), String.fromCharCode(n2) + String.fromCharCode(o2);
|
|
5141
5136
|
}
|
|
5142
5137
|
function ke(t2) {
|
|
5143
5138
|
if (t2 && 0 === t2.length)
|
|
@@ -5164,7 +5159,7 @@ proj4Src.exports = function() {
|
|
|
5164
5159
|
}
|
|
5165
5160
|
function Fe(t2, e2) {
|
|
5166
5161
|
for (var s2 = Ce.charCodeAt(e2 - 1), i2 = 1e5, r2 = false; s2 !== t2.charCodeAt(0); ) {
|
|
5167
|
-
if (++s2 === be && s2++, s2 ===
|
|
5162
|
+
if (++s2 === be && s2++, s2 === Ae && s2++, s2 > Te) {
|
|
5168
5163
|
if (r2)
|
|
5169
5164
|
throw "Bad character: " + t2;
|
|
5170
5165
|
s2 = Pe, r2 = true;
|
|
@@ -5177,7 +5172,7 @@ proj4Src.exports = function() {
|
|
|
5177
5172
|
if (t2 > "V")
|
|
5178
5173
|
throw "MGRSPoint given invalid Northing " + t2;
|
|
5179
5174
|
for (var s2 = Ee.charCodeAt(e2 - 1), i2 = 0, r2 = false; s2 !== t2.charCodeAt(0); ) {
|
|
5180
|
-
if (++s2 === be && s2++, s2 ===
|
|
5175
|
+
if (++s2 === be && s2++, s2 === Ae && s2++, s2 > ve) {
|
|
5181
5176
|
if (r2)
|
|
5182
5177
|
throw "Bad character: " + t2;
|
|
5183
5178
|
s2 = Pe, r2 = true;
|
|
@@ -5409,13 +5404,13 @@ proj4Src.exports = function() {
|
|
|
5409
5404
|
}
|
|
5410
5405
|
return t2;
|
|
5411
5406
|
}
|
|
5412
|
-
function
|
|
5407
|
+
function As() {
|
|
5413
5408
|
var t2 = bs(this.zone, this.long0);
|
|
5414
5409
|
if (void 0 === t2)
|
|
5415
5410
|
throw new Error("unknown utm zone");
|
|
5416
5411
|
this.lat0 = 0, this.long0 = (6 * Math.abs(t2) - 183) * p, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, Ps.init.apply(this), this.forward = Ps.forward, this.inverse = Ps.inverse;
|
|
5417
5412
|
}
|
|
5418
|
-
var
|
|
5413
|
+
var vs = { init: As, names: ["Universal Transverse Mercator System", "utm"], dependsOn: "etmerc" };
|
|
5419
5414
|
function Ts(t2, e2) {
|
|
5420
5415
|
return Math.pow((1 - t2) / (1 + t2), e2);
|
|
5421
5416
|
}
|
|
@@ -5501,7 +5496,7 @@ proj4Src.exports = function() {
|
|
|
5501
5496
|
var Ys = { init: Fs, forward: Us, inverse: Ws, names: ["somerc"] }, Qs = 1e-7;
|
|
5502
5497
|
function Xs(t2) {
|
|
5503
5498
|
var e2 = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], s2 = "object" == typeof t2.projName ? Object.keys(t2.projName)[0] : t2.projName;
|
|
5504
|
-
return "no_uoff" in t2 || "no_off" in t2 || -1 !== e2.indexOf(s2) || -1 !== e2.indexOf(
|
|
5499
|
+
return "no_uoff" in t2 || "no_off" in t2 || -1 !== e2.indexOf(s2) || -1 !== e2.indexOf(vt(s2));
|
|
5505
5500
|
}
|
|
5506
5501
|
function Hs() {
|
|
5507
5502
|
var t2, e2, s2, i2, r2, a2, n2, o2, h2, c2, u2, d2 = 0, _2 = 0, p2 = 0, f2 = 0, M2 = 0, x2 = 0, w2 = 0;
|
|
@@ -5744,10 +5739,10 @@ proj4Src.exports = function() {
|
|
|
5744
5739
|
}
|
|
5745
5740
|
return t2.x = ft(this.long0 + e2), t2.y = s2, t2;
|
|
5746
5741
|
}
|
|
5747
|
-
var Ei = 0.3333333333333333, Pi = 0.17222222222222222, bi = 0.10257936507936508,
|
|
5742
|
+
var Ei = 0.3333333333333333, Pi = 0.17222222222222222, bi = 0.10257936507936508, Ai = 0.06388888888888888, vi = 0.0664021164021164, Ti = 0.016415012942191543;
|
|
5748
5743
|
function Ii(t2) {
|
|
5749
5744
|
var e2, s2 = [];
|
|
5750
|
-
return s2[0] = t2 * Ei, e2 = t2 * t2, s2[0] += e2 * Pi, s2[1] = e2 *
|
|
5745
|
+
return s2[0] = t2 * Ei, e2 = t2 * t2, s2[0] += e2 * Pi, s2[1] = e2 * Ai, e2 *= t2, s2[0] += e2 * bi, s2[1] += e2 * vi, s2[2] = e2 * Ti, s2;
|
|
5751
5746
|
}
|
|
5752
5747
|
function zi(t2, e2) {
|
|
5753
5748
|
var s2 = t2 + t2;
|
|
@@ -5904,8 +5899,8 @@ proj4Src.exports = function() {
|
|
|
5904
5899
|
var S2 = u2, C2 = d2, E2 = 1, P2 = 0;
|
|
5905
5900
|
for (e2 = 1; e2 <= 9; e2++)
|
|
5906
5901
|
E2 *= S2, P2 += this.D[e2] * E2;
|
|
5907
|
-
var b2 = this.lat0 + P2 * c * 1e5,
|
|
5908
|
-
return t2.x =
|
|
5902
|
+
var b2 = this.lat0 + P2 * c * 1e5, A3 = this.long0 + C2;
|
|
5903
|
+
return t2.x = A3, t2.y = b2, t2;
|
|
5909
5904
|
}
|
|
5910
5905
|
var nr = { init: ir, forward: rr, inverse: ar, names: ["New_Zealand_Map_Grid", "nzmg"] };
|
|
5911
5906
|
function or() {
|
|
@@ -6005,9 +6000,9 @@ proj4Src.exports = function() {
|
|
|
6005
6000
|
var e2, s2, i2, r2, a2, n2, o2, h2, c2, l2, u2, d2;
|
|
6006
6001
|
return t2.x -= this.x0, t2.y -= this.y0, u2 = Math.PI * this.R, a2 = (i2 = t2.x / u2) * i2 + (r2 = t2.y / u2) * r2, u2 = 3 * (r2 * r2 / (h2 = -2 * (n2 = -Math.abs(r2) * (1 + a2)) + 1 + 2 * r2 * r2 + a2 * a2) + (2 * (o2 = n2 - 2 * r2 * r2 + i2 * i2) * o2 * o2 / h2 / h2 / h2 - 9 * n2 * o2 / h2 / h2) / 27) / (c2 = (n2 - o2 * o2 / 3 / h2) / h2) / (l2 = 2 * Math.sqrt(-c2 / 3)), Math.abs(u2) > 1 && (u2 = u2 >= 0 ? 1 : -1), d2 = Math.acos(u2) / 3, s2 = t2.y >= 0 ? (-l2 * Math.cos(d2 + Math.PI / 3) - o2 / 3 / h2) * Math.PI : -(-l2 * Math.cos(d2 + Math.PI / 3) - o2 / 3 / h2) * Math.PI, e2 = Math.abs(i2) < m ? this.long0 : ft(this.long0 + Math.PI * (a2 - 1 + Math.sqrt(1 + 2 * (i2 * i2 - r2 * r2) + a2 * a2)) / 2 / i2), t2.x = e2, t2.y = s2, t2;
|
|
6007
6002
|
}
|
|
6008
|
-
var
|
|
6003
|
+
var Ar, vr = { init: Er, forward: Pr, inverse: br, names: ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"] }, Tr = { exports: {} };
|
|
6009
6004
|
function Ir() {
|
|
6010
|
-
return
|
|
6005
|
+
return Ar || (Ar = 1, function(t2) {
|
|
6011
6006
|
var e2, s2, i2, r2;
|
|
6012
6007
|
e2 = function(e3) {
|
|
6013
6008
|
t2.exports ? t2.exports = e3 : window.geodesic = e3;
|
|
@@ -6108,8 +6103,8 @@ proj4Src.exports = function() {
|
|
|
6108
6103
|
this._s = e3.remainder(this._s, t4), this.Add(0);
|
|
6109
6104
|
};
|
|
6110
6105
|
}(r2.Accumulator, r2.Math), r2.Geodesic = {}, r2.GeodesicLine = {}, r2.PolygonArea = {}, function(t3, e3, s3, i3, r3) {
|
|
6111
|
-
var a2, n2, o2, h2, c2, l2, u2, d2, _2, m2, p2, f2 = 6, y2 = f2, g2 = f2, M2 = f2, x2 = M2, w2 = 20, S2 = w2 + i3.digits + 10, C2 = i3.epsilon, E2 = 200 * C2, P2 = Math.sqrt(C2), b2 = C2,
|
|
6112
|
-
t3.tiny_ = Math.sqrt(Number.MIN_VALUE / Number.EPSILON), t3.nC1_ = f2, t3.nC1p_ = f2, t3.nC2_ = f2, t3.nC3_ = f2, t3.nC4_ = f2, a2 = t3.nC3_ * (t3.nC3_ - 1) / 2, n2 = t3.nC4_ * (t3.nC4_ + 1) / 2, t3.CAP_C1 = 1, t3.CAP_C1p = 2, t3.CAP_C2 = 4, t3.CAP_C3 = 8, t3.CAP_C4 = 16, t3.NONE = 0, t3.ARC = 64, t3.LATITUDE = 128 |
|
|
6106
|
+
var a2, n2, o2, h2, c2, l2, u2, d2, _2, m2, p2, f2 = 6, y2 = f2, g2 = f2, M2 = f2, x2 = M2, w2 = 20, S2 = w2 + i3.digits + 10, C2 = i3.epsilon, E2 = 200 * C2, P2 = Math.sqrt(C2), b2 = C2, A3 = 1e3 * P2, v2 = 0, T2 = 31, I2 = 32640;
|
|
6107
|
+
t3.tiny_ = Math.sqrt(Number.MIN_VALUE / Number.EPSILON), t3.nC1_ = f2, t3.nC1p_ = f2, t3.nC2_ = f2, t3.nC3_ = f2, t3.nC4_ = f2, a2 = t3.nC3_ * (t3.nC3_ - 1) / 2, n2 = t3.nC4_ * (t3.nC4_ + 1) / 2, t3.CAP_C1 = 1, t3.CAP_C1p = 2, t3.CAP_C2 = 4, t3.CAP_C3 = 8, t3.CAP_C4 = 16, t3.NONE = 0, t3.ARC = 64, t3.LATITUDE = 128 | v2, t3.LONGITUDE = 256 | t3.CAP_C3, t3.AZIMUTH = 512 | v2, t3.DISTANCE = 1024 | t3.CAP_C1, t3.STANDARD = t3.LATITUDE | t3.LONGITUDE | t3.AZIMUTH | t3.DISTANCE, t3.DISTANCE_IN = 2048 | t3.CAP_C1 | t3.CAP_C1p, t3.REDUCEDLENGTH = 4096 | t3.CAP_C1 | t3.CAP_C2, t3.GEODESICSCALE = 8192 | t3.CAP_C1 | t3.CAP_C2, t3.AREA = 16384 | t3.CAP_C4, t3.ALL = I2 | T2, t3.LONG_UNROLL = 32768, t3.OUT_MASK = I2 | t3.LONG_UNROLL, t3.SinCosSeries = function(t4, e4, s4, i4) {
|
|
6113
6108
|
var r4 = i4.length, a3 = r4 - (t4 ? 1 : 0), n3 = 2 * (s4 - e4) * (s4 + e4), o3 = 1 & a3 ? i4[--r4] : 0, h3 = 0;
|
|
6114
6109
|
for (a3 = Math.floor(a3 / 2); a3--; )
|
|
6115
6110
|
o3 = n3 * (h3 = n3 * o3 - h3 + i4[--r4]) - o3 + i4[--r4];
|
|
@@ -6176,25 +6171,25 @@ proj4Src.exports = function() {
|
|
|
6176
6171
|
}
|
|
6177
6172
|
return u3 & t3.REDUCEDLENGTH && (g3.m0 = M3, g3.m12b = h3 * (r4 * n3) - a3 * (i4 * o3) - r4 * o3 * x3), u3 & t3.GEODESICSCALE && (f3 = r4 * o3 + i4 * n3, y3 = this._ep2 * (c3 - l3) * (c3 + l3) / (a3 + h3), g3.M12 = f3 + (y3 * n3 - o3 * x3) * i4 / a3, g3.M21 = f3 - (y3 * i4 - r4 * x3) * n3 / h3), g3;
|
|
6178
6173
|
}, t3.Geodesic.prototype.InverseStart = function(e4, s4, r4, a3, n3, h3, c3, l3, u3, d3, _3) {
|
|
6179
|
-
var m3, p3, f3, y3, g3, M3, x3, w3, S3, C3, P3, b3,
|
|
6180
|
-
return L2.sig12 = -1, m3 = a3 * s4, m3 += n3 * e4, (p3 = V2 >= 0 && $2 < 0.5 && n3 * c3 < 0.5) ? (y3 = i3.sq(e4 + a3), y3 /= y3 + i3.sq(s4 + n3), L2.dnm = Math.sqrt(1 + this._ep2 * y3), f3 = c3 / (this._f1 * L2.dnm), g3 = Math.sin(f3), M3 = Math.cos(f3)) : (g3 = l3, M3 = u3), L2.salp1 = n3 * g3, L2.calp1 = M3 >= 0 ? $2 + n3 * e4 * i3.sq(g3) / (1 + M3) : m3 - n3 * e4 * i3.sq(g3) / (1 - M3), w3 = i3.hypot(L2.salp1, L2.calp1), S3 = e4 * a3 + s4 * n3 * M3, p3 && w3 < this._etol2 ? (L2.salp2 = s4 * g3, L2.calp2 = $2 - s4 * a3 * (M3 >= 0 ? i3.sq(g3) / (1 + M3) : 1 - M3), x3 = i3.hypot(L2.salp2, L2.calp2), L2.salp2 /= x3, L2.calp2 /= x3, L2.sig12 = Math.atan2(w3, S3)) : Math.abs(this._n) > 0.1 || S3 >= 0 || w3 >= 6 * Math.abs(this._n) * Math.PI * i3.sq(s4) || (R2 = Math.atan2(-l3, -u3), this.f >= 0 ? (T3 = (
|
|
6174
|
+
var m3, p3, f3, y3, g3, M3, x3, w3, S3, C3, P3, b3, v3, T3, I3, z2, O2, N2, G2, R2, L2 = {}, $2 = a3 * s4 - n3 * e4, V2 = n3 * s4 + a3 * e4;
|
|
6175
|
+
return L2.sig12 = -1, m3 = a3 * s4, m3 += n3 * e4, (p3 = V2 >= 0 && $2 < 0.5 && n3 * c3 < 0.5) ? (y3 = i3.sq(e4 + a3), y3 /= y3 + i3.sq(s4 + n3), L2.dnm = Math.sqrt(1 + this._ep2 * y3), f3 = c3 / (this._f1 * L2.dnm), g3 = Math.sin(f3), M3 = Math.cos(f3)) : (g3 = l3, M3 = u3), L2.salp1 = n3 * g3, L2.calp1 = M3 >= 0 ? $2 + n3 * e4 * i3.sq(g3) / (1 + M3) : m3 - n3 * e4 * i3.sq(g3) / (1 - M3), w3 = i3.hypot(L2.salp1, L2.calp1), S3 = e4 * a3 + s4 * n3 * M3, p3 && w3 < this._etol2 ? (L2.salp2 = s4 * g3, L2.calp2 = $2 - s4 * a3 * (M3 >= 0 ? i3.sq(g3) / (1 + M3) : 1 - M3), x3 = i3.hypot(L2.salp2, L2.calp2), L2.salp2 /= x3, L2.calp2 /= x3, L2.sig12 = Math.atan2(w3, S3)) : Math.abs(this._n) > 0.1 || S3 >= 0 || w3 >= 6 * Math.abs(this._n) * Math.PI * i3.sq(s4) || (R2 = Math.atan2(-l3, -u3), this.f >= 0 ? (T3 = (v3 = i3.sq(e4) * this._ep2) / (2 * (1 + Math.sqrt(1 + v3)) + v3), C3 = R2 / (b3 = this.f * s4 * this.A3f(T3) * Math.PI), P3 = m3 / (b3 * s4)) : (I3 = n3 * s4 - a3 * e4, z2 = Math.atan2(m3, I3), P3 = c3 / (b3 = ((C3 = (O2 = this.Lengths(this._n, Math.PI + z2, e4, -s4, r4, a3, n3, h3, s4, n3, t3.REDUCEDLENGTH, d3, _3)).m12b / (s4 * n3 * O2.m0 * Math.PI) - 1) < -0.01 ? m3 / C3 : -this.f * i3.sq(s4) * Math.PI) / s4)), P3 > -E2 && C3 > -1 - A3 ? this.f >= 0 ? (L2.salp1 = Math.min(1, -C3), L2.calp1 = -Math.sqrt(1 - i3.sq(L2.salp1))) : (L2.calp1 = Math.max(C3 > -E2 ? 0 : -1, C3), L2.salp1 = Math.sqrt(1 - i3.sq(L2.calp1))) : (N2 = o2(C3, P3), G2 = b3 * (this.f >= 0 ? -C3 * N2 / (1 + N2) : -P3 * (1 + N2) / N2), g3 = Math.sin(G2), M3 = -Math.cos(G2), L2.salp1 = n3 * g3, L2.calp1 = m3 - n3 * e4 * i3.sq(g3) / (1 - M3))), L2.salp1 <= 0 ? (L2.salp1 = 1, L2.calp1 = 0) : (x3 = i3.hypot(L2.salp1, L2.calp1), L2.salp1 /= x3, L2.calp1 /= x3), L2;
|
|
6181
6176
|
}, t3.Geodesic.prototype.Lambda12 = function(e4, s4, r4, a3, n3, o3, h3, c3, l3, u3, d3, _3, m3, p3) {
|
|
6182
|
-
var f3, y3, g3, M3, x3, w3, S3, C3, E3, P3, b3,
|
|
6183
|
-
return 0 === e4 && 0 === c3 && (c3 = -t3.tiny_), y3 = h3 * s4, g3 = i3.hypot(c3, h3 * e4), T3.ssig1 = e4, M3 = y3 * e4, T3.csig1 = x3 = c3 * s4, f3 = i3.hypot(T3.ssig1, T3.csig1), T3.ssig1 /= f3, T3.csig1 /= f3, T3.salp2 = n3 !== s4 ? y3 / n3 : h3, T3.calp2 = n3 !== s4 || Math.abs(a3) !== -e4 ? Math.sqrt(i3.sq(c3 * s4) + (s4 < -e4 ? (n3 - s4) * (s4 + n3) : (e4 - a3) * (e4 + a3))) / n3 : Math.abs(c3), T3.ssig2 = a3, w3 = y3 * a3, T3.csig2 = S3 = T3.calp2 * n3, f3 = i3.hypot(T3.ssig2, T3.csig2), T3.ssig2 /= f3, T3.csig2 /= f3, T3.sig12 = Math.atan2(Math.max(0, T3.csig1 * T3.ssig2 - T3.ssig1 * T3.csig2), T3.csig1 * T3.csig2 + T3.ssig1 * T3.ssig2), C3 = Math.max(0, x3 * w3 - M3 * S3), E3 = x3 * S3 + M3 * w3, b3 = Math.atan2(C3 * u3 - E3 * l3, E3 * u3 + C3 * l3),
|
|
6177
|
+
var f3, y3, g3, M3, x3, w3, S3, C3, E3, P3, b3, A4, v3, T3 = {};
|
|
6178
|
+
return 0 === e4 && 0 === c3 && (c3 = -t3.tiny_), y3 = h3 * s4, g3 = i3.hypot(c3, h3 * e4), T3.ssig1 = e4, M3 = y3 * e4, T3.csig1 = x3 = c3 * s4, f3 = i3.hypot(T3.ssig1, T3.csig1), T3.ssig1 /= f3, T3.csig1 /= f3, T3.salp2 = n3 !== s4 ? y3 / n3 : h3, T3.calp2 = n3 !== s4 || Math.abs(a3) !== -e4 ? Math.sqrt(i3.sq(c3 * s4) + (s4 < -e4 ? (n3 - s4) * (s4 + n3) : (e4 - a3) * (e4 + a3))) / n3 : Math.abs(c3), T3.ssig2 = a3, w3 = y3 * a3, T3.csig2 = S3 = T3.calp2 * n3, f3 = i3.hypot(T3.ssig2, T3.csig2), T3.ssig2 /= f3, T3.csig2 /= f3, T3.sig12 = Math.atan2(Math.max(0, T3.csig1 * T3.ssig2 - T3.ssig1 * T3.csig2), T3.csig1 * T3.csig2 + T3.ssig1 * T3.ssig2), C3 = Math.max(0, x3 * w3 - M3 * S3), E3 = x3 * S3 + M3 * w3, b3 = Math.atan2(C3 * u3 - E3 * l3, E3 * u3 + C3 * l3), A4 = i3.sq(g3) * this._ep2, T3.eps = A4 / (2 * (1 + Math.sqrt(1 + A4)) + A4), this.C3f(T3.eps, p3), P3 = t3.SinCosSeries(true, T3.ssig2, T3.csig2, p3) - t3.SinCosSeries(true, T3.ssig1, T3.csig1, p3), T3.domg12 = -this.f * this.A3f(T3.eps) * y3 * (T3.sig12 + P3), T3.lam12 = b3 + T3.domg12, d3 && (0 === T3.calp2 ? T3.dlam12 = -2 * this._f1 * r4 / e4 : (v3 = this.Lengths(T3.eps, T3.sig12, T3.ssig1, T3.csig1, r4, T3.ssig2, T3.csig2, o3, s4, n3, t3.REDUCEDLENGTH, _3, m3), T3.dlam12 = v3.m12b, T3.dlam12 *= this._f1 / (T3.calp2 * n3))), T3;
|
|
6184
6179
|
}, t3.Geodesic.prototype.Inverse = function(e4, s4, r4, a3, n3) {
|
|
6185
6180
|
var o3, h3;
|
|
6186
6181
|
return n3 || (n3 = t3.STANDARD), n3 === t3.LONG_UNROLL && (n3 |= t3.STANDARD), n3 &= t3.OUT_MASK, h3 = (o3 = this.InverseInt(e4, s4, r4, a3, n3)).vals, n3 & t3.AZIMUTH && (h3.azi1 = i3.atan2d(o3.salp1, o3.calp1), h3.azi2 = i3.atan2d(o3.salp2, o3.calp2)), h3;
|
|
6187
6182
|
}, t3.Geodesic.prototype.InverseInt = function(e4, s4, r4, a3, n3) {
|
|
6188
|
-
var o3, h3, c3, l3, u3, d3, _3, m3, p3, f3, y3, g3, M3, x3, E3, P3,
|
|
6189
|
-
if (St2.lat1 = e4 = i3.LatFix(e4), St2.lat2 = r4 = i3.LatFix(r4), e4 = i3.AngRound(e4), r4 = i3.AngRound(r4), h3 = (o3 = i3.AngDiff(s4, a3)).e, o3 = o3.d, n3 & t3.LONG_UNROLL ? (St2.lon1 = s4, St2.lon2 = s4 + o3 + h3) : (St2.lon1 = i3.AngNormalize(s4), St2.lon2 = i3.AngNormalize(a3)), h3 *= c3 = i3.copysign(1, o3), E3 = (o3 *= c3) * i3.degree, P3 = (l3 = i3.sincosde(o3, h3)).s,
|
|
6190
|
-
T3 = z2 = 0, I3 = O2 = 1, y3 = this.a * E3,
|
|
6183
|
+
var o3, h3, c3, l3, u3, d3, _3, m3, p3, f3, y3, g3, M3, x3, E3, P3, A4, v3, T3, I3, z2, O2, N2, G2, R2, L2, $2, V2, q2, j2, D2, B2, k2, F2, U2, W2, Y2, Q2, X2, H2, Z2, K2, J2, tt2, et2, st2, it2, rt2, at2, nt2, ot2, ht2, ct2, lt2, ut2, dt2, _t2, mt2, pt2, ft2, yt2, gt2, Mt2, xt2, wt2, St2 = {};
|
|
6184
|
+
if (St2.lat1 = e4 = i3.LatFix(e4), St2.lat2 = r4 = i3.LatFix(r4), e4 = i3.AngRound(e4), r4 = i3.AngRound(r4), h3 = (o3 = i3.AngDiff(s4, a3)).e, o3 = o3.d, n3 & t3.LONG_UNROLL ? (St2.lon1 = s4, St2.lon2 = s4 + o3 + h3) : (St2.lon1 = i3.AngNormalize(s4), St2.lon2 = i3.AngNormalize(a3)), h3 *= c3 = i3.copysign(1, o3), E3 = (o3 *= c3) * i3.degree, P3 = (l3 = i3.sincosde(o3, h3)).s, A4 = l3.c, h3 = 180 - o3 - h3, (u3 = Math.abs(e4) < Math.abs(r4) || isNaN(r4) ? -1 : 1) < 0 && (c3 *= -1, [r4, e4] = [e4, r4]), e4 *= d3 = i3.copysign(1, -e4), r4 *= d3, l3 = i3.sincosd(e4), _3 = this._f1 * l3.s, m3 = l3.c, _3 /= l3 = i3.hypot(_3, m3), m3 /= l3, m3 = Math.max(t3.tiny_, m3), l3 = i3.sincosd(r4), p3 = this._f1 * l3.s, f3 = l3.c, p3 /= l3 = i3.hypot(p3, f3), f3 /= l3, f3 = Math.max(t3.tiny_, f3), m3 < -_3 ? f3 === m3 && (p3 = i3.copysign(_3, p3)) : Math.abs(p3) === -_3 && (f3 = m3), M3 = Math.sqrt(1 + this._ep2 * i3.sq(_3)), x3 = Math.sqrt(1 + this._ep2 * i3.sq(p3)), N2 = new Array(t3.nC1_ + 1), G2 = new Array(t3.nC2_ + 1), R2 = new Array(t3.nC3_), (L2 = -90 === e4 || 0 === P3) && (I3 = P3, O2 = 0, V2 = _3, q2 = (T3 = A4) * m3, j2 = p3, D2 = (z2 = 1) * f3, v3 = Math.atan2(Math.max(0, q2 * j2 - V2 * D2), q2 * D2 + V2 * j2), y3 = ($2 = this.Lengths(this._n, v3, V2, q2, M3, j2, D2, x3, m3, f3, n3 | t3.DISTANCE | t3.REDUCEDLENGTH, N2, G2)).s12b, g3 = $2.m12b, n3 & t3.GEODESICSCALE && (St2.M12 = $2.M12, St2.M21 = $2.M21), v3 < 1 || g3 >= 0 ? ((v3 < 3 * t3.tiny_ || v3 < C2 && (y3 < 0 || g3 < 0)) && (v3 = g3 = y3 = 0), g3 *= this._b, y3 *= this._b, St2.a12 = v3 / i3.degree) : L2 = false), _t2 = 2, !L2 && 0 === _3 && (this.f <= 0 || h3 >= 180 * this.f))
|
|
6185
|
+
T3 = z2 = 0, I3 = O2 = 1, y3 = this.a * E3, v3 = k2 = E3 / this._f1, g3 = this._b * Math.sin(v3), n3 & t3.GEODESICSCALE && (St2.M12 = St2.M21 = Math.cos(v3)), St2.a12 = o3 / this._f1;
|
|
6191
6186
|
else if (!L2)
|
|
6192
|
-
if (
|
|
6193
|
-
O2 = $2.salp2, z2 = $2.calp2, F2 = $2.dnm, y3 =
|
|
6187
|
+
if (v3 = ($2 = this.InverseStart(_3, m3, M3, p3, f3, x3, E3, P3, A4, N2, G2)).sig12, I3 = $2.salp1, T3 = $2.calp1, v3 >= 0)
|
|
6188
|
+
O2 = $2.salp2, z2 = $2.calp2, F2 = $2.dnm, y3 = v3 * this._b * F2, g3 = i3.sq(F2) * this._b * Math.sin(v3 / F2), n3 & t3.GEODESICSCALE && (St2.M12 = St2.M21 = Math.cos(v3 / F2)), St2.a12 = v3 / i3.degree, k2 = E3 / (this._f1 * F2);
|
|
6194
6189
|
else {
|
|
6195
|
-
for (U2 = 0, W2 = t3.tiny_, Y2 = 1, Q2 = t3.tiny_, X2 = -1, H2 = false, Z2 = false; K2 = ($2 = this.Lambda12(_3, m3, M3, p3, f3, x3, I3, T3, P3,
|
|
6190
|
+
for (U2 = 0, W2 = t3.tiny_, Y2 = 1, Q2 = t3.tiny_, X2 = -1, H2 = false, Z2 = false; K2 = ($2 = this.Lambda12(_3, m3, M3, p3, f3, x3, I3, T3, P3, A4, U2 < w2, N2, G2, R2)).lam12, O2 = $2.salp2, z2 = $2.calp2, v3 = $2.sig12, V2 = $2.ssig1, q2 = $2.csig1, j2 = $2.ssig2, D2 = $2.csig2, B2 = $2.eps, pt2 = $2.domg12, J2 = $2.dlam12, !Z2 && Math.abs(K2) >= (H2 ? 8 : 1) * C2 && U2 != S2; ++U2)
|
|
6196
6191
|
K2 > 0 && (U2 < w2 || T3 / I3 > X2 / Q2) ? (Q2 = I3, X2 = T3) : K2 < 0 && (U2 < w2 || T3 / I3 < Y2 / W2) && (W2 = I3, Y2 = T3), U2 < w2 && J2 > 0 && (tt2 = -K2 / J2, Math.abs(tt2) < Math.PI && (et2 = Math.sin(tt2), (it2 = I3 * (st2 = Math.cos(tt2)) + T3 * et2) > 0)) ? (T3 = T3 * st2 - I3 * et2, I3 = it2, I3 /= l3 = i3.hypot(I3, T3), T3 /= l3, H2 = Math.abs(K2) <= 16 * C2) : (I3 = (W2 + Q2) / 2, T3 = (Y2 + X2) / 2, I3 /= l3 = i3.hypot(I3, T3), T3 /= l3, H2 = false, Z2 = Math.abs(W2 - I3) + (Y2 - T3) < b2 || Math.abs(I3 - Q2) + (T3 - X2) < b2);
|
|
6197
|
-
rt2 = n3 | (n3 & (t3.REDUCEDLENGTH | t3.GEODESICSCALE) ? t3.DISTANCE : t3.NONE), y3 = ($2 = this.Lengths(B2,
|
|
6192
|
+
rt2 = n3 | (n3 & (t3.REDUCEDLENGTH | t3.GEODESICSCALE) ? t3.DISTANCE : t3.NONE), y3 = ($2 = this.Lengths(B2, v3, V2, q2, M3, j2, D2, x3, m3, f3, rt2, N2, G2)).s12b, g3 = $2.m12b, n3 & t3.GEODESICSCALE && (St2.M12 = $2.M12, St2.M21 = $2.M21), g3 *= this._b, y3 *= this._b, St2.a12 = v3 / i3.degree, n3 & t3.AREA && (xt2 = Math.sin(pt2), _t2 = P3 * (wt2 = Math.cos(pt2)) - A4 * xt2, mt2 = A4 * wt2 + P3 * xt2);
|
|
6198
6193
|
}
|
|
6199
6194
|
return n3 & t3.DISTANCE && (St2.s12 = 0 + y3), n3 & t3.REDUCEDLENGTH && (St2.m12 = 0 + g3), n3 & t3.AREA && (at2 = I3 * m3, 0 !== (nt2 = i3.hypot(T3, I3 * _3)) && 0 !== at2 ? (V2 = _3, q2 = T3 * m3, j2 = p3, D2 = z2 * f3, B2 = (ht2 = i3.sq(nt2) * this._ep2) / (2 * (1 + Math.sqrt(1 + ht2)) + ht2), ct2 = i3.sq(this.a) * nt2 * at2 * this._e2, V2 /= l3 = i3.hypot(V2, q2), q2 /= l3, j2 /= l3 = i3.hypot(j2, D2), D2 /= l3, lt2 = new Array(t3.nC4_), this.C4f(B2, lt2), ut2 = t3.SinCosSeries(false, V2, q2, lt2), dt2 = t3.SinCosSeries(false, j2, D2, lt2), St2.S12 = ct2 * (dt2 - ut2)) : St2.S12 = 0, L2 || 2 != _t2 || (_t2 = Math.sin(k2), mt2 = Math.cos(k2)), !L2 && mt2 > -0.7071 && p3 - _3 < 1.75 ? (pt2 = 1 + mt2, ft2 = 1 + m3, yt2 = 1 + f3, ot2 = 2 * Math.atan2(_t2 * (_3 * yt2 + p3 * ft2), pt2 * (_3 * p3 + ft2 * yt2))) : (Mt2 = z2 * T3 + O2 * I3, 0 === (gt2 = O2 * T3 - z2 * I3) && Mt2 < 0 && (gt2 = t3.tiny_ * T3, Mt2 = -1), ot2 = Math.atan2(gt2, Mt2)), St2.S12 += this._c2 * ot2, St2.S12 *= u3 * c3 * d3, St2.S12 += 0), u3 < 0 && ([O2, I3] = [I3, O2], [z2, T3] = [T3, z2], n3 & t3.GEODESICSCALE && ([St2.M21, St2.M12] = [St2.M12, St2.M21])), { vals: St2, salp1: I3 *= u3 * c3, calp1: T3 *= u3 * d3, salp2: O2 *= u3 * c3, calp2: z2 *= u3 * d3 };
|
|
6200
6195
|
}, t3.Geodesic.prototype.GenDirect = function(s4, i4, r4, a3, n3, o3) {
|
|
@@ -6223,8 +6218,8 @@ proj4Src.exports = function() {
|
|
|
6223
6218
|
var c2, l2, u2, d2, _2, m2;
|
|
6224
6219
|
n2 || (n2 = t3.STANDARD | t3.DISTANCE_IN), this.a = e4.a, this.f = e4.f, this._b = e4._b, this._c2 = e4._c2, this._f1 = e4._f1, this.caps = n2 | t3.LATITUDE | t3.AZIMUTH | t3.LONG_UNROLL, this.lat1 = s3.LatFix(i3), this.lon1 = r3, void 0 === o2 || void 0 === h2 ? (this.azi1 = s3.AngNormalize(a2), c2 = s3.sincosd(s3.AngRound(this.azi1)), this.salp1 = c2.s, this.calp1 = c2.c) : (this.azi1 = a2, this.salp1 = o2, this.calp1 = h2), c2 = s3.sincosd(s3.AngRound(this.lat1)), u2 = this._f1 * c2.s, l2 = c2.c, u2 /= c2 = s3.hypot(u2, l2), l2 /= c2, l2 = Math.max(t3.tiny_, l2), this._dn1 = Math.sqrt(1 + e4._ep2 * s3.sq(u2)), this._salp0 = this.salp1 * l2, this._calp0 = s3.hypot(this.calp1, this.salp1 * u2), this._ssig1 = u2, this._somg1 = this._salp0 * u2, this._csig1 = this._comg1 = 0 !== u2 || 0 !== this.calp1 ? l2 * this.calp1 : 1, c2 = s3.hypot(this._ssig1, this._csig1), this._ssig1 /= c2, this._csig1 /= c2, this._k2 = s3.sq(this._calp0) * e4._ep2, d2 = this._k2 / (2 * (1 + Math.sqrt(1 + this._k2)) + this._k2), this.caps & t3.CAP_C1 && (this._A1m1 = t3.A1m1f(d2), this._C1a = new Array(t3.nC1_ + 1), t3.C1f(d2, this._C1a), this._B11 = t3.SinCosSeries(true, this._ssig1, this._csig1, this._C1a), _2 = Math.sin(this._B11), m2 = Math.cos(this._B11), this._stau1 = this._ssig1 * m2 + this._csig1 * _2, this._ctau1 = this._csig1 * m2 - this._ssig1 * _2), this.caps & t3.CAP_C1p && (this._C1pa = new Array(t3.nC1p_ + 1), t3.C1pf(d2, this._C1pa)), this.caps & t3.CAP_C2 && (this._A2m1 = t3.A2m1f(d2), this._C2a = new Array(t3.nC2_ + 1), t3.C2f(d2, this._C2a), this._B21 = t3.SinCosSeries(true, this._ssig1, this._csig1, this._C2a)), this.caps & t3.CAP_C3 && (this._C3a = new Array(t3.nC3_), e4.C3f(d2, this._C3a), this._A3c = -this.f * this._salp0 * e4.A3f(d2), this._B31 = t3.SinCosSeries(true, this._ssig1, this._csig1, this._C3a)), this.caps & t3.CAP_C4 && (this._C4a = new Array(t3.nC4_), e4.C4f(d2, this._C4a), this._A4 = s3.sq(this.a) * this._calp0 * this._salp0 * e4._e2, this._B41 = t3.SinCosSeries(false, this._ssig1, this._csig1, this._C4a)), this.a13 = this.s13 = NaN;
|
|
6225
6220
|
}, e3.GeodesicLine.prototype.GenPosition = function(e4, i3, r3) {
|
|
6226
|
-
var a2, n2, o2, h2, c2, l2, u2, d2, _2, m2, p2, f2, y2, g2, M2, x2, w2, S2, C2, E2, P2, b2,
|
|
6227
|
-
return r3 ? r3 === t3.LONG_UNROLL && (r3 |= t3.STANDARD) : r3 = t3.STANDARD, r3 &= this.caps & t3.OUT_MASK, z2.lat1 = this.lat1, z2.azi1 = this.azi1, z2.lon1 = r3 & t3.LONG_UNROLL ? this.lon1 : s3.AngNormalize(this.lon1), e4 ? z2.a12 = i3 : z2.s12 = i3, e4 || this.caps & t3.DISTANCE_IN & t3.OUT_MASK ? (h2 = 0, c2 = 0, e4 ? (a2 = i3 * s3.degree, n2 = (
|
|
6221
|
+
var a2, n2, o2, h2, c2, l2, u2, d2, _2, m2, p2, f2, y2, g2, M2, x2, w2, S2, C2, E2, P2, b2, A3, v2, T2, I2, z2 = {};
|
|
6222
|
+
return r3 ? r3 === t3.LONG_UNROLL && (r3 |= t3.STANDARD) : r3 = t3.STANDARD, r3 &= this.caps & t3.OUT_MASK, z2.lat1 = this.lat1, z2.azi1 = this.azi1, z2.lon1 = r3 & t3.LONG_UNROLL ? this.lon1 : s3.AngNormalize(this.lon1), e4 ? z2.a12 = i3 : z2.s12 = i3, e4 || this.caps & t3.DISTANCE_IN & t3.OUT_MASK ? (h2 = 0, c2 = 0, e4 ? (a2 = i3 * s3.degree, n2 = (A3 = s3.sincosd(i3)).s, o2 = A3.c) : (d2 = i3 / (this._b * (1 + this._A1m1)), _2 = Math.sin(d2), m2 = Math.cos(d2), a2 = d2 - ((h2 = -t3.SinCosSeries(true, this._stau1 * m2 + this._ctau1 * _2, this._ctau1 * m2 - this._stau1 * _2, this._C1pa)) - this._B11), n2 = Math.sin(a2), o2 = Math.cos(a2), Math.abs(this.f) > 0.01 && (l2 = this._ssig1 * o2 + this._csig1 * n2, u2 = this._csig1 * o2 - this._ssig1 * n2, h2 = t3.SinCosSeries(true, l2, u2, this._C1a), a2 -= ((1 + this._A1m1) * (a2 + (h2 - this._B11)) - i3 / this._b) / Math.sqrt(1 + this._k2 * s3.sq(l2)), n2 = Math.sin(a2), o2 = Math.cos(a2))), l2 = this._ssig1 * o2 + this._csig1 * n2, u2 = this._csig1 * o2 - this._ssig1 * n2, C2 = Math.sqrt(1 + this._k2 * s3.sq(l2)), r3 & (t3.DISTANCE | t3.REDUCEDLENGTH | t3.GEODESICSCALE) && ((e4 || Math.abs(this.f) > 0.01) && (h2 = t3.SinCosSeries(true, l2, u2, this._C1a)), c2 = (1 + this._A1m1) * (h2 - this._B11)), y2 = this._calp0 * l2, 0 === (g2 = s3.hypot(this._salp0, this._calp0 * u2)) && (g2 = u2 = t3.tiny_), w2 = this._salp0, S2 = this._calp0 * u2, e4 && r3 & t3.DISTANCE && (z2.s12 = this._b * ((1 + this._A1m1) * a2 + c2)), r3 & t3.LONGITUDE && (M2 = this._salp0 * l2, x2 = u2, f2 = s3.copysign(1, this._salp0), p2 = ((r3 & t3.LONG_UNROLL ? f2 * (a2 - (Math.atan2(l2, u2) - Math.atan2(this._ssig1, this._csig1)) + (Math.atan2(f2 * M2, x2) - Math.atan2(f2 * this._somg1, this._comg1))) : Math.atan2(M2 * this._comg1 - x2 * this._somg1, x2 * this._comg1 + M2 * this._somg1)) + this._A3c * (a2 + (t3.SinCosSeries(true, l2, u2, this._C3a) - this._B31))) / s3.degree, z2.lon2 = r3 & t3.LONG_UNROLL ? this.lon1 + p2 : s3.AngNormalize(s3.AngNormalize(this.lon1) + s3.AngNormalize(p2))), r3 & t3.LATITUDE && (z2.lat2 = s3.atan2d(y2, this._f1 * g2)), r3 & t3.AZIMUTH && (z2.azi2 = s3.atan2d(w2, S2)), r3 & (t3.REDUCEDLENGTH | t3.GEODESICSCALE) && (E2 = t3.SinCosSeries(true, l2, u2, this._C2a), P2 = (1 + this._A2m1) * (E2 - this._B21), b2 = (this._A1m1 - this._A2m1) * a2 + (c2 - P2), r3 & t3.REDUCEDLENGTH && (z2.m12 = this._b * (C2 * (this._csig1 * l2) - this._dn1 * (this._ssig1 * u2) - this._csig1 * u2 * b2)), r3 & t3.GEODESICSCALE && (A3 = this._k2 * (l2 - this._ssig1) * (l2 + this._ssig1) / (this._dn1 + C2), z2.M12 = o2 + (A3 * l2 - u2 * b2) * this._ssig1 / this._dn1, z2.M21 = o2 - (A3 * this._ssig1 - this._csig1 * b2) * l2 / C2)), r3 & t3.AREA && (v2 = t3.SinCosSeries(false, l2, u2, this._C4a), 0 === this._calp0 || 0 === this._salp0 ? (T2 = w2 * this.calp1 - S2 * this.salp1, I2 = S2 * this.calp1 + w2 * this.salp1) : (T2 = this._calp0 * this._salp0 * (o2 <= 0 ? this._csig1 * (1 - o2) + n2 * this._ssig1 : n2 * (this._csig1 * n2 / (1 + o2) + this._ssig1)), I2 = s3.sq(this._salp0) + s3.sq(this._calp0) * this._csig1 * u2), z2.S12 = this._c2 * Math.atan2(T2, I2) + this._A4 * (v2 - this._B41)), e4 || (z2.a12 = a2 / s3.degree), z2) : (z2.a12 = NaN, z2);
|
|
6228
6223
|
}, e3.GeodesicLine.prototype.Position = function(t4, e4) {
|
|
6229
6224
|
return this.GenPosition(false, t4, e4);
|
|
6230
6225
|
}, e3.GeodesicLine.prototype.ArcPosition = function(t4, e4) {
|
|
@@ -6507,10 +6502,10 @@ proj4Src.exports = function() {
|
|
|
6507
6502
|
return t2.x = t2.x + this.long0, t2;
|
|
6508
6503
|
}
|
|
6509
6504
|
var wa = { init: ga, forward: Ma, inverse: xa, names: ["Geostationary Satellite View", "Geostationary_Satellite", "geos"] }, Sa = 1.340264, Ca = -0.081106, Ea = 893e-6, Pa = 3796e-6, ba = Math.sqrt(3) / 2;
|
|
6510
|
-
function
|
|
6505
|
+
function Aa() {
|
|
6511
6506
|
this.es = 0, this.long0 = void 0 !== this.long0 ? this.long0 : 0;
|
|
6512
6507
|
}
|
|
6513
|
-
function
|
|
6508
|
+
function va(t2) {
|
|
6514
6509
|
var e2 = ft(t2.x - this.long0), s2 = t2.y, i2 = Math.asin(ba * Math.sin(s2)), r2 = i2 * i2, a2 = r2 * r2 * r2;
|
|
6515
6510
|
return t2.x = e2 * Math.cos(i2) / (ba * (Sa + 3 * Ca * r2 + a2 * (7 * Ea + 9 * Pa * r2))), t2.y = i2 * (Sa + Ca * r2 + a2 * (Ea + Pa * r2)), t2.x = this.a * t2.x + this.x0, t2.y = this.a * t2.y + this.y0, t2;
|
|
6516
6511
|
}
|
|
@@ -6521,7 +6516,7 @@ proj4Src.exports = function() {
|
|
|
6521
6516
|
;
|
|
6522
6517
|
return s2 = (e2 = o2 * o2) * e2 * e2, t2.x = ba * t2.x * (Sa + 3 * Ca * e2 + s2 * (7 * Ea + 9 * Pa * e2)) / Math.cos(o2), t2.y = Math.asin(Math.sin(o2) / ba), t2.x = ft(t2.x + this.long0), t2;
|
|
6523
6518
|
}
|
|
6524
|
-
var Ia = { init:
|
|
6519
|
+
var Ia = { init: Aa, forward: va, inverse: Ta, names: ["eqearth", "Equal Earth", "Equal_Earth"] }, za = 1e-10;
|
|
6525
6520
|
function Oa() {
|
|
6526
6521
|
var t2;
|
|
6527
6522
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < za)
|
|
@@ -6557,7 +6552,7 @@ proj4Src.exports = function() {
|
|
|
6557
6552
|
}
|
|
6558
6553
|
var $a = { init: Oa, names: ["bonne", "Bonne (Werner lat_1=90)"] };
|
|
6559
6554
|
function Va(t2) {
|
|
6560
|
-
t2.Proj.projections.add(_s), t2.Proj.projections.add(Ps), t2.Proj.projections.add(
|
|
6555
|
+
t2.Proj.projections.add(_s), t2.Proj.projections.add(Ps), t2.Proj.projections.add(vs), t2.Proj.projections.add(Vs), t2.Proj.projections.add(ks), t2.Proj.projections.add(Ys), t2.Proj.projections.add(Js), t2.Proj.projections.add(ii), t2.Proj.projections.add(oi), t2.Proj.projections.add(Mi), t2.Proj.projections.add(Oi), t2.Proj.projections.add(Vi), t2.Proj.projections.add(Bi), t2.Proj.projections.add(Yi), t2.Proj.projections.add(Zi), t2.Proj.projections.add(sr), t2.Proj.projections.add(nr), t2.Proj.projections.add(lr), t2.Proj.projections.add(pr), t2.Proj.projections.add(Mr), t2.Proj.projections.add(Cr), t2.Proj.projections.add(vr), t2.Proj.projections.add(Rr), t2.Proj.projections.add(qr), t2.Proj.projections.add(Yr), t2.Proj.projections.add(oa), t2.Proj.projections.add(ua), t2.Proj.projections.add(ya), t2.Proj.projections.add(wa), t2.Proj.projections.add(Ia), t2.Proj.projections.add($a);
|
|
6561
6556
|
}
|
|
6562
6557
|
return we.defaultDatum = "WGS84", we.Proj = ee, we.WGS84 = new we.Proj("WGS84"), we.Point = Ye, we.toPoint = _e, we.defs = rt, we.nadgrid = Dt, we.transform = ye, we.mgrs = Ie, we.version = "2.17.0", Va(we), we;
|
|
6563
6558
|
}();
|
|
@@ -6756,7 +6751,7 @@ self.addEventListener("message", (t) => {
|
|
|
6756
6751
|
}), self.handleRequestTile = async (t) => {
|
|
6757
6752
|
const { tileKey: e, fetchOptions: s = {}, workerOptions: i, url: r, z: a, sourceProjectionName: n, targetProjectionName: o, id: h } = t;
|
|
6758
6753
|
t.sourceProjection = getProjection(n), t.targetProjection = getProjection(o);
|
|
6759
|
-
const c = o === PROJECTION_WEB_MERCATOR && n === PROJECTION_WEB_MERCATOR;
|
|
6754
|
+
const c = o === PROJECTION_WEB_MERCATOR && n === PROJECTION_WEB_MERCATOR || o === PROJECTION_BD_MERCATOR && n === PROJECTION_BD_MERCATOR;
|
|
6760
6755
|
t.isNormalized = c;
|
|
6761
6756
|
let l = null, u = 0;
|
|
6762
6757
|
i && (self.displayOptions = i.displayOptions, self.zIndex = i.height, i.isAttach && (self.isAttach = !!i.isAttach, ATTACH_SCALE = 1));
|
|
@@ -6793,7 +6788,7 @@ self.addEventListener("message", (t) => {
|
|
|
6793
6788
|
};
|
|
6794
6789
|
let layerIndex = 0;
|
|
6795
6790
|
function parseGeoLayers(t, e, s) {
|
|
6796
|
-
const i = self.displayOptions, r =
|
|
6791
|
+
const i = self.displayOptions || {}, r = false === i.base, a = false === i.link, n = false === i.building, o = false === i.poi, h = true === i.flat, c = t.geolayer, l = e.polygons, u = e.polygonOpacitys, d = e.polygon3ds, _ = e.lines, m = e.building3ds, p = e.pois, f = e.arrows, y = Math.floor(s.useZoom) || s.z;
|
|
6797
6792
|
let g = 0, M = 0, x = null, w = null, S = null, C = null, E = null;
|
|
6798
6793
|
layerIndex = 20 * LAYER_INDEX_DELTA;
|
|
6799
6794
|
const P = s.z < 9 ? getStyleConfig(M, 1522, y, POLYGON_STYLE, s) : getStyleConfig(M, 72, y, POLYGON_STYLE, s);
|
|
@@ -6906,7 +6901,7 @@ function parseGeoLayers(t, e, s) {
|
|
|
6906
6901
|
e3.rank = g, d.push(e3), layerIndex += LAYER_INDEX_DELTA;
|
|
6907
6902
|
}
|
|
6908
6903
|
}
|
|
6909
|
-
if (t.labelp) {
|
|
6904
|
+
if (t.labelp && false !== i.poiText) {
|
|
6910
6905
|
let e2 = t.labelp;
|
|
6911
6906
|
for (let t2 = 0; t2 < e2.length; t2++) {
|
|
6912
6907
|
const i2 = e2[t2];
|
|
@@ -7132,18 +7127,20 @@ function convertPOIPosition(t, e, s, i, r) {
|
|
|
7132
7127
|
return _pointIn.x = a / o - 0.5, _pointIn.y = n / o - 0.5, _pointIn.z = s || 0, tileNormalizedPositionToMeter(_pointIn, i, _pointOut), i.isNormalized || (i.sourceProjection.unprojectCoordinate(_pointOut, _pointIn), i.sourceCoordType !== i.targetCoordType && CoordTransformer.transform(i.sourceCoordType, i.targetCoordType, _pointIn, _pointIn), i.targetProjection.projectCoordinate(_pointIn, _pointOut)), r[0] = _pointOut.x, r[1] = _pointOut.y, r[2] = _pointOut.z, r;
|
|
7133
7128
|
}
|
|
7134
7129
|
function createPOI(t, e, s, i) {
|
|
7135
|
-
const r = i.styleText, a = t.name, n = t.direction;
|
|
7136
|
-
let
|
|
7137
|
-
const
|
|
7130
|
+
const r = i.styleText, a = t.name, n = t.direction, o = s.workerOptions.displayOptions || {};
|
|
7131
|
+
let h, c, l = 0, u = 0, d = false;
|
|
7132
|
+
const _ = "" !== a && !!r && false !== o.poiText;
|
|
7138
7133
|
if (i.stylePt) {
|
|
7139
7134
|
let t2 = (i.stylePt.zoom || 100) / 100;
|
|
7140
|
-
|
|
7141
|
-
const e2 = getIconInfo(
|
|
7142
|
-
|
|
7135
|
+
h = i.stylePt.icon;
|
|
7136
|
+
const e2 = getIconInfo(h);
|
|
7137
|
+
d = !(n !== POI_ICON_DIR_CENTER || !_ || !e2), null === h || d ? e2 && (l = e2[0], u = e2[1]) : (c = getIconVertexData(h, t2), c && (l = c.width, u = c.height));
|
|
7143
7138
|
}
|
|
7144
7139
|
i = i.styleText;
|
|
7145
|
-
let
|
|
7146
|
-
|
|
7140
|
+
let m = [0, 0, 0];
|
|
7141
|
+
m = convertPOIPosition(t.posx, t.posy, self.zIndex, s, m);
|
|
7142
|
+
let p = null;
|
|
7143
|
+
return false !== o.poiIcon && (p = { icon: h, pos: c, size: [l, u], textDrawOnIcon: d }), { position: m, text: t.name, styleId: e, styleConfig: i, iconConfig: p, hasText: _, ...t };
|
|
7147
7144
|
}
|
|
7148
7145
|
function createLabelPoi(t, e, s, i, r) {
|
|
7149
7146
|
const a = 100 * ATTACH_SCALE;
|