@besovideo/bvmap-leaflet 0.0.25 → 0.0.26
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/main.js +543 -536
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -6374,7 +6374,7 @@ function an() {
|
|
|
6374
6374
|
}(Fi, Fi.exports)), Fi.exports;
|
|
6375
6375
|
}
|
|
6376
6376
|
var Yn = an();
|
|
6377
|
-
const ut = /* @__PURE__ */ sh(Yn),
|
|
6377
|
+
const ut = /* @__PURE__ */ sh(Yn), $f = /* @__PURE__ */ nh({
|
|
6378
6378
|
__proto__: null,
|
|
6379
6379
|
default: ut
|
|
6380
6380
|
}, [Yn]), ge = {
|
|
@@ -6455,6 +6455,7 @@ const oh = {
|
|
|
6455
6455
|
// },
|
|
6456
6456
|
// Subdomains: ["a", "b", "c"],
|
|
6457
6457
|
// },
|
|
6458
|
+
// 参考下 https://api.map.baidu.com/lbsapi/getpoint/index.html
|
|
6458
6459
|
Baidu: {
|
|
6459
6460
|
Normal: {
|
|
6460
6461
|
Map: "//maponline{s}.bdimg.com/tile/?qt=vtile&x={x}&y={y}&z={z}&styles=pl&udt=20250220"
|
|
@@ -7603,12 +7604,18 @@ var wa = { exports: {} };
|
|
|
7603
7604
|
})(wa, wa.exports);
|
|
7604
7605
|
const ba = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z" opacity="0.5"/><path fill="currentColor" d="M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"><animateTransform attributeName="transform" dur="1s" from="0 12 12" repeatCount="indefinite" to="360 12 12" type="rotate"/></path></svg>';
|
|
7605
7606
|
function dh(e) {
|
|
7607
|
+
let i = 0;
|
|
7608
|
+
for (let n of e)
|
|
7609
|
+
i += n.match(/[^\x00-\xff]/) ? 2 : 1;
|
|
7610
|
+
return i;
|
|
7611
|
+
}
|
|
7612
|
+
function fh(e) {
|
|
7606
7613
|
var y;
|
|
7607
7614
|
let i = e.iconCustom;
|
|
7608
7615
|
function n(p) {
|
|
7609
7616
|
if (p) {
|
|
7610
7617
|
a(p.className ? p.className : "");
|
|
7611
|
-
const c = p.title
|
|
7618
|
+
const c = dh(p.title) * 12, g = typeof p.imgUrl == "string" ? p.imgUrl : ba;
|
|
7612
7619
|
h.innerHTML = `${typeof p.imgUrl == "string" ? `<img src='${g}' style="width: 32px; height: 32px"/>` : ba}` + (c > 0 ? `<div style='position: absolute; text-align: center; pointer-events: none; width: ${c}px; left: -${(c - 32) / 2}px;'>
|
|
7613
7620
|
<span style='border: 1px solid grey; background-color: white; color: black; padding: 2px 5px; pointer-events: auto;'>
|
|
7614
7621
|
${p.title}
|
|
@@ -7660,10 +7667,10 @@ function er(e, i) {
|
|
|
7660
7667
|
const n = e.GetUserData1();
|
|
7661
7668
|
n.customMarker = i;
|
|
7662
7669
|
}
|
|
7663
|
-
function
|
|
7670
|
+
function _h(e) {
|
|
7664
7671
|
return e.GetUserData1().customMarker;
|
|
7665
7672
|
}
|
|
7666
|
-
class
|
|
7673
|
+
class mh {
|
|
7667
7674
|
constructor(i, n) {
|
|
7668
7675
|
this.currentMarker = null, this.popupCloseHandle = [], this.popup = L.popup(se(J({}, n), {
|
|
7669
7676
|
offset: [0, -5],
|
|
@@ -7757,7 +7764,7 @@ class _h {
|
|
|
7757
7764
|
r >= 0 && this.popupCloseHandle.splice(r, 1);
|
|
7758
7765
|
}
|
|
7759
7766
|
}
|
|
7760
|
-
function
|
|
7767
|
+
function gh(e, i, n) {
|
|
7761
7768
|
const { marker: r, utils: h } = e, a = n.infoWindow.bind(r), l = [], u = [], f = {
|
|
7762
7769
|
getUserData() {
|
|
7763
7770
|
return i.userdata;
|
|
@@ -7859,7 +7866,7 @@ function mh(e, i, n) {
|
|
|
7859
7866
|
const c = p();
|
|
7860
7867
|
return er(r, f), f;
|
|
7861
7868
|
}
|
|
7862
|
-
class
|
|
7869
|
+
class ph extends ut.Polyline {
|
|
7863
7870
|
constructor(i, n) {
|
|
7864
7871
|
super(i, n), this.customData = {
|
|
7865
7872
|
Tooltip: new ut.Tooltip()
|
|
@@ -7909,9 +7916,9 @@ class gh extends ut.Polyline {
|
|
|
7909
7916
|
});
|
|
7910
7917
|
}
|
|
7911
7918
|
}
|
|
7912
|
-
class
|
|
7919
|
+
class vh {
|
|
7913
7920
|
constructor(i, n, r) {
|
|
7914
|
-
this.bTrajektoriaing = !1, this.bTracking = !1, this.positionNeedAdd = [], this.cancelMarkerHook = null, this.map = i, this.polylineTrack = new
|
|
7921
|
+
this.bTrajektoriaing = !1, this.bTracking = !1, this.positionNeedAdd = [], this.cancelMarkerHook = null, this.map = i, this.polylineTrack = new ph([], r), this.polylineTrack.addTo(i), this.marker = L.marker(n.getLatLng(), {
|
|
7915
7922
|
zIndexOffset: 600
|
|
7916
7923
|
}), this.onMarker(n), this.currentMarker = n;
|
|
7917
7924
|
}
|
|
@@ -7969,7 +7976,7 @@ const Ca = [
|
|
|
7969
7976
|
"#F4DBC6",
|
|
7970
7977
|
"#F2CADA"
|
|
7971
7978
|
];
|
|
7972
|
-
class
|
|
7979
|
+
class yh {
|
|
7973
7980
|
constructor(i) {
|
|
7974
7981
|
this.mapTrajektoria = /* @__PURE__ */ new Map(), this.map = i, this.tooltipContentDiv = document.createElement("div"), this.tooltip = L.tooltip({
|
|
7975
7982
|
content: this.tooltipContentDiv,
|
|
@@ -7983,7 +7990,7 @@ class vh {
|
|
|
7983
7990
|
getTrajektoria(i) {
|
|
7984
7991
|
return this.mapTrajektoria.has(i) || this.mapTrajektoria.set(
|
|
7985
7992
|
i,
|
|
7986
|
-
new
|
|
7993
|
+
new vh(this.map, i, {
|
|
7987
7994
|
color: this.getColor()
|
|
7988
7995
|
})
|
|
7989
7996
|
), this.mapTrajektoria.get(i);
|
|
@@ -8007,7 +8014,7 @@ class vh {
|
|
|
8007
8014
|
n == null || n.stopTrack(), n != null && n.needDelete() && this.mapTrajektoria.delete(i);
|
|
8008
8015
|
}
|
|
8009
8016
|
}
|
|
8010
|
-
class
|
|
8017
|
+
class Mh {
|
|
8011
8018
|
constructor() {
|
|
8012
8019
|
this.tasks = [], setInterval(() => {
|
|
8013
8020
|
this.tasks.map((i) => i.task).forEach((i, n) => {
|
|
@@ -8024,7 +8031,7 @@ class yh {
|
|
|
8024
8031
|
});
|
|
8025
8032
|
}
|
|
8026
8033
|
}
|
|
8027
|
-
function
|
|
8034
|
+
function Lh() {
|
|
8028
8035
|
const e = ut.MarkerClusterGroup.prototype;
|
|
8029
8036
|
setInterval(() => {
|
|
8030
8037
|
n.size && (n.forEach((a) => {
|
|
@@ -8040,10 +8047,10 @@ function Mh() {
|
|
|
8040
8047
|
h.bind(this)();
|
|
8041
8048
|
};
|
|
8042
8049
|
}
|
|
8043
|
-
|
|
8044
|
-
class
|
|
8050
|
+
Lh();
|
|
8051
|
+
class xh {
|
|
8045
8052
|
constructor(i, n) {
|
|
8046
|
-
this.radius = 80, this.clusterClickHandle = [], this.szMarkers = [], this.asyncHandleHelper = new
|
|
8053
|
+
this.radius = 80, this.clusterClickHandle = [], this.szMarkers = [], this.asyncHandleHelper = new wh((h) => this.addMarkers(h)), n.clusterType == "NO_CLUSTER" ? this.radius = -1 : n.clusterType == "NORMAL" && (this.radius = 80), this.renderOptions = n, this.map = i, this.gRealtimeTrack = new yh(i), this.infoWindow = new mh(i);
|
|
8047
8054
|
const r = () => {
|
|
8048
8055
|
const h = this.markers;
|
|
8049
8056
|
if (this.markers = ut.markerClusterGroup({
|
|
@@ -8079,7 +8086,7 @@ class Lh {
|
|
|
8079
8086
|
}
|
|
8080
8087
|
return this.markers;
|
|
8081
8088
|
};
|
|
8082
|
-
this.markers = r(), this.intervalTick = new
|
|
8089
|
+
this.markers = r(), this.intervalTick = new Mh(), i.on("layeradd", (h) => {
|
|
8083
8090
|
var a;
|
|
8084
8091
|
(a = h.layer) != null && a.maptype && (this.markers.remove(), r());
|
|
8085
8092
|
});
|
|
@@ -8169,7 +8176,7 @@ class Lh {
|
|
|
8169
8176
|
addMarkers(i) {
|
|
8170
8177
|
const n = [], r = [];
|
|
8171
8178
|
for (let h = 0; h < i.length; h++) {
|
|
8172
|
-
const a = i[h], l =
|
|
8179
|
+
const a = i[h], l = fh(a), u = gh(l, a, {
|
|
8173
8180
|
infoWindow: this.infoWindow,
|
|
8174
8181
|
map: this.map,
|
|
8175
8182
|
cluster: this,
|
|
@@ -8201,10 +8208,10 @@ class Lh {
|
|
|
8201
8208
|
return this.markers.getBounds();
|
|
8202
8209
|
}
|
|
8203
8210
|
getAllMarkers() {
|
|
8204
|
-
return this.markers.getLayers().map((i) =>
|
|
8211
|
+
return this.markers.getLayers().map((i) => _h(i));
|
|
8205
8212
|
}
|
|
8206
8213
|
}
|
|
8207
|
-
class
|
|
8214
|
+
class wh {
|
|
8208
8215
|
constructor(i) {
|
|
8209
8216
|
this.szParams = [], this._currentTime = -1, this.tickInterval = -1, this.handle = i;
|
|
8210
8217
|
}
|
|
@@ -8343,14 +8350,14 @@ L.DivOverlay.include({
|
|
|
8343
8350
|
}
|
|
8344
8351
|
}
|
|
8345
8352
|
});
|
|
8346
|
-
const
|
|
8353
|
+
const bh = L.extend({}, L.Popup.prototype);
|
|
8347
8354
|
L.Popup.include({
|
|
8348
8355
|
/**
|
|
8349
8356
|
* 0. update element anchor point (popupProto v1.9.3)
|
|
8350
8357
|
* 1. rotate around anchor point (subtract anchor -> rotate point -> add anchor)
|
|
8351
8358
|
*/
|
|
8352
8359
|
_animateZoom: function(e) {
|
|
8353
|
-
if (
|
|
8360
|
+
if (bh._animateZoom.apply(this, arguments), this._map && this._map._rotate) {
|
|
8354
8361
|
var i = this._getAnchor(), n = L.DomUtil.getPosition(this._container).subtract(i);
|
|
8355
8362
|
L.DomUtil.setPosition(this._container, this._map.rotatedPointToMapPanePoint(n).add(i));
|
|
8356
8363
|
}
|
|
@@ -9339,7 +9346,7 @@ L.GridLayer.include({
|
|
|
9339
9346
|
);
|
|
9340
9347
|
}
|
|
9341
9348
|
});
|
|
9342
|
-
var
|
|
9349
|
+
var Ph = { exports: {} };
|
|
9343
9350
|
(function(e) {
|
|
9344
9351
|
(function(i) {
|
|
9345
9352
|
var n;
|
|
@@ -9817,11 +9824,11 @@ var bh = { exports: {} };
|
|
|
9817
9824
|
}
|
|
9818
9825
|
}), i.GeometryUtil;
|
|
9819
9826
|
});
|
|
9820
|
-
})(
|
|
9821
|
-
function
|
|
9827
|
+
})(Ph);
|
|
9828
|
+
function Ch(e, i) {
|
|
9822
9829
|
return (e % i + i) % i;
|
|
9823
9830
|
}
|
|
9824
|
-
function
|
|
9831
|
+
function kh(e) {
|
|
9825
9832
|
return Object.fromEntries(
|
|
9826
9833
|
Object.entries(e).filter(([i, n]) => n !== void 0)
|
|
9827
9834
|
);
|
|
@@ -9887,7 +9894,7 @@ L.Polyline.include({
|
|
|
9887
9894
|
for (var R = 1; R < c.length; R++) {
|
|
9888
9895
|
let it = L.GeometryUtil.angle(
|
|
9889
9896
|
this._map,
|
|
9890
|
-
c[
|
|
9897
|
+
c[Ch(R - 1, c.length)],
|
|
9891
9898
|
c[R]
|
|
9892
9899
|
) + 180;
|
|
9893
9900
|
G.push(it);
|
|
@@ -9962,7 +9969,7 @@ L.Polyline.include({
|
|
|
9962
9969
|
let U = e, { perArrowheadOptions: R } = U, it = La(U, ["perArrowheadOptions"]);
|
|
9963
9970
|
if (R = R ? R(T) : {}, R = Object.assign(
|
|
9964
9971
|
it,
|
|
9965
|
-
|
|
9972
|
+
kh(R)
|
|
9966
9973
|
), h = (st = R.size) != null ? st : h, Hi(h)) {
|
|
9967
9974
|
let K = h.slice(0, h.length - 1);
|
|
9968
9975
|
D(K, R);
|
|
@@ -10136,7 +10143,7 @@ L.GeoJSON.include({
|
|
|
10136
10143
|
}
|
|
10137
10144
|
});
|
|
10138
10145
|
let Yt = 5;
|
|
10139
|
-
class
|
|
10146
|
+
class Th {
|
|
10140
10147
|
constructor(i, n, r) {
|
|
10141
10148
|
this.layerGroup = L.layerGroup(), this.layerGroupMap = {}, this.isShowVertex = !0, this._map = i;
|
|
10142
10149
|
const h = () => {
|
|
@@ -10192,7 +10199,7 @@ class kh {
|
|
|
10192
10199
|
this.isShowVertex = !1, this.layerGroup.removeFrom(this._map);
|
|
10193
10200
|
}
|
|
10194
10201
|
}
|
|
10195
|
-
class
|
|
10202
|
+
class Eh extends L.Polyline {
|
|
10196
10203
|
constructor() {
|
|
10197
10204
|
super([], { interactive: !1, weight: 6 }), this.customTooltip = L.tooltip({
|
|
10198
10205
|
direction: "top"
|
|
@@ -10231,7 +10238,7 @@ class Th extends L.Polyline {
|
|
|
10231
10238
|
}
|
|
10232
10239
|
addCircleMarkers(i, n) {
|
|
10233
10240
|
const r = i;
|
|
10234
|
-
this.circleMarkerHelper || (this.circleMarkerHelper = new
|
|
10241
|
+
this.circleMarkerHelper || (this.circleMarkerHelper = new Th(
|
|
10235
10242
|
this._map,
|
|
10236
10243
|
r,
|
|
10237
10244
|
(h, a) => {
|
|
@@ -10259,7 +10266,7 @@ class Th extends L.Polyline {
|
|
|
10259
10266
|
(i = this.circleMarkerHelper) == null || i.removeMarkers(), this.circleMarkerHelper = void 0, this.setLatLngs([]);
|
|
10260
10267
|
}
|
|
10261
10268
|
}
|
|
10262
|
-
class
|
|
10269
|
+
class Sh {
|
|
10263
10270
|
constructor(i) {
|
|
10264
10271
|
this.polyine = L.polyline([], {
|
|
10265
10272
|
color: "red",
|
|
@@ -10331,9 +10338,9 @@ class Eh {
|
|
|
10331
10338
|
this.markerCurrent.remove(), this.lastPointIndex = 0, this.polyine.setLatLngs([]), this.polyineBlack.setLatLngs([]);
|
|
10332
10339
|
}
|
|
10333
10340
|
}
|
|
10334
|
-
class
|
|
10341
|
+
class Ah {
|
|
10335
10342
|
constructor(i) {
|
|
10336
|
-
this.baseline = new
|
|
10343
|
+
this.baseline = new Eh(), this.timeCallback = null, this._currentPoints = null, this.intervalToken = null, this.pastTimeTotal = 0, this.startTime = 0, this.bPause = !1, this.playRate = 1, this.baseline.addTo(i), this.passedLine = new Sh(i), this.map = i, this.applyRotation();
|
|
10337
10344
|
}
|
|
10338
10345
|
applyRotation() {
|
|
10339
10346
|
this.map.addEventListener("zoomed", () => {
|
|
@@ -10433,7 +10440,7 @@ class Sh {
|
|
|
10433
10440
|
this.passedLine.SetMarkerFitView();
|
|
10434
10441
|
}
|
|
10435
10442
|
}
|
|
10436
|
-
var
|
|
10443
|
+
var Ih = { exports: {} };
|
|
10437
10444
|
(function(e, i) {
|
|
10438
10445
|
((n, r) => {
|
|
10439
10446
|
e.exports = n(an()), typeof r != "undefined" && r.L && n(r.L);
|
|
@@ -11509,17 +11516,17 @@ var Ah = { exports: {} };
|
|
|
11509
11516
|
c = n.latLng(c), this.lat = c.lat, this.lng = c.lng;
|
|
11510
11517
|
};
|
|
11511
11518
|
}, window);
|
|
11512
|
-
})(
|
|
11519
|
+
})(Ih);
|
|
11513
11520
|
const $n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAYxJREFUSEvVVUFygzAMXKUXk0cE+Al5SZOXNH1J8pOmLwHyiOAT6sgxDBiBSdNLc2EmtrXSarUiPPGrt9szMWe7ptmvfUZrL8q9W5J8yfd/AZTGZBvgnYgKBgoAlaua+dIC37m11yUWZimSwG9EZx9UYjwCAyCg6v8nuqT3+3EORAUojSk2RI5vMJ9Saz/DHnSVgegk4C3zUatGBaiTpJSALfM+t7bPXGuyA/LJhPd9tePiJIiU7y+P+J1TkQcpodA1quBmzIGJROvHnbWXkNclmXZvw8RGALUxH8Jp2jQqdUsAfRWDnk0ocvQQVXOqiA2adk6StWjcCcbrXGSoyW7FedbJ2MUjqp4FkAAZAepwMTA6Z+bruMkRr1lDUUix1uRD2jS5RlEMoE4SHg7mpMn9BAdK6MBelqkEEs8HswzaZPRjgya9Ca18ovel0Z+zCm+KmUbtnNn1/iK2/OdmJ1SFbjmw6Gpo1xotQ4FEV6aycB674dWF8xuZam+iFQwfxebgZQAnYQBLKzIE+QEAKDEsC3KscgAAAABJRU5ErkJggg==";
|
|
11514
|
-
class
|
|
11521
|
+
class Oh {
|
|
11515
11522
|
constructor(i) {
|
|
11516
|
-
this.map = i, this.mutilsHandle = new
|
|
11523
|
+
this.map = i, this.mutilsHandle = new zh(this.map), this.circleHandle = new sr(i), this.polygonHandle = new nr(i);
|
|
11517
11524
|
}
|
|
11518
11525
|
clear() {
|
|
11519
11526
|
this.circleHandle.clear(), this.polygonHandle.clear();
|
|
11520
11527
|
}
|
|
11521
11528
|
}
|
|
11522
|
-
class
|
|
11529
|
+
class zh {
|
|
11523
11530
|
constructor(i) {
|
|
11524
11531
|
this.szClear = [], this.map = i;
|
|
11525
11532
|
}
|
|
@@ -11683,7 +11690,7 @@ class sr {
|
|
|
11683
11690
|
this.safeOffMapCreateClick(), this.isExist() && (this.circle.remove(), this.circle = null);
|
|
11684
11691
|
}
|
|
11685
11692
|
}
|
|
11686
|
-
class
|
|
11693
|
+
class Bh {
|
|
11687
11694
|
constructor(i, n, r) {
|
|
11688
11695
|
this.titleLatlng = null, this.title = "", this.onRemove = r, this.map = i, this.html = document.createElement("div"), this.marker = L.marker([0, 0], {
|
|
11689
11696
|
icon: L.divIcon({
|
|
@@ -11774,17 +11781,17 @@ class zh {
|
|
|
11774
11781
|
});
|
|
11775
11782
|
}
|
|
11776
11783
|
}
|
|
11777
|
-
function
|
|
11784
|
+
function Nh(e) {
|
|
11778
11785
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style='height: 100%; width: 100%'>
|
|
11779
11786
|
<path fill="${e.color}" d="M12 11.5A2.5 2.5 0 0 1 9.5 9A2.5 2.5 0 0 1 12 6.5A2.5 2.5 0 0 1 14.5 9a2.5 2.5 0 0 1-2.5 2.5M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7" />
|
|
11780
11787
|
</svg>`;
|
|
11781
11788
|
}
|
|
11782
|
-
function
|
|
11789
|
+
function Dh(e) {
|
|
11783
11790
|
return e.showName ? `<span style='width: ${e.title.length * 20}px; display: inline-block; position: absolute;'>
|
|
11784
11791
|
<span style='position: absolute; color: black; background-color: white; padding: 2px 4px; border-radius: 3px'>${e.title}</span>
|
|
11785
11792
|
</span>` : "";
|
|
11786
11793
|
}
|
|
11787
|
-
class
|
|
11794
|
+
class Rh {
|
|
11788
11795
|
constructor(i, n) {
|
|
11789
11796
|
this.map = i, this.html = document.createElement("div"), n.latlng ? (this.marker = L.marker(n.latlng), this.marker.addTo(i)) : (this.marker = i.editTools.startMarker(), this.marker.on("editable:drawing:end", () => {
|
|
11790
11797
|
var r;
|
|
@@ -11801,9 +11808,9 @@ class Dh {
|
|
|
11801
11808
|
this.SetStyle(i);
|
|
11802
11809
|
}
|
|
11803
11810
|
SetStyle(i) {
|
|
11804
|
-
this.markerInfo = J(J({}, this.markerInfo), i), this.html.innerHTML = `<div style='position: relative; pointer-events: none;'>${
|
|
11811
|
+
this.markerInfo = J(J({}, this.markerInfo), i), this.html.innerHTML = `<div style='position: relative; pointer-events: none;'>${Nh(
|
|
11805
11812
|
this.markerInfo
|
|
11806
|
-
)}${
|
|
11813
|
+
)}${Dh(this.markerInfo)}</div>`, this.marker.setIcon(
|
|
11807
11814
|
L.divIcon({
|
|
11808
11815
|
html: this.html,
|
|
11809
11816
|
iconSize: [this.markerInfo.size + 5, this.markerInfo.size + 5],
|
|
@@ -11859,7 +11866,7 @@ class ui {
|
|
|
11859
11866
|
});
|
|
11860
11867
|
}
|
|
11861
11868
|
}
|
|
11862
|
-
class
|
|
11869
|
+
class Zh {
|
|
11863
11870
|
constructor(i, n) {
|
|
11864
11871
|
this.polygonInfo = n, this.markerTitle = new ui(i), n.latlngs ? (this.polygon = L.polygon(n.latlngs), this.polygon.addTo(i)) : this.polygon = i.editTools.startPolygon(), this.polygon.on("editable:vertex:new", () => {
|
|
11865
11872
|
this.SetStyle(this.polygonInfo);
|
|
@@ -11909,7 +11916,7 @@ class Rh {
|
|
|
11909
11916
|
this.polygon.remove(), this.markerTitle.remove();
|
|
11910
11917
|
}
|
|
11911
11918
|
}
|
|
11912
|
-
class
|
|
11919
|
+
class Gh {
|
|
11913
11920
|
constructor(i, n) {
|
|
11914
11921
|
var r, h;
|
|
11915
11922
|
this.map = i, this.infoCircle = n, this.titleMarker = new ui(i), this.radiusMarker = new ui(i), this.infoCircle.circleInfo ? (this.circle = L.circle(this.infoCircle.circleInfo.center, {
|
|
@@ -11974,15 +11981,15 @@ class Zh {
|
|
|
11974
11981
|
this.radiusMarker.remove(), this.circle.remove(), this.titleMarker.remove();
|
|
11975
11982
|
}
|
|
11976
11983
|
}
|
|
11977
|
-
function
|
|
11984
|
+
function Fh() {
|
|
11978
11985
|
const { VertexMarker: e } = L.Editable, i = e.prototype.onDrag;
|
|
11979
11986
|
e.prototype.onDrag = function(n) {
|
|
11980
11987
|
const r = this._map.layerPointToLatLng;
|
|
11981
11988
|
this._map.layerPointToLatLng = (h) => this._map.wrapLatLng(n.latlng), i.bind(this)(n), this._map.layerPointToLatLng = r;
|
|
11982
11989
|
};
|
|
11983
11990
|
}
|
|
11984
|
-
|
|
11985
|
-
class
|
|
11991
|
+
Fh();
|
|
11992
|
+
class Uh {
|
|
11986
11993
|
constructor(i, n) {
|
|
11987
11994
|
var r, h;
|
|
11988
11995
|
this.map = i, this.titleMarker = new ui(i), n.reacInfo ? (this.rectangle = L.rectangle(n.reacInfo.latlngBounds), this.rectangle.addTo(i)) : (this.rectangle = i.editTools.startRectangle(), this.rectangle.on("editable:drawing:end", () => {
|
|
@@ -12038,20 +12045,20 @@ class Fh {
|
|
|
12038
12045
|
this.titleMarker.remove(), this.rectangle.remove();
|
|
12039
12046
|
}
|
|
12040
12047
|
}
|
|
12041
|
-
const
|
|
12048
|
+
const Hh = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 12 12">
|
|
12042
12049
|
<path fill="currentColor" d="M5 3h2a1 1 0 0 0-2 0M4 3a2 2 0 1 1 4 0h2.5a.5.5 0 0 1 0 1h-.441l-.443 5.17A2 2 0 0 1 7.623 11H4.377a2 2 0 0 1-1.993-1.83L1.941 4H1.5a.5.5 0 0 1 0-1zm3.5 3a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0zM5 5.5a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5M3.38 9.085a1 1 0 0 0 .997.915h3.246a1 1 0 0 0 .996-.915L9.055 4h-6.11z" />
|
|
12043
|
-
</svg>`,
|
|
12050
|
+
</svg>`, qh = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
12044
12051
|
<path fill="currentColor" d="M16.95 8.464a1 1 0 0 0-1.414-1.414L12 10.586L8.464 7.05A1 1 0 1 0 7.05 8.464L10.586 12L7.05 15.536a1 1 0 1 0 1.414 1.414L12 13.414l3.536 3.536a1 1 0 1 0 1.414-1.414L13.414 12z" />
|
|
12045
12052
|
</svg>`;
|
|
12046
12053
|
class ar {
|
|
12047
12054
|
constructor(i, n, r) {
|
|
12048
12055
|
this.titleType = "NORMAL", this.kiloMeter = 0, this.titleMarker = new ui(i);
|
|
12049
12056
|
const h = document.createElement("span");
|
|
12050
|
-
h.style.verticalAlign = "middle", h.style.pointerEvents = "auto", h.innerHTML =
|
|
12057
|
+
h.style.verticalAlign = "middle", h.style.pointerEvents = "auto", h.innerHTML = qh, h.onclick = n;
|
|
12051
12058
|
const a = document.createElement("span");
|
|
12052
12059
|
a.style.lineHeight = "24px";
|
|
12053
12060
|
const l = document.createElement("span");
|
|
12054
|
-
l.style.verticalAlign = "middle", l.innerHTML =
|
|
12061
|
+
l.style.verticalAlign = "middle", l.innerHTML = Hh, l.onclick = r, l.style.pointerEvents = "auto";
|
|
12055
12062
|
const u = document.createElement("span");
|
|
12056
12063
|
u.style.backgroundColor = "white", u.style.paddingLeft = "5px", u.style.padding = "3px 4px", u.appendChild(a), u.appendChild(h), u.style.borderRadius = "4px";
|
|
12057
12064
|
const f = document.createElement("div");
|
|
@@ -12077,7 +12084,7 @@ class ar {
|
|
|
12077
12084
|
return this.kiloMeter;
|
|
12078
12085
|
}
|
|
12079
12086
|
}
|
|
12080
|
-
class
|
|
12087
|
+
class jh {
|
|
12081
12088
|
constructor(i, n) {
|
|
12082
12089
|
this.titleArray = [], this.params = n, this.map = i, this.path = i.editTools.startPolyline(), this.path.setStyle({
|
|
12083
12090
|
color: "red",
|
|
@@ -12139,7 +12146,7 @@ class qh {
|
|
|
12139
12146
|
this.path.remove(), this.titleArray.forEach((i) => i.remove());
|
|
12140
12147
|
}
|
|
12141
12148
|
}
|
|
12142
|
-
const Ba = 6378137,
|
|
12149
|
+
const Ba = 6378137, Wh = function(i) {
|
|
12143
12150
|
const n = function(g) {
|
|
12144
12151
|
return g * Math.PI / 180;
|
|
12145
12152
|
};
|
|
@@ -12151,7 +12158,7 @@ const Ba = 6378137, jh = function(i) {
|
|
|
12151
12158
|
}
|
|
12152
12159
|
return Math.abs(m);
|
|
12153
12160
|
};
|
|
12154
|
-
class
|
|
12161
|
+
class Vh {
|
|
12155
12162
|
constructor(i, n) {
|
|
12156
12163
|
this.map = i, this.params = n, this.titleMarker = new ar(
|
|
12157
12164
|
i,
|
|
@@ -12175,14 +12182,14 @@ class Wh {
|
|
|
12175
12182
|
}
|
|
12176
12183
|
update() {
|
|
12177
12184
|
this.titleMarker.SetLatlng(this.polygon.getCenter());
|
|
12178
|
-
const i = this.polygon.getLatLngs(), n =
|
|
12185
|
+
const i = this.polygon.getLatLngs(), n = Wh(i[0]), r = n / 1e6 > 1 ? `${(n / 1e6).toFixed(2)}${this.params.kiloMeterSquare}` : `${n.toFixed(2)}${this.params.MeterSquare}`;
|
|
12179
12186
|
this.titleMarker.setTitle(`${r}`);
|
|
12180
12187
|
}
|
|
12181
12188
|
remove() {
|
|
12182
12189
|
this.titleMarker.remove(), this.polygon.remove();
|
|
12183
12190
|
}
|
|
12184
12191
|
}
|
|
12185
|
-
function
|
|
12192
|
+
function $h(e) {
|
|
12186
12193
|
const i = [];
|
|
12187
12194
|
return e.features.forEach((n) => {
|
|
12188
12195
|
if (n.geometry.type == "GeometryCollection") {
|
|
@@ -12206,15 +12213,15 @@ function Ye(e, i) {
|
|
|
12206
12213
|
const n = e;
|
|
12207
12214
|
return n.shapeType = i, n;
|
|
12208
12215
|
}
|
|
12209
|
-
function
|
|
12216
|
+
function Kf(e, i) {
|
|
12210
12217
|
return i;
|
|
12211
12218
|
}
|
|
12212
|
-
class
|
|
12219
|
+
class Kh {
|
|
12213
12220
|
constructor(i) {
|
|
12214
12221
|
this.map = i;
|
|
12215
12222
|
}
|
|
12216
12223
|
addLine(i) {
|
|
12217
|
-
const n = new
|
|
12224
|
+
const n = new Bh(
|
|
12218
12225
|
this.map,
|
|
12219
12226
|
J({
|
|
12220
12227
|
latlngs: i.latlngs ? i.latlngs : []
|
|
@@ -12225,41 +12232,41 @@ class $h {
|
|
|
12225
12232
|
return Ye(n, "POLYLINE");
|
|
12226
12233
|
}
|
|
12227
12234
|
addMarker(i) {
|
|
12228
|
-
return Ye(new
|
|
12235
|
+
return Ye(new Rh(this.map, i), "MARKER");
|
|
12229
12236
|
}
|
|
12230
12237
|
addPolygon(i) {
|
|
12231
12238
|
return Ye(
|
|
12232
|
-
new
|
|
12239
|
+
new Zh(this.map, i),
|
|
12233
12240
|
"POLYGON"
|
|
12234
12241
|
);
|
|
12235
12242
|
}
|
|
12236
12243
|
addCircle(i) {
|
|
12237
|
-
return Ye(new
|
|
12244
|
+
return Ye(new Gh(this.map, i), "CIRCLE");
|
|
12238
12245
|
}
|
|
12239
12246
|
addRectangle(i) {
|
|
12240
12247
|
return Ye(
|
|
12241
|
-
new
|
|
12248
|
+
new Uh(this.map, i),
|
|
12242
12249
|
"RECTANGLE"
|
|
12243
12250
|
);
|
|
12244
12251
|
}
|
|
12245
12252
|
addDistanceRule(i) {
|
|
12246
|
-
return new
|
|
12253
|
+
return new jh(this.map, i);
|
|
12247
12254
|
}
|
|
12248
12255
|
addPolygonAreaRule(i) {
|
|
12249
|
-
return new
|
|
12256
|
+
return new Vh(this.map, i);
|
|
12250
12257
|
}
|
|
12251
12258
|
parseGeoJson(i) {
|
|
12252
|
-
return
|
|
12259
|
+
return $h(i);
|
|
12253
12260
|
}
|
|
12254
12261
|
}
|
|
12255
|
-
var
|
|
12256
|
-
function
|
|
12262
|
+
var Xh = { exports: {} };
|
|
12263
|
+
function Jh(e) {
|
|
12257
12264
|
e("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), e("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), e("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");
|
|
12258
12265
|
for (var i = 1; i <= 60; ++i)
|
|
12259
12266
|
e("EPSG:" + (32600 + i), "+proj=utm +zone=" + i + " +datum=WGS84 +units=m"), e("EPSG:" + (32700 + i), "+proj=utm +zone=" + i + " +south +datum=WGS84 +units=m");
|
|
12260
12267
|
e.WGS84 = e["EPSG:4326"], e["EPSG:3785"] = e["EPSG:3857"], e.GOOGLE = e["EPSG:3857"], e["EPSG:900913"] = e["EPSG:3857"], e["EPSG:102113"] = e["EPSG:3857"];
|
|
12261
12268
|
}
|
|
12262
|
-
var pe = 1, ve = 2, ze = 3,
|
|
12269
|
+
var pe = 1, ve = 2, ze = 3, Qh = 4, Kn = 5, Na = 6378137, Yh = 6356752314e-3, Da = 0.0066943799901413165, si = 484813681109536e-20, S = Math.PI / 2, tl = 0.16666666666666666, el = 0.04722222222222222, il = 0.022156084656084655, I = 1e-10, yt = 0.017453292519943295, jt = 57.29577951308232, tt = Math.PI / 4, ci = Math.PI * 2, dt = 3.14159265359, St = {};
|
|
12263
12270
|
St.greenwich = 0;
|
|
12264
12271
|
St.lisbon = -9.131906111111;
|
|
12265
12272
|
St.paris = 2.337229166667;
|
|
@@ -12273,7 +12280,7 @@ St.brussels = 4.367975;
|
|
|
12273
12280
|
St.stockholm = 18.058277777778;
|
|
12274
12281
|
St.athens = 23.7163375;
|
|
12275
12282
|
St.oslo = 10.722916666667;
|
|
12276
|
-
const
|
|
12283
|
+
const nl = {
|
|
12277
12284
|
mm: { to_meter: 1e-3 },
|
|
12278
12285
|
cm: { to_meter: 0.01 },
|
|
12279
12286
|
ft: { to_meter: 0.3048 },
|
|
@@ -12387,7 +12394,7 @@ function Xn(e) {
|
|
|
12387
12394
|
},
|
|
12388
12395
|
units: function(u) {
|
|
12389
12396
|
i.units = u;
|
|
12390
|
-
var f = re(
|
|
12397
|
+
var f = re(nl, u);
|
|
12391
12398
|
f && (i.to_meter = f.to_meter);
|
|
12392
12399
|
},
|
|
12393
12400
|
from_greenwich: function(u) {
|
|
@@ -12412,7 +12419,7 @@ function Xn(e) {
|
|
|
12412
12419
|
h = n[r], r in l ? (a = l[r], typeof a == "function" ? a(h) : i[a] = h) : i[r] = h;
|
|
12413
12420
|
return typeof i.datumCode == "string" && i.datumCode !== "WGS84" && (i.datumCode = i.datumCode.toLowerCase()), i;
|
|
12414
12421
|
}
|
|
12415
|
-
var di = 1, rr = 2, or = 3, Qi = 4, hr = 5, es = -1,
|
|
12422
|
+
var di = 1, rr = 2, or = 3, Qi = 4, hr = 5, es = -1, sl = /\s/, al = /[A-Za-z]/, rl = /[A-Za-z84_]/, on = /[,\]]/, lr = /[\d\.E\-\+]/;
|
|
12416
12423
|
function te(e) {
|
|
12417
12424
|
if (typeof e != "string")
|
|
12418
12425
|
throw new Error("not a string");
|
|
@@ -12421,7 +12428,7 @@ function te(e) {
|
|
|
12421
12428
|
te.prototype.readCharicter = function() {
|
|
12422
12429
|
var e = this.text[this.place++];
|
|
12423
12430
|
if (this.state !== Qi)
|
|
12424
|
-
for (;
|
|
12431
|
+
for (; sl.test(e); ) {
|
|
12425
12432
|
if (this.place >= this.text.length)
|
|
12426
12433
|
return;
|
|
12427
12434
|
e = this.text[this.place++];
|
|
@@ -12481,7 +12488,7 @@ te.prototype.quoted = function(e) {
|
|
|
12481
12488
|
this.word += e;
|
|
12482
12489
|
};
|
|
12483
12490
|
te.prototype.keyword = function(e) {
|
|
12484
|
-
if (
|
|
12491
|
+
if (rl.test(e)) {
|
|
12485
12492
|
this.word += e;
|
|
12486
12493
|
return;
|
|
12487
12494
|
}
|
|
@@ -12497,7 +12504,7 @@ te.prototype.keyword = function(e) {
|
|
|
12497
12504
|
throw new Error(`havn't handled "` + e + '" in keyword yet, index ' + this.place);
|
|
12498
12505
|
};
|
|
12499
12506
|
te.prototype.neutral = function(e) {
|
|
12500
|
-
if (
|
|
12507
|
+
if (al.test(e)) {
|
|
12501
12508
|
this.word = e, this.state = rr;
|
|
12502
12509
|
return;
|
|
12503
12510
|
}
|
|
@@ -12522,7 +12529,7 @@ te.prototype.output = function() {
|
|
|
12522
12529
|
return this.root;
|
|
12523
12530
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
12524
12531
|
};
|
|
12525
|
-
function
|
|
12532
|
+
function ol(e) {
|
|
12526
12533
|
var i = new te(e);
|
|
12527
12534
|
return i.output();
|
|
12528
12535
|
}
|
|
@@ -12610,7 +12617,7 @@ function Se(e, i) {
|
|
|
12610
12617
|
return qn(i, n, e);
|
|
12611
12618
|
}
|
|
12612
12619
|
}
|
|
12613
|
-
var
|
|
12620
|
+
var hl = 0.017453292519943295, ll = [
|
|
12614
12621
|
"PROJECTEDCRS",
|
|
12615
12622
|
"PROJCRS",
|
|
12616
12623
|
"GEOGCS",
|
|
@@ -12623,20 +12630,20 @@ var ol = 0.017453292519943295, hl = [
|
|
|
12623
12630
|
"ENGCRS",
|
|
12624
12631
|
"ENGINEERINGCRS"
|
|
12625
12632
|
];
|
|
12626
|
-
function
|
|
12633
|
+
function ul(e, i) {
|
|
12627
12634
|
var n = i[0], r = i[1];
|
|
12628
12635
|
!(n in e) && r in e && (e[n] = e[r], i.length === 3 && (e[n] = i[2](e[n])));
|
|
12629
12636
|
}
|
|
12630
12637
|
function qt(e) {
|
|
12631
|
-
return e *
|
|
12638
|
+
return e * hl;
|
|
12632
12639
|
}
|
|
12633
12640
|
function ur(e) {
|
|
12634
12641
|
for (var i = Object.keys(e), n = 0, r = i.length; n < r; ++n) {
|
|
12635
12642
|
var h = i[n];
|
|
12636
|
-
|
|
12643
|
+
ll.indexOf(h) !== -1 && cl(e[h]), typeof e[h] == "object" && ur(e[h]);
|
|
12637
12644
|
}
|
|
12638
12645
|
}
|
|
12639
|
-
function
|
|
12646
|
+
function cl(e) {
|
|
12640
12647
|
if (e.AUTHORITY) {
|
|
12641
12648
|
var i = Object.keys(e.AUTHORITY)[0];
|
|
12642
12649
|
i && i in e.AUTHORITY && (e.title = i + ":" + e.AUTHORITY[i]);
|
|
@@ -12656,7 +12663,7 @@ function ul(e) {
|
|
|
12656
12663
|
return y * p;
|
|
12657
12664
|
}
|
|
12658
12665
|
var f = function(y) {
|
|
12659
|
-
return
|
|
12666
|
+
return ul(e, y);
|
|
12660
12667
|
}, m = [
|
|
12661
12668
|
["standard_parallel_1", "Standard_Parallel_1"],
|
|
12662
12669
|
["standard_parallel_1", "Latitude of 1st standard parallel"],
|
|
@@ -12697,7 +12704,7 @@ function ul(e) {
|
|
|
12697
12704
|
m.forEach(f), !e.long0 && e.longc && (e.projName === "Albers_Conic_Equal_Area" || e.projName === "Lambert_Azimuthal_Equal_Area") && (e.long0 = e.longc), !e.lat_ts && e.lat1 && (e.projName === "Stereographic_South_Pole" || e.projName === "Polar Stereographic (variant B)") ? (e.lat0 = qt(e.lat1 > 0 ? 90 : -90), e.lat_ts = e.lat1) : !e.lat_ts && e.lat0 && e.projName === "Polar_Stereographic" && (e.lat_ts = e.lat0, e.lat0 = qt(e.lat0 > 0 ? 90 : -90));
|
|
12698
12705
|
}
|
|
12699
12706
|
function cr(e) {
|
|
12700
|
-
var i =
|
|
12707
|
+
var i = ol(e), n = i[0], r = {};
|
|
12701
12708
|
return Se(i, r), ur(r), r[n];
|
|
12702
12709
|
}
|
|
12703
12710
|
function bt(e) {
|
|
@@ -12717,47 +12724,47 @@ function bt(e) {
|
|
|
12717
12724
|
return;
|
|
12718
12725
|
}
|
|
12719
12726
|
}
|
|
12720
|
-
|
|
12721
|
-
function
|
|
12727
|
+
Jh(bt);
|
|
12728
|
+
function dl(e) {
|
|
12722
12729
|
return typeof e == "string";
|
|
12723
12730
|
}
|
|
12724
|
-
function
|
|
12731
|
+
function fl(e) {
|
|
12725
12732
|
return e in bt;
|
|
12726
12733
|
}
|
|
12727
|
-
var
|
|
12728
|
-
function
|
|
12729
|
-
return
|
|
12734
|
+
var _l = ["PROJECTEDCRS", "PROJCRS", "GEOGCS", "GEOCCS", "PROJCS", "LOCAL_CS", "GEODCRS", "GEODETICCRS", "GEODETICDATUM", "ENGCRS", "ENGINEERINGCRS"];
|
|
12735
|
+
function ml(e) {
|
|
12736
|
+
return _l.some(function(i) {
|
|
12730
12737
|
return e.indexOf(i) > -1;
|
|
12731
12738
|
});
|
|
12732
12739
|
}
|
|
12733
|
-
var
|
|
12734
|
-
function
|
|
12740
|
+
var gl = ["3857", "900913", "3785", "102113"];
|
|
12741
|
+
function pl(e) {
|
|
12735
12742
|
var i = re(e, "authority");
|
|
12736
12743
|
if (i) {
|
|
12737
12744
|
var n = re(i, "epsg");
|
|
12738
|
-
return n &&
|
|
12745
|
+
return n && gl.indexOf(n) > -1;
|
|
12739
12746
|
}
|
|
12740
12747
|
}
|
|
12741
|
-
function
|
|
12748
|
+
function vl(e) {
|
|
12742
12749
|
var i = re(e, "extension");
|
|
12743
12750
|
if (i)
|
|
12744
12751
|
return re(i, "proj4");
|
|
12745
12752
|
}
|
|
12746
|
-
function
|
|
12753
|
+
function yl(e) {
|
|
12747
12754
|
return e[0] === "+";
|
|
12748
12755
|
}
|
|
12749
|
-
function
|
|
12750
|
-
if (
|
|
12751
|
-
if (
|
|
12756
|
+
function Ml(e) {
|
|
12757
|
+
if (dl(e)) {
|
|
12758
|
+
if (fl(e))
|
|
12752
12759
|
return bt[e];
|
|
12753
|
-
if (
|
|
12760
|
+
if (ml(e)) {
|
|
12754
12761
|
var i = cr(e);
|
|
12755
|
-
if (
|
|
12762
|
+
if (pl(i))
|
|
12756
12763
|
return bt["EPSG:3857"];
|
|
12757
|
-
var n =
|
|
12764
|
+
var n = vl(i);
|
|
12758
12765
|
return n ? Xn(n) : i;
|
|
12759
12766
|
}
|
|
12760
|
-
if (
|
|
12767
|
+
if (yl(e))
|
|
12761
12768
|
return Xn(e);
|
|
12762
12769
|
} else
|
|
12763
12770
|
return e;
|
|
@@ -12791,11 +12798,11 @@ function fi(e, i) {
|
|
|
12791
12798
|
return a;
|
|
12792
12799
|
return -9999;
|
|
12793
12800
|
}
|
|
12794
|
-
function
|
|
12801
|
+
function Ll() {
|
|
12795
12802
|
var e = this.b / this.a;
|
|
12796
12803
|
this.es = 1 - e * e, "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 = Vt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
12797
12804
|
}
|
|
12798
|
-
function
|
|
12805
|
+
function xl(e) {
|
|
12799
12806
|
var i = e.x, n = e.y;
|
|
12800
12807
|
if (n * jt > 90 && n * jt < -90 && i * jt > 180 && i * jt < -180)
|
|
12801
12808
|
return null;
|
|
@@ -12810,7 +12817,7 @@ function Ll(e) {
|
|
|
12810
12817
|
}
|
|
12811
12818
|
return e.x = r, e.y = h, e;
|
|
12812
12819
|
}
|
|
12813
|
-
function
|
|
12820
|
+
function wl(e) {
|
|
12814
12821
|
var i = e.x - this.x0, n = e.y - this.y0, r, h;
|
|
12815
12822
|
if (this.sphere)
|
|
12816
12823
|
h = S - 2 * Math.atan(Math.exp(-n / (this.a * this.k0)));
|
|
@@ -12821,46 +12828,46 @@ function xl(e) {
|
|
|
12821
12828
|
}
|
|
12822
12829
|
return r = O(this.long0 + i / (this.a * this.k0)), e.x = r, e.y = h, e;
|
|
12823
12830
|
}
|
|
12824
|
-
var
|
|
12825
|
-
const
|
|
12826
|
-
init:
|
|
12827
|
-
forward:
|
|
12828
|
-
inverse:
|
|
12829
|
-
names:
|
|
12831
|
+
var bl = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
|
|
12832
|
+
const Pl = {
|
|
12833
|
+
init: Ll,
|
|
12834
|
+
forward: xl,
|
|
12835
|
+
inverse: wl,
|
|
12836
|
+
names: bl
|
|
12830
12837
|
};
|
|
12831
|
-
function
|
|
12838
|
+
function Cl() {
|
|
12832
12839
|
}
|
|
12833
12840
|
function Ga(e) {
|
|
12834
12841
|
return e;
|
|
12835
12842
|
}
|
|
12836
|
-
var
|
|
12837
|
-
const
|
|
12838
|
-
init:
|
|
12843
|
+
var kl = ["longlat", "identity"];
|
|
12844
|
+
const Tl = {
|
|
12845
|
+
init: Cl,
|
|
12839
12846
|
forward: Ga,
|
|
12840
12847
|
inverse: Ga,
|
|
12841
|
-
names:
|
|
12848
|
+
names: kl
|
|
12842
12849
|
};
|
|
12843
|
-
var
|
|
12850
|
+
var El = [Pl, Tl], $i = {}, Yi = [];
|
|
12844
12851
|
function dr(e, i) {
|
|
12845
12852
|
var n = Yi.length;
|
|
12846
12853
|
return e.names ? (Yi[n] = e, e.names.forEach(function(r) {
|
|
12847
12854
|
$i[r.toLowerCase()] = n;
|
|
12848
12855
|
}), this) : (console.log(i), !0);
|
|
12849
12856
|
}
|
|
12850
|
-
function
|
|
12857
|
+
function Sl(e) {
|
|
12851
12858
|
if (!e)
|
|
12852
12859
|
return !1;
|
|
12853
12860
|
var i = e.toLowerCase();
|
|
12854
12861
|
if (typeof $i[i] != "undefined" && Yi[$i[i]])
|
|
12855
12862
|
return Yi[$i[i]];
|
|
12856
12863
|
}
|
|
12857
|
-
function
|
|
12858
|
-
|
|
12864
|
+
function Al() {
|
|
12865
|
+
El.forEach(dr);
|
|
12859
12866
|
}
|
|
12860
|
-
const
|
|
12861
|
-
start:
|
|
12867
|
+
const Il = {
|
|
12868
|
+
start: Al,
|
|
12862
12869
|
add: dr,
|
|
12863
|
-
get:
|
|
12870
|
+
get: Sl
|
|
12864
12871
|
};
|
|
12865
12872
|
var H = {};
|
|
12866
12873
|
H.MERIT = {
|
|
@@ -13074,7 +13081,7 @@ H.WGS7 = {
|
|
|
13074
13081
|
rf: 298.26,
|
|
13075
13082
|
ellipseName: "WGS 72"
|
|
13076
13083
|
};
|
|
13077
|
-
var
|
|
13084
|
+
var Ol = H.WGS84 = {
|
|
13078
13085
|
a: 6378137,
|
|
13079
13086
|
rf: 298.257223563,
|
|
13080
13087
|
ellipseName: "WGS 84"
|
|
@@ -13084,9 +13091,9 @@ H.sphere = {
|
|
|
13084
13091
|
b: 6370997,
|
|
13085
13092
|
ellipseName: "Normal Sphere (r=6370997)"
|
|
13086
13093
|
};
|
|
13087
|
-
function
|
|
13094
|
+
function zl(e, i, n, r) {
|
|
13088
13095
|
var h = e * e, a = i * i, l = (h - a) / h, u = 0;
|
|
13089
|
-
r ? (e *= 1 - l * (
|
|
13096
|
+
r ? (e *= 1 - l * (tl + l * (el + l * il)), h = e * e, l = 0) : u = Math.sqrt(l);
|
|
13090
13097
|
var f = (h - a) / a;
|
|
13091
13098
|
return {
|
|
13092
13099
|
es: l,
|
|
@@ -13094,10 +13101,10 @@ function Ol(e, i, n, r) {
|
|
|
13094
13101
|
ep2: f
|
|
13095
13102
|
};
|
|
13096
13103
|
}
|
|
13097
|
-
function
|
|
13104
|
+
function Bl(e, i, n, r, h) {
|
|
13098
13105
|
if (!e) {
|
|
13099
13106
|
var a = re(H, r);
|
|
13100
|
-
a || (a =
|
|
13107
|
+
a || (a = Ol), e = a.a, i = a.b, n = a.rf;
|
|
13101
13108
|
}
|
|
13102
13109
|
return n && !i && (i = (1 - 1 / n) * e), (n === 0 || Math.abs(e - i) < I) && (h = !0, i = e), {
|
|
13103
13110
|
a: e,
|
|
@@ -13198,26 +13205,26 @@ var Ki = {
|
|
|
13198
13205
|
datumName: "Reseau National Belge 1972"
|
|
13199
13206
|
}
|
|
13200
13207
|
};
|
|
13201
|
-
for (var
|
|
13202
|
-
var Fa = Ki[
|
|
13208
|
+
for (var Nl in Ki) {
|
|
13209
|
+
var Fa = Ki[Nl];
|
|
13203
13210
|
Ki[Fa.datumName] = Fa;
|
|
13204
13211
|
}
|
|
13205
|
-
function
|
|
13212
|
+
function Dl(e, i, n, r, h, a, l) {
|
|
13206
13213
|
var u = {};
|
|
13207
|
-
return e === void 0 || e === "none" ? u.datum_type = Kn : u.datum_type =
|
|
13214
|
+
return e === void 0 || e === "none" ? u.datum_type = Kn : u.datum_type = Qh, i && (u.datum_params = i.map(parseFloat), (u.datum_params[0] !== 0 || u.datum_params[1] !== 0 || u.datum_params[2] !== 0) && (u.datum_type = pe), u.datum_params.length > 3 && (u.datum_params[3] !== 0 || u.datum_params[4] !== 0 || u.datum_params[5] !== 0 || u.datum_params[6] !== 0) && (u.datum_type = ve, u.datum_params[3] *= si, u.datum_params[4] *= si, u.datum_params[5] *= si, u.datum_params[6] = u.datum_params[6] / 1e6 + 1)), l && (u.datum_type = ze, u.grids = l), u.a = n, u.b = r, u.es = h, u.ep2 = a, u;
|
|
13208
13215
|
}
|
|
13209
13216
|
var fr = {};
|
|
13210
|
-
function
|
|
13211
|
-
var n = new DataView(i), r =
|
|
13217
|
+
function Rl(e, i) {
|
|
13218
|
+
var n = new DataView(i), r = Fl(n), h = Ul(n, r), a = Hl(n, h, r), l = { header: h, subgrids: a };
|
|
13212
13219
|
return fr[e] = l, l;
|
|
13213
13220
|
}
|
|
13214
|
-
function
|
|
13221
|
+
function Zl(e) {
|
|
13215
13222
|
if (e === void 0)
|
|
13216
13223
|
return null;
|
|
13217
13224
|
var i = e.split(",");
|
|
13218
|
-
return i.map(
|
|
13225
|
+
return i.map(Gl);
|
|
13219
13226
|
}
|
|
13220
|
-
function
|
|
13227
|
+
function Gl(e) {
|
|
13221
13228
|
if (e.length === 0)
|
|
13222
13229
|
return null;
|
|
13223
13230
|
var i = e[0] === "@";
|
|
@@ -13231,11 +13238,11 @@ function Zl(e) {
|
|
|
13231
13238
|
function Ae(e) {
|
|
13232
13239
|
return e / 3600 * Math.PI / 180;
|
|
13233
13240
|
}
|
|
13234
|
-
function
|
|
13241
|
+
function Fl(e) {
|
|
13235
13242
|
var i = e.getInt32(8, !1);
|
|
13236
13243
|
return i === 11 ? !1 : (i = e.getInt32(8, !0), i !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
|
|
13237
13244
|
}
|
|
13238
|
-
function
|
|
13245
|
+
function Ul(e, i) {
|
|
13239
13246
|
return {
|
|
13240
13247
|
nFields: e.getInt32(8, i),
|
|
13241
13248
|
nSubgridFields: e.getInt32(24, i),
|
|
@@ -13250,9 +13257,9 @@ function Fl(e, i) {
|
|
|
13250
13257
|
function Jn(e, i, n) {
|
|
13251
13258
|
return String.fromCharCode.apply(null, new Uint8Array(e.buffer.slice(i, n)));
|
|
13252
13259
|
}
|
|
13253
|
-
function
|
|
13260
|
+
function Hl(e, i, n) {
|
|
13254
13261
|
for (var r = 176, h = [], a = 0; a < i.nSubgrids; a++) {
|
|
13255
|
-
var l =
|
|
13262
|
+
var l = jl(e, r, n), u = Wl(e, r, l, n), f = Math.round(
|
|
13256
13263
|
1 + (l.upperLongitude - l.lowerLongitude) / l.longitudeInterval
|
|
13257
13264
|
), m = Math.round(
|
|
13258
13265
|
1 + (l.upperLatitude - l.lowerLatitude) / l.latitudeInterval
|
|
@@ -13262,17 +13269,17 @@ function Ul(e, i, n) {
|
|
|
13262
13269
|
del: [Ae(l.longitudeInterval), Ae(l.latitudeInterval)],
|
|
13263
13270
|
lim: [f, m],
|
|
13264
13271
|
count: l.gridNodeCount,
|
|
13265
|
-
cvs:
|
|
13272
|
+
cvs: ql(u)
|
|
13266
13273
|
}), r += 176 + l.gridNodeCount * 16;
|
|
13267
13274
|
}
|
|
13268
13275
|
return h;
|
|
13269
13276
|
}
|
|
13270
|
-
function
|
|
13277
|
+
function ql(e) {
|
|
13271
13278
|
return e.map(function(i) {
|
|
13272
13279
|
return [Ae(i.longitudeShift), Ae(i.latitudeShift)];
|
|
13273
13280
|
});
|
|
13274
13281
|
}
|
|
13275
|
-
function
|
|
13282
|
+
function jl(e, i, n) {
|
|
13276
13283
|
return {
|
|
13277
13284
|
name: Jn(e, i + 8, i + 16).trim(),
|
|
13278
13285
|
parent: Jn(e, i + 24, i + 24 + 8).trim(),
|
|
@@ -13285,7 +13292,7 @@ function ql(e, i, n) {
|
|
|
13285
13292
|
gridNodeCount: e.getInt32(i + 168, n)
|
|
13286
13293
|
};
|
|
13287
13294
|
}
|
|
13288
|
-
function
|
|
13295
|
+
function Wl(e, i, n, r) {
|
|
13289
13296
|
for (var h = i + 176, a = 16, l = [], u = 0; u < n.gridNodeCount; u++) {
|
|
13290
13297
|
var f = {
|
|
13291
13298
|
latitudeShift: e.getFloat32(h + u * a, r),
|
|
@@ -13304,7 +13311,7 @@ function Wt(e, i) {
|
|
|
13304
13311
|
if (m)
|
|
13305
13312
|
throw m;
|
|
13306
13313
|
};
|
|
13307
|
-
var n =
|
|
13314
|
+
var n = Ml(e);
|
|
13308
13315
|
if (typeof n != "object") {
|
|
13309
13316
|
i("Could not parse to valid json: " + e);
|
|
13310
13317
|
return;
|
|
@@ -13319,7 +13326,7 @@ function Wt(e, i) {
|
|
|
13319
13326
|
h && (n.datum_params = n.datum_params || (h.towgs84 ? h.towgs84.split(",") : null), n.ellps = h.ellipse, n.datumName = h.datumName ? h.datumName : n.datumCode);
|
|
13320
13327
|
}
|
|
13321
13328
|
n.k0 = n.k0 || 1, n.axis = n.axis || "enu", n.ellps = n.ellps || "wgs84", n.lat1 = n.lat1 || n.lat0;
|
|
13322
|
-
var a =
|
|
13329
|
+
var a = Bl(n.a, n.b, n.rf, n.ellps, n.sphere), l = zl(a.a, a.b, a.rf, n.R_A), u = Zl(n.nadgrids), f = n.datum || Dl(
|
|
13323
13330
|
n.datumCode,
|
|
13324
13331
|
n.datum_params,
|
|
13325
13332
|
a.a,
|
|
@@ -13330,9 +13337,9 @@ function Wt(e, i) {
|
|
|
13330
13337
|
);
|
|
13331
13338
|
Za(this, n), Za(this, r), this.a = a.a, this.b = a.b, this.rf = a.rf, this.sphere = a.sphere, this.es = l.es, this.e = l.e, this.ep2 = l.ep2, this.datum = f, this.init(), i(null, this);
|
|
13332
13339
|
}
|
|
13333
|
-
Wt.projections =
|
|
13340
|
+
Wt.projections = Il;
|
|
13334
13341
|
Wt.projections.start();
|
|
13335
|
-
function
|
|
13342
|
+
function Vl(e, i) {
|
|
13336
13343
|
return e.datum_type !== i.datum_type || e.a !== i.a || Math.abs(e.es - i.es) > 5e-11 ? !1 : e.datum_type === pe ? e.datum_params[0] === i.datum_params[0] && e.datum_params[1] === i.datum_params[1] && e.datum_params[2] === i.datum_params[2] : e.datum_type === ve ? e.datum_params[0] === i.datum_params[0] && e.datum_params[1] === i.datum_params[1] && e.datum_params[2] === i.datum_params[2] && e.datum_params[3] === i.datum_params[3] && e.datum_params[4] === i.datum_params[4] && e.datum_params[5] === i.datum_params[5] && e.datum_params[6] === i.datum_params[6] : !0;
|
|
13337
13344
|
}
|
|
13338
13345
|
function _r(e, i, n) {
|
|
@@ -13374,7 +13381,7 @@ function mr(e, i, n, r) {
|
|
|
13374
13381
|
z: R
|
|
13375
13382
|
};
|
|
13376
13383
|
}
|
|
13377
|
-
function
|
|
13384
|
+
function $l(e, i, n) {
|
|
13378
13385
|
if (i === pe)
|
|
13379
13386
|
return {
|
|
13380
13387
|
x: e.x + n[0],
|
|
@@ -13390,7 +13397,7 @@ function Vl(e, i, n) {
|
|
|
13390
13397
|
};
|
|
13391
13398
|
}
|
|
13392
13399
|
}
|
|
13393
|
-
function
|
|
13400
|
+
function Kl(e, i, n) {
|
|
13394
13401
|
if (i === pe)
|
|
13395
13402
|
return {
|
|
13396
13403
|
x: e.x - n[0],
|
|
@@ -13409,8 +13416,8 @@ function $l(e, i, n) {
|
|
|
13409
13416
|
function ji(e) {
|
|
13410
13417
|
return e === pe || e === ve;
|
|
13411
13418
|
}
|
|
13412
|
-
function
|
|
13413
|
-
if (
|
|
13419
|
+
function Xl(e, i, n) {
|
|
13420
|
+
if (Vl(e, i) || e.datum_type === Kn || i.datum_type === Kn)
|
|
13414
13421
|
return n;
|
|
13415
13422
|
var r = e.a, h = e.es;
|
|
13416
13423
|
if (e.datum_type === ze) {
|
|
@@ -13420,9 +13427,9 @@ function Kl(e, i, n) {
|
|
|
13420
13427
|
r = Na, h = Da;
|
|
13421
13428
|
}
|
|
13422
13429
|
var l = i.a, u = i.b, f = i.es;
|
|
13423
|
-
if (i.datum_type === ze && (l = Na, u =
|
|
13430
|
+
if (i.datum_type === ze && (l = Na, u = Yh, f = Da), h === f && r === l && !ji(e.datum_type) && !ji(i.datum_type))
|
|
13424
13431
|
return n;
|
|
13425
|
-
if (n = _r(n, h, r), ji(e.datum_type) && (n =
|
|
13432
|
+
if (n = _r(n, h, r), ji(e.datum_type) && (n = $l(n, e.datum_type, e.datum_params)), ji(i.datum_type) && (n = Kl(n, i.datum_type, i.datum_params)), n = mr(n, f, l, u), i.datum_type === ze) {
|
|
13426
13433
|
var m = Ua(i, !0, n);
|
|
13427
13434
|
if (m !== 0)
|
|
13428
13435
|
return;
|
|
@@ -13447,13 +13454,13 @@ function Ua(e, i, n) {
|
|
|
13447
13454
|
}
|
|
13448
13455
|
for (var f = u.grid.subgrids, m = 0, y = f.length; m < y; m++) {
|
|
13449
13456
|
var p = f[m], c = (Math.abs(p.del[1]) + Math.abs(p.del[0])) / 1e4, g = p.ll[0] - c, v = p.ll[1] - c, x = p.ll[0] + (p.lim[0] - 1) * p.del[0] + c, w = p.ll[1] + (p.lim[1] - 1) * p.del[1] + c;
|
|
13450
|
-
if (!(v > r.y || g > r.x || w < r.y || x < r.x) && (h =
|
|
13457
|
+
if (!(v > r.y || g > r.x || w < r.y || x < r.x) && (h = Jl(r, i, p), !isNaN(h.x)))
|
|
13451
13458
|
break t;
|
|
13452
13459
|
}
|
|
13453
13460
|
}
|
|
13454
13461
|
return isNaN(h.x) ? (console.log("Failed to find a grid shift table for location '" + -r.x * jt + " " + r.y * jt + " tried: '" + a + "'"), -1) : (n.x = -h.x, n.y = h.y, 0);
|
|
13455
13462
|
}
|
|
13456
|
-
function
|
|
13463
|
+
function Jl(e, i, n) {
|
|
13457
13464
|
var r = { x: Number.NaN, y: Number.NaN };
|
|
13458
13465
|
if (isNaN(e.x))
|
|
13459
13466
|
return r;
|
|
@@ -13528,7 +13535,7 @@ function gr(e) {
|
|
|
13528
13535
|
};
|
|
13529
13536
|
return e.length > 2 && (i.z = e[2]), e.length > 3 && (i.m = e[3]), i;
|
|
13530
13537
|
}
|
|
13531
|
-
function
|
|
13538
|
+
function Ql(e) {
|
|
13532
13539
|
ja(e.x), ja(e.y);
|
|
13533
13540
|
}
|
|
13534
13541
|
function ja(e) {
|
|
@@ -13540,7 +13547,7 @@ function ja(e) {
|
|
|
13540
13547
|
if (typeof e != "number" || e !== e || !isFinite(e))
|
|
13541
13548
|
throw new TypeError("coordinates must be finite numbers");
|
|
13542
13549
|
}
|
|
13543
|
-
function
|
|
13550
|
+
function Yl(e, i) {
|
|
13544
13551
|
return (e.datum.datum_type === pe || e.datum.datum_type === ve || e.datum.datum_type === ze) && i.datumCode !== "WGS84" || (i.datum.datum_type === pe || i.datum.datum_type === ve || i.datum.datum_type === ze) && e.datumCode !== "WGS84";
|
|
13545
13552
|
}
|
|
13546
13553
|
function tn(e, i, n, r) {
|
|
@@ -13552,7 +13559,7 @@ function tn(e, i, n, r) {
|
|
|
13552
13559
|
m: n.m
|
|
13553
13560
|
};
|
|
13554
13561
|
var a = n.z !== void 0;
|
|
13555
|
-
if (
|
|
13562
|
+
if (Ql(n), e.datum && i.datum && Yl(e, i) && (h = new Wt("WGS84"), n = tn(e, h, n, r), e = h), r && e.axis !== "enu" && (n = qa(e, !1, n)), e.projName === "longlat")
|
|
13556
13563
|
n = {
|
|
13557
13564
|
x: n.x * yt,
|
|
13558
13565
|
y: n.y * yt,
|
|
@@ -13564,7 +13571,7 @@ function tn(e, i, n, r) {
|
|
|
13564
13571
|
z: n.z || 0
|
|
13565
13572
|
}), n = e.inverse(n), !n)
|
|
13566
13573
|
return;
|
|
13567
|
-
if (e.from_greenwich && (n.x += e.from_greenwich), n =
|
|
13574
|
+
if (e.from_greenwich && (n.x += e.from_greenwich), n = Xl(e.datum, i.datum, n), !!n)
|
|
13568
13575
|
return i.from_greenwich && (n = {
|
|
13569
13576
|
x: n.x - i.from_greenwich,
|
|
13570
13577
|
y: n.y,
|
|
@@ -13607,18 +13614,18 @@ function At(e, i, n) {
|
|
|
13607
13614
|
}, r && (h.oProj = i), h);
|
|
13608
13615
|
}
|
|
13609
13616
|
var $a = 6, pr = "AJSAJS", vr = "AFAFAF", Ie = 65, Tt = 73, Bt = 79, ei = 86, ii = 90;
|
|
13610
|
-
const
|
|
13617
|
+
const tu = {
|
|
13611
13618
|
forward: yr,
|
|
13612
|
-
inverse:
|
|
13619
|
+
inverse: eu,
|
|
13613
13620
|
toPoint: Mr
|
|
13614
13621
|
};
|
|
13615
13622
|
function yr(e, i) {
|
|
13616
|
-
return i = i || 5,
|
|
13623
|
+
return i = i || 5, su(iu({
|
|
13617
13624
|
lat: e[1],
|
|
13618
13625
|
lon: e[0]
|
|
13619
13626
|
}), i);
|
|
13620
13627
|
}
|
|
13621
|
-
function
|
|
13628
|
+
function eu(e) {
|
|
13622
13629
|
var i = is(xr(e.toUpperCase()));
|
|
13623
13630
|
return i.lat && i.lon ? [i.lon, i.lat, i.lon, i.lat] : [i.left, i.bottom, i.right, i.top];
|
|
13624
13631
|
}
|
|
@@ -13632,7 +13639,7 @@ function Wn(e) {
|
|
|
13632
13639
|
function Ka(e) {
|
|
13633
13640
|
return 180 * (e / Math.PI);
|
|
13634
13641
|
}
|
|
13635
|
-
function
|
|
13642
|
+
function iu(e) {
|
|
13636
13643
|
var i = e.lat, n = e.lon, r = 6378137, h = 669438e-8, a = 0.9996, l, u, f, m, y, p, c, g = Wn(i), v = Wn(n), x, w;
|
|
13637
13644
|
w = Math.floor((n + 180) / 6) + 1, n === 180 && (w = 60), i >= 56 && i < 64 && n >= 3 && n < 12 && (w = 32), i >= 72 && i < 84 && (n >= 0 && n < 9 ? w = 31 : n >= 9 && n < 21 ? w = 33 : n >= 21 && n < 33 ? w = 35 : n >= 33 && n < 42 && (w = 37)), l = (w - 1) * 6 - 180 + 3, x = Wn(l), u = h / (1 - h), f = r / Math.sqrt(1 - h * Math.sin(g) * Math.sin(g)), m = Math.tan(g) * Math.tan(g), y = u * Math.cos(g) * Math.cos(g), p = Math.cos(g) * (v - x), c = r * ((1 - h / 4 - 3 * h * h / 64 - 5 * h * h * h / 256) * g - (3 * h / 8 + 3 * h * h / 32 + 45 * h * h * h / 1024) * Math.sin(2 * g) + (15 * h * h / 256 + 45 * h * h * h / 1024) * Math.sin(4 * g) - 35 * h * h * h / 3072 * Math.sin(6 * g));
|
|
13638
13645
|
var P = a * f * (p + (1 - m + y) * p * p * p / 6 + (5 - 18 * m + m * m + 72 * y - 58 * u) * p * p * p * p * p / 120) + 5e5, T = a * (c + f * Math.tan(g) * (p * p / 2 + (5 - m + 9 * y + 4 * y * y) * p * p * p * p / 24 + (61 - 58 * m + m * m + 600 * y - 330 * u) * p * p * p * p * p * p / 720));
|
|
@@ -13640,7 +13647,7 @@ function eu(e) {
|
|
|
13640
13647
|
northing: Math.round(T),
|
|
13641
13648
|
easting: Math.round(P),
|
|
13642
13649
|
zoneNumber: w,
|
|
13643
|
-
zoneLetter:
|
|
13650
|
+
zoneLetter: nu(i)
|
|
13644
13651
|
};
|
|
13645
13652
|
}
|
|
13646
13653
|
function is(e) {
|
|
@@ -13674,23 +13681,23 @@ function is(e) {
|
|
|
13674
13681
|
};
|
|
13675
13682
|
return st;
|
|
13676
13683
|
}
|
|
13677
|
-
function
|
|
13684
|
+
function nu(e) {
|
|
13678
13685
|
var i = "Z";
|
|
13679
13686
|
return 84 >= e && e >= 72 ? i = "X" : 72 > e && e >= 64 ? i = "W" : 64 > e && e >= 56 ? i = "V" : 56 > e && e >= 48 ? i = "U" : 48 > e && e >= 40 ? i = "T" : 40 > e && e >= 32 ? i = "S" : 32 > e && e >= 24 ? i = "R" : 24 > e && e >= 16 ? i = "Q" : 16 > e && e >= 8 ? i = "P" : 8 > e && e >= 0 ? i = "N" : 0 > e && e >= -8 ? i = "M" : -8 > e && e >= -16 ? i = "L" : -16 > e && e >= -24 ? i = "K" : -24 > e && e >= -32 ? i = "J" : -32 > e && e >= -40 ? i = "H" : -40 > e && e >= -48 ? i = "G" : -48 > e && e >= -56 ? i = "F" : -56 > e && e >= -64 ? i = "E" : -64 > e && e >= -72 ? i = "D" : -72 > e && e >= -80 && (i = "C"), i;
|
|
13680
13687
|
}
|
|
13681
|
-
function
|
|
13688
|
+
function su(e, i) {
|
|
13682
13689
|
var n = "00000" + e.easting, r = "00000" + e.northing;
|
|
13683
|
-
return e.zoneNumber + e.zoneLetter +
|
|
13690
|
+
return e.zoneNumber + e.zoneLetter + au(e.easting, e.northing, e.zoneNumber) + n.substr(n.length - 5, i) + r.substr(r.length - 5, i);
|
|
13684
13691
|
}
|
|
13685
|
-
function
|
|
13692
|
+
function au(e, i, n) {
|
|
13686
13693
|
var r = Lr(n), h = Math.floor(e / 1e5), a = Math.floor(i / 1e5) % 20;
|
|
13687
|
-
return
|
|
13694
|
+
return ru(h, a, r);
|
|
13688
13695
|
}
|
|
13689
13696
|
function Lr(e) {
|
|
13690
13697
|
var i = e % $a;
|
|
13691
13698
|
return i === 0 && (i = $a), i;
|
|
13692
13699
|
}
|
|
13693
|
-
function
|
|
13700
|
+
function ru(e, i, n) {
|
|
13694
13701
|
var r = n - 1, h = pr.charCodeAt(r), a = vr.charCodeAt(r), l = h + e - 1, u = a + i, f = !1;
|
|
13695
13702
|
l > ii && (l = l - ii + Ie - 1, f = !0), (l === Tt || h < Tt && l > Tt || (l > Tt || h < Tt) && f) && l++, (l === Bt || h < Bt && l > Bt || (l > Bt || h < Bt) && f) && (l++, l === Tt && l++), l > ii && (l = l - ii + Ie - 1), u > ei ? (u = u - ei + Ie - 1, f = !0) : f = !1, (u === Tt || a < Tt && u > Tt || (u > Tt || a < Tt) && f) && u++, (u === Bt || a < Bt && u > Bt || (u > Bt || a < Bt) && f) && (u++, u === Tt && u++), u > ei && (u = u - ei + Ie - 1);
|
|
13696
13703
|
var m = String.fromCharCode(l) + String.fromCharCode(u);
|
|
@@ -13711,7 +13718,7 @@ function xr(e) {
|
|
|
13711
13718
|
if (u <= "A" || u === "B" || u === "Y" || u >= "Z" || u === "I" || u === "O")
|
|
13712
13719
|
throw "MGRSPoint zone letter " + u + " not handled: " + e;
|
|
13713
13720
|
n = e.substring(a, a += 2);
|
|
13714
|
-
for (var f = Lr(l), m =
|
|
13721
|
+
for (var f = Lr(l), m = ou(n.charAt(0), f), y = hu(n.charAt(1), f); y < lu(u); )
|
|
13715
13722
|
y += 2e6;
|
|
13716
13723
|
var p = i - a;
|
|
13717
13724
|
if (p % 2 !== 0)
|
|
@@ -13728,7 +13735,7 @@ northing meters` + e;
|
|
|
13728
13735
|
accuracy: x
|
|
13729
13736
|
};
|
|
13730
13737
|
}
|
|
13731
|
-
function
|
|
13738
|
+
function ou(e, i) {
|
|
13732
13739
|
for (var n = pr.charCodeAt(i - 1), r = 1e5, h = !1; n !== e.charCodeAt(0); ) {
|
|
13733
13740
|
if (n++, n === Tt && n++, n === Bt && n++, n > ii) {
|
|
13734
13741
|
if (h)
|
|
@@ -13739,7 +13746,7 @@ function ru(e, i) {
|
|
|
13739
13746
|
}
|
|
13740
13747
|
return r;
|
|
13741
13748
|
}
|
|
13742
|
-
function
|
|
13749
|
+
function hu(e, i) {
|
|
13743
13750
|
if (e > "V")
|
|
13744
13751
|
throw "MGRSPoint given invalid Northing " + e;
|
|
13745
13752
|
for (var n = vr.charCodeAt(i - 1), r = 0, h = !1; n !== e.charCodeAt(0); ) {
|
|
@@ -13752,7 +13759,7 @@ function ou(e, i) {
|
|
|
13752
13759
|
}
|
|
13753
13760
|
return r;
|
|
13754
13761
|
}
|
|
13755
|
-
function
|
|
13762
|
+
function lu(e) {
|
|
13756
13763
|
var i;
|
|
13757
13764
|
switch (e) {
|
|
13758
13765
|
case "C":
|
|
@@ -13842,29 +13849,29 @@ Ne.fromMGRS = function(e) {
|
|
|
13842
13849
|
Ne.prototype.toMGRS = function(e) {
|
|
13843
13850
|
return yr([this.x, this.y], e);
|
|
13844
13851
|
};
|
|
13845
|
-
var
|
|
13852
|
+
var uu = 1, cu = 0.25, Xa = 0.046875, Ja = 0.01953125, Qa = 0.01068115234375, du = 0.75, fu = 0.46875, _u = 0.013020833333333334, mu = 0.007120768229166667, gu = 0.3645833333333333, pu = 0.005696614583333333, vu = 0.3076171875;
|
|
13846
13853
|
function ns(e) {
|
|
13847
13854
|
var i = [];
|
|
13848
|
-
i[0] =
|
|
13855
|
+
i[0] = uu - e * (cu + e * (Xa + e * (Ja + e * Qa))), i[1] = e * (du - e * (Xa + e * (Ja + e * Qa)));
|
|
13849
13856
|
var n = e * e;
|
|
13850
|
-
return i[2] = n * (
|
|
13857
|
+
return i[2] = n * (fu - e * (_u + e * mu)), n *= e, i[3] = n * (gu - e * pu), i[4] = n * e * vu, i;
|
|
13851
13858
|
}
|
|
13852
13859
|
function Re(e, i, n, r) {
|
|
13853
13860
|
return n *= i, i *= i, r[0] * e - n * (r[1] + i * (r[2] + i * (r[3] + i * r[4])));
|
|
13854
13861
|
}
|
|
13855
|
-
var
|
|
13862
|
+
var yu = 20;
|
|
13856
13863
|
function ss(e, i, n) {
|
|
13857
|
-
for (var r = 1 / (1 - i), h = e, a =
|
|
13864
|
+
for (var r = 1 / (1 - i), h = e, a = yu; a; --a) {
|
|
13858
13865
|
var l = Math.sin(h), u = 1 - i * l * l;
|
|
13859
13866
|
if (u = (Re(h, l, Math.cos(h), n) - e) * (u * Math.sqrt(u)) * r, h -= u, Math.abs(u) < I)
|
|
13860
13867
|
return h;
|
|
13861
13868
|
}
|
|
13862
13869
|
return h;
|
|
13863
13870
|
}
|
|
13864
|
-
function
|
|
13871
|
+
function Mu() {
|
|
13865
13872
|
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 = ns(this.es), this.ml0 = Re(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
13866
13873
|
}
|
|
13867
|
-
function
|
|
13874
|
+
function Lu(e) {
|
|
13868
13875
|
var i = e.x, n = e.y, r = O(i - this.long0), h, a, l, u = Math.sin(n), f = Math.cos(n);
|
|
13869
13876
|
if (this.es) {
|
|
13870
13877
|
var y = f * r, p = Math.pow(y, 2), c = this.ep2 * Math.pow(f, 2), g = Math.pow(c, 2), v = Math.abs(f) > I ? Math.tan(n) : 0, x = Math.pow(v, 2), w = Math.pow(x, 2);
|
|
@@ -13885,7 +13892,7 @@ function Mu(e) {
|
|
|
13885
13892
|
}
|
|
13886
13893
|
return e.x = a, e.y = l, e;
|
|
13887
13894
|
}
|
|
13888
|
-
function
|
|
13895
|
+
function xu(e) {
|
|
13889
13896
|
var i, n, r, h, a = (e.x - this.x0) * (1 / this.a), l = (e.y - this.y0) * (1 / this.a);
|
|
13890
13897
|
if (this.es)
|
|
13891
13898
|
if (i = this.ml0 + l / this.k0, n = ss(i, this.es, this.en), Math.abs(n) < S) {
|
|
@@ -13901,12 +13908,12 @@ function Lu(e) {
|
|
|
13901
13908
|
}
|
|
13902
13909
|
return e.x = h, e.y = r, e;
|
|
13903
13910
|
}
|
|
13904
|
-
var
|
|
13911
|
+
var wu = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
|
|
13905
13912
|
const Xi = {
|
|
13906
|
-
init:
|
|
13907
|
-
forward:
|
|
13908
|
-
inverse:
|
|
13909
|
-
names:
|
|
13913
|
+
init: Mu,
|
|
13914
|
+
forward: Lu,
|
|
13915
|
+
inverse: xu,
|
|
13916
|
+
names: wu
|
|
13910
13917
|
};
|
|
13911
13918
|
function wr(e) {
|
|
13912
13919
|
var i = Math.exp(e);
|
|
@@ -13917,53 +13924,53 @@ function Et(e, i) {
|
|
|
13917
13924
|
var n = Math.max(e, i), r = Math.min(e, i) / (n || 1);
|
|
13918
13925
|
return n * Math.sqrt(1 + Math.pow(r, 2));
|
|
13919
13926
|
}
|
|
13920
|
-
function
|
|
13927
|
+
function bu(e) {
|
|
13921
13928
|
var i = 1 + e, n = i - 1;
|
|
13922
13929
|
return n === 0 ? e : e * Math.log(i) / n;
|
|
13923
13930
|
}
|
|
13924
|
-
function
|
|
13931
|
+
function Pu(e) {
|
|
13925
13932
|
var i = Math.abs(e);
|
|
13926
|
-
return i =
|
|
13933
|
+
return i = bu(i * (1 + i / (Et(1, i) + 1))), e < 0 ? -i : i;
|
|
13927
13934
|
}
|
|
13928
13935
|
function as(e, i) {
|
|
13929
13936
|
for (var n = 2 * Math.cos(2 * i), r = e.length - 1, h = e[r], a = 0, l; --r >= 0; )
|
|
13930
13937
|
l = -a + n * h + e[r], a = h, h = l;
|
|
13931
13938
|
return i + l * Math.sin(2 * i);
|
|
13932
13939
|
}
|
|
13933
|
-
function
|
|
13940
|
+
function Cu(e, i) {
|
|
13934
13941
|
for (var n = 2 * Math.cos(i), r = e.length - 1, h = e[r], a = 0, l; --r >= 0; )
|
|
13935
13942
|
l = -a + n * h + e[r], a = h, h = l;
|
|
13936
13943
|
return Math.sin(i) * l;
|
|
13937
13944
|
}
|
|
13938
|
-
function
|
|
13945
|
+
function ku(e) {
|
|
13939
13946
|
var i = Math.exp(e);
|
|
13940
13947
|
return i = (i + 1 / i) / 2, i;
|
|
13941
13948
|
}
|
|
13942
13949
|
function br(e, i, n) {
|
|
13943
|
-
for (var r = Math.sin(i), h = Math.cos(i), a = wr(n), l =
|
|
13950
|
+
for (var r = Math.sin(i), h = Math.cos(i), a = wr(n), l = ku(n), u = 2 * h * l, f = -2 * r * a, m = e.length - 1, y = e[m], p = 0, c = 0, g = 0, v, x; --m >= 0; )
|
|
13944
13951
|
v = c, x = p, c = y, p = g, y = -v + u * c - f * p + e[m], g = -x + f * c + u * p;
|
|
13945
13952
|
return u = r * l, f = h * a, [u * y - f * g, u * g + f * y];
|
|
13946
13953
|
}
|
|
13947
|
-
function
|
|
13954
|
+
function Tu() {
|
|
13948
13955
|
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
|
13949
13956
|
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
|
13950
13957
|
this.approx && (Xi.init.apply(this), this.forward = Xi.forward, this.inverse = Xi.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 = [];
|
|
13951
13958
|
var e = this.es / (1 + Math.sqrt(1 - this.es)), i = e / (2 - e), n = i;
|
|
13952
13959
|
this.cgb[0] = i * (2 + i * (-2 / 3 + i * (-2 + i * (116 / 45 + i * (26 / 45 + i * (-2854 / 675)))))), this.cbg[0] = i * (-2 + i * (2 / 3 + i * (4 / 3 + i * (-82 / 45 + i * (32 / 45 + i * (4642 / 4725)))))), n = n * i, this.cgb[1] = n * (7 / 3 + i * (-8 / 5 + i * (-227 / 45 + i * (2704 / 315 + i * (2323 / 945))))), this.cbg[1] = n * (5 / 3 + i * (-16 / 15 + i * (-13 / 9 + i * (904 / 315 + i * (-1522 / 945))))), n = n * i, this.cgb[2] = n * (56 / 15 + i * (-136 / 35 + i * (-1262 / 105 + i * (73814 / 2835)))), this.cbg[2] = n * (-26 / 15 + i * (34 / 21 + i * (8 / 5 + i * (-12686 / 2835)))), n = n * i, this.cgb[3] = n * (4279 / 630 + i * (-332 / 35 + i * (-399572 / 14175))), this.cbg[3] = n * (1237 / 630 + i * (-12 / 5 + i * (-24832 / 14175))), n = n * i, this.cgb[4] = n * (4174 / 315 + i * (-144838 / 6237)), this.cbg[4] = n * (-734 / 315 + i * (109598 / 31185)), n = n * i, this.cgb[5] = n * (601676 / 22275), this.cbg[5] = n * (444337 / 155925), n = Math.pow(i, 2), this.Qn = this.k0 / (1 + i) * (1 + n * (1 / 4 + n * (1 / 64 + n / 256))), this.utg[0] = i * (-0.5 + i * (2 / 3 + i * (-37 / 96 + i * (1 / 360 + i * (81 / 512 + i * (-96199 / 604800)))))), this.gtu[0] = i * (0.5 + i * (-2 / 3 + i * (5 / 16 + i * (41 / 180 + i * (-127 / 288 + i * (7891 / 37800)))))), this.utg[1] = n * (-1 / 48 + i * (-1 / 15 + i * (437 / 1440 + i * (-46 / 105 + i * (1118711 / 3870720))))), this.gtu[1] = n * (13 / 48 + i * (-3 / 5 + i * (557 / 1440 + i * (281 / 630 + i * (-1983433 / 1935360))))), n = n * i, this.utg[2] = n * (-17 / 480 + i * (37 / 840 + i * (209 / 4480 + i * (-5569 / 90720)))), this.gtu[2] = n * (61 / 240 + i * (-103 / 140 + i * (15061 / 26880 + i * (167603 / 181440)))), n = n * i, this.utg[3] = n * (-4397 / 161280 + i * (11 / 504 + i * (830251 / 7257600))), this.gtu[3] = n * (49561 / 161280 + i * (-179 / 168 + i * (6601661 / 7257600))), n = n * i, this.utg[4] = n * (-4583 / 161280 + i * (108847 / 3991680)), this.gtu[4] = n * (34729 / 80640 + i * (-3418889 / 1995840)), n = n * i, this.utg[5] = n * (-20648693 / 638668800), this.gtu[5] = n * (212378941 / 319334400);
|
|
13953
13960
|
var r = as(this.cbg, this.lat0);
|
|
13954
|
-
this.Zb = -this.Qn * (r +
|
|
13961
|
+
this.Zb = -this.Qn * (r + Cu(this.gtu, 2 * r));
|
|
13955
13962
|
}
|
|
13956
|
-
function
|
|
13963
|
+
function Eu(e) {
|
|
13957
13964
|
var i = O(e.x - this.long0), n = e.y;
|
|
13958
13965
|
n = as(this.cbg, n);
|
|
13959
13966
|
var r = Math.sin(n), h = Math.cos(n), a = Math.sin(i), l = Math.cos(i);
|
|
13960
|
-
n = Math.atan2(r, l * h), i = Math.atan2(a * h, Et(r, h * l)), i =
|
|
13967
|
+
n = Math.atan2(r, l * h), i = Math.atan2(a * h, Et(r, h * l)), i = Pu(Math.tan(i));
|
|
13961
13968
|
var u = br(this.gtu, 2 * n, 2 * i);
|
|
13962
13969
|
n = n + u[0], i = i + u[1];
|
|
13963
13970
|
var f, m;
|
|
13964
13971
|
return Math.abs(i) <= 2.623395162778 ? (f = this.a * (this.Qn * i) + this.x0, m = this.a * (this.Qn * n + this.Zb) + this.y0) : (f = 1 / 0, m = 1 / 0), e.x = f, e.y = m, e;
|
|
13965
13972
|
}
|
|
13966
|
-
function
|
|
13973
|
+
function Su(e) {
|
|
13967
13974
|
var i = (e.x - this.x0) * (1 / this.a), n = (e.y - this.y0) * (1 / this.a);
|
|
13968
13975
|
n = (n - this.Zb) / this.Qn, i = i / this.Qn;
|
|
13969
13976
|
var r, h;
|
|
@@ -13976,14 +13983,14 @@ function Eu(e) {
|
|
|
13976
13983
|
r = 1 / 0, h = 1 / 0;
|
|
13977
13984
|
return e.x = r, e.y = h, e;
|
|
13978
13985
|
}
|
|
13979
|
-
var
|
|
13986
|
+
var Au = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
|
|
13980
13987
|
const Ji = {
|
|
13981
|
-
init:
|
|
13982
|
-
forward:
|
|
13983
|
-
inverse:
|
|
13984
|
-
names:
|
|
13988
|
+
init: Tu,
|
|
13989
|
+
forward: Eu,
|
|
13990
|
+
inverse: Su,
|
|
13991
|
+
names: Au
|
|
13985
13992
|
};
|
|
13986
|
-
function
|
|
13993
|
+
function Iu(e, i) {
|
|
13987
13994
|
if (e === void 0) {
|
|
13988
13995
|
if (e = Math.floor((O(i) + Math.PI) * 30 / Math.PI) + 1, e < 0)
|
|
13989
13996
|
return 0;
|
|
@@ -13992,51 +13999,51 @@ function Au(e, i) {
|
|
|
13992
13999
|
}
|
|
13993
14000
|
return e;
|
|
13994
14001
|
}
|
|
13995
|
-
var
|
|
13996
|
-
function
|
|
13997
|
-
var e =
|
|
14002
|
+
var Ou = "etmerc";
|
|
14003
|
+
function zu() {
|
|
14004
|
+
var e = Iu(this.zone, this.long0);
|
|
13998
14005
|
if (e === void 0)
|
|
13999
14006
|
throw new Error("unknown utm zone");
|
|
14000
14007
|
this.lat0 = 0, this.long0 = (6 * Math.abs(e) - 183) * yt, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, Ji.init.apply(this), this.forward = Ji.forward, this.inverse = Ji.inverse;
|
|
14001
14008
|
}
|
|
14002
|
-
var
|
|
14003
|
-
const
|
|
14004
|
-
init:
|
|
14005
|
-
names:
|
|
14006
|
-
dependsOn:
|
|
14009
|
+
var Bu = ["Universal Transverse Mercator System", "utm"];
|
|
14010
|
+
const Nu = {
|
|
14011
|
+
init: zu,
|
|
14012
|
+
names: Bu,
|
|
14013
|
+
dependsOn: Ou
|
|
14007
14014
|
};
|
|
14008
14015
|
function rs(e, i) {
|
|
14009
14016
|
return Math.pow((1 - e) / (1 + e), i);
|
|
14010
14017
|
}
|
|
14011
|
-
var
|
|
14012
|
-
function
|
|
14018
|
+
var Du = 20;
|
|
14019
|
+
function Ru() {
|
|
14013
14020
|
var e = Math.sin(this.lat0), i = Math.cos(this.lat0);
|
|
14014
14021
|
i *= i, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * e * e), this.C = Math.sqrt(1 + this.es * i * i / (1 - this.es)), this.phic0 = Math.asin(e / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + tt) / (Math.pow(Math.tan(0.5 * this.lat0 + tt), this.C) * rs(this.e * e, this.ratexp));
|
|
14015
14022
|
}
|
|
14016
|
-
function
|
|
14023
|
+
function Zu(e) {
|
|
14017
14024
|
var i = e.x, n = e.y;
|
|
14018
14025
|
return e.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * n + tt), this.C) * rs(this.e * Math.sin(n), this.ratexp)) - S, e.x = this.C * i, e;
|
|
14019
14026
|
}
|
|
14020
|
-
function
|
|
14021
|
-
for (var i = 1e-14, n = e.x / this.C, r = e.y, h = Math.pow(Math.tan(0.5 * r + tt) / this.K, 1 / this.C), a =
|
|
14027
|
+
function Gu(e) {
|
|
14028
|
+
for (var i = 1e-14, n = e.x / this.C, r = e.y, h = Math.pow(Math.tan(0.5 * r + tt) / this.K, 1 / this.C), a = Du; a > 0 && (r = 2 * Math.atan(h * rs(this.e * Math.sin(e.y), -0.5 * this.e)) - S, !(Math.abs(r - e.y) < i)); --a)
|
|
14022
14029
|
e.y = r;
|
|
14023
14030
|
return a ? (e.x = n, e.y = r, e) : null;
|
|
14024
14031
|
}
|
|
14025
|
-
var
|
|
14032
|
+
var Fu = ["gauss"];
|
|
14026
14033
|
const os = {
|
|
14027
|
-
init:
|
|
14028
|
-
forward:
|
|
14029
|
-
inverse:
|
|
14030
|
-
names:
|
|
14034
|
+
init: Ru,
|
|
14035
|
+
forward: Zu,
|
|
14036
|
+
inverse: Gu,
|
|
14037
|
+
names: Fu
|
|
14031
14038
|
};
|
|
14032
|
-
function
|
|
14039
|
+
function Uu() {
|
|
14033
14040
|
os.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"));
|
|
14034
14041
|
}
|
|
14035
|
-
function
|
|
14042
|
+
function Hu(e) {
|
|
14036
14043
|
var i, n, r, h;
|
|
14037
14044
|
return e.x = O(e.x - this.long0), os.forward.apply(this, [e]), i = Math.sin(e.y), n = Math.cos(e.y), r = Math.cos(e.x), h = this.k0 * this.R2 / (1 + this.sinc0 * i + this.cosc0 * n * r), e.x = h * n * Math.sin(e.x), e.y = h * (this.cosc0 * i - this.sinc0 * n * r), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
|
|
14038
14045
|
}
|
|
14039
|
-
function
|
|
14046
|
+
function qu(e) {
|
|
14040
14047
|
var i, n, r, h, a;
|
|
14041
14048
|
if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, a = Et(e.x, e.y)) {
|
|
14042
14049
|
var l = 2 * Math.atan2(a, this.R2);
|
|
@@ -14045,24 +14052,24 @@ function Hu(e) {
|
|
|
14045
14052
|
h = this.phic0, r = 0;
|
|
14046
14053
|
return e.x = r, e.y = h, os.inverse.apply(this, [e]), e.x = O(e.x + this.long0), e;
|
|
14047
14054
|
}
|
|
14048
|
-
var
|
|
14049
|
-
const
|
|
14050
|
-
init:
|
|
14051
|
-
forward:
|
|
14052
|
-
inverse:
|
|
14053
|
-
names:
|
|
14055
|
+
var ju = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
14056
|
+
const Wu = {
|
|
14057
|
+
init: Uu,
|
|
14058
|
+
forward: Hu,
|
|
14059
|
+
inverse: qu,
|
|
14060
|
+
names: ju
|
|
14054
14061
|
};
|
|
14055
|
-
function
|
|
14062
|
+
function Vu(e, i, n) {
|
|
14056
14063
|
return i *= n, Math.tan(0.5 * (S + e)) * Math.pow((1 - i) / (1 + i), 0.5 * n);
|
|
14057
14064
|
}
|
|
14058
|
-
function
|
|
14065
|
+
function $u() {
|
|
14059
14066
|
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) <= I && (this.k0 = 0.5 * (1 + mi(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= I && (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) <= I && Math.abs(Math.cos(this.lat_ts)) > I && (this.k0 = 0.5 * this.cons * Vt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / Rt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Vt(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - S, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
14060
14067
|
}
|
|
14061
|
-
function
|
|
14068
|
+
function Ku(e) {
|
|
14062
14069
|
var i = e.x, n = e.y, r = Math.sin(n), h = Math.cos(n), a, l, u, f, m, y, p = O(i - this.long0);
|
|
14063
14070
|
return Math.abs(Math.abs(i - this.long0) - Math.PI) <= I && Math.abs(n + this.lat0) <= I ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (a = 2 * this.k0 / (1 + this.sinlat0 * r + this.coslat0 * h * Math.cos(p)), e.x = this.a * a * h * Math.sin(p) + this.x0, e.y = this.a * a * (this.coslat0 * r - this.sinlat0 * h * Math.cos(p)) + this.y0, e) : (l = 2 * Math.atan(this.ssfn_(n, r, this.e)) - S, f = Math.cos(l), u = Math.sin(l), Math.abs(this.coslat0) <= I ? (m = Rt(this.e, n * this.con, this.con * r), y = 2 * this.a * this.k0 * m / this.cons, e.x = this.x0 + y * Math.sin(i - this.long0), e.y = this.y0 - this.con * y * Math.cos(i - this.long0), e) : (Math.abs(this.sinlat0) < I ? (a = 2 * this.a * this.k0 / (1 + f * Math.cos(p)), e.y = a * u) : (a = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * u + this.cosX0 * f * Math.cos(p))), e.y = a * (this.cosX0 * u - this.sinX0 * f * Math.cos(p)) + this.y0), e.x = a * f * Math.sin(p) + this.x0, e));
|
|
14064
14071
|
}
|
|
14065
|
-
function
|
|
14072
|
+
function Xu(e) {
|
|
14066
14073
|
e.x -= this.x0, e.y -= this.y0;
|
|
14067
14074
|
var i, n, r, h, a, l = Math.sqrt(e.x * e.x + e.y * e.y);
|
|
14068
14075
|
if (this.sphere) {
|
|
@@ -14076,15 +14083,15 @@ function Ku(e) {
|
|
|
14076
14083
|
h = 2 * Math.atan(l * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), i = this.long0, l <= I ? a = this.X0 : (a = Math.asin(Math.cos(h) * this.sinX0 + e.y * Math.sin(h) * this.cosX0 / l), i = O(this.long0 + Math.atan2(e.x * Math.sin(h), l * this.cosX0 * Math.cos(h) - e.y * this.sinX0 * Math.sin(h)))), n = -1 * fi(this.e, Math.tan(0.5 * (S + a)));
|
|
14077
14084
|
return e.x = i, e.y = n, e;
|
|
14078
14085
|
}
|
|
14079
|
-
var
|
|
14080
|
-
const
|
|
14081
|
-
init:
|
|
14082
|
-
forward:
|
|
14083
|
-
inverse:
|
|
14084
|
-
names:
|
|
14085
|
-
ssfn_:
|
|
14086
|
+
var Ju = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)", "Polar_Stereographic"];
|
|
14087
|
+
const Qu = {
|
|
14088
|
+
init: $u,
|
|
14089
|
+
forward: Ku,
|
|
14090
|
+
inverse: Xu,
|
|
14091
|
+
names: Ju,
|
|
14092
|
+
ssfn_: Vu
|
|
14086
14093
|
};
|
|
14087
|
-
function
|
|
14094
|
+
function Yu() {
|
|
14088
14095
|
var e = this.lat0;
|
|
14089
14096
|
this.lambda0 = this.long0;
|
|
14090
14097
|
var i = Math.sin(e), n = this.a, r = this.rf, h = 1 / r, a = 2 * h - Math.pow(h, 2), l = this.e = Math.sqrt(a);
|
|
@@ -14092,11 +14099,11 @@ function Qu() {
|
|
|
14092
14099
|
var u = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), f = Math.log(Math.tan(Math.PI / 4 + e / 2)), m = Math.log((1 + l * i) / (1 - l * i));
|
|
14093
14100
|
this.K = u - this.alpha * f + this.alpha * l / 2 * m;
|
|
14094
14101
|
}
|
|
14095
|
-
function
|
|
14102
|
+
function tc(e) {
|
|
14096
14103
|
var i = Math.log(Math.tan(Math.PI / 4 - e.y / 2)), n = this.e / 2 * Math.log((1 + this.e * Math.sin(e.y)) / (1 - this.e * Math.sin(e.y))), r = -this.alpha * (i + n) + this.K, h = 2 * (Math.atan(Math.exp(r)) - Math.PI / 4), a = this.alpha * (e.x - this.lambda0), l = Math.atan(Math.sin(a) / (Math.sin(this.b0) * Math.tan(h) + Math.cos(this.b0) * Math.cos(a))), u = Math.asin(Math.cos(this.b0) * Math.sin(h) - Math.sin(this.b0) * Math.cos(h) * Math.cos(a));
|
|
14097
14104
|
return e.y = this.R / 2 * Math.log((1 + Math.sin(u)) / (1 - Math.sin(u))) + this.y0, e.x = this.R * l + this.x0, e;
|
|
14098
14105
|
}
|
|
14099
|
-
function
|
|
14106
|
+
function ec(e) {
|
|
14100
14107
|
for (var i = e.x - this.x0, n = e.y - this.y0, r = i / this.R, h = 2 * (Math.atan(Math.exp(n / this.R)) - Math.PI / 4), a = Math.asin(Math.cos(this.b0) * Math.sin(h) + Math.sin(this.b0) * Math.cos(h) * Math.cos(r)), l = Math.atan(Math.sin(r) / (Math.cos(this.b0) * Math.cos(r) - Math.sin(this.b0) * Math.tan(h))), u = this.lambda0 + l / this.alpha, f = 0, m = a, y = -1e3, p = 0; Math.abs(m - y) > 1e-7; ) {
|
|
14101
14108
|
if (++p > 20)
|
|
14102
14109
|
return;
|
|
@@ -14104,21 +14111,21 @@ function tc(e) {
|
|
|
14104
14111
|
}
|
|
14105
14112
|
return e.x = u, e.y = m, e;
|
|
14106
14113
|
}
|
|
14107
|
-
var
|
|
14108
|
-
const
|
|
14109
|
-
init:
|
|
14110
|
-
forward:
|
|
14111
|
-
inverse:
|
|
14112
|
-
names:
|
|
14114
|
+
var ic = ["somerc"];
|
|
14115
|
+
const nc = {
|
|
14116
|
+
init: Yu,
|
|
14117
|
+
forward: tc,
|
|
14118
|
+
inverse: ec,
|
|
14119
|
+
names: ic
|
|
14113
14120
|
};
|
|
14114
14121
|
var Te = 1e-7;
|
|
14115
|
-
function
|
|
14122
|
+
function sc(e) {
|
|
14116
14123
|
var i = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], n = typeof e.PROJECTION == "object" ? Object.keys(e.PROJECTION)[0] : e.PROJECTION;
|
|
14117
14124
|
return "no_uoff" in e || "no_off" in e || i.indexOf(n) !== -1;
|
|
14118
14125
|
}
|
|
14119
|
-
function
|
|
14126
|
+
function ac() {
|
|
14120
14127
|
var e, i, n, r, h, a, l, u, f, m, y = 0, p, c = 0, g = 0, v = 0, x = 0, w = 0, P = 0;
|
|
14121
|
-
this.no_off =
|
|
14128
|
+
this.no_off = sc(this), this.no_rot = "no_rot" in this;
|
|
14122
14129
|
var T = !1;
|
|
14123
14130
|
"alpha" in this && (T = !0);
|
|
14124
14131
|
var A = !1;
|
|
@@ -14129,7 +14136,7 @@ function sc() {
|
|
|
14129
14136
|
var D = 1 - this.es;
|
|
14130
14137
|
i = Math.sqrt(D), Math.abs(this.lat0) > I ? (u = Math.sin(this.lat0), n = Math.cos(this.lat0), e = 1 - this.es * u * u, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / D), this.A = this.B * this.k0 * i / e, r = this.B * i / (n * Math.sqrt(e)), h = r * r - 1, h <= 0 ? h = 0 : (h = Math.sqrt(h), this.lat0 < 0 && (h = -h)), this.E = h += r, this.E *= Math.pow(Rt(this.e, this.lat0, u), this.B)) : (this.B = 1 / i, this.A = this.k0, this.E = r = h = 1), T || A ? (T ? (p = Math.asin(Math.sin(P) / r), A || (y = P)) : (p = y, P = Math.asin(r * Math.sin(p))), this.lam0 = c - Math.asin(0.5 * (h - 1 / h) * Math.tan(p)) / this.B) : (a = Math.pow(Rt(this.e, x, Math.sin(x)), this.B), l = Math.pow(Rt(this.e, w, Math.sin(w)), this.B), h = this.E / a, f = (l - a) / (l + a), m = this.E * this.E, m = (m - l * a) / (m + l * a), e = g - v, e < -Math.pi ? v -= ci : e > Math.pi && (v += ci), this.lam0 = O(0.5 * (g + v) - Math.atan(m * Math.tan(0.5 * this.B * (g - v)) / f) / this.B), p = Math.atan(2 * Math.sin(this.B * O(g - this.lam0)) / (h - 1 / h)), y = P = Math.asin(r * Math.sin(p))), this.singam = Math.sin(p), this.cosgam = Math.cos(p), this.sinrot = Math.sin(y), this.cosrot = Math.cos(y), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(r * r - 1) / Math.cos(P))), this.lat0 < 0 && (this.u_0 = -this.u_0)), h = 0.5 * p, this.v_pole_n = this.ArB * Math.log(Math.tan(tt - h)), this.v_pole_s = this.ArB * Math.log(Math.tan(tt + h));
|
|
14131
14138
|
}
|
|
14132
|
-
function
|
|
14139
|
+
function rc(e) {
|
|
14133
14140
|
var i = {}, n, r, h, a, l, u, f, m;
|
|
14134
14141
|
if (e.x = e.x - this.lam0, Math.abs(Math.abs(e.y) - S) > I) {
|
|
14135
14142
|
if (l = this.E / Math.pow(Rt(this.e, e.y, Math.sin(e.y)), this.B), u = 1 / l, n = 0.5 * (l - u), r = 0.5 * (l + u), a = Math.sin(this.B * e.x), h = (n * this.singam - a * this.cosgam) / r, Math.abs(Math.abs(h) - 1) < I)
|
|
@@ -14139,7 +14146,7 @@ function ac(e) {
|
|
|
14139
14146
|
m = e.y > 0 ? this.v_pole_n : this.v_pole_s, f = this.ArB * e.y;
|
|
14140
14147
|
return this.no_rot ? (i.x = f, i.y = m) : (f -= this.u_0, i.x = m * this.cosrot + f * this.sinrot, i.y = f * this.cosrot - m * this.sinrot), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
|
|
14141
14148
|
}
|
|
14142
|
-
function
|
|
14149
|
+
function oc(e) {
|
|
14143
14150
|
var i, n, r, h, a, l, u, f = {};
|
|
14144
14151
|
if (e.x = (e.x - this.x0) * (1 / this.a), e.y = (e.y - this.y0) * (1 / this.a), this.no_rot ? (n = e.y, i = e.x) : (n = e.x * this.cosrot - e.y * this.sinrot, i = e.y * this.cosrot + e.x * this.sinrot + this.u_0), r = Math.exp(-this.BrA * n), h = 0.5 * (r - 1 / r), a = 0.5 * (r + 1 / r), l = Math.sin(this.BrA * i), u = (l * this.cosgam + h * this.singam) / a, Math.abs(Math.abs(u) - 1) < I)
|
|
14145
14152
|
f.x = 0, f.y = u < 0 ? -S : S;
|
|
@@ -14150,14 +14157,14 @@ function rc(e) {
|
|
|
14150
14157
|
}
|
|
14151
14158
|
return f.x += this.lam0, f;
|
|
14152
14159
|
}
|
|
14153
|
-
var
|
|
14154
|
-
const
|
|
14155
|
-
init:
|
|
14156
|
-
forward:
|
|
14157
|
-
inverse:
|
|
14158
|
-
names:
|
|
14160
|
+
var hc = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
|
|
14161
|
+
const lc = {
|
|
14162
|
+
init: ac,
|
|
14163
|
+
forward: rc,
|
|
14164
|
+
inverse: oc,
|
|
14165
|
+
names: hc
|
|
14159
14166
|
};
|
|
14160
|
-
function
|
|
14167
|
+
function uc() {
|
|
14161
14168
|
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) < I)) {
|
|
14162
14169
|
var e = this.b / this.a;
|
|
14163
14170
|
this.e = Math.sqrt(1 - e * e);
|
|
@@ -14165,7 +14172,7 @@ function lc() {
|
|
|
14165
14172
|
Math.abs(this.lat1 - this.lat2) > I ? this.ns = Math.log(r / u) / Math.log(h / f) : this.ns = i, isNaN(this.ns) && (this.ns = i), this.f0 = r / (this.ns * Math.pow(h, this.ns)), this.rh = this.a * this.f0 * Math.pow(m, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
14166
14173
|
}
|
|
14167
14174
|
}
|
|
14168
|
-
function
|
|
14175
|
+
function cc(e) {
|
|
14169
14176
|
var i = e.x, n = e.y;
|
|
14170
14177
|
Math.abs(2 * Math.abs(n) - Math.PI) <= I && (n = mi(n) * (S - 2 * I));
|
|
14171
14178
|
var r = Math.abs(Math.abs(n) - S), h, a;
|
|
@@ -14179,7 +14186,7 @@ function uc(e) {
|
|
|
14179
14186
|
var l = this.ns * O(i - this.long0);
|
|
14180
14187
|
return e.x = this.k0 * (a * Math.sin(l)) + this.x0, e.y = this.k0 * (this.rh - a * Math.cos(l)) + this.y0, e;
|
|
14181
14188
|
}
|
|
14182
|
-
function
|
|
14189
|
+
function dc(e) {
|
|
14183
14190
|
var i, n, r, h, a, l = (e.x - this.x0) / this.k0, u = this.rh - (e.y - this.y0) / this.k0;
|
|
14184
14191
|
this.ns > 0 ? (i = Math.sqrt(l * l + u * u), n = 1) : (i = -Math.sqrt(l * l + u * u), n = -1);
|
|
14185
14192
|
var f = 0;
|
|
@@ -14190,7 +14197,7 @@ function cc(e) {
|
|
|
14190
14197
|
h = -S;
|
|
14191
14198
|
return a = O(f / this.ns + this.long0), e.x = a, e.y = h, e;
|
|
14192
14199
|
}
|
|
14193
|
-
var
|
|
14200
|
+
var fc = [
|
|
14194
14201
|
"Lambert Tangential Conformal Conic Projection",
|
|
14195
14202
|
"Lambert_Conformal_Conic",
|
|
14196
14203
|
"Lambert_Conformal_Conic_1SP",
|
|
@@ -14199,20 +14206,20 @@ var dc = [
|
|
|
14199
14206
|
"Lambert Conic Conformal (1SP)",
|
|
14200
14207
|
"Lambert Conic Conformal (2SP)"
|
|
14201
14208
|
];
|
|
14202
|
-
const
|
|
14203
|
-
init:
|
|
14204
|
-
forward:
|
|
14205
|
-
inverse:
|
|
14206
|
-
names:
|
|
14209
|
+
const _c = {
|
|
14210
|
+
init: uc,
|
|
14211
|
+
forward: cc,
|
|
14212
|
+
inverse: dc,
|
|
14213
|
+
names: fc
|
|
14207
14214
|
};
|
|
14208
|
-
function
|
|
14215
|
+
function mc() {
|
|
14209
14216
|
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;
|
|
14210
14217
|
}
|
|
14211
|
-
function
|
|
14218
|
+
function gc(e) {
|
|
14212
14219
|
var i, n, r, h, a, l, u, f = e.x, m = e.y, y = O(f - this.long0);
|
|
14213
14220
|
return i = Math.pow((1 + this.e * Math.sin(m)) / (1 - this.e * Math.sin(m)), this.alfa * this.e / 2), n = 2 * (Math.atan(this.k * Math.pow(Math.tan(m / 2 + this.s45), this.alfa) / i) - this.s45), r = -y * this.alfa, h = Math.asin(Math.cos(this.ad) * Math.sin(n) + Math.sin(this.ad) * Math.cos(n) * Math.cos(r)), a = Math.asin(Math.cos(n) * Math.sin(r) / Math.cos(h)), l = this.n * a, u = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(h / 2 + this.s45), this.n), e.y = u * Math.cos(l) / 1, e.x = u * Math.sin(l) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
|
|
14214
14221
|
}
|
|
14215
|
-
function
|
|
14222
|
+
function pc(e) {
|
|
14216
14223
|
var i, n, r, h, a, l, u, f, m = e.x;
|
|
14217
14224
|
e.x = e.y, e.y = m, this.czech || (e.y *= -1, e.x *= -1), l = Math.sqrt(e.x * e.x + e.y * e.y), a = Math.atan2(e.y, e.x), h = a / Math.sin(this.s0), r = 2 * (Math.atan(Math.pow(this.ro0 / l, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), i = Math.asin(Math.cos(this.ad) * Math.sin(r) - Math.sin(this.ad) * Math.cos(r) * Math.cos(h)), n = Math.asin(Math.cos(r) * Math.sin(h) / Math.cos(i)), e.x = this.long0 - n / this.alfa, u = i, f = 0;
|
|
14218
14225
|
var y = 0;
|
|
@@ -14221,12 +14228,12 @@ function gc(e) {
|
|
|
14221
14228
|
while (f === 0 && y < 15);
|
|
14222
14229
|
return y >= 15 ? null : e;
|
|
14223
14230
|
}
|
|
14224
|
-
var
|
|
14225
|
-
const
|
|
14226
|
-
init:
|
|
14227
|
-
forward:
|
|
14228
|
-
inverse:
|
|
14229
|
-
names:
|
|
14231
|
+
var vc = ["Krovak", "krovak"];
|
|
14232
|
+
const yc = {
|
|
14233
|
+
init: mc,
|
|
14234
|
+
forward: gc,
|
|
14235
|
+
inverse: pc,
|
|
14236
|
+
names: vc
|
|
14230
14237
|
};
|
|
14231
14238
|
function Pt(e, i, n, r, h) {
|
|
14232
14239
|
return e * h - i * Math.sin(2 * h) + n * Math.sin(4 * h) - r * Math.sin(6 * h);
|
|
@@ -14258,10 +14265,10 @@ function en(e, i, n, r, h) {
|
|
|
14258
14265
|
return a;
|
|
14259
14266
|
return NaN;
|
|
14260
14267
|
}
|
|
14261
|
-
function
|
|
14268
|
+
function Mc() {
|
|
14262
14269
|
this.sphere || (this.e0 = gi(this.es), this.e1 = pi(this.es), this.e2 = vi(this.es), this.e3 = yi(this.es), this.ml0 = this.a * Pt(this.e0, this.e1, this.e2, this.e3, this.lat0));
|
|
14263
14270
|
}
|
|
14264
|
-
function
|
|
14271
|
+
function Lc(e) {
|
|
14265
14272
|
var i, n, r = e.x, h = e.y;
|
|
14266
14273
|
if (r = O(r - this.long0), this.sphere)
|
|
14267
14274
|
i = this.a * Math.asin(Math.cos(h) * Math.sin(r)), n = this.a * (Math.atan2(Math.tan(h), Math.cos(r)) - this.lat0);
|
|
@@ -14271,7 +14278,7 @@ function Mc(e) {
|
|
|
14271
14278
|
}
|
|
14272
14279
|
return e.x = i + this.x0, e.y = n + this.y0, e;
|
|
14273
14280
|
}
|
|
14274
|
-
function
|
|
14281
|
+
function xc(e) {
|
|
14275
14282
|
e.x -= this.x0, e.y -= this.y0;
|
|
14276
14283
|
var i = e.x / this.a, n = e.y / this.a, r, h;
|
|
14277
14284
|
if (this.sphere) {
|
|
@@ -14286,23 +14293,23 @@ function Lc(e) {
|
|
|
14286
14293
|
}
|
|
14287
14294
|
return e.x = O(h + this.long0), e.y = he(r), e;
|
|
14288
14295
|
}
|
|
14289
|
-
var
|
|
14290
|
-
const
|
|
14291
|
-
init:
|
|
14292
|
-
forward:
|
|
14293
|
-
inverse:
|
|
14294
|
-
names:
|
|
14296
|
+
var wc = ["Cassini", "Cassini_Soldner", "cass"];
|
|
14297
|
+
const bc = {
|
|
14298
|
+
init: Mc,
|
|
14299
|
+
forward: Lc,
|
|
14300
|
+
inverse: xc,
|
|
14301
|
+
names: wc
|
|
14295
14302
|
};
|
|
14296
14303
|
function ae(e, i) {
|
|
14297
14304
|
var n;
|
|
14298
14305
|
return e > 1e-7 ? (n = e * i, (1 - e * e) * (i / (1 - n * n) - 0.5 / e * Math.log((1 - n) / (1 + n)))) : 2 * i;
|
|
14299
14306
|
}
|
|
14300
|
-
var
|
|
14301
|
-
function
|
|
14307
|
+
var Pc = 1, Cc = 2, kc = 3, Tc = 4;
|
|
14308
|
+
function Ec() {
|
|
14302
14309
|
var e = Math.abs(this.lat0);
|
|
14303
14310
|
if (Math.abs(e - S) < I ? this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE : Math.abs(e) < I ? this.mode = this.EQUIT : this.mode = this.OBLIQ, this.es > 0) {
|
|
14304
14311
|
var i;
|
|
14305
|
-
switch (this.qp = ae(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa =
|
|
14312
|
+
switch (this.qp = ae(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = Rc(this.es), this.mode) {
|
|
14306
14313
|
case this.N_POLE:
|
|
14307
14314
|
this.dd = 1;
|
|
14308
14315
|
break;
|
|
@@ -14319,7 +14326,7 @@ function Tc() {
|
|
|
14319
14326
|
} else
|
|
14320
14327
|
this.mode === this.OBLIQ && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
|
|
14321
14328
|
}
|
|
14322
|
-
function
|
|
14329
|
+
function Sc(e) {
|
|
14323
14330
|
var i, n, r, h, a, l, u, f, m, y, p = e.x, c = e.y;
|
|
14324
14331
|
if (p = O(p - this.long0), this.sphere) {
|
|
14325
14332
|
if (a = Math.sin(c), y = Math.cos(c), r = Math.cos(p), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
@@ -14361,7 +14368,7 @@ function Ec(e) {
|
|
|
14361
14368
|
}
|
|
14362
14369
|
return e.x = this.a * i + this.x0, e.y = this.a * n + this.y0, e;
|
|
14363
14370
|
}
|
|
14364
|
-
function
|
|
14371
|
+
function Ac(e) {
|
|
14365
14372
|
e.x -= this.x0, e.y -= this.y0;
|
|
14366
14373
|
var i = e.x / this.a, n = e.y / this.a, r, h, a, l, u, f, m;
|
|
14367
14374
|
if (this.sphere) {
|
|
@@ -14393,47 +14400,47 @@ function Sc(e) {
|
|
|
14393
14400
|
return e.x = this.long0, e.y = this.lat0, e;
|
|
14394
14401
|
m = 1 - u / this.qp, this.mode === this.S_POLE && (m = -m);
|
|
14395
14402
|
}
|
|
14396
|
-
r = Math.atan2(i, n), h =
|
|
14403
|
+
r = Math.atan2(i, n), h = Zc(Math.asin(m), this.apa);
|
|
14397
14404
|
}
|
|
14398
14405
|
return e.x = O(this.long0 + r), e.y = h, e;
|
|
14399
14406
|
}
|
|
14400
|
-
var
|
|
14401
|
-
function
|
|
14407
|
+
var Ic = 0.3333333333333333, Oc = 0.17222222222222222, zc = 0.10257936507936508, Bc = 0.06388888888888888, Nc = 0.0664021164021164, Dc = 0.016415012942191543;
|
|
14408
|
+
function Rc(e) {
|
|
14402
14409
|
var i, n = [];
|
|
14403
|
-
return n[0] = e *
|
|
14410
|
+
return n[0] = e * Ic, i = e * e, n[0] += i * Oc, n[1] = i * Bc, i *= e, n[0] += i * zc, n[1] += i * Nc, n[2] = i * Dc, n;
|
|
14404
14411
|
}
|
|
14405
|
-
function
|
|
14412
|
+
function Zc(e, i) {
|
|
14406
14413
|
var n = e + e;
|
|
14407
14414
|
return e + i[0] * Math.sin(n) + i[1] * Math.sin(n + n) + i[2] * Math.sin(n + n + n);
|
|
14408
14415
|
}
|
|
14409
|
-
var
|
|
14410
|
-
const
|
|
14411
|
-
init:
|
|
14412
|
-
forward:
|
|
14413
|
-
inverse:
|
|
14414
|
-
names:
|
|
14415
|
-
S_POLE:
|
|
14416
|
-
N_POLE:
|
|
14417
|
-
EQUIT:
|
|
14418
|
-
OBLIQ:
|
|
14416
|
+
var Gc = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
|
|
14417
|
+
const Fc = {
|
|
14418
|
+
init: Ec,
|
|
14419
|
+
forward: Sc,
|
|
14420
|
+
inverse: Ac,
|
|
14421
|
+
names: Gc,
|
|
14422
|
+
S_POLE: Pc,
|
|
14423
|
+
N_POLE: Cc,
|
|
14424
|
+
EQUIT: kc,
|
|
14425
|
+
OBLIQ: Tc
|
|
14419
14426
|
};
|
|
14420
14427
|
function oe(e) {
|
|
14421
14428
|
return Math.abs(e) > 1 && (e = e > 1 ? 1 : -1), Math.asin(e);
|
|
14422
14429
|
}
|
|
14423
|
-
function
|
|
14430
|
+
function Uc() {
|
|
14424
14431
|
Math.abs(this.lat1 + this.lat2) < I || (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 = Vt(this.e3, this.sin_po, this.cos_po), this.qs1 = ae(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 = Vt(this.e3, this.sin_po, this.cos_po), this.qs2 = ae(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 = ae(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > I ? 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);
|
|
14425
14432
|
}
|
|
14426
|
-
function
|
|
14433
|
+
function Hc(e) {
|
|
14427
14434
|
var i = e.x, n = e.y;
|
|
14428
14435
|
this.sin_phi = Math.sin(n), this.cos_phi = Math.cos(n);
|
|
14429
14436
|
var r = ae(this.e3, this.sin_phi), h = this.a * Math.sqrt(this.c - this.ns0 * r) / this.ns0, a = this.ns0 * O(i - this.long0), l = h * Math.sin(a) + this.x0, u = this.rh - h * Math.cos(a) + this.y0;
|
|
14430
14437
|
return e.x = l, e.y = u, e;
|
|
14431
14438
|
}
|
|
14432
|
-
function
|
|
14439
|
+
function qc(e) {
|
|
14433
14440
|
var i, n, r, h, a, l;
|
|
14434
14441
|
return e.x -= this.x0, e.y = this.rh - e.y + this.y0, this.ns0 >= 0 ? (i = Math.sqrt(e.x * e.x + e.y * e.y), r = 1) : (i = -Math.sqrt(e.x * e.x + e.y * e.y), r = -1), h = 0, i !== 0 && (h = Math.atan2(r * e.x, r * e.y)), r = i * this.ns0 / this.a, this.sphere ? l = Math.asin((this.c - r * r) / (2 * this.ns0)) : (n = (this.c - r * r) / this.ns0, l = this.phi1z(this.e3, n)), a = O(h / this.ns0 + this.long0), e.x = a, e.y = l, e;
|
|
14435
14442
|
}
|
|
14436
|
-
function
|
|
14443
|
+
function jc(e, i) {
|
|
14437
14444
|
var n, r, h, a, l, u = oe(0.5 * i);
|
|
14438
14445
|
if (e < I)
|
|
14439
14446
|
return u;
|
|
@@ -14442,33 +14449,33 @@ function qc(e, i) {
|
|
|
14442
14449
|
return u;
|
|
14443
14450
|
return null;
|
|
14444
14451
|
}
|
|
14445
|
-
var
|
|
14446
|
-
const
|
|
14447
|
-
init:
|
|
14448
|
-
forward:
|
|
14449
|
-
inverse:
|
|
14450
|
-
names:
|
|
14451
|
-
phi1z:
|
|
14452
|
+
var Wc = ["Albers_Conic_Equal_Area", "Albers", "aea"];
|
|
14453
|
+
const Vc = {
|
|
14454
|
+
init: Uc,
|
|
14455
|
+
forward: Hc,
|
|
14456
|
+
inverse: qc,
|
|
14457
|
+
names: Wc,
|
|
14458
|
+
phi1z: jc
|
|
14452
14459
|
};
|
|
14453
|
-
function
|
|
14460
|
+
function $c() {
|
|
14454
14461
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
|
|
14455
14462
|
}
|
|
14456
|
-
function
|
|
14463
|
+
function Kc(e) {
|
|
14457
14464
|
var i, n, r, h, a, l, u, f, m = e.x, y = e.y;
|
|
14458
14465
|
return r = O(m - this.long0), i = Math.sin(y), n = Math.cos(y), h = Math.cos(r), l = this.sin_p14 * i + this.cos_p14 * n * h, a = 1, l > 0 || Math.abs(l) <= I ? (u = this.x0 + this.a * a * n * Math.sin(r) / l, f = this.y0 + this.a * a * (this.cos_p14 * i - this.sin_p14 * n * h) / l) : (u = this.x0 + this.infinity_dist * n * Math.sin(r), f = this.y0 + this.infinity_dist * (this.cos_p14 * i - this.sin_p14 * n * h)), e.x = u, e.y = f, e;
|
|
14459
14466
|
}
|
|
14460
|
-
function
|
|
14467
|
+
function Xc(e) {
|
|
14461
14468
|
var i, n, r, h, a, l;
|
|
14462
14469
|
return e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, (i = Math.sqrt(e.x * e.x + e.y * e.y)) ? (h = Math.atan2(i, this.rc), n = Math.sin(h), r = Math.cos(h), l = oe(r * this.sin_p14 + e.y * n * this.cos_p14 / i), a = Math.atan2(e.x * n, i * this.cos_p14 * r - e.y * this.sin_p14 * n), a = O(this.long0 + a)) : (l = this.phic0, a = 0), e.x = a, e.y = l, e;
|
|
14463
14470
|
}
|
|
14464
|
-
var
|
|
14465
|
-
const
|
|
14466
|
-
init:
|
|
14467
|
-
forward:
|
|
14468
|
-
inverse:
|
|
14469
|
-
names:
|
|
14471
|
+
var Jc = ["gnom"];
|
|
14472
|
+
const Qc = {
|
|
14473
|
+
init: $c,
|
|
14474
|
+
forward: Kc,
|
|
14475
|
+
inverse: Xc,
|
|
14476
|
+
names: Jc
|
|
14470
14477
|
};
|
|
14471
|
-
function
|
|
14478
|
+
function Yc(e, i) {
|
|
14472
14479
|
var n = 1 - (1 - e * e) / (2 * e) * Math.log((1 - e) / (1 + e));
|
|
14473
14480
|
if (Math.abs(Math.abs(i) - n) < 1e-6)
|
|
14474
14481
|
return i < 0 ? -1 * S : S;
|
|
@@ -14477,10 +14484,10 @@ function Qc(e, i) {
|
|
|
14477
14484
|
return r;
|
|
14478
14485
|
return NaN;
|
|
14479
14486
|
}
|
|
14480
|
-
function
|
|
14487
|
+
function td() {
|
|
14481
14488
|
this.sphere || (this.k0 = Vt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
14482
14489
|
}
|
|
14483
|
-
function
|
|
14490
|
+
function ed(e) {
|
|
14484
14491
|
var i = e.x, n = e.y, r, h, a = O(i - this.long0);
|
|
14485
14492
|
if (this.sphere)
|
|
14486
14493
|
r = this.x0 + this.a * a * Math.cos(this.lat_ts), h = this.y0 + this.a * Math.sin(n) / Math.cos(this.lat_ts);
|
|
@@ -14490,41 +14497,41 @@ function td(e) {
|
|
|
14490
14497
|
}
|
|
14491
14498
|
return e.x = r, e.y = h, e;
|
|
14492
14499
|
}
|
|
14493
|
-
function
|
|
14500
|
+
function id(e) {
|
|
14494
14501
|
e.x -= this.x0, e.y -= this.y0;
|
|
14495
14502
|
var i, n;
|
|
14496
|
-
return this.sphere ? (i = O(this.long0 + e.x / this.a / Math.cos(this.lat_ts)), n = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (n =
|
|
14497
|
-
}
|
|
14498
|
-
var
|
|
14499
|
-
const
|
|
14500
|
-
init:
|
|
14501
|
-
forward:
|
|
14502
|
-
inverse:
|
|
14503
|
-
names:
|
|
14503
|
+
return this.sphere ? (i = O(this.long0 + e.x / this.a / Math.cos(this.lat_ts)), n = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (n = Yc(this.e, 2 * e.y * this.k0 / this.a), i = O(this.long0 + e.x / (this.a * this.k0))), e.x = i, e.y = n, e;
|
|
14504
|
+
}
|
|
14505
|
+
var nd = ["cea"];
|
|
14506
|
+
const sd = {
|
|
14507
|
+
init: td,
|
|
14508
|
+
forward: ed,
|
|
14509
|
+
inverse: id,
|
|
14510
|
+
names: nd
|
|
14504
14511
|
};
|
|
14505
|
-
function
|
|
14512
|
+
function ad() {
|
|
14506
14513
|
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);
|
|
14507
14514
|
}
|
|
14508
|
-
function
|
|
14515
|
+
function rd(e) {
|
|
14509
14516
|
var i = e.x, n = e.y, r = O(i - this.long0), h = he(n - this.lat0);
|
|
14510
14517
|
return e.x = this.x0 + this.a * r * this.rc, e.y = this.y0 + this.a * h, e;
|
|
14511
14518
|
}
|
|
14512
|
-
function
|
|
14519
|
+
function od(e) {
|
|
14513
14520
|
var i = e.x, n = e.y;
|
|
14514
14521
|
return e.x = O(this.long0 + (i - this.x0) / (this.a * this.rc)), e.y = he(this.lat0 + (n - this.y0) / this.a), e;
|
|
14515
14522
|
}
|
|
14516
|
-
var
|
|
14517
|
-
const
|
|
14518
|
-
init:
|
|
14519
|
-
forward:
|
|
14520
|
-
inverse:
|
|
14521
|
-
names:
|
|
14523
|
+
var hd = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
|
|
14524
|
+
const ld = {
|
|
14525
|
+
init: ad,
|
|
14526
|
+
forward: rd,
|
|
14527
|
+
inverse: od,
|
|
14528
|
+
names: hd
|
|
14522
14529
|
};
|
|
14523
14530
|
var Ya = 20;
|
|
14524
|
-
function
|
|
14531
|
+
function ud() {
|
|
14525
14532
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = gi(this.es), this.e1 = pi(this.es), this.e2 = vi(this.es), this.e3 = yi(this.es), this.ml0 = this.a * Pt(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
14526
14533
|
}
|
|
14527
|
-
function
|
|
14534
|
+
function cd(e) {
|
|
14528
14535
|
var i = e.x, n = e.y, r, h, a, l = O(i - this.long0);
|
|
14529
14536
|
if (a = l * Math.sin(n), this.sphere)
|
|
14530
14537
|
Math.abs(n) <= I ? (r = this.a * l, h = -1 * this.a * this.lat0) : (r = this.a * Math.sin(a) / Math.tan(n), h = this.a * (he(n - this.lat0) + (1 - Math.cos(a)) / Math.tan(n)));
|
|
@@ -14536,7 +14543,7 @@ function ud(e) {
|
|
|
14536
14543
|
}
|
|
14537
14544
|
return e.x = r + this.x0, e.y = h + this.y0, e;
|
|
14538
14545
|
}
|
|
14539
|
-
function
|
|
14546
|
+
function dd(e) {
|
|
14540
14547
|
var i, n, r, h, a, l, u, f, m;
|
|
14541
14548
|
if (r = e.x - this.x0, h = e.y - this.y0, this.sphere)
|
|
14542
14549
|
if (Math.abs(h + this.a * this.lat0) <= I)
|
|
@@ -14565,17 +14572,17 @@ function cd(e) {
|
|
|
14565
14572
|
}
|
|
14566
14573
|
return e.x = i, e.y = n, e;
|
|
14567
14574
|
}
|
|
14568
|
-
var
|
|
14569
|
-
const
|
|
14570
|
-
init:
|
|
14571
|
-
forward:
|
|
14572
|
-
inverse:
|
|
14573
|
-
names:
|
|
14575
|
+
var fd = ["Polyconic", "poly"];
|
|
14576
|
+
const _d = {
|
|
14577
|
+
init: ud,
|
|
14578
|
+
forward: cd,
|
|
14579
|
+
inverse: dd,
|
|
14580
|
+
names: fd
|
|
14574
14581
|
};
|
|
14575
|
-
function
|
|
14582
|
+
function md() {
|
|
14576
14583
|
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;
|
|
14577
14584
|
}
|
|
14578
|
-
function
|
|
14585
|
+
function gd(e) {
|
|
14579
14586
|
var i, n = e.x, r = e.y, h = r - this.lat0, a = n - this.long0, l = h / si * 1e-5, u = a, f = 1, m = 0;
|
|
14580
14587
|
for (i = 1; i <= 10; i++)
|
|
14581
14588
|
f = f * l, m = m + this.A[i] * f;
|
|
@@ -14584,7 +14591,7 @@ function md(e) {
|
|
|
14584
14591
|
v = c * y - g * p, x = g * y + c * p, c = v, g = x, w = w + this.B_re[i] * c - this.B_im[i] * g, P = P + this.B_im[i] * c + this.B_re[i] * g;
|
|
14585
14592
|
return e.x = P * this.a + this.x0, e.y = w * this.a + this.y0, e;
|
|
14586
14593
|
}
|
|
14587
|
-
function
|
|
14594
|
+
function pd(e) {
|
|
14588
14595
|
var i, n = e.x, r = e.y, h = n - this.x0, a = r - this.y0, l = a / this.a, u = h / this.a, f = 1, m = 0, y, p, c = 0, g = 0;
|
|
14589
14596
|
for (i = 1; i <= 6; i++)
|
|
14590
14597
|
y = f * l - m * u, p = m * l + f * u, f = y, m = p, c = c + this.C_re[i] * f - this.C_im[i] * m, g = g + this.C_im[i] * f + this.C_re[i] * m;
|
|
@@ -14605,42 +14612,42 @@ function gd(e) {
|
|
|
14605
14612
|
var nt = this.lat0 + K * si * 1e5, Zt = this.long0 + R;
|
|
14606
14613
|
return e.x = Zt, e.y = nt, e;
|
|
14607
14614
|
}
|
|
14608
|
-
var
|
|
14609
|
-
const
|
|
14610
|
-
init:
|
|
14611
|
-
forward:
|
|
14612
|
-
inverse:
|
|
14613
|
-
names:
|
|
14615
|
+
var vd = ["New_Zealand_Map_Grid", "nzmg"];
|
|
14616
|
+
const yd = {
|
|
14617
|
+
init: md,
|
|
14618
|
+
forward: gd,
|
|
14619
|
+
inverse: pd,
|
|
14620
|
+
names: vd
|
|
14614
14621
|
};
|
|
14615
|
-
function
|
|
14622
|
+
function Md() {
|
|
14616
14623
|
}
|
|
14617
|
-
function
|
|
14624
|
+
function Ld(e) {
|
|
14618
14625
|
var i = e.x, n = e.y, r = O(i - this.long0), h = this.x0 + this.a * r, a = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + n / 2.5)) * 1.25;
|
|
14619
14626
|
return e.x = h, e.y = a, e;
|
|
14620
14627
|
}
|
|
14621
|
-
function
|
|
14628
|
+
function xd(e) {
|
|
14622
14629
|
e.x -= this.x0, e.y -= this.y0;
|
|
14623
14630
|
var i = O(this.long0 + e.x / this.a), n = 2.5 * (Math.atan(Math.exp(0.8 * e.y / this.a)) - Math.PI / 4);
|
|
14624
14631
|
return e.x = i, e.y = n, e;
|
|
14625
14632
|
}
|
|
14626
|
-
var
|
|
14627
|
-
const
|
|
14628
|
-
init:
|
|
14629
|
-
forward:
|
|
14630
|
-
inverse:
|
|
14631
|
-
names:
|
|
14633
|
+
var wd = ["Miller_Cylindrical", "mill"];
|
|
14634
|
+
const bd = {
|
|
14635
|
+
init: Md,
|
|
14636
|
+
forward: Ld,
|
|
14637
|
+
inverse: xd,
|
|
14638
|
+
names: wd
|
|
14632
14639
|
};
|
|
14633
|
-
var
|
|
14634
|
-
function
|
|
14640
|
+
var Pd = 20;
|
|
14641
|
+
function Cd() {
|
|
14635
14642
|
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 = ns(this.es);
|
|
14636
14643
|
}
|
|
14637
|
-
function
|
|
14644
|
+
function kd(e) {
|
|
14638
14645
|
var i, n, r = e.x, h = e.y;
|
|
14639
14646
|
if (r = O(r - this.long0), this.sphere) {
|
|
14640
14647
|
if (!this.m)
|
|
14641
14648
|
h = this.n !== 1 ? Math.asin(this.n * Math.sin(h)) : h;
|
|
14642
14649
|
else
|
|
14643
|
-
for (var a = this.n * Math.sin(h), l =
|
|
14650
|
+
for (var a = this.n * Math.sin(h), l = Pd; l; --l) {
|
|
14644
14651
|
var u = (this.m * h + Math.sin(h) - a) / (this.m + Math.cos(h));
|
|
14645
14652
|
if (h -= u, Math.abs(u) < I)
|
|
14646
14653
|
break;
|
|
@@ -14652,20 +14659,20 @@ function Cd(e) {
|
|
|
14652
14659
|
}
|
|
14653
14660
|
return e.x = i, e.y = n, e;
|
|
14654
14661
|
}
|
|
14655
|
-
function
|
|
14662
|
+
function Td(e) {
|
|
14656
14663
|
var i, n, r, h;
|
|
14657
14664
|
return e.x -= this.x0, r = e.x / this.a, e.y -= this.y0, i = e.y / this.a, this.sphere ? (i /= this.C_y, r = r / (this.C_x * (this.m + Math.cos(i))), this.m ? i = oe((this.m * i + Math.sin(i)) / this.n) : this.n !== 1 && (i = oe(Math.sin(i) / this.n)), r = O(r + this.long0), i = he(i)) : (i = ss(e.y / this.a, this.es, this.en), h = Math.abs(i), h < S ? (h = Math.sin(i), n = this.long0 + e.x * Math.sqrt(1 - this.es * h * h) / (this.a * Math.cos(i)), r = O(n)) : h - I < S && (r = this.long0)), e.x = r, e.y = i, e;
|
|
14658
14665
|
}
|
|
14659
|
-
var
|
|
14660
|
-
const
|
|
14661
|
-
init:
|
|
14662
|
-
forward:
|
|
14663
|
-
inverse:
|
|
14664
|
-
names:
|
|
14666
|
+
var Ed = ["Sinusoidal", "sinu"];
|
|
14667
|
+
const Sd = {
|
|
14668
|
+
init: Cd,
|
|
14669
|
+
forward: kd,
|
|
14670
|
+
inverse: Td,
|
|
14671
|
+
names: Ed
|
|
14665
14672
|
};
|
|
14666
|
-
function
|
|
14673
|
+
function Ad() {
|
|
14667
14674
|
}
|
|
14668
|
-
function
|
|
14675
|
+
function Id(e) {
|
|
14669
14676
|
for (var i = e.x, n = e.y, r = O(i - this.long0), h = n, a = Math.PI * Math.sin(n); ; ) {
|
|
14670
14677
|
var l = -(h + Math.sin(h) - a) / (1 + Math.cos(h));
|
|
14671
14678
|
if (h += l, Math.abs(l) < I)
|
|
@@ -14675,7 +14682,7 @@ function Ad(e) {
|
|
|
14675
14682
|
var u = 0.900316316158 * this.a * r * Math.cos(h) + this.x0, f = 1.4142135623731 * this.a * Math.sin(h) + this.y0;
|
|
14676
14683
|
return e.x = u, e.y = f, e;
|
|
14677
14684
|
}
|
|
14678
|
-
function
|
|
14685
|
+
function Od(e) {
|
|
14679
14686
|
var i, n;
|
|
14680
14687
|
e.x -= this.x0, e.y -= this.y0, n = e.y / (1.4142135623731 * this.a), Math.abs(n) > 0.999999999999 && (n = 0.999999999999), i = Math.asin(n);
|
|
14681
14688
|
var r = O(this.long0 + e.x / (0.900316316158 * this.a * Math.cos(i)));
|
|
@@ -14683,17 +14690,17 @@ function Id(e) {
|
|
|
14683
14690
|
var h = Math.asin(n);
|
|
14684
14691
|
return e.x = r, e.y = h, e;
|
|
14685
14692
|
}
|
|
14686
|
-
var
|
|
14687
|
-
const
|
|
14688
|
-
init:
|
|
14689
|
-
forward:
|
|
14690
|
-
inverse:
|
|
14691
|
-
names:
|
|
14693
|
+
var zd = ["Mollweide", "moll"];
|
|
14694
|
+
const Bd = {
|
|
14695
|
+
init: Ad,
|
|
14696
|
+
forward: Id,
|
|
14697
|
+
inverse: Od,
|
|
14698
|
+
names: zd
|
|
14692
14699
|
};
|
|
14693
|
-
function
|
|
14700
|
+
function Nd() {
|
|
14694
14701
|
Math.abs(this.lat1 + this.lat2) < I || (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 = gi(this.es), this.e1 = pi(this.es), this.e2 = vi(this.es), this.e3 = yi(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 = Vt(this.e, this.sinphi, this.cosphi), this.ml1 = Pt(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < I ? this.ns = this.sinphi : (this.sinphi = Math.sin(this.lat2), this.cosphi = Math.cos(this.lat2), this.ms2 = Vt(this.e, this.sinphi, this.cosphi), this.ml2 = Pt(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 = Pt(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
14695
14702
|
}
|
|
14696
|
-
function
|
|
14703
|
+
function Dd(e) {
|
|
14697
14704
|
var i = e.x, n = e.y, r;
|
|
14698
14705
|
if (this.sphere)
|
|
14699
14706
|
r = this.a * (this.g - n);
|
|
@@ -14704,7 +14711,7 @@ function Nd(e) {
|
|
|
14704
14711
|
var a = this.ns * O(i - this.long0), l = this.x0 + r * Math.sin(a), u = this.y0 + this.rh - r * Math.cos(a);
|
|
14705
14712
|
return e.x = l, e.y = u, e;
|
|
14706
14713
|
}
|
|
14707
|
-
function
|
|
14714
|
+
function Rd(e) {
|
|
14708
14715
|
e.x -= this.x0, e.y = this.rh - e.y + this.y0;
|
|
14709
14716
|
var i, n, r, h;
|
|
14710
14717
|
this.ns >= 0 ? (n = Math.sqrt(e.x * e.x + e.y * e.y), i = 1) : (n = -Math.sqrt(e.x * e.x + e.y * e.y), i = -1);
|
|
@@ -14714,17 +14721,17 @@ function Dd(e) {
|
|
|
14714
14721
|
var l = this.g - n / this.a;
|
|
14715
14722
|
return r = en(l, this.e0, this.e1, this.e2, this.e3), h = O(this.long0 + a / this.ns), e.x = h, e.y = r, e;
|
|
14716
14723
|
}
|
|
14717
|
-
var
|
|
14718
|
-
const
|
|
14719
|
-
init:
|
|
14720
|
-
forward:
|
|
14721
|
-
inverse:
|
|
14722
|
-
names:
|
|
14724
|
+
var Zd = ["Equidistant_Conic", "eqdc"];
|
|
14725
|
+
const Gd = {
|
|
14726
|
+
init: Nd,
|
|
14727
|
+
forward: Dd,
|
|
14728
|
+
inverse: Rd,
|
|
14729
|
+
names: Zd
|
|
14723
14730
|
};
|
|
14724
|
-
function
|
|
14731
|
+
function Fd() {
|
|
14725
14732
|
this.R = this.a;
|
|
14726
14733
|
}
|
|
14727
|
-
function
|
|
14734
|
+
function Ud(e) {
|
|
14728
14735
|
var i = e.x, n = e.y, r = O(i - this.long0), h, a;
|
|
14729
14736
|
Math.abs(n) <= I && (h = this.x0 + this.R * r, a = this.y0);
|
|
14730
14737
|
var l = oe(2 * Math.abs(n / Math.PI));
|
|
@@ -14734,53 +14741,53 @@ function Fd(e) {
|
|
|
14734
14741
|
var w = f + p;
|
|
14735
14742
|
return x = Math.PI * this.R * (g * w - u * Math.sqrt((v + f) * (f + 1) - w * w)) / (v + f), n >= 0 ? a = this.y0 + x : a = this.y0 - x, e.x = h, e.y = a, e;
|
|
14736
14743
|
}
|
|
14737
|
-
function
|
|
14744
|
+
function Hd(e) {
|
|
14738
14745
|
var i, n, r, h, a, l, u, f, m, y, p, c, g;
|
|
14739
14746
|
return e.x -= this.x0, e.y -= this.y0, p = Math.PI * this.R, r = e.x / p, h = e.y / p, a = r * r + h * h, l = -Math.abs(h) * (1 + a), u = l - 2 * h * h + r * r, f = -2 * l + 1 + 2 * h * h + a * a, g = h * h / f + (2 * u * u * u / f / f / f - 9 * l * u / f / f) / 27, m = (l - u * u / 3 / f) / f, y = 2 * Math.sqrt(-m / 3), p = 3 * g / m / y, Math.abs(p) > 1 && (p >= 0 ? p = 1 : p = -1), c = Math.acos(p) / 3, e.y >= 0 ? n = (-y * Math.cos(c + Math.PI / 3) - u / 3 / f) * Math.PI : n = -(-y * Math.cos(c + Math.PI / 3) - u / 3 / f) * Math.PI, Math.abs(r) < I ? i = this.long0 : i = O(this.long0 + Math.PI * (a - 1 + Math.sqrt(1 + 2 * (r * r - h * h) + a * a)) / 2 / r), e.x = i, e.y = n, e;
|
|
14740
14747
|
}
|
|
14741
|
-
var
|
|
14742
|
-
const
|
|
14743
|
-
init:
|
|
14744
|
-
forward:
|
|
14745
|
-
inverse:
|
|
14746
|
-
names:
|
|
14748
|
+
var qd = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
|
|
14749
|
+
const jd = {
|
|
14750
|
+
init: Fd,
|
|
14751
|
+
forward: Ud,
|
|
14752
|
+
inverse: Hd,
|
|
14753
|
+
names: qd
|
|
14747
14754
|
};
|
|
14748
|
-
function
|
|
14755
|
+
function Wd() {
|
|
14749
14756
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
|
|
14750
14757
|
}
|
|
14751
|
-
function
|
|
14758
|
+
function Vd(e) {
|
|
14752
14759
|
var i = e.x, n = e.y, r = Math.sin(e.y), h = Math.cos(e.y), a = O(i - this.long0), l, u, f, m, y, p, c, g, v, x, w, P, T, A, D, N, U, st, G, R, it, K, nt;
|
|
14753
14760
|
return this.sphere ? Math.abs(this.sin_p12 - 1) <= I ? (e.x = this.x0 + this.a * (S - n) * Math.sin(a), e.y = this.y0 - this.a * (S - n) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (e.x = this.x0 + this.a * (S + n) * Math.sin(a), e.y = this.y0 + this.a * (S + n) * Math.cos(a), e) : (st = this.sin_p12 * r + this.cos_p12 * h * Math.cos(a), N = Math.acos(st), U = N ? N / Math.sin(N) : 1, e.x = this.x0 + this.a * U * h * Math.sin(a), e.y = this.y0 + this.a * U * (this.cos_p12 * r - this.sin_p12 * h * Math.cos(a)), e) : (l = gi(this.es), u = pi(this.es), f = vi(this.es), m = yi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (y = this.a * Pt(l, u, f, m, S), p = this.a * Pt(l, u, f, m, n), e.x = this.x0 + (y - p) * Math.sin(a), e.y = this.y0 - (y - p) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (y = this.a * Pt(l, u, f, m, S), p = this.a * Pt(l, u, f, m, n), e.x = this.x0 + (y + p) * Math.sin(a), e.y = this.y0 + (y + p) * Math.cos(a), e) : (c = r / h, g = De(this.a, this.e, this.sin_p12), v = De(this.a, this.e, r), x = Math.atan((1 - this.es) * c + this.es * g * this.sin_p12 / (v * h)), w = Math.atan2(Math.sin(a), this.cos_p12 * Math.tan(x) - this.sin_p12 * Math.cos(a)), w === 0 ? G = Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : Math.abs(Math.abs(w) - Math.PI) <= I ? G = -Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : G = Math.asin(Math.sin(a) * Math.cos(x) / Math.sin(w)), P = this.e * this.sin_p12 / Math.sqrt(1 - this.es), T = this.e * this.cos_p12 * Math.cos(w) / Math.sqrt(1 - this.es), A = P * T, D = T * T, R = G * G, it = R * G, K = it * G, nt = K * G, N = g * G * (1 - R * D * (1 - D) / 6 + it / 8 * A * (1 - 2 * D) + K / 120 * (D * (4 - 7 * D) - 3 * P * P * (1 - 7 * D)) - nt / 48 * A), e.x = this.x0 + N * Math.sin(w), e.y = this.y0 + N * Math.cos(w), e));
|
|
14754
14761
|
}
|
|
14755
|
-
function
|
|
14762
|
+
function $d(e) {
|
|
14756
14763
|
e.x -= this.x0, e.y -= this.y0;
|
|
14757
14764
|
var i, n, r, h, a, l, u, f, m, y, p, c, g, v, x, w, P, T, A, D, N, U, st, G;
|
|
14758
14765
|
return this.sphere ? (i = Math.sqrt(e.x * e.x + e.y * e.y), i > 2 * S * this.a ? void 0 : (n = i / this.a, r = Math.sin(n), h = Math.cos(n), a = this.long0, Math.abs(i) <= I ? l = this.lat0 : (l = oe(h * this.sin_p12 + e.y * r * this.cos_p12 / i), u = Math.abs(this.lat0) - S, Math.abs(u) <= I ? this.lat0 >= 0 ? a = O(this.long0 + Math.atan2(e.x, -e.y)) : a = O(this.long0 - Math.atan2(-e.x, e.y)) : a = O(this.long0 + Math.atan2(e.x * r, i * this.cos_p12 * h - e.y * this.sin_p12 * r))), e.x = a, e.y = l, e)) : (f = gi(this.es), m = pi(this.es), y = vi(this.es), p = yi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (c = this.a * Pt(f, m, y, p, S), i = Math.sqrt(e.x * e.x + e.y * e.y), g = c - i, l = en(g / this.a, f, m, y, p), a = O(this.long0 + Math.atan2(e.x, -1 * e.y)), e.x = a, e.y = l, e) : Math.abs(this.sin_p12 + 1) <= I ? (c = this.a * Pt(f, m, y, p, S), i = Math.sqrt(e.x * e.x + e.y * e.y), g = i - c, l = en(g / this.a, f, m, y, p), a = O(this.long0 + Math.atan2(e.x, e.y)), e.x = a, e.y = l, e) : (i = Math.sqrt(e.x * e.x + e.y * e.y), w = Math.atan2(e.x, e.y), v = De(this.a, this.e, this.sin_p12), P = Math.cos(w), T = this.e * this.cos_p12 * P, A = -T * T / (1 - this.es), D = 3 * this.es * (1 - A) * this.sin_p12 * this.cos_p12 * P / (1 - this.es), N = i / v, U = N - A * (1 + A) * Math.pow(N, 3) / 6 - D * (1 + 3 * A) * Math.pow(N, 4) / 24, st = 1 - A * U * U / 2 - N * U * U * U / 6, x = Math.asin(this.sin_p12 * Math.cos(U) + this.cos_p12 * Math.sin(U) * P), a = O(this.long0 + Math.asin(Math.sin(w) * Math.sin(U) / Math.cos(x))), G = Math.sin(x), l = Math.atan2((G - this.es * st * this.sin_p12) * Math.tan(x), G * (1 - this.es)), e.x = a, e.y = l, e));
|
|
14759
14766
|
}
|
|
14760
|
-
var
|
|
14761
|
-
const
|
|
14762
|
-
init:
|
|
14763
|
-
forward:
|
|
14764
|
-
inverse:
|
|
14765
|
-
names:
|
|
14767
|
+
var Kd = ["Azimuthal_Equidistant", "aeqd"];
|
|
14768
|
+
const Xd = {
|
|
14769
|
+
init: Wd,
|
|
14770
|
+
forward: Vd,
|
|
14771
|
+
inverse: $d,
|
|
14772
|
+
names: Kd
|
|
14766
14773
|
};
|
|
14767
|
-
function
|
|
14774
|
+
function Jd() {
|
|
14768
14775
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
|
|
14769
14776
|
}
|
|
14770
|
-
function
|
|
14777
|
+
function Qd(e) {
|
|
14771
14778
|
var i, n, r, h, a, l, u, f, m = e.x, y = e.y;
|
|
14772
14779
|
return r = O(m - this.long0), i = Math.sin(y), n = Math.cos(y), h = Math.cos(r), l = this.sin_p14 * i + this.cos_p14 * n * h, a = 1, (l > 0 || Math.abs(l) <= I) && (u = this.a * a * n * Math.sin(r), f = this.y0 + this.a * a * (this.cos_p14 * i - this.sin_p14 * n * h)), e.x = u, e.y = f, e;
|
|
14773
14780
|
}
|
|
14774
|
-
function
|
|
14781
|
+
function Yd(e) {
|
|
14775
14782
|
var i, n, r, h, a, l, u;
|
|
14776
14783
|
return e.x -= this.x0, e.y -= this.y0, i = Math.sqrt(e.x * e.x + e.y * e.y), n = oe(i / this.a), r = Math.sin(n), h = Math.cos(n), l = this.long0, Math.abs(i) <= I ? (u = this.lat0, e.x = l, e.y = u, e) : (u = oe(h * this.sin_p14 + e.y * r * this.cos_p14 / i), a = Math.abs(this.lat0) - S, Math.abs(a) <= I ? (this.lat0 >= 0 ? l = O(this.long0 + Math.atan2(e.x, -e.y)) : l = O(this.long0 - Math.atan2(-e.x, e.y)), e.x = l, e.y = u, e) : (l = O(this.long0 + Math.atan2(e.x * r, i * this.cos_p14 * h - e.y * this.sin_p14 * r)), e.x = l, e.y = u, e));
|
|
14777
14784
|
}
|
|
14778
|
-
var
|
|
14779
|
-
const
|
|
14780
|
-
init:
|
|
14781
|
-
forward:
|
|
14782
|
-
inverse:
|
|
14783
|
-
names:
|
|
14785
|
+
var tf = ["ortho"];
|
|
14786
|
+
const ef = {
|
|
14787
|
+
init: Jd,
|
|
14788
|
+
forward: Qd,
|
|
14789
|
+
inverse: Yd,
|
|
14790
|
+
names: tf
|
|
14784
14791
|
};
|
|
14785
14792
|
var lt = {
|
|
14786
14793
|
FRONT: 1,
|
|
@@ -14795,10 +14802,10 @@ var lt = {
|
|
|
14795
14802
|
AREA_2: 3,
|
|
14796
14803
|
AREA_3: 4
|
|
14797
14804
|
};
|
|
14798
|
-
function
|
|
14805
|
+
function nf() {
|
|
14799
14806
|
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 >= S - tt / 2 ? this.face = lt.TOP : this.lat0 <= -(S - tt / 2) ? this.face = lt.BOTTOM : Math.abs(this.long0) <= tt ? this.face = lt.FRONT : Math.abs(this.long0) <= S + tt ? this.face = this.long0 > 0 ? lt.RIGHT : lt.LEFT : this.face = lt.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);
|
|
14800
14807
|
}
|
|
14801
|
-
function
|
|
14808
|
+
function sf(e) {
|
|
14802
14809
|
var i = { x: 0, y: 0 }, n, r, h, a, l, u, f = { value: 0 };
|
|
14803
14810
|
if (e.x -= this.long0, this.es !== 0 ? n = Math.atan(this.one_minus_f_squared * Math.tan(e.y)) : n = e.y, r = e.x, this.face === lt.TOP)
|
|
14804
14811
|
a = S - n, r >= tt && r <= S + tt ? (f.value = et.AREA_0, h = r - S) : r > S + tt || r <= -(S + tt) ? (f.value = et.AREA_1, h = r > 0 ? r - dt : r + dt) : r > -(S + tt) && r <= -tt ? (f.value = et.AREA_2, h = r + S) : (f.value = et.AREA_3, h = r);
|
|
@@ -14810,7 +14817,7 @@ function nf(e) {
|
|
|
14810
14817
|
}
|
|
14811
14818
|
return u = Math.atan(12 / dt * (h + Math.acos(Math.sin(h) * Math.cos(tt)) - S)), l = Math.sqrt((1 - Math.cos(a)) / (Math.cos(u) * Math.cos(u)) / (1 - Math.cos(Math.atan(1 / Math.cos(h))))), f.value === et.AREA_1 ? u += S : f.value === et.AREA_2 ? u += dt : f.value === et.AREA_3 && (u += 1.5 * dt), i.x = l * Math.cos(u), i.y = l * Math.sin(u), i.x = i.x * this.a + this.x0, i.y = i.y * this.a + this.y0, e.x = i.x, e.y = i.y, e;
|
|
14812
14819
|
}
|
|
14813
|
-
function
|
|
14820
|
+
function af(e) {
|
|
14814
14821
|
var i = { lam: 0, phi: 0 }, n, r, h, a, l, u, f, m, y, p = { value: 0 };
|
|
14815
14822
|
if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, r = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), n = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? p.value = et.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (p.value = et.AREA_1, n -= S) : e.x < 0 && -e.x >= Math.abs(e.y) ? (p.value = et.AREA_2, n = n < 0 ? n + dt : n - dt) : (p.value = et.AREA_3, n += S), y = dt / 12 * Math.tan(n), l = Math.sin(y) / (Math.cos(y) - 1 / Math.sqrt(2)), u = Math.atan(l), h = Math.cos(n), a = Math.tan(r), f = 1 - h * h * a * a * (1 - Math.cos(Math.atan(1 / Math.cos(u)))), f < -1 ? f = -1 : f > 1 && (f = 1), this.face === lt.TOP)
|
|
14816
14823
|
m = Math.acos(f), i.phi = S - m, p.value === et.AREA_0 ? i.lam = u + S : p.value === et.AREA_1 ? i.lam = u < 0 ? u + dt : u - dt : p.value === et.AREA_2 ? i.lam = u - S : i.lam = u;
|
|
@@ -14834,12 +14841,12 @@ function Be(e, i) {
|
|
|
14834
14841
|
var n = e + i;
|
|
14835
14842
|
return n < -dt ? n += ci : n > +dt && (n -= ci), n;
|
|
14836
14843
|
}
|
|
14837
|
-
var
|
|
14838
|
-
const
|
|
14839
|
-
init:
|
|
14840
|
-
forward:
|
|
14841
|
-
inverse:
|
|
14842
|
-
names:
|
|
14844
|
+
var rf = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
|
|
14845
|
+
const of = {
|
|
14846
|
+
init: nf,
|
|
14847
|
+
forward: sf,
|
|
14848
|
+
inverse: af,
|
|
14849
|
+
names: rf
|
|
14843
14850
|
};
|
|
14844
14851
|
var Qn = [
|
|
14845
14852
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
@@ -14881,12 +14888,12 @@ var Qn = [
|
|
|
14881
14888
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
14882
14889
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
14883
14890
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
14884
|
-
], Pr = 0.8487, Cr = 1.3523, kr = jt / 5,
|
|
14891
|
+
], Pr = 0.8487, Cr = 1.3523, kr = jt / 5, hf = 1 / kr, Oe = 18, nn = function(e, i) {
|
|
14885
14892
|
return e[0] + i * (e[1] + i * (e[2] + i * e[3]));
|
|
14886
|
-
},
|
|
14893
|
+
}, lf = function(e, i) {
|
|
14887
14894
|
return e[1] + i * (2 * e[2] + i * 3 * e[3]);
|
|
14888
14895
|
};
|
|
14889
|
-
function
|
|
14896
|
+
function uf(e, i, n, r) {
|
|
14890
14897
|
for (var h = i; r; --r) {
|
|
14891
14898
|
var a = e(h);
|
|
14892
14899
|
if (h -= a, Math.abs(a) < n)
|
|
@@ -14894,19 +14901,19 @@ function lf(e, i, n, r) {
|
|
|
14894
14901
|
}
|
|
14895
14902
|
return h;
|
|
14896
14903
|
}
|
|
14897
|
-
function
|
|
14904
|
+
function cf() {
|
|
14898
14905
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
14899
14906
|
}
|
|
14900
|
-
function
|
|
14907
|
+
function df(e) {
|
|
14901
14908
|
var i = O(e.x - this.long0), n = Math.abs(e.y), r = Math.floor(n * kr);
|
|
14902
|
-
r < 0 ? r = 0 : r >= Oe && (r = Oe - 1), n = jt * (n -
|
|
14909
|
+
r < 0 ? r = 0 : r >= Oe && (r = Oe - 1), n = jt * (n - hf * r);
|
|
14903
14910
|
var h = {
|
|
14904
14911
|
x: nn(Qn[r], n) * i,
|
|
14905
14912
|
y: nn(ni[r], n)
|
|
14906
14913
|
};
|
|
14907
14914
|
return e.y < 0 && (h.y = -h.y), h.x = h.x * this.a * Pr + this.x0, h.y = h.y * this.a * Cr + this.y0, h;
|
|
14908
14915
|
}
|
|
14909
|
-
function
|
|
14916
|
+
function ff(e) {
|
|
14910
14917
|
var i = {
|
|
14911
14918
|
x: (e.x - this.x0) / (this.a * Pr),
|
|
14912
14919
|
y: Math.abs(e.y - this.y0) / (this.a * Cr)
|
|
@@ -14923,36 +14930,36 @@ function df(e) {
|
|
|
14923
14930
|
else
|
|
14924
14931
|
break;
|
|
14925
14932
|
var r = ni[n], h = 5 * (i.y - r[0]) / (ni[n + 1][0] - r[0]);
|
|
14926
|
-
h =
|
|
14927
|
-
return (nn(r, a) - i.y) /
|
|
14933
|
+
h = uf(function(a) {
|
|
14934
|
+
return (nn(r, a) - i.y) / lf(r, a);
|
|
14928
14935
|
}, h, I, 100), i.x /= nn(Qn[n], h), i.y = (5 * n + h) * yt, e.y < 0 && (i.y = -i.y);
|
|
14929
14936
|
}
|
|
14930
14937
|
return i.x = O(i.x + this.long0), i;
|
|
14931
14938
|
}
|
|
14932
|
-
var
|
|
14933
|
-
const
|
|
14934
|
-
init:
|
|
14935
|
-
forward:
|
|
14936
|
-
inverse:
|
|
14937
|
-
names:
|
|
14939
|
+
var _f = ["Robinson", "robin"];
|
|
14940
|
+
const mf = {
|
|
14941
|
+
init: cf,
|
|
14942
|
+
forward: df,
|
|
14943
|
+
inverse: ff,
|
|
14944
|
+
names: _f
|
|
14938
14945
|
};
|
|
14939
|
-
function
|
|
14946
|
+
function gf() {
|
|
14940
14947
|
this.name = "geocent";
|
|
14941
14948
|
}
|
|
14942
|
-
function
|
|
14949
|
+
function pf(e) {
|
|
14943
14950
|
var i = _r(e, this.es, this.a);
|
|
14944
14951
|
return i;
|
|
14945
14952
|
}
|
|
14946
|
-
function
|
|
14953
|
+
function vf(e) {
|
|
14947
14954
|
var i = mr(e, this.es, this.a, this.b);
|
|
14948
14955
|
return i;
|
|
14949
14956
|
}
|
|
14950
|
-
var
|
|
14951
|
-
const
|
|
14952
|
-
init:
|
|
14953
|
-
forward:
|
|
14954
|
-
inverse:
|
|
14955
|
-
names:
|
|
14957
|
+
var yf = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
14958
|
+
const Mf = {
|
|
14959
|
+
init: gf,
|
|
14960
|
+
forward: pf,
|
|
14961
|
+
inverse: vf,
|
|
14962
|
+
names: yf
|
|
14956
14963
|
};
|
|
14957
14964
|
var Lt = {
|
|
14958
14965
|
N_POLE: 0,
|
|
@@ -14971,7 +14978,7 @@ var Lt = {
|
|
|
14971
14978
|
lat0: { def: 0, num: !0 }
|
|
14972
14979
|
// default is Equator, conversion to rad is automatic
|
|
14973
14980
|
};
|
|
14974
|
-
function
|
|
14981
|
+
function Lf() {
|
|
14975
14982
|
if (Object.keys(ti).forEach(function(n) {
|
|
14976
14983
|
if (typeof this[n] == "undefined")
|
|
14977
14984
|
this[n] = ti[n].def;
|
|
@@ -14987,7 +14994,7 @@ function Mf() {
|
|
|
14987
14994
|
var e = this.tilt, i = this.azi;
|
|
14988
14995
|
this.cg = Math.cos(i), this.sg = Math.sin(i), this.cw = Math.cos(e), this.sw = Math.sin(e);
|
|
14989
14996
|
}
|
|
14990
|
-
function
|
|
14997
|
+
function xf(e) {
|
|
14991
14998
|
e.x -= this.long0;
|
|
14992
14999
|
var i = Math.sin(e.y), n = Math.cos(e.y), r = Math.cos(e.x), h, a;
|
|
14993
15000
|
switch (this.mode) {
|
|
@@ -15021,7 +15028,7 @@ function Lf(e) {
|
|
|
15021
15028
|
var l, u;
|
|
15022
15029
|
return l = a * this.cg + h * this.sg, u = 1 / (l * this.sw * this.h1 + this.cw), h = (h * this.cg - a * this.sg) * this.cw * u, a = l * u, e.x = h * this.a, e.y = a * this.a, e;
|
|
15023
15030
|
}
|
|
15024
|
-
function
|
|
15031
|
+
function wf(e) {
|
|
15025
15032
|
e.x /= this.a, e.y /= this.a;
|
|
15026
15033
|
var i = { x: e.x, y: e.y }, n, r, h;
|
|
15027
15034
|
h = 1 / (this.pn1 - e.y * this.sw), n = this.pn1 * e.x * h, r = this.pn1 * e.y * this.cw * h, e.x = n * this.cg + r * this.sg, e.y = r * this.cg - n * this.sg;
|
|
@@ -15048,14 +15055,14 @@ function xf(e) {
|
|
|
15048
15055
|
}
|
|
15049
15056
|
return e.x = i.x + this.long0, e.y = i.y, e;
|
|
15050
15057
|
}
|
|
15051
|
-
var
|
|
15052
|
-
const
|
|
15053
|
-
init:
|
|
15054
|
-
forward:
|
|
15055
|
-
inverse:
|
|
15056
|
-
names:
|
|
15058
|
+
var bf = ["Tilted_Perspective", "tpers"];
|
|
15059
|
+
const Pf = {
|
|
15060
|
+
init: Lf,
|
|
15061
|
+
forward: xf,
|
|
15062
|
+
inverse: wf,
|
|
15063
|
+
names: bf
|
|
15057
15064
|
};
|
|
15058
|
-
function
|
|
15065
|
+
function Cf() {
|
|
15059
15066
|
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)
|
|
15060
15067
|
throw new Error();
|
|
15061
15068
|
if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
|
|
@@ -15065,7 +15072,7 @@ function Pf() {
|
|
|
15065
15072
|
this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
|
|
15066
15073
|
this.title || (this.title = "Geostationary Satellite View");
|
|
15067
15074
|
}
|
|
15068
|
-
function
|
|
15075
|
+
function kf(e) {
|
|
15069
15076
|
var i = e.x, n = e.y, r, h, a, l;
|
|
15070
15077
|
if (i = i - this.long0, this.shape === "ellipse") {
|
|
15071
15078
|
n = Math.atan(this.radius_p2 * Math.tan(n));
|
|
@@ -15076,7 +15083,7 @@ function Cf(e) {
|
|
|
15076
15083
|
} else this.shape === "sphere" && (r = Math.cos(n), h = Math.cos(i) * r, a = Math.sin(i) * r, l = Math.sin(n), r = this.radius_g - h, this.flip_axis ? (e.x = this.radius_g_1 * Math.atan(a / Et(l, r)), e.y = this.radius_g_1 * Math.atan(l / r)) : (e.x = this.radius_g_1 * Math.atan(a / r), e.y = this.radius_g_1 * Math.atan(l / Et(a, r))));
|
|
15077
15084
|
return e.x = e.x * this.a, e.y = e.y * this.a, e;
|
|
15078
15085
|
}
|
|
15079
|
-
function
|
|
15086
|
+
function Tf(e) {
|
|
15080
15087
|
var i = -1, n = 0, r = 0, h, a, l, u;
|
|
15081
15088
|
if (e.x = e.x / this.a, e.y = e.y / this.a, this.shape === "ellipse") {
|
|
15082
15089
|
this.flip_axis ? (r = Math.tan(e.y / this.radius_g_1), n = Math.tan(e.x / this.radius_g_1) * Et(1, r)) : (n = Math.tan(e.x / this.radius_g_1), r = Math.tan(e.y / this.radius_g_1) * Et(1, n));
|
|
@@ -15091,37 +15098,37 @@ function kf(e) {
|
|
|
15091
15098
|
}
|
|
15092
15099
|
return e.x = e.x + this.long0, e;
|
|
15093
15100
|
}
|
|
15094
|
-
var
|
|
15095
|
-
const
|
|
15096
|
-
init:
|
|
15097
|
-
forward:
|
|
15098
|
-
inverse:
|
|
15099
|
-
names:
|
|
15101
|
+
var Ef = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
|
|
15102
|
+
const Sf = {
|
|
15103
|
+
init: Cf,
|
|
15104
|
+
forward: kf,
|
|
15105
|
+
inverse: Tf,
|
|
15106
|
+
names: Ef
|
|
15100
15107
|
};
|
|
15101
15108
|
var ai = 1.340264, ri = -0.081106, oi = 893e-6, hi = 3796e-6, sn = Math.sqrt(3) / 2;
|
|
15102
|
-
function
|
|
15109
|
+
function Af() {
|
|
15103
15110
|
this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
|
|
15104
15111
|
}
|
|
15105
|
-
function
|
|
15112
|
+
function If(e) {
|
|
15106
15113
|
var i = O(e.x - this.long0), n = e.y, r = Math.asin(sn * Math.sin(n)), h = r * r, a = h * h * h;
|
|
15107
15114
|
return e.x = i * Math.cos(r) / (sn * (ai + 3 * ri * h + a * (7 * oi + 9 * hi * h))), e.y = r * (ai + ri * h + a * (oi + hi * h)), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
|
|
15108
15115
|
}
|
|
15109
|
-
function
|
|
15116
|
+
function Of(e) {
|
|
15110
15117
|
e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a;
|
|
15111
15118
|
var i = 1e-9, n = 12, r = e.y, h, a, l, u, f, m;
|
|
15112
15119
|
for (m = 0; m < n && (h = r * r, a = h * h * h, l = r * (ai + ri * h + a * (oi + hi * h)) - e.y, u = ai + 3 * ri * h + a * (7 * oi + 9 * hi * h), r -= f = l / u, !(Math.abs(f) < i)); ++m)
|
|
15113
15120
|
;
|
|
15114
15121
|
return h = r * r, a = h * h * h, e.x = sn * e.x * (ai + 3 * ri * h + a * (7 * oi + 9 * hi * h)) / Math.cos(r), e.y = Math.asin(Math.sin(r) / sn), e.x = O(e.x + this.long0), e;
|
|
15115
15122
|
}
|
|
15116
|
-
var
|
|
15117
|
-
const
|
|
15118
|
-
init:
|
|
15119
|
-
forward:
|
|
15120
|
-
inverse:
|
|
15121
|
-
names:
|
|
15123
|
+
var zf = ["eqearth", "Equal Earth", "Equal_Earth"];
|
|
15124
|
+
const Bf = {
|
|
15125
|
+
init: Af,
|
|
15126
|
+
forward: If,
|
|
15127
|
+
inverse: Of,
|
|
15128
|
+
names: zf
|
|
15122
15129
|
};
|
|
15123
15130
|
var _i = 1e-10;
|
|
15124
|
-
function
|
|
15131
|
+
function Nf() {
|
|
15125
15132
|
var e;
|
|
15126
15133
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < _i)
|
|
15127
15134
|
throw new Error();
|
|
@@ -15130,13 +15137,13 @@ function Bf() {
|
|
|
15130
15137
|
this.am1 = Math.sin(this.phi1),
|
|
15131
15138
|
e = Math.cos(this.phi1),
|
|
15132
15139
|
this.en
|
|
15133
|
-
), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse =
|
|
15140
|
+
), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = Rf, this.forward = Df) : (Math.abs(this.phi1) + _i >= S ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = Gf, this.forward = Zf);
|
|
15134
15141
|
}
|
|
15135
|
-
function
|
|
15142
|
+
function Df(e) {
|
|
15136
15143
|
var i = O(e.x - (this.long0 || 0)), n = e.y, r, h, a;
|
|
15137
15144
|
return r = this.am1 + this.m1 - Re(n, h = Math.sin(n), a = Math.cos(n), this.en), h = a * i / (r * Math.sqrt(1 - this.es * h * h)), e.x = r * Math.sin(h), e.y = this.am1 - r * Math.cos(h), e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
|
|
15138
15145
|
}
|
|
15139
|
-
function
|
|
15146
|
+
function Rf(e) {
|
|
15140
15147
|
e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
|
|
15141
15148
|
var i, n, r, h;
|
|
15142
15149
|
if (n = Et(e.x, e.y = this.am1 - e.y), h = ss(this.am1 + this.m1 - n, this.es, this.en), (i = Math.abs(h)) < S)
|
|
@@ -15147,24 +15154,24 @@ function Df(e) {
|
|
|
15147
15154
|
throw new Error();
|
|
15148
15155
|
return e.x = O(r + (this.long0 || 0)), e.y = he(h), e;
|
|
15149
15156
|
}
|
|
15150
|
-
function
|
|
15157
|
+
function Zf(e) {
|
|
15151
15158
|
var i = O(e.x - (this.long0 || 0)), n = e.y, r, h;
|
|
15152
15159
|
return h = this.cphi1 + this.phi1 - n, Math.abs(h) > _i ? (e.x = h * Math.sin(r = i * Math.cos(n) / h), e.y = this.cphi1 - h * Math.cos(r)) : e.x = e.y = 0, e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
|
|
15153
15160
|
}
|
|
15154
|
-
function
|
|
15161
|
+
function Gf(e) {
|
|
15155
15162
|
e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
|
|
15156
15163
|
var i, n, r = Et(e.x, e.y = this.cphi1 - e.y);
|
|
15157
15164
|
if (n = this.cphi1 + this.phi1 - r, Math.abs(n) > S)
|
|
15158
15165
|
throw new Error();
|
|
15159
15166
|
return Math.abs(Math.abs(n) - S) <= _i ? i = 0 : i = r * Math.atan2(e.x, e.y) / Math.cos(n), e.x = O(i + (this.long0 || 0)), e.y = he(n), e;
|
|
15160
15167
|
}
|
|
15161
|
-
var
|
|
15162
|
-
const
|
|
15163
|
-
init:
|
|
15164
|
-
names:
|
|
15168
|
+
var Ff = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
15169
|
+
const Uf = {
|
|
15170
|
+
init: Nf,
|
|
15171
|
+
names: Ff
|
|
15165
15172
|
};
|
|
15166
|
-
function
|
|
15167
|
-
e.Proj.projections.add(Xi), e.Proj.projections.add(Ji), e.Proj.projections.add(
|
|
15173
|
+
function Hf(e) {
|
|
15174
|
+
e.Proj.projections.add(Xi), e.Proj.projections.add(Ji), e.Proj.projections.add(Nu), e.Proj.projections.add(Wu), e.Proj.projections.add(Qu), e.Proj.projections.add(nc), e.Proj.projections.add(lc), e.Proj.projections.add(_c), e.Proj.projections.add(yc), e.Proj.projections.add(bc), e.Proj.projections.add(Fc), e.Proj.projections.add(Vc), e.Proj.projections.add(Qc), e.Proj.projections.add(sd), e.Proj.projections.add(ld), e.Proj.projections.add(_d), e.Proj.projections.add(yd), e.Proj.projections.add(bd), e.Proj.projections.add(Sd), e.Proj.projections.add(Bd), e.Proj.projections.add(Gd), e.Proj.projections.add(jd), e.Proj.projections.add(Xd), e.Proj.projections.add(ef), e.Proj.projections.add(of), e.Proj.projections.add(mf), e.Proj.projections.add(Mf), e.Proj.projections.add(Pf), e.Proj.projections.add(Sf), e.Proj.projections.add(Bf), e.Proj.projections.add(Uf);
|
|
15168
15175
|
}
|
|
15169
15176
|
At.defaultDatum = "WGS84";
|
|
15170
15177
|
At.Proj = Wt;
|
|
@@ -15172,19 +15179,19 @@ At.WGS84 = new At.Proj("WGS84");
|
|
|
15172
15179
|
At.Point = Ne;
|
|
15173
15180
|
At.toPoint = gr;
|
|
15174
15181
|
At.defs = bt;
|
|
15175
|
-
At.nadgrid =
|
|
15182
|
+
At.nadgrid = Rl;
|
|
15176
15183
|
At.transform = tn;
|
|
15177
|
-
At.mgrs =
|
|
15184
|
+
At.mgrs = tu;
|
|
15178
15185
|
At.version = "__VERSION__";
|
|
15179
|
-
|
|
15180
|
-
const
|
|
15186
|
+
Hf(At);
|
|
15187
|
+
const qf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15181
15188
|
__proto__: null,
|
|
15182
15189
|
default: At
|
|
15183
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15190
|
+
}, Symbol.toStringTag, { value: "Module" })), jf = /* @__PURE__ */ ah(qf);
|
|
15184
15191
|
(function(e) {
|
|
15185
15192
|
(function(i) {
|
|
15186
15193
|
var n, r;
|
|
15187
|
-
n = an(), r =
|
|
15194
|
+
n = an(), r = jf, e.exports = i(n, r);
|
|
15188
15195
|
})(function(i, n) {
|
|
15189
15196
|
return n.__esModule && n.default && (n = n.default), i.Proj = {}, i.Proj._isProj4Obj = function(r) {
|
|
15190
15197
|
return typeof r.inverse != "undefined" && typeof r.forward != "undefined";
|
|
@@ -15297,31 +15304,31 @@ const Hf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15297
15304
|
return new i.Proj.ImageOverlay(r, h, a);
|
|
15298
15305
|
}, i.Proj;
|
|
15299
15306
|
});
|
|
15300
|
-
})(
|
|
15301
|
-
function
|
|
15307
|
+
})(Xh);
|
|
15308
|
+
function Xf() {
|
|
15302
15309
|
const e = rh();
|
|
15303
15310
|
return {
|
|
15304
15311
|
mapType: e.mapType,
|
|
15305
15312
|
tileType: e.tileType
|
|
15306
15313
|
};
|
|
15307
15314
|
}
|
|
15308
|
-
function
|
|
15315
|
+
function Wf(e) {
|
|
15309
15316
|
rn({
|
|
15310
15317
|
tileType: e.tileType ? e.tileType : "Normal",
|
|
15311
15318
|
mapType: e.mapType
|
|
15312
15319
|
});
|
|
15313
15320
|
}
|
|
15314
|
-
function
|
|
15321
|
+
function Jf(e) {
|
|
15315
15322
|
rn({
|
|
15316
15323
|
mapInfoShow: e
|
|
15317
15324
|
});
|
|
15318
15325
|
}
|
|
15319
|
-
function
|
|
15326
|
+
function Qf(e) {
|
|
15320
15327
|
rn({
|
|
15321
15328
|
clusterType: e
|
|
15322
15329
|
});
|
|
15323
15330
|
}
|
|
15324
|
-
const
|
|
15331
|
+
const Yf = {
|
|
15325
15332
|
setNotShowVertex: (e) => {
|
|
15326
15333
|
rn({
|
|
15327
15334
|
playbackNotShowVertex: e
|
|
@@ -15329,10 +15336,10 @@ const Qf = {
|
|
|
15329
15336
|
}
|
|
15330
15337
|
};
|
|
15331
15338
|
let Tr = [31.846829, 117.202987];
|
|
15332
|
-
function
|
|
15339
|
+
function t_(e) {
|
|
15333
15340
|
Tr = e;
|
|
15334
15341
|
}
|
|
15335
|
-
function
|
|
15342
|
+
function e_(e) {
|
|
15336
15343
|
var p, c, g;
|
|
15337
15344
|
const i = [];
|
|
15338
15345
|
ut.CRS.Baidu = new ut.Proj.CRS(
|
|
@@ -15375,15 +15382,15 @@ function t_(e) {
|
|
|
15375
15382
|
li("clusterType", (v) => {
|
|
15376
15383
|
!v || v == "NORMAL" ? a.setMaxClusterRadius(80) : a.setMaxClusterRadius(-1);
|
|
15377
15384
|
})
|
|
15378
|
-
), e.tileType &&
|
|
15385
|
+
), e.tileType && Wf(e.tileType), i.push(
|
|
15379
15386
|
uh("Normal", n, {
|
|
15380
15387
|
rightBottomTextHandle: r,
|
|
15381
15388
|
direct: (g = e.tileType) == null ? void 0 : g.direct
|
|
15382
15389
|
})
|
|
15383
15390
|
);
|
|
15384
|
-
const h = Ee("clusterType")[0], a = new
|
|
15391
|
+
const h = Ee("clusterType")[0], a = new xh(n, se(J({}, e.renderOptions), {
|
|
15385
15392
|
clusterType: h
|
|
15386
|
-
})), l = new
|
|
15393
|
+
})), l = new Ah(n), u = new Oh(n);
|
|
15387
15394
|
function f(v) {
|
|
15388
15395
|
const w = v.map((P) => P.getBounds()).filter((P) => P);
|
|
15389
15396
|
if (w && w.length > 0) {
|
|
@@ -15395,7 +15402,7 @@ function t_(e) {
|
|
|
15395
15402
|
n.fitBounds(P, { maxZoom: 18 });
|
|
15396
15403
|
}
|
|
15397
15404
|
}
|
|
15398
|
-
const m = new
|
|
15405
|
+
const m = new Kh(n), y = new IntersectionObserver((v) => {
|
|
15399
15406
|
v.forEach((x) => {
|
|
15400
15407
|
x.target.isSameNode(e.container) && e.container.clientWidth && (n == null || n._onResize());
|
|
15401
15408
|
});
|
|
@@ -15494,16 +15501,16 @@ function t_(e) {
|
|
|
15494
15501
|
};
|
|
15495
15502
|
}
|
|
15496
15503
|
export {
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15504
|
+
e_ as CreateMap,
|
|
15505
|
+
Xf as GetCurrentTileType,
|
|
15506
|
+
$f as L,
|
|
15500
15507
|
nr as LeaflePolygonEditHandle,
|
|
15501
15508
|
sr as LeafletCicleEditHandle,
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15509
|
+
Kf as ParseShapeType,
|
|
15510
|
+
Jf as SetMapBottomLeftShow,
|
|
15511
|
+
t_ as SetMapCenterDefaultLatlng,
|
|
15512
|
+
Qf as SetMapClusterType,
|
|
15513
|
+
Wf as SwichTileType,
|
|
15514
|
+
Yf as TrackPlaybackConfig
|
|
15508
15515
|
};
|
|
15509
15516
|
//# sourceMappingURL=main.js.map
|