@besovideo/bvmap-leaflet 0.0.16 → 0.0.17
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 -532
- package/dist/main.js.map +1 -1
- package/dist/types/basemap/markerCluster/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -6353,7 +6353,7 @@ function Hn() {
|
|
|
6353
6353
|
}(Oi, Oi.exports)), Oi.exports;
|
|
6354
6354
|
}
|
|
6355
6355
|
var Ga = Hn();
|
|
6356
|
-
const st = /* @__PURE__ */ Fo(Ga),
|
|
6356
|
+
const st = /* @__PURE__ */ Fo(Ga), Cf = /* @__PURE__ */ Go({
|
|
6357
6357
|
__proto__: null,
|
|
6358
6358
|
default: st
|
|
6359
6359
|
}, [Ga]), ue = {
|
|
@@ -7583,7 +7583,8 @@ var ua = { exports: {} };
|
|
|
7583
7583
|
}), s.MarkerClusterGroup = o, s.MarkerCluster = l, Object.defineProperty(s, "__esModule", { value: !0 });
|
|
7584
7584
|
});
|
|
7585
7585
|
})(ua, ua.exports);
|
|
7586
|
-
|
|
7586
|
+
const Ko = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" 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>';
|
|
7587
|
+
function Xo(e) {
|
|
7587
7588
|
const i = {
|
|
7588
7589
|
// icon: options?.icon ? options?.icon : L.divIcon({
|
|
7589
7590
|
// html: "<div>test<div>"
|
|
@@ -7595,14 +7596,24 @@ function Ko(e) {
|
|
|
7595
7596
|
if (e.iconCustom) {
|
|
7596
7597
|
o(e.iconCustom.className ? e.iconCustom.className : "");
|
|
7597
7598
|
const h = e.iconCustom.title.length * 12;
|
|
7598
|
-
s.innerHTML = `
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7599
|
+
typeof e.iconCustom.imgUrl == "string" && e.iconCustom.imgUrl, s.innerHTML = `
|
|
7600
|
+
<img src='${e.iconCustom.imgUrl}' style="width: 32px; height: 32px"/>
|
|
7601
|
+
<div style='position: absolute; text-align: center; pointer-events: none; width: ${h}px; left: -${(h - 32) / 2}px;'>
|
|
7602
|
+
<span style='border: 1px solid grey; background-color: white; color: black; padding: 2px 5px; pointer-events: auto;'>
|
|
7603
|
+
${e.iconCustom.title}
|
|
7604
|
+
</span>
|
|
7605
|
+
</div>
|
|
7606
|
+
`, typeof e.iconCustom.imgUrl != "string" && e.iconCustom.imgUrl.then((f) => {
|
|
7607
|
+
var p;
|
|
7608
|
+
f && (s.innerHTML = `
|
|
7609
|
+
<img src='${f}' style="width: 32px; height: 32px"/>
|
|
7610
|
+
<div style='position: absolute; text-align: center; pointer-events: none; width: ${h}px; left: -${(h - 32) / 2}px;'>
|
|
7611
|
+
<span style='border: 1px solid grey; background-color: white; color: black; padding: 2px 5px; pointer-events: auto;'>
|
|
7612
|
+
${(p = e.iconCustom) == null ? void 0 : p.title}
|
|
7613
|
+
</span>
|
|
7614
|
+
</div>
|
|
7615
|
+
`);
|
|
7616
|
+
});
|
|
7606
7617
|
const u = st.divIcon({
|
|
7607
7618
|
html: s,
|
|
7608
7619
|
iconSize: [32, 32],
|
|
@@ -7632,10 +7643,10 @@ function Fa(e, i) {
|
|
|
7632
7643
|
const s = e.GetUserData1();
|
|
7633
7644
|
s.customMarker = i;
|
|
7634
7645
|
}
|
|
7635
|
-
function
|
|
7646
|
+
function Jo(e) {
|
|
7636
7647
|
return e.GetUserData1().customMarker;
|
|
7637
7648
|
}
|
|
7638
|
-
class
|
|
7649
|
+
class Qo {
|
|
7639
7650
|
constructor(i, s) {
|
|
7640
7651
|
this.currentMarker = null, this.popupCloseHandle = [], this.popup = L.popup({
|
|
7641
7652
|
...s,
|
|
@@ -7730,7 +7741,7 @@ class Jo {
|
|
|
7730
7741
|
o >= 0 && this.popupCloseHandle.splice(o, 1);
|
|
7731
7742
|
}
|
|
7732
7743
|
}
|
|
7733
|
-
function
|
|
7744
|
+
function Yo(e, i, s) {
|
|
7734
7745
|
const { marker: o, utils: l } = e, a = s.infoWindow.bind(o), h = [], u = [], f = {
|
|
7735
7746
|
getUserData() {
|
|
7736
7747
|
return i.userdata;
|
|
@@ -7826,7 +7837,7 @@ function Qo(e, i, s) {
|
|
|
7826
7837
|
const c = g();
|
|
7827
7838
|
return Fa(o, f), f;
|
|
7828
7839
|
}
|
|
7829
|
-
class
|
|
7840
|
+
class th extends st.Polyline {
|
|
7830
7841
|
constructor(i, s) {
|
|
7831
7842
|
super(i, s), this.customData = {
|
|
7832
7843
|
Tooltip: new st.Tooltip()
|
|
@@ -7876,9 +7887,9 @@ class Yo extends st.Polyline {
|
|
|
7876
7887
|
});
|
|
7877
7888
|
}
|
|
7878
7889
|
}
|
|
7879
|
-
class
|
|
7890
|
+
class eh {
|
|
7880
7891
|
constructor(i, s, o) {
|
|
7881
|
-
this.bTrajektoriaing = !1, this.bTracking = !1, this.positionNeedAdd = [], this.cancelMarkerHook = null, this.map = i, this.polylineTrack = new
|
|
7892
|
+
this.bTrajektoriaing = !1, this.bTracking = !1, this.positionNeedAdd = [], this.cancelMarkerHook = null, this.map = i, this.polylineTrack = new th([], o), this.polylineTrack.addTo(i), this.marker = L.marker(s.getLatLng(), {
|
|
7882
7893
|
zIndexOffset: 600
|
|
7883
7894
|
}), this.onMarker(s), this.currentMarker = s;
|
|
7884
7895
|
}
|
|
@@ -7936,7 +7947,7 @@ const da = [
|
|
|
7936
7947
|
"#F4DBC6",
|
|
7937
7948
|
"#F2CADA"
|
|
7938
7949
|
];
|
|
7939
|
-
class
|
|
7950
|
+
class ih {
|
|
7940
7951
|
constructor(i) {
|
|
7941
7952
|
this.mapTrajektoria = /* @__PURE__ */ new Map(), this.map = i, this.tooltipContentDiv = document.createElement("div"), this.tooltip = L.tooltip({
|
|
7942
7953
|
content: this.tooltipContentDiv,
|
|
@@ -7950,7 +7961,7 @@ class eh {
|
|
|
7950
7961
|
getTrajektoria(i) {
|
|
7951
7962
|
return this.mapTrajektoria.has(i) || this.mapTrajektoria.set(
|
|
7952
7963
|
i,
|
|
7953
|
-
new
|
|
7964
|
+
new eh(this.map, i, {
|
|
7954
7965
|
color: this.getColor()
|
|
7955
7966
|
})
|
|
7956
7967
|
), this.mapTrajektoria.get(i);
|
|
@@ -7974,7 +7985,7 @@ class eh {
|
|
|
7974
7985
|
s == null || s.stopTrack(), s != null && s.needDelete() && this.mapTrajektoria.delete(i);
|
|
7975
7986
|
}
|
|
7976
7987
|
}
|
|
7977
|
-
class
|
|
7988
|
+
class nh {
|
|
7978
7989
|
constructor() {
|
|
7979
7990
|
this.tasks = [], setInterval(() => {
|
|
7980
7991
|
this.tasks.map((i) => i.task).forEach((i, s) => {
|
|
@@ -7991,7 +8002,7 @@ class ih {
|
|
|
7991
8002
|
});
|
|
7992
8003
|
}
|
|
7993
8004
|
}
|
|
7994
|
-
function
|
|
8005
|
+
function sh() {
|
|
7995
8006
|
const e = st.MarkerClusterGroup.prototype;
|
|
7996
8007
|
setInterval(() => {
|
|
7997
8008
|
s.size && (s.forEach((a) => {
|
|
@@ -8007,10 +8018,10 @@ function nh() {
|
|
|
8007
8018
|
l.bind(this)();
|
|
8008
8019
|
};
|
|
8009
8020
|
}
|
|
8010
|
-
|
|
8011
|
-
class
|
|
8021
|
+
sh();
|
|
8022
|
+
class ah {
|
|
8012
8023
|
constructor(i, s) {
|
|
8013
|
-
this.radius = 80, this.clusterClickHandle = [], this.szMarkers = [], this.asyncHandleHelper = new
|
|
8024
|
+
this.radius = 80, this.clusterClickHandle = [], this.szMarkers = [], this.asyncHandleHelper = new rh((l) => this.addMarkers(l)), s.clusterType == "NO_CLUSTER" ? this.radius = -1 : s.clusterType == "NORMAL" && (this.radius = 80), this.renderOptions = s, this.map = i, this.gRealtimeTrack = new ih(i), this.infoWindow = new Qo(i);
|
|
8014
8025
|
const o = () => {
|
|
8015
8026
|
const l = this.markers;
|
|
8016
8027
|
if (this.markers = st.markerClusterGroup({
|
|
@@ -8045,7 +8056,7 @@ class sh {
|
|
|
8045
8056
|
}
|
|
8046
8057
|
return this.markers;
|
|
8047
8058
|
};
|
|
8048
|
-
this.markers = o(), this.intervalTick = new
|
|
8059
|
+
this.markers = o(), this.intervalTick = new nh(), i.on("layeradd", (l) => {
|
|
8049
8060
|
var a;
|
|
8050
8061
|
(a = l.layer) != null && a.maptype && (this.markers.remove(), o());
|
|
8051
8062
|
});
|
|
@@ -8135,7 +8146,7 @@ class sh {
|
|
|
8135
8146
|
addMarkers(i) {
|
|
8136
8147
|
const s = [], o = [];
|
|
8137
8148
|
for (let l = 0; l < i.length; l++) {
|
|
8138
|
-
const a = i[l], h =
|
|
8149
|
+
const a = i[l], h = Xo(a), u = Yo(h, a, {
|
|
8139
8150
|
infoWindow: this.infoWindow,
|
|
8140
8151
|
map: this.map,
|
|
8141
8152
|
cluster: this,
|
|
@@ -8167,10 +8178,10 @@ class sh {
|
|
|
8167
8178
|
return this.markers.getBounds();
|
|
8168
8179
|
}
|
|
8169
8180
|
getAllMarkers() {
|
|
8170
|
-
return this.markers.getLayers().map((i) =>
|
|
8181
|
+
return this.markers.getLayers().map((i) => Jo(i));
|
|
8171
8182
|
}
|
|
8172
8183
|
}
|
|
8173
|
-
class
|
|
8184
|
+
class rh {
|
|
8174
8185
|
constructor(i) {
|
|
8175
8186
|
this.szParams = [], this._currentTime = -1, this.tickInterval = -1, this.handle = i;
|
|
8176
8187
|
}
|
|
@@ -8309,14 +8320,14 @@ L.DivOverlay.include({
|
|
|
8309
8320
|
}
|
|
8310
8321
|
}
|
|
8311
8322
|
});
|
|
8312
|
-
const
|
|
8323
|
+
const oh = L.extend({}, L.Popup.prototype);
|
|
8313
8324
|
L.Popup.include({
|
|
8314
8325
|
/**
|
|
8315
8326
|
* 0. update element anchor point (popupProto v1.9.3)
|
|
8316
8327
|
* 1. rotate around anchor point (subtract anchor -> rotate point -> add anchor)
|
|
8317
8328
|
*/
|
|
8318
8329
|
_animateZoom: function(e) {
|
|
8319
|
-
if (
|
|
8330
|
+
if (oh._animateZoom.apply(this, arguments), this._map && this._map._rotate) {
|
|
8320
8331
|
var i = this._getAnchor(), s = L.DomUtil.getPosition(this._container).subtract(i);
|
|
8321
8332
|
L.DomUtil.setPosition(this._container, this._map.rotatedPointToMapPanePoint(s).add(i));
|
|
8322
8333
|
}
|
|
@@ -9305,7 +9316,7 @@ L.GridLayer.include({
|
|
|
9305
9316
|
);
|
|
9306
9317
|
}
|
|
9307
9318
|
});
|
|
9308
|
-
class
|
|
9319
|
+
class hh extends L.Polyline {
|
|
9309
9320
|
constructor() {
|
|
9310
9321
|
super([], { interactive: !1, weight: 6 }), this.customTooltip = L.tooltip({
|
|
9311
9322
|
direction: "top"
|
|
@@ -9356,7 +9367,7 @@ class oh extends L.Polyline {
|
|
|
9356
9367
|
}), (s = this.szCircleMarkers) == null || s.splice(0, this.szCircleMarkers.length), this.setLatLngs([]);
|
|
9357
9368
|
}
|
|
9358
9369
|
}
|
|
9359
|
-
class
|
|
9370
|
+
class lh {
|
|
9360
9371
|
constructor(i) {
|
|
9361
9372
|
this.polyine = L.polyline([], {
|
|
9362
9373
|
color: "red",
|
|
@@ -9417,9 +9428,9 @@ class hh {
|
|
|
9417
9428
|
this.markerCurrent.remove(), this.lastPointIndex = 0, this.polyine.setLatLngs([]), this.polyineBlack.setLatLngs([]);
|
|
9418
9429
|
}
|
|
9419
9430
|
}
|
|
9420
|
-
class
|
|
9431
|
+
class uh {
|
|
9421
9432
|
constructor(i) {
|
|
9422
|
-
this.baseline = new
|
|
9433
|
+
this.baseline = new hh(), 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 lh(i), this.map = i;
|
|
9423
9434
|
}
|
|
9424
9435
|
SetPlayTimeCallback(i) {
|
|
9425
9436
|
this.timeCallback = i;
|
|
@@ -9493,7 +9504,7 @@ class lh {
|
|
|
9493
9504
|
this.passedLine.SetMarkerFitView();
|
|
9494
9505
|
}
|
|
9495
9506
|
}
|
|
9496
|
-
var
|
|
9507
|
+
var ch = { exports: {} };
|
|
9497
9508
|
(function(e, i) {
|
|
9498
9509
|
((s, o) => {
|
|
9499
9510
|
e.exports = s(Hn()), typeof o < "u" && o.L && s(o.L);
|
|
@@ -10569,17 +10580,17 @@ var uh = { exports: {} };
|
|
|
10569
10580
|
c = s.latLng(c), this.lat = c.lat, this.lng = c.lng;
|
|
10570
10581
|
};
|
|
10571
10582
|
}, window);
|
|
10572
|
-
})(
|
|
10583
|
+
})(ch);
|
|
10573
10584
|
const Dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAYxJREFUSEvVVUFygzAMXKUXk0cE+Al5SZOXNH1J8pOmLwHyiOAT6sgxDBiBSdNLc2EmtrXSarUiPPGrt9szMWe7ptmvfUZrL8q9W5J8yfd/AZTGZBvgnYgKBgoAlaua+dIC37m11yUWZimSwG9EZx9UYjwCAyCg6v8nuqT3+3EORAUojSk2RI5vMJ9Saz/DHnSVgegk4C3zUatGBaiTpJSALfM+t7bPXGuyA/LJhPd9tePiJIiU7y+P+J1TkQcpodA1quBmzIGJROvHnbWXkNclmXZvw8RGALUxH8Jp2jQqdUsAfRWDnk0ocvQQVXOqiA2adk6StWjcCcbrXGSoyW7FedbJ2MUjqp4FkAAZAepwMTA6Z+bruMkRr1lDUUix1uRD2jS5RlEMoE4SHg7mpMn9BAdK6MBelqkEEs8HswzaZPRjgya9Ca18ovel0Z+zCm+KmUbtnNn1/iK2/OdmJ1SFbjmw6Gpo1xotQ4FEV6aycB674dWF8xuZam+iFQwfxebgZQAnYQBLKzIE+QEAKDEsC3KscgAAAABJRU5ErkJggg==";
|
|
10574
|
-
class
|
|
10585
|
+
class dh {
|
|
10575
10586
|
constructor(i) {
|
|
10576
|
-
this.map = i, this.mutilsHandle = new
|
|
10587
|
+
this.map = i, this.mutilsHandle = new fh(this.map), this.circleHandle = new qa(i), this.polygonHandle = new Ua(i);
|
|
10577
10588
|
}
|
|
10578
10589
|
clear() {
|
|
10579
10590
|
this.circleHandle.clear(), this.polygonHandle.clear();
|
|
10580
10591
|
}
|
|
10581
10592
|
}
|
|
10582
|
-
class
|
|
10593
|
+
class fh {
|
|
10583
10594
|
constructor(i) {
|
|
10584
10595
|
this.szClear = [], this.map = i;
|
|
10585
10596
|
}
|
|
@@ -10743,7 +10754,7 @@ class qa {
|
|
|
10743
10754
|
this.safeOffMapCreateClick(), this.isExist() && (this.circle.remove(), this.circle = null);
|
|
10744
10755
|
}
|
|
10745
10756
|
}
|
|
10746
|
-
class
|
|
10757
|
+
class _h {
|
|
10747
10758
|
constructor(i, s, o) {
|
|
10748
10759
|
this.titleLatlng = null, this.title = "", this.onRemove = o, this.map = i, this.html = document.createElement("div"), this.marker = L.marker([0, 0], {
|
|
10749
10760
|
icon: L.divIcon({
|
|
@@ -10838,17 +10849,17 @@ class fh {
|
|
|
10838
10849
|
});
|
|
10839
10850
|
}
|
|
10840
10851
|
}
|
|
10841
|
-
function
|
|
10852
|
+
function mh(e) {
|
|
10842
10853
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style='height: 100%; width: 100%'>
|
|
10843
10854
|
<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" />
|
|
10844
10855
|
</svg>`;
|
|
10845
10856
|
}
|
|
10846
|
-
function
|
|
10857
|
+
function ph(e) {
|
|
10847
10858
|
return e.showName ? `<span style='width: ${e.title.length * 20}px; display: inline-block; position: absolute;'>
|
|
10848
10859
|
<span style='position: absolute; color: black; background-color: white; padding: 2px 4px; border-radius: 3px'>${e.title}</span>
|
|
10849
10860
|
</span>` : "";
|
|
10850
10861
|
}
|
|
10851
|
-
class
|
|
10862
|
+
class gh {
|
|
10852
10863
|
constructor(i, s) {
|
|
10853
10864
|
this.map = i, this.html = document.createElement("div"), s.latlng ? (this.marker = L.marker(s.latlng), this.marker.addTo(i)) : (this.marker = i.editTools.startMarker(), this.marker.on("editable:drawing:end", () => {
|
|
10854
10865
|
var o;
|
|
@@ -10868,9 +10879,9 @@ class ph {
|
|
|
10868
10879
|
this.markerInfo = {
|
|
10869
10880
|
...this.markerInfo,
|
|
10870
10881
|
...i
|
|
10871
|
-
}, this.html.innerHTML = `<div style='position: relative; pointer-events: none;'>${
|
|
10882
|
+
}, this.html.innerHTML = `<div style='position: relative; pointer-events: none;'>${mh(
|
|
10872
10883
|
this.markerInfo
|
|
10873
|
-
)}${
|
|
10884
|
+
)}${ph(this.markerInfo)}</div>`, this.marker.setIcon(
|
|
10874
10885
|
L.divIcon({
|
|
10875
10886
|
html: this.html,
|
|
10876
10887
|
iconSize: [this.markerInfo.size + 5, this.markerInfo.size + 5],
|
|
@@ -10927,7 +10938,7 @@ class si {
|
|
|
10927
10938
|
});
|
|
10928
10939
|
}
|
|
10929
10940
|
}
|
|
10930
|
-
class
|
|
10941
|
+
class vh {
|
|
10931
10942
|
constructor(i, s) {
|
|
10932
10943
|
this.polygonInfo = s, this.markerTitle = new si(i), s.latlngs ? (this.polygon = L.polygon(s.latlngs), this.polygon.addTo(i)) : this.polygon = i.editTools.startPolygon(), this.polygon.on("editable:vertex:new", () => {
|
|
10933
10944
|
this.SetStyle(this.polygonInfo);
|
|
@@ -10981,7 +10992,7 @@ class gh {
|
|
|
10981
10992
|
this.polygon.remove(), this.markerTitle.remove();
|
|
10982
10993
|
}
|
|
10983
10994
|
}
|
|
10984
|
-
class
|
|
10995
|
+
class yh {
|
|
10985
10996
|
constructor(i, s) {
|
|
10986
10997
|
var o, l;
|
|
10987
10998
|
this.map = i, this.infoCircle = s, this.titleMarker = new si(i), this.radiusMarker = new si(i), this.infoCircle.circleInfo ? (this.circle = L.circle(this.infoCircle.circleInfo.center, {
|
|
@@ -11049,15 +11060,15 @@ class vh {
|
|
|
11049
11060
|
this.radiusMarker.remove(), this.circle.remove(), this.titleMarker.remove();
|
|
11050
11061
|
}
|
|
11051
11062
|
}
|
|
11052
|
-
function
|
|
11063
|
+
function Mh() {
|
|
11053
11064
|
const { VertexMarker: e } = L.Editable, i = e.prototype.onDrag;
|
|
11054
11065
|
e.prototype.onDrag = function(s) {
|
|
11055
11066
|
const o = this._map.layerPointToLatLng;
|
|
11056
11067
|
this._map.layerPointToLatLng = (l) => this._map.wrapLatLng(s.latlng), i.bind(this)(s), this._map.layerPointToLatLng = o;
|
|
11057
11068
|
};
|
|
11058
11069
|
}
|
|
11059
|
-
|
|
11060
|
-
class
|
|
11070
|
+
Mh();
|
|
11071
|
+
class xh {
|
|
11061
11072
|
constructor(i, s) {
|
|
11062
11073
|
var o, l;
|
|
11063
11074
|
this.map = i, this.titleMarker = new si(i), s.reacInfo ? (this.rectangle = L.rectangle(s.reacInfo.latlngBounds), this.rectangle.addTo(i)) : (this.rectangle = i.editTools.startRectangle(), this.rectangle.on("editable:drawing:end", () => {
|
|
@@ -11116,20 +11127,20 @@ class Mh {
|
|
|
11116
11127
|
this.titleMarker.remove(), this.rectangle.remove();
|
|
11117
11128
|
}
|
|
11118
11129
|
}
|
|
11119
|
-
const
|
|
11130
|
+
const Lh = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 12 12">
|
|
11120
11131
|
<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" />
|
|
11121
|
-
</svg>`,
|
|
11132
|
+
</svg>`, wh = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
11122
11133
|
<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" />
|
|
11123
11134
|
</svg>`;
|
|
11124
11135
|
class ja {
|
|
11125
11136
|
constructor(i, s, o) {
|
|
11126
11137
|
this.titleType = "NORMAL", this.kiloMeter = 0, this.titleMarker = new si(i);
|
|
11127
11138
|
const l = document.createElement("span");
|
|
11128
|
-
l.style.verticalAlign = "middle", l.style.pointerEvents = "auto", l.innerHTML =
|
|
11139
|
+
l.style.verticalAlign = "middle", l.style.pointerEvents = "auto", l.innerHTML = wh, l.onclick = s;
|
|
11129
11140
|
const a = document.createElement("span");
|
|
11130
11141
|
a.style.lineHeight = "24px";
|
|
11131
11142
|
const h = document.createElement("span");
|
|
11132
|
-
h.style.verticalAlign = "middle", h.innerHTML =
|
|
11143
|
+
h.style.verticalAlign = "middle", h.innerHTML = Lh, h.onclick = o, h.style.pointerEvents = "auto";
|
|
11133
11144
|
const u = document.createElement("span");
|
|
11134
11145
|
u.style.backgroundColor = "white", u.style.paddingLeft = "5px", u.style.padding = "3px 4px", u.appendChild(a), u.appendChild(l), u.style.borderRadius = "4px";
|
|
11135
11146
|
const f = document.createElement("div");
|
|
@@ -11155,7 +11166,7 @@ class ja {
|
|
|
11155
11166
|
return this.kiloMeter;
|
|
11156
11167
|
}
|
|
11157
11168
|
}
|
|
11158
|
-
class
|
|
11169
|
+
class bh {
|
|
11159
11170
|
constructor(i, s) {
|
|
11160
11171
|
this.titleArray = [], this.params = s, this.map = i, this.path = i.editTools.startPolyline(), this.path.setStyle({
|
|
11161
11172
|
color: "red",
|
|
@@ -11217,7 +11228,7 @@ class wh {
|
|
|
11217
11228
|
this.path.remove(), this.titleArray.forEach((i) => i.remove());
|
|
11218
11229
|
}
|
|
11219
11230
|
}
|
|
11220
|
-
const Ma = 6378137,
|
|
11231
|
+
const Ma = 6378137, Ph = function(i) {
|
|
11221
11232
|
const s = function(m) {
|
|
11222
11233
|
return m * Math.PI / 180;
|
|
11223
11234
|
};
|
|
@@ -11229,7 +11240,7 @@ const Ma = 6378137, bh = function(i) {
|
|
|
11229
11240
|
}
|
|
11230
11241
|
return Math.abs(p);
|
|
11231
11242
|
};
|
|
11232
|
-
class
|
|
11243
|
+
class Ch {
|
|
11233
11244
|
constructor(i, s) {
|
|
11234
11245
|
this.map = i, this.params = s, this.titleMarker = new ja(
|
|
11235
11246
|
i,
|
|
@@ -11253,14 +11264,14 @@ class Ph {
|
|
|
11253
11264
|
}
|
|
11254
11265
|
update() {
|
|
11255
11266
|
this.titleMarker.SetLatlng(this.polygon.getCenter());
|
|
11256
|
-
const i = this.polygon.getLatLngs(), s =
|
|
11267
|
+
const i = this.polygon.getLatLngs(), s = Ph(i[0]), o = s / 1e6 > 1 ? `${(s / 1e6).toFixed(2)}${this.params.kiloMeterSquare}` : `${s.toFixed(2)}${this.params.MeterSquare}`;
|
|
11257
11268
|
this.titleMarker.setTitle(`${o}`);
|
|
11258
11269
|
}
|
|
11259
11270
|
remove() {
|
|
11260
11271
|
this.titleMarker.remove(), this.polygon.remove();
|
|
11261
11272
|
}
|
|
11262
11273
|
}
|
|
11263
|
-
function
|
|
11274
|
+
function kh(e) {
|
|
11264
11275
|
const i = [];
|
|
11265
11276
|
return e.features.forEach((s) => {
|
|
11266
11277
|
if (s.geometry.type == "GeometryCollection") {
|
|
@@ -11284,15 +11295,15 @@ function $e(e, i) {
|
|
|
11284
11295
|
const s = e;
|
|
11285
11296
|
return s.shapeType = i, s;
|
|
11286
11297
|
}
|
|
11287
|
-
function
|
|
11298
|
+
function kf(e, i) {
|
|
11288
11299
|
return i;
|
|
11289
11300
|
}
|
|
11290
|
-
class
|
|
11301
|
+
class Th {
|
|
11291
11302
|
constructor(i) {
|
|
11292
11303
|
this.map = i;
|
|
11293
11304
|
}
|
|
11294
11305
|
addLine(i) {
|
|
11295
|
-
const s = new
|
|
11306
|
+
const s = new _h(
|
|
11296
11307
|
this.map,
|
|
11297
11308
|
{
|
|
11298
11309
|
latlngs: i.latlngs ? i.latlngs : [],
|
|
@@ -11304,41 +11315,41 @@ class kh {
|
|
|
11304
11315
|
return $e(s, "POLYLINE");
|
|
11305
11316
|
}
|
|
11306
11317
|
addMarker(i) {
|
|
11307
|
-
return $e(new
|
|
11318
|
+
return $e(new gh(this.map, i), "MARKER");
|
|
11308
11319
|
}
|
|
11309
11320
|
addPolygon(i) {
|
|
11310
11321
|
return $e(
|
|
11311
|
-
new
|
|
11322
|
+
new vh(this.map, i),
|
|
11312
11323
|
"POLYGON"
|
|
11313
11324
|
);
|
|
11314
11325
|
}
|
|
11315
11326
|
addCircle(i) {
|
|
11316
|
-
return $e(new
|
|
11327
|
+
return $e(new yh(this.map, i), "CIRCLE");
|
|
11317
11328
|
}
|
|
11318
11329
|
addRectangle(i) {
|
|
11319
11330
|
return $e(
|
|
11320
|
-
new
|
|
11331
|
+
new xh(this.map, i),
|
|
11321
11332
|
"RECTANGLE"
|
|
11322
11333
|
);
|
|
11323
11334
|
}
|
|
11324
11335
|
addDistanceRule(i) {
|
|
11325
|
-
return new
|
|
11336
|
+
return new bh(this.map, i);
|
|
11326
11337
|
}
|
|
11327
11338
|
addPolygonAreaRule(i) {
|
|
11328
|
-
return new
|
|
11339
|
+
return new Ch(this.map, i);
|
|
11329
11340
|
}
|
|
11330
11341
|
parseGeoJson(i) {
|
|
11331
|
-
return
|
|
11342
|
+
return kh(i);
|
|
11332
11343
|
}
|
|
11333
11344
|
}
|
|
11334
|
-
var
|
|
11335
|
-
function
|
|
11345
|
+
var Eh = { exports: {} };
|
|
11346
|
+
function Sh(e) {
|
|
11336
11347
|
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");
|
|
11337
11348
|
for (var i = 1; i <= 60; ++i)
|
|
11338
11349
|
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");
|
|
11339
11350
|
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"];
|
|
11340
11351
|
}
|
|
11341
|
-
var ce = 1, de = 2, Te = 3,
|
|
11352
|
+
var ce = 1, de = 2, Te = 3, Ah = 4, Rn = 5, xa = 6378137, Ih = 6356752314e-3, La = 0.0066943799901413165, Ye = 484813681109536e-20, E = Math.PI / 2, Oh = 0.16666666666666666, zh = 0.04722222222222222, Bh = 0.022156084656084655, I = 1e-10, _t = 0.017453292519943295, Ht = 57.29577951308232, K = Math.PI / 4, ai = Math.PI * 2, ot = 3.14159265359, Ct = {};
|
|
11342
11353
|
Ct.greenwich = 0;
|
|
11343
11354
|
Ct.lisbon = -9.131906111111;
|
|
11344
11355
|
Ct.paris = 2.337229166667;
|
|
@@ -11352,7 +11363,7 @@ Ct.brussels = 4.367975;
|
|
|
11352
11363
|
Ct.stockholm = 18.058277777778;
|
|
11353
11364
|
Ct.athens = 23.7163375;
|
|
11354
11365
|
Ct.oslo = 10.722916666667;
|
|
11355
|
-
const
|
|
11366
|
+
const Nh = {
|
|
11356
11367
|
mm: { to_meter: 1e-3 },
|
|
11357
11368
|
cm: { to_meter: 0.01 },
|
|
11358
11369
|
ft: { to_meter: 0.3048 },
|
|
@@ -11466,7 +11477,7 @@ function Zn(e) {
|
|
|
11466
11477
|
},
|
|
11467
11478
|
units: function(u) {
|
|
11468
11479
|
i.units = u;
|
|
11469
|
-
var f = ie(
|
|
11480
|
+
var f = ie(Nh, u);
|
|
11470
11481
|
f && (i.to_meter = f.to_meter);
|
|
11471
11482
|
},
|
|
11472
11483
|
from_greenwich: function(u) {
|
|
@@ -11491,7 +11502,7 @@ function Zn(e) {
|
|
|
11491
11502
|
l = s[o], o in h ? (a = h[o], typeof a == "function" ? a(l) : i[a] = l) : i[o] = l;
|
|
11492
11503
|
return typeof i.datumCode == "string" && i.datumCode !== "WGS84" && (i.datumCode = i.datumCode.toLowerCase()), i;
|
|
11493
11504
|
}
|
|
11494
|
-
var ri = 1, Wa = 2, Va = 3, Ui = 4, $a = 5, jn = -1,
|
|
11505
|
+
var ri = 1, Wa = 2, Va = 3, Ui = 4, $a = 5, jn = -1, Dh = /\s/, Rh = /[A-Za-z]/, Zh = /[A-Za-z84_]/, Ki = /[,\]]/, Ka = /[\d\.E\-\+]/;
|
|
11495
11506
|
function Jt(e) {
|
|
11496
11507
|
if (typeof e != "string")
|
|
11497
11508
|
throw new Error("not a string");
|
|
@@ -11500,7 +11511,7 @@ function Jt(e) {
|
|
|
11500
11511
|
Jt.prototype.readCharicter = function() {
|
|
11501
11512
|
var e = this.text[this.place++];
|
|
11502
11513
|
if (this.state !== Ui)
|
|
11503
|
-
for (;
|
|
11514
|
+
for (; Dh.test(e); ) {
|
|
11504
11515
|
if (this.place >= this.text.length)
|
|
11505
11516
|
return;
|
|
11506
11517
|
e = this.text[this.place++];
|
|
@@ -11560,7 +11571,7 @@ Jt.prototype.quoted = function(e) {
|
|
|
11560
11571
|
this.word += e;
|
|
11561
11572
|
};
|
|
11562
11573
|
Jt.prototype.keyword = function(e) {
|
|
11563
|
-
if (
|
|
11574
|
+
if (Zh.test(e)) {
|
|
11564
11575
|
this.word += e;
|
|
11565
11576
|
return;
|
|
11566
11577
|
}
|
|
@@ -11576,7 +11587,7 @@ Jt.prototype.keyword = function(e) {
|
|
|
11576
11587
|
throw new Error(`havn't handled "` + e + '" in keyword yet, index ' + this.place);
|
|
11577
11588
|
};
|
|
11578
11589
|
Jt.prototype.neutral = function(e) {
|
|
11579
|
-
if (
|
|
11590
|
+
if (Rh.test(e)) {
|
|
11580
11591
|
this.word = e, this.state = Wa;
|
|
11581
11592
|
return;
|
|
11582
11593
|
}
|
|
@@ -11601,7 +11612,7 @@ Jt.prototype.output = function() {
|
|
|
11601
11612
|
return this.root;
|
|
11602
11613
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
11603
11614
|
};
|
|
11604
|
-
function
|
|
11615
|
+
function Gh(e) {
|
|
11605
11616
|
var i = new Jt(e);
|
|
11606
11617
|
return i.output();
|
|
11607
11618
|
}
|
|
@@ -11689,7 +11700,7 @@ function be(e, i) {
|
|
|
11689
11700
|
return On(i, s, e);
|
|
11690
11701
|
}
|
|
11691
11702
|
}
|
|
11692
|
-
var
|
|
11703
|
+
var Fh = 0.017453292519943295, Hh = [
|
|
11693
11704
|
"PROJECTEDCRS",
|
|
11694
11705
|
"PROJCRS",
|
|
11695
11706
|
"GEOGCS",
|
|
@@ -11702,20 +11713,20 @@ var Gh = 0.017453292519943295, Fh = [
|
|
|
11702
11713
|
"ENGCRS",
|
|
11703
11714
|
"ENGINEERINGCRS"
|
|
11704
11715
|
];
|
|
11705
|
-
function
|
|
11716
|
+
function Uh(e, i) {
|
|
11706
11717
|
var s = i[0], o = i[1];
|
|
11707
11718
|
!(s in e) && o in e && (e[s] = e[o], i.length === 3 && (e[s] = i[2](e[s])));
|
|
11708
11719
|
}
|
|
11709
11720
|
function Ft(e) {
|
|
11710
|
-
return e *
|
|
11721
|
+
return e * Fh;
|
|
11711
11722
|
}
|
|
11712
11723
|
function Xa(e) {
|
|
11713
11724
|
for (var i = Object.keys(e), s = 0, o = i.length; s < o; ++s) {
|
|
11714
11725
|
var l = i[s];
|
|
11715
|
-
|
|
11726
|
+
Hh.indexOf(l) !== -1 && qh(e[l]), typeof e[l] == "object" && Xa(e[l]);
|
|
11716
11727
|
}
|
|
11717
11728
|
}
|
|
11718
|
-
function
|
|
11729
|
+
function qh(e) {
|
|
11719
11730
|
if (e.AUTHORITY) {
|
|
11720
11731
|
var i = Object.keys(e.AUTHORITY)[0];
|
|
11721
11732
|
i && i in e.AUTHORITY && (e.title = i + ":" + e.AUTHORITY[i]);
|
|
@@ -11735,7 +11746,7 @@ function Uh(e) {
|
|
|
11735
11746
|
return M * g;
|
|
11736
11747
|
}
|
|
11737
11748
|
var f = function(M) {
|
|
11738
|
-
return
|
|
11749
|
+
return Uh(e, M);
|
|
11739
11750
|
}, p = [
|
|
11740
11751
|
["standard_parallel_1", "Standard_Parallel_1"],
|
|
11741
11752
|
["standard_parallel_1", "Latitude of 1st standard parallel"],
|
|
@@ -11776,7 +11787,7 @@ function Uh(e) {
|
|
|
11776
11787
|
p.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 = Ft(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 = Ft(e.lat0 > 0 ? 90 : -90));
|
|
11777
11788
|
}
|
|
11778
11789
|
function Ja(e) {
|
|
11779
|
-
var i =
|
|
11790
|
+
var i = Gh(e), s = i[0], o = {};
|
|
11780
11791
|
return be(i, o), Xa(o), o[s];
|
|
11781
11792
|
}
|
|
11782
11793
|
function vt(e) {
|
|
@@ -11796,47 +11807,47 @@ function vt(e) {
|
|
|
11796
11807
|
return;
|
|
11797
11808
|
}
|
|
11798
11809
|
}
|
|
11799
|
-
|
|
11800
|
-
function
|
|
11810
|
+
Sh(vt);
|
|
11811
|
+
function jh(e) {
|
|
11801
11812
|
return typeof e == "string";
|
|
11802
11813
|
}
|
|
11803
|
-
function
|
|
11814
|
+
function Wh(e) {
|
|
11804
11815
|
return e in vt;
|
|
11805
11816
|
}
|
|
11806
|
-
var
|
|
11807
|
-
function
|
|
11808
|
-
return
|
|
11817
|
+
var Vh = ["PROJECTEDCRS", "PROJCRS", "GEOGCS", "GEOCCS", "PROJCS", "LOCAL_CS", "GEODCRS", "GEODETICCRS", "GEODETICDATUM", "ENGCRS", "ENGINEERINGCRS"];
|
|
11818
|
+
function $h(e) {
|
|
11819
|
+
return Vh.some(function(i) {
|
|
11809
11820
|
return e.indexOf(i) > -1;
|
|
11810
11821
|
});
|
|
11811
11822
|
}
|
|
11812
|
-
var
|
|
11813
|
-
function
|
|
11823
|
+
var Kh = ["3857", "900913", "3785", "102113"];
|
|
11824
|
+
function Xh(e) {
|
|
11814
11825
|
var i = ie(e, "authority");
|
|
11815
11826
|
if (i) {
|
|
11816
11827
|
var s = ie(i, "epsg");
|
|
11817
|
-
return s &&
|
|
11828
|
+
return s && Kh.indexOf(s) > -1;
|
|
11818
11829
|
}
|
|
11819
11830
|
}
|
|
11820
|
-
function
|
|
11831
|
+
function Jh(e) {
|
|
11821
11832
|
var i = ie(e, "extension");
|
|
11822
11833
|
if (i)
|
|
11823
11834
|
return ie(i, "proj4");
|
|
11824
11835
|
}
|
|
11825
|
-
function
|
|
11836
|
+
function Qh(e) {
|
|
11826
11837
|
return e[0] === "+";
|
|
11827
11838
|
}
|
|
11828
|
-
function
|
|
11829
|
-
if (
|
|
11830
|
-
if (
|
|
11839
|
+
function Yh(e) {
|
|
11840
|
+
if (jh(e)) {
|
|
11841
|
+
if (Wh(e))
|
|
11831
11842
|
return vt[e];
|
|
11832
|
-
if (
|
|
11843
|
+
if ($h(e)) {
|
|
11833
11844
|
var i = Ja(e);
|
|
11834
|
-
if (
|
|
11845
|
+
if (Xh(i))
|
|
11835
11846
|
return vt["EPSG:3857"];
|
|
11836
|
-
var s =
|
|
11847
|
+
var s = Jh(i);
|
|
11837
11848
|
return s ? Zn(s) : i;
|
|
11838
11849
|
}
|
|
11839
|
-
if (
|
|
11850
|
+
if (Qh(e))
|
|
11840
11851
|
return Zn(e);
|
|
11841
11852
|
} else
|
|
11842
11853
|
return e;
|
|
@@ -11870,11 +11881,11 @@ function oi(e, i) {
|
|
|
11870
11881
|
return a;
|
|
11871
11882
|
return -9999;
|
|
11872
11883
|
}
|
|
11873
|
-
function
|
|
11884
|
+
function tl() {
|
|
11874
11885
|
var e = this.b / this.a;
|
|
11875
11886
|
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 = qt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
11876
11887
|
}
|
|
11877
|
-
function
|
|
11888
|
+
function el(e) {
|
|
11878
11889
|
var i = e.x, s = e.y;
|
|
11879
11890
|
if (s * Ht > 90 && s * Ht < -90 && i * Ht > 180 && i * Ht < -180)
|
|
11880
11891
|
return null;
|
|
@@ -11889,7 +11900,7 @@ function tl(e) {
|
|
|
11889
11900
|
}
|
|
11890
11901
|
return e.x = o, e.y = l, e;
|
|
11891
11902
|
}
|
|
11892
|
-
function
|
|
11903
|
+
function il(e) {
|
|
11893
11904
|
var i = e.x - this.x0, s = e.y - this.y0, o, l;
|
|
11894
11905
|
if (this.sphere)
|
|
11895
11906
|
l = E - 2 * Math.atan(Math.exp(-s / (this.a * this.k0)));
|
|
@@ -11900,46 +11911,46 @@ function el(e) {
|
|
|
11900
11911
|
}
|
|
11901
11912
|
return o = O(this.long0 + i / (this.a * this.k0)), e.x = o, e.y = l, e;
|
|
11902
11913
|
}
|
|
11903
|
-
var
|
|
11904
|
-
const
|
|
11905
|
-
init:
|
|
11906
|
-
forward:
|
|
11907
|
-
inverse:
|
|
11908
|
-
names:
|
|
11914
|
+
var nl = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
|
|
11915
|
+
const sl = {
|
|
11916
|
+
init: tl,
|
|
11917
|
+
forward: el,
|
|
11918
|
+
inverse: il,
|
|
11919
|
+
names: nl
|
|
11909
11920
|
};
|
|
11910
|
-
function
|
|
11921
|
+
function al() {
|
|
11911
11922
|
}
|
|
11912
11923
|
function Pa(e) {
|
|
11913
11924
|
return e;
|
|
11914
11925
|
}
|
|
11915
|
-
var
|
|
11916
|
-
const
|
|
11917
|
-
init:
|
|
11926
|
+
var rl = ["longlat", "identity"];
|
|
11927
|
+
const ol = {
|
|
11928
|
+
init: al,
|
|
11918
11929
|
forward: Pa,
|
|
11919
11930
|
inverse: Pa,
|
|
11920
|
-
names:
|
|
11931
|
+
names: rl
|
|
11921
11932
|
};
|
|
11922
|
-
var
|
|
11933
|
+
var hl = [sl, ol], Ri = {}, qi = [];
|
|
11923
11934
|
function Qa(e, i) {
|
|
11924
11935
|
var s = qi.length;
|
|
11925
11936
|
return e.names ? (qi[s] = e, e.names.forEach(function(o) {
|
|
11926
11937
|
Ri[o.toLowerCase()] = s;
|
|
11927
11938
|
}), this) : (console.log(i), !0);
|
|
11928
11939
|
}
|
|
11929
|
-
function
|
|
11940
|
+
function ll(e) {
|
|
11930
11941
|
if (!e)
|
|
11931
11942
|
return !1;
|
|
11932
11943
|
var i = e.toLowerCase();
|
|
11933
11944
|
if (typeof Ri[i] < "u" && qi[Ri[i]])
|
|
11934
11945
|
return qi[Ri[i]];
|
|
11935
11946
|
}
|
|
11936
|
-
function
|
|
11937
|
-
|
|
11947
|
+
function ul() {
|
|
11948
|
+
hl.forEach(Qa);
|
|
11938
11949
|
}
|
|
11939
|
-
const
|
|
11940
|
-
start:
|
|
11950
|
+
const cl = {
|
|
11951
|
+
start: ul,
|
|
11941
11952
|
add: Qa,
|
|
11942
|
-
get:
|
|
11953
|
+
get: ll
|
|
11943
11954
|
};
|
|
11944
11955
|
var Z = {};
|
|
11945
11956
|
Z.MERIT = {
|
|
@@ -12153,7 +12164,7 @@ Z.WGS7 = {
|
|
|
12153
12164
|
rf: 298.26,
|
|
12154
12165
|
ellipseName: "WGS 72"
|
|
12155
12166
|
};
|
|
12156
|
-
var
|
|
12167
|
+
var dl = Z.WGS84 = {
|
|
12157
12168
|
a: 6378137,
|
|
12158
12169
|
rf: 298.257223563,
|
|
12159
12170
|
ellipseName: "WGS 84"
|
|
@@ -12163,9 +12174,9 @@ Z.sphere = {
|
|
|
12163
12174
|
b: 6370997,
|
|
12164
12175
|
ellipseName: "Normal Sphere (r=6370997)"
|
|
12165
12176
|
};
|
|
12166
|
-
function
|
|
12177
|
+
function fl(e, i, s, o) {
|
|
12167
12178
|
var l = e * e, a = i * i, h = (l - a) / l, u = 0;
|
|
12168
|
-
o ? (e *= 1 - h * (
|
|
12179
|
+
o ? (e *= 1 - h * (Oh + h * (zh + h * Bh)), l = e * e, h = 0) : u = Math.sqrt(h);
|
|
12169
12180
|
var f = (l - a) / a;
|
|
12170
12181
|
return {
|
|
12171
12182
|
es: h,
|
|
@@ -12173,10 +12184,10 @@ function dl(e, i, s, o) {
|
|
|
12173
12184
|
ep2: f
|
|
12174
12185
|
};
|
|
12175
12186
|
}
|
|
12176
|
-
function
|
|
12187
|
+
function _l(e, i, s, o, l) {
|
|
12177
12188
|
if (!e) {
|
|
12178
12189
|
var a = ie(Z, o);
|
|
12179
|
-
a || (a =
|
|
12190
|
+
a || (a = dl), e = a.a, i = a.b, s = a.rf;
|
|
12180
12191
|
}
|
|
12181
12192
|
return s && !i && (i = (1 - 1 / s) * e), (s === 0 || Math.abs(e - i) < I) && (l = !0, i = e), {
|
|
12182
12193
|
a: e,
|
|
@@ -12277,26 +12288,26 @@ var Zi = {
|
|
|
12277
12288
|
datumName: "Reseau National Belge 1972"
|
|
12278
12289
|
}
|
|
12279
12290
|
};
|
|
12280
|
-
for (var
|
|
12281
|
-
var Ca = Zi[
|
|
12291
|
+
for (var ml in Zi) {
|
|
12292
|
+
var Ca = Zi[ml];
|
|
12282
12293
|
Zi[Ca.datumName] = Ca;
|
|
12283
12294
|
}
|
|
12284
|
-
function
|
|
12295
|
+
function pl(e, i, s, o, l, a, h) {
|
|
12285
12296
|
var u = {};
|
|
12286
|
-
return e === void 0 || e === "none" ? u.datum_type = Rn : u.datum_type =
|
|
12297
|
+
return e === void 0 || e === "none" ? u.datum_type = Rn : u.datum_type = Ah, 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 = ce), 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 = de, u.datum_params[3] *= Ye, u.datum_params[4] *= Ye, u.datum_params[5] *= Ye, u.datum_params[6] = u.datum_params[6] / 1e6 + 1)), h && (u.datum_type = Te, u.grids = h), u.a = s, u.b = o, u.es = l, u.ep2 = a, u;
|
|
12287
12298
|
}
|
|
12288
12299
|
var Ya = {};
|
|
12289
|
-
function
|
|
12290
|
-
var s = new DataView(i), o =
|
|
12300
|
+
function gl(e, i) {
|
|
12301
|
+
var s = new DataView(i), o = Ml(s), l = xl(s, o), a = Ll(s, l, o), h = { header: l, subgrids: a };
|
|
12291
12302
|
return Ya[e] = h, h;
|
|
12292
12303
|
}
|
|
12293
|
-
function
|
|
12304
|
+
function vl(e) {
|
|
12294
12305
|
if (e === void 0)
|
|
12295
12306
|
return null;
|
|
12296
12307
|
var i = e.split(",");
|
|
12297
|
-
return i.map(
|
|
12308
|
+
return i.map(yl);
|
|
12298
12309
|
}
|
|
12299
|
-
function
|
|
12310
|
+
function yl(e) {
|
|
12300
12311
|
if (e.length === 0)
|
|
12301
12312
|
return null;
|
|
12302
12313
|
var i = e[0] === "@";
|
|
@@ -12310,11 +12321,11 @@ function vl(e) {
|
|
|
12310
12321
|
function Pe(e) {
|
|
12311
12322
|
return e / 3600 * Math.PI / 180;
|
|
12312
12323
|
}
|
|
12313
|
-
function
|
|
12324
|
+
function Ml(e) {
|
|
12314
12325
|
var i = e.getInt32(8, !1);
|
|
12315
12326
|
return i === 11 ? !1 : (i = e.getInt32(8, !0), i !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
|
|
12316
12327
|
}
|
|
12317
|
-
function
|
|
12328
|
+
function xl(e, i) {
|
|
12318
12329
|
return {
|
|
12319
12330
|
nFields: e.getInt32(8, i),
|
|
12320
12331
|
nSubgridFields: e.getInt32(24, i),
|
|
@@ -12329,9 +12340,9 @@ function Ml(e, i) {
|
|
|
12329
12340
|
function Gn(e, i, s) {
|
|
12330
12341
|
return String.fromCharCode.apply(null, new Uint8Array(e.buffer.slice(i, s)));
|
|
12331
12342
|
}
|
|
12332
|
-
function
|
|
12343
|
+
function Ll(e, i, s) {
|
|
12333
12344
|
for (var o = 176, l = [], a = 0; a < i.nSubgrids; a++) {
|
|
12334
|
-
var h =
|
|
12345
|
+
var h = bl(e, o, s), u = Pl(e, o, h, s), f = Math.round(
|
|
12335
12346
|
1 + (h.upperLongitude - h.lowerLongitude) / h.longitudeInterval
|
|
12336
12347
|
), p = Math.round(
|
|
12337
12348
|
1 + (h.upperLatitude - h.lowerLatitude) / h.latitudeInterval
|
|
@@ -12341,17 +12352,17 @@ function xl(e, i, s) {
|
|
|
12341
12352
|
del: [Pe(h.longitudeInterval), Pe(h.latitudeInterval)],
|
|
12342
12353
|
lim: [f, p],
|
|
12343
12354
|
count: h.gridNodeCount,
|
|
12344
|
-
cvs:
|
|
12355
|
+
cvs: wl(u)
|
|
12345
12356
|
}), o += 176 + h.gridNodeCount * 16;
|
|
12346
12357
|
}
|
|
12347
12358
|
return l;
|
|
12348
12359
|
}
|
|
12349
|
-
function
|
|
12360
|
+
function wl(e) {
|
|
12350
12361
|
return e.map(function(i) {
|
|
12351
12362
|
return [Pe(i.longitudeShift), Pe(i.latitudeShift)];
|
|
12352
12363
|
});
|
|
12353
12364
|
}
|
|
12354
|
-
function
|
|
12365
|
+
function bl(e, i, s) {
|
|
12355
12366
|
return {
|
|
12356
12367
|
name: Gn(e, i + 8, i + 16).trim(),
|
|
12357
12368
|
parent: Gn(e, i + 24, i + 24 + 8).trim(),
|
|
@@ -12364,7 +12375,7 @@ function wl(e, i, s) {
|
|
|
12364
12375
|
gridNodeCount: e.getInt32(i + 168, s)
|
|
12365
12376
|
};
|
|
12366
12377
|
}
|
|
12367
|
-
function
|
|
12378
|
+
function Pl(e, i, s, o) {
|
|
12368
12379
|
for (var l = i + 176, a = 16, h = [], u = 0; u < s.gridNodeCount; u++) {
|
|
12369
12380
|
var f = {
|
|
12370
12381
|
latitudeShift: e.getFloat32(l + u * a, o),
|
|
@@ -12383,7 +12394,7 @@ function Ut(e, i) {
|
|
|
12383
12394
|
if (p)
|
|
12384
12395
|
throw p;
|
|
12385
12396
|
};
|
|
12386
|
-
var s =
|
|
12397
|
+
var s = Yh(e);
|
|
12387
12398
|
if (typeof s != "object") {
|
|
12388
12399
|
i("Could not parse to valid json: " + e);
|
|
12389
12400
|
return;
|
|
@@ -12398,7 +12409,7 @@ function Ut(e, i) {
|
|
|
12398
12409
|
l && (s.datum_params = s.datum_params || (l.towgs84 ? l.towgs84.split(",") : null), s.ellps = l.ellipse, s.datumName = l.datumName ? l.datumName : s.datumCode);
|
|
12399
12410
|
}
|
|
12400
12411
|
s.k0 = s.k0 || 1, s.axis = s.axis || "enu", s.ellps = s.ellps || "wgs84", s.lat1 = s.lat1 || s.lat0;
|
|
12401
|
-
var a =
|
|
12412
|
+
var a = _l(s.a, s.b, s.rf, s.ellps, s.sphere), h = fl(a.a, a.b, a.rf, s.R_A), u = vl(s.nadgrids), f = s.datum || pl(
|
|
12402
12413
|
s.datumCode,
|
|
12403
12414
|
s.datum_params,
|
|
12404
12415
|
a.a,
|
|
@@ -12409,9 +12420,9 @@ function Ut(e, i) {
|
|
|
12409
12420
|
);
|
|
12410
12421
|
ba(this, s), ba(this, o), this.a = a.a, this.b = a.b, this.rf = a.rf, this.sphere = a.sphere, this.es = h.es, this.e = h.e, this.ep2 = h.ep2, this.datum = f, this.init(), i(null, this);
|
|
12411
12422
|
}
|
|
12412
|
-
Ut.projections =
|
|
12423
|
+
Ut.projections = cl;
|
|
12413
12424
|
Ut.projections.start();
|
|
12414
|
-
function
|
|
12425
|
+
function Cl(e, i) {
|
|
12415
12426
|
return e.datum_type !== i.datum_type || e.a !== i.a || Math.abs(e.es - i.es) > 5e-11 ? !1 : e.datum_type === ce ? 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 === de ? 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;
|
|
12416
12427
|
}
|
|
12417
12428
|
function tr(e, i, s) {
|
|
@@ -12453,7 +12464,7 @@ function er(e, i, s, o) {
|
|
|
12453
12464
|
z: Mt
|
|
12454
12465
|
};
|
|
12455
12466
|
}
|
|
12456
|
-
function
|
|
12467
|
+
function kl(e, i, s) {
|
|
12457
12468
|
if (i === ce)
|
|
12458
12469
|
return {
|
|
12459
12470
|
x: e.x + s[0],
|
|
@@ -12469,7 +12480,7 @@ function Cl(e, i, s) {
|
|
|
12469
12480
|
};
|
|
12470
12481
|
}
|
|
12471
12482
|
}
|
|
12472
|
-
function
|
|
12483
|
+
function Tl(e, i, s) {
|
|
12473
12484
|
if (i === ce)
|
|
12474
12485
|
return {
|
|
12475
12486
|
x: e.x - s[0],
|
|
@@ -12488,8 +12499,8 @@ function kl(e, i, s) {
|
|
|
12488
12499
|
function Bi(e) {
|
|
12489
12500
|
return e === ce || e === de;
|
|
12490
12501
|
}
|
|
12491
|
-
function
|
|
12492
|
-
if (
|
|
12502
|
+
function El(e, i, s) {
|
|
12503
|
+
if (Cl(e, i) || e.datum_type === Rn || i.datum_type === Rn)
|
|
12493
12504
|
return s;
|
|
12494
12505
|
var o = e.a, l = e.es;
|
|
12495
12506
|
if (e.datum_type === Te) {
|
|
@@ -12499,9 +12510,9 @@ function Tl(e, i, s) {
|
|
|
12499
12510
|
o = xa, l = La;
|
|
12500
12511
|
}
|
|
12501
12512
|
var h = i.a, u = i.b, f = i.es;
|
|
12502
|
-
if (i.datum_type === Te && (h = xa, u =
|
|
12513
|
+
if (i.datum_type === Te && (h = xa, u = Ih, f = La), l === f && o === h && !Bi(e.datum_type) && !Bi(i.datum_type))
|
|
12503
12514
|
return s;
|
|
12504
|
-
if (s = tr(s, l, o), Bi(e.datum_type) && (s =
|
|
12515
|
+
if (s = tr(s, l, o), Bi(e.datum_type) && (s = kl(s, e.datum_type, e.datum_params)), Bi(i.datum_type) && (s = Tl(s, i.datum_type, i.datum_params)), s = er(s, f, h, u), i.datum_type === Te) {
|
|
12505
12516
|
var p = ka(i, !0, s);
|
|
12506
12517
|
if (p !== 0)
|
|
12507
12518
|
return;
|
|
@@ -12526,13 +12537,13 @@ function ka(e, i, s) {
|
|
|
12526
12537
|
}
|
|
12527
12538
|
for (var f = u.grid.subgrids, p = 0, M = f.length; p < M; p++) {
|
|
12528
12539
|
var g = f[p], c = (Math.abs(g.del[1]) + Math.abs(g.del[0])) / 1e4, m = g.ll[0] - c, v = g.ll[1] - c, x = g.ll[0] + (g.lim[0] - 1) * g.del[0] + c, b = g.ll[1] + (g.lim[1] - 1) * g.del[1] + c;
|
|
12529
|
-
if (!(v > o.y || m > o.x || b < o.y || x < o.x) && (l =
|
|
12540
|
+
if (!(v > o.y || m > o.x || b < o.y || x < o.x) && (l = Sl(o, i, g), !isNaN(l.x)))
|
|
12530
12541
|
break t;
|
|
12531
12542
|
}
|
|
12532
12543
|
}
|
|
12533
12544
|
return isNaN(l.x) ? (console.log("Failed to find a grid shift table for location '" + -o.x * Ht + " " + o.y * Ht + " tried: '" + a + "'"), -1) : (s.x = -l.x, s.y = l.y, 0);
|
|
12534
12545
|
}
|
|
12535
|
-
function
|
|
12546
|
+
function Sl(e, i, s) {
|
|
12536
12547
|
var o = { x: Number.NaN, y: Number.NaN };
|
|
12537
12548
|
if (isNaN(e.x))
|
|
12538
12549
|
return o;
|
|
@@ -12607,7 +12618,7 @@ function ir(e) {
|
|
|
12607
12618
|
};
|
|
12608
12619
|
return e.length > 2 && (i.z = e[2]), e.length > 3 && (i.m = e[3]), i;
|
|
12609
12620
|
}
|
|
12610
|
-
function
|
|
12621
|
+
function Al(e) {
|
|
12611
12622
|
Sa(e.x), Sa(e.y);
|
|
12612
12623
|
}
|
|
12613
12624
|
function Sa(e) {
|
|
@@ -12619,7 +12630,7 @@ function Sa(e) {
|
|
|
12619
12630
|
if (typeof e != "number" || e !== e || !isFinite(e))
|
|
12620
12631
|
throw new TypeError("coordinates must be finite numbers");
|
|
12621
12632
|
}
|
|
12622
|
-
function
|
|
12633
|
+
function Il(e, i) {
|
|
12623
12634
|
return (e.datum.datum_type === ce || e.datum.datum_type === de || e.datum.datum_type === Te) && i.datumCode !== "WGS84" || (i.datum.datum_type === ce || i.datum.datum_type === de || i.datum.datum_type === Te) && e.datumCode !== "WGS84";
|
|
12624
12635
|
}
|
|
12625
12636
|
function ji(e, i, s, o) {
|
|
@@ -12631,7 +12642,7 @@ function ji(e, i, s, o) {
|
|
|
12631
12642
|
m: s.m
|
|
12632
12643
|
};
|
|
12633
12644
|
var a = s.z !== void 0;
|
|
12634
|
-
if (
|
|
12645
|
+
if (Al(s), e.datum && i.datum && Il(e, i) && (l = new Ut("WGS84"), s = ji(e, l, s, o), e = l), o && e.axis !== "enu" && (s = Ea(e, !1, s)), e.projName === "longlat")
|
|
12635
12646
|
s = {
|
|
12636
12647
|
x: s.x * _t,
|
|
12637
12648
|
y: s.y * _t,
|
|
@@ -12643,7 +12654,7 @@ function ji(e, i, s, o) {
|
|
|
12643
12654
|
z: s.z || 0
|
|
12644
12655
|
}), s = e.inverse(s), !s)
|
|
12645
12656
|
return;
|
|
12646
|
-
if (e.from_greenwich && (s.x += e.from_greenwich), s =
|
|
12657
|
+
if (e.from_greenwich && (s.x += e.from_greenwich), s = El(e.datum, i.datum, s), !!s)
|
|
12647
12658
|
return i.from_greenwich && (s = {
|
|
12648
12659
|
x: s.x - i.from_greenwich,
|
|
12649
12660
|
y: s.y,
|
|
@@ -12686,18 +12697,18 @@ function Tt(e, i, s) {
|
|
|
12686
12697
|
}, o && (l.oProj = i), l);
|
|
12687
12698
|
}
|
|
12688
12699
|
var Oa = 6, nr = "AJSAJS", sr = "AFAFAF", Ce = 65, bt = 73, It = 79, Xe = 86, Je = 90;
|
|
12689
|
-
const
|
|
12700
|
+
const Ol = {
|
|
12690
12701
|
forward: ar,
|
|
12691
|
-
inverse:
|
|
12702
|
+
inverse: zl,
|
|
12692
12703
|
toPoint: rr
|
|
12693
12704
|
};
|
|
12694
12705
|
function ar(e, i) {
|
|
12695
|
-
return i = i || 5,
|
|
12706
|
+
return i = i || 5, Dl(Bl({
|
|
12696
12707
|
lat: e[1],
|
|
12697
12708
|
lon: e[0]
|
|
12698
12709
|
}), i);
|
|
12699
12710
|
}
|
|
12700
|
-
function
|
|
12711
|
+
function zl(e) {
|
|
12701
12712
|
var i = Wn(hr(e.toUpperCase()));
|
|
12702
12713
|
return i.lat && i.lon ? [i.lon, i.lat, i.lon, i.lat] : [i.left, i.bottom, i.right, i.top];
|
|
12703
12714
|
}
|
|
@@ -12711,7 +12722,7 @@ function Bn(e) {
|
|
|
12711
12722
|
function za(e) {
|
|
12712
12723
|
return 180 * (e / Math.PI);
|
|
12713
12724
|
}
|
|
12714
|
-
function
|
|
12725
|
+
function Bl(e) {
|
|
12715
12726
|
var i = e.lat, s = e.lon, o = 6378137, l = 669438e-8, a = 0.9996, h, u, f, p, M, g, c, m = Bn(i), v = Bn(s), x, b;
|
|
12716
12727
|
b = Math.floor((s + 180) / 6) + 1, s === 180 && (b = 60), i >= 56 && i < 64 && s >= 3 && s < 12 && (b = 32), i >= 72 && i < 84 && (s >= 0 && s < 9 ? b = 31 : s >= 9 && s < 21 ? b = 33 : s >= 21 && s < 33 ? b = 35 : s >= 33 && s < 42 && (b = 37)), h = (b - 1) * 6 - 180 + 3, x = Bn(h), u = l / (1 - l), f = o / Math.sqrt(1 - l * Math.sin(m) * Math.sin(m)), p = Math.tan(m) * Math.tan(m), M = u * Math.cos(m) * Math.cos(m), g = Math.cos(m) * (v - x), c = o * ((1 - l / 4 - 3 * l * l / 64 - 5 * l * l * l / 256) * m - (3 * l / 8 + 3 * l * l / 32 + 45 * l * l * l / 1024) * Math.sin(2 * m) + (15 * l * l / 256 + 45 * l * l * l / 1024) * Math.sin(4 * m) - 35 * l * l * l / 3072 * Math.sin(6 * m));
|
|
12717
12728
|
var C = a * f * (g + (1 - p + M) * g * g * g / 6 + (5 - 18 * p + p * p + 72 * M - 58 * u) * g * g * g * g * g / 120) + 5e5, S = a * (c + f * Math.tan(m) * (g * g / 2 + (5 - p + 9 * M + 4 * M * M) * g * g * g * g / 24 + (61 - 58 * p + p * p + 600 * M - 330 * u) * g * g * g * g * g * g / 720));
|
|
@@ -12719,7 +12730,7 @@ function zl(e) {
|
|
|
12719
12730
|
northing: Math.round(S),
|
|
12720
12731
|
easting: Math.round(C),
|
|
12721
12732
|
zoneNumber: b,
|
|
12722
|
-
zoneLetter:
|
|
12733
|
+
zoneLetter: Nl(i)
|
|
12723
12734
|
};
|
|
12724
12735
|
}
|
|
12725
12736
|
function Wn(e) {
|
|
@@ -12753,23 +12764,23 @@ function Wn(e) {
|
|
|
12753
12764
|
};
|
|
12754
12765
|
return tt;
|
|
12755
12766
|
}
|
|
12756
|
-
function
|
|
12767
|
+
function Nl(e) {
|
|
12757
12768
|
var i = "Z";
|
|
12758
12769
|
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;
|
|
12759
12770
|
}
|
|
12760
|
-
function
|
|
12771
|
+
function Dl(e, i) {
|
|
12761
12772
|
var s = "00000" + e.easting, o = "00000" + e.northing;
|
|
12762
|
-
return e.zoneNumber + e.zoneLetter +
|
|
12773
|
+
return e.zoneNumber + e.zoneLetter + Rl(e.easting, e.northing, e.zoneNumber) + s.substr(s.length - 5, i) + o.substr(o.length - 5, i);
|
|
12763
12774
|
}
|
|
12764
|
-
function
|
|
12775
|
+
function Rl(e, i, s) {
|
|
12765
12776
|
var o = or(s), l = Math.floor(e / 1e5), a = Math.floor(i / 1e5) % 20;
|
|
12766
|
-
return
|
|
12777
|
+
return Zl(l, a, o);
|
|
12767
12778
|
}
|
|
12768
12779
|
function or(e) {
|
|
12769
12780
|
var i = e % Oa;
|
|
12770
12781
|
return i === 0 && (i = Oa), i;
|
|
12771
12782
|
}
|
|
12772
|
-
function
|
|
12783
|
+
function Zl(e, i, s) {
|
|
12773
12784
|
var o = s - 1, l = nr.charCodeAt(o), a = sr.charCodeAt(o), h = l + e - 1, u = a + i, f = !1;
|
|
12774
12785
|
h > Je && (h = h - Je + Ce - 1, f = !0), (h === bt || l < bt && h > bt || (h > bt || l < bt) && f) && h++, (h === It || l < It && h > It || (h > It || l < It) && f) && (h++, h === bt && h++), h > Je && (h = h - Je + Ce - 1), u > Xe ? (u = u - Xe + Ce - 1, f = !0) : f = !1, (u === bt || a < bt && u > bt || (u > bt || a < bt) && f) && u++, (u === It || a < It && u > It || (u > It || a < It) && f) && (u++, u === bt && u++), u > Xe && (u = u - Xe + Ce - 1);
|
|
12775
12786
|
var p = String.fromCharCode(h) + String.fromCharCode(u);
|
|
@@ -12790,7 +12801,7 @@ function hr(e) {
|
|
|
12790
12801
|
if (u <= "A" || u === "B" || u === "Y" || u >= "Z" || u === "I" || u === "O")
|
|
12791
12802
|
throw "MGRSPoint zone letter " + u + " not handled: " + e;
|
|
12792
12803
|
s = e.substring(a, a += 2);
|
|
12793
|
-
for (var f = or(h), p =
|
|
12804
|
+
for (var f = or(h), p = Gl(s.charAt(0), f), M = Fl(s.charAt(1), f); M < Hl(u); )
|
|
12794
12805
|
M += 2e6;
|
|
12795
12806
|
var g = i - a;
|
|
12796
12807
|
if (g % 2 !== 0)
|
|
@@ -12807,7 +12818,7 @@ northing meters` + e;
|
|
|
12807
12818
|
accuracy: x
|
|
12808
12819
|
};
|
|
12809
12820
|
}
|
|
12810
|
-
function
|
|
12821
|
+
function Gl(e, i) {
|
|
12811
12822
|
for (var s = nr.charCodeAt(i - 1), o = 1e5, l = !1; s !== e.charCodeAt(0); ) {
|
|
12812
12823
|
if (s++, s === bt && s++, s === It && s++, s > Je) {
|
|
12813
12824
|
if (l)
|
|
@@ -12818,7 +12829,7 @@ function Zl(e, i) {
|
|
|
12818
12829
|
}
|
|
12819
12830
|
return o;
|
|
12820
12831
|
}
|
|
12821
|
-
function
|
|
12832
|
+
function Fl(e, i) {
|
|
12822
12833
|
if (e > "V")
|
|
12823
12834
|
throw "MGRSPoint given invalid Northing " + e;
|
|
12824
12835
|
for (var s = sr.charCodeAt(i - 1), o = 0, l = !1; s !== e.charCodeAt(0); ) {
|
|
@@ -12831,7 +12842,7 @@ function Gl(e, i) {
|
|
|
12831
12842
|
}
|
|
12832
12843
|
return o;
|
|
12833
12844
|
}
|
|
12834
|
-
function
|
|
12845
|
+
function Hl(e) {
|
|
12835
12846
|
var i;
|
|
12836
12847
|
switch (e) {
|
|
12837
12848
|
case "C":
|
|
@@ -12921,29 +12932,29 @@ Se.fromMGRS = function(e) {
|
|
|
12921
12932
|
Se.prototype.toMGRS = function(e) {
|
|
12922
12933
|
return ar([this.x, this.y], e);
|
|
12923
12934
|
};
|
|
12924
|
-
var
|
|
12935
|
+
var Ul = 1, ql = 0.25, Ba = 0.046875, Na = 0.01953125, Da = 0.01068115234375, jl = 0.75, Wl = 0.46875, Vl = 0.013020833333333334, $l = 0.007120768229166667, Kl = 0.3645833333333333, Xl = 0.005696614583333333, Jl = 0.3076171875;
|
|
12925
12936
|
function Vn(e) {
|
|
12926
12937
|
var i = [];
|
|
12927
|
-
i[0] =
|
|
12938
|
+
i[0] = Ul - e * (ql + e * (Ba + e * (Na + e * Da))), i[1] = e * (jl - e * (Ba + e * (Na + e * Da)));
|
|
12928
12939
|
var s = e * e;
|
|
12929
|
-
return i[2] = s * (
|
|
12940
|
+
return i[2] = s * (Wl - e * (Vl + e * $l)), s *= e, i[3] = s * (Kl - e * Xl), i[4] = s * e * Jl, i;
|
|
12930
12941
|
}
|
|
12931
12942
|
function Ie(e, i, s, o) {
|
|
12932
12943
|
return s *= i, i *= i, o[0] * e - s * (o[1] + i * (o[2] + i * (o[3] + i * o[4])));
|
|
12933
12944
|
}
|
|
12934
|
-
var
|
|
12945
|
+
var Ql = 20;
|
|
12935
12946
|
function $n(e, i, s) {
|
|
12936
|
-
for (var o = 1 / (1 - i), l = e, a =
|
|
12947
|
+
for (var o = 1 / (1 - i), l = e, a = Ql; a; --a) {
|
|
12937
12948
|
var h = Math.sin(l), u = 1 - i * h * h;
|
|
12938
12949
|
if (u = (Ie(l, h, Math.cos(l), s) - e) * (u * Math.sqrt(u)) * o, l -= u, Math.abs(u) < I)
|
|
12939
12950
|
return l;
|
|
12940
12951
|
}
|
|
12941
12952
|
return l;
|
|
12942
12953
|
}
|
|
12943
|
-
function
|
|
12954
|
+
function Yl() {
|
|
12944
12955
|
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 = Vn(this.es), this.ml0 = Ie(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
12945
12956
|
}
|
|
12946
|
-
function
|
|
12957
|
+
function tu(e) {
|
|
12947
12958
|
var i = e.x, s = e.y, o = O(i - this.long0), l, a, h, u = Math.sin(s), f = Math.cos(s);
|
|
12948
12959
|
if (this.es) {
|
|
12949
12960
|
var M = f * o, g = Math.pow(M, 2), c = this.ep2 * Math.pow(f, 2), m = Math.pow(c, 2), v = Math.abs(f) > I ? Math.tan(s) : 0, x = Math.pow(v, 2), b = Math.pow(x, 2);
|
|
@@ -12964,7 +12975,7 @@ function Yl(e) {
|
|
|
12964
12975
|
}
|
|
12965
12976
|
return e.x = a, e.y = h, e;
|
|
12966
12977
|
}
|
|
12967
|
-
function
|
|
12978
|
+
function eu(e) {
|
|
12968
12979
|
var i, s, o, l, a = (e.x - this.x0) * (1 / this.a), h = (e.y - this.y0) * (1 / this.a);
|
|
12969
12980
|
if (this.es)
|
|
12970
12981
|
if (i = this.ml0 + h / this.k0, s = $n(i, this.es, this.en), Math.abs(s) < E) {
|
|
@@ -12980,12 +12991,12 @@ function tu(e) {
|
|
|
12980
12991
|
}
|
|
12981
12992
|
return e.x = l, e.y = o, e;
|
|
12982
12993
|
}
|
|
12983
|
-
var
|
|
12994
|
+
var iu = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
|
|
12984
12995
|
const Gi = {
|
|
12985
|
-
init:
|
|
12986
|
-
forward:
|
|
12987
|
-
inverse:
|
|
12988
|
-
names:
|
|
12996
|
+
init: Yl,
|
|
12997
|
+
forward: tu,
|
|
12998
|
+
inverse: eu,
|
|
12999
|
+
names: iu
|
|
12989
13000
|
};
|
|
12990
13001
|
function lr(e) {
|
|
12991
13002
|
var i = Math.exp(e);
|
|
@@ -12996,53 +13007,53 @@ function Pt(e, i) {
|
|
|
12996
13007
|
var s = Math.max(e, i), o = Math.min(e, i) / (s || 1);
|
|
12997
13008
|
return s * Math.sqrt(1 + Math.pow(o, 2));
|
|
12998
13009
|
}
|
|
12999
|
-
function
|
|
13010
|
+
function nu(e) {
|
|
13000
13011
|
var i = 1 + e, s = i - 1;
|
|
13001
13012
|
return s === 0 ? e : e * Math.log(i) / s;
|
|
13002
13013
|
}
|
|
13003
|
-
function
|
|
13014
|
+
function su(e) {
|
|
13004
13015
|
var i = Math.abs(e);
|
|
13005
|
-
return i =
|
|
13016
|
+
return i = nu(i * (1 + i / (Pt(1, i) + 1))), e < 0 ? -i : i;
|
|
13006
13017
|
}
|
|
13007
13018
|
function Kn(e, i) {
|
|
13008
13019
|
for (var s = 2 * Math.cos(2 * i), o = e.length - 1, l = e[o], a = 0, h; --o >= 0; )
|
|
13009
13020
|
h = -a + s * l + e[o], a = l, l = h;
|
|
13010
13021
|
return i + h * Math.sin(2 * i);
|
|
13011
13022
|
}
|
|
13012
|
-
function
|
|
13023
|
+
function au(e, i) {
|
|
13013
13024
|
for (var s = 2 * Math.cos(i), o = e.length - 1, l = e[o], a = 0, h; --o >= 0; )
|
|
13014
13025
|
h = -a + s * l + e[o], a = l, l = h;
|
|
13015
13026
|
return Math.sin(i) * h;
|
|
13016
13027
|
}
|
|
13017
|
-
function
|
|
13028
|
+
function ru(e) {
|
|
13018
13029
|
var i = Math.exp(e);
|
|
13019
13030
|
return i = (i + 1 / i) / 2, i;
|
|
13020
13031
|
}
|
|
13021
13032
|
function ur(e, i, s) {
|
|
13022
|
-
for (var o = Math.sin(i), l = Math.cos(i), a = lr(s), h =
|
|
13033
|
+
for (var o = Math.sin(i), l = Math.cos(i), a = lr(s), h = ru(s), u = 2 * l * h, f = -2 * o * a, p = e.length - 1, M = e[p], g = 0, c = 0, m = 0, v, x; --p >= 0; )
|
|
13023
13034
|
v = c, x = g, c = M, g = m, M = -v + u * c - f * g + e[p], m = -x + f * c + u * g;
|
|
13024
13035
|
return u = o * h, f = l * a, [u * M - f * m, u * m + f * M];
|
|
13025
13036
|
}
|
|
13026
|
-
function
|
|
13037
|
+
function ou() {
|
|
13027
13038
|
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
|
13028
13039
|
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
|
13029
13040
|
this.approx && (Gi.init.apply(this), this.forward = Gi.forward, this.inverse = Gi.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 = [];
|
|
13030
13041
|
var e = this.es / (1 + Math.sqrt(1 - this.es)), i = e / (2 - e), s = i;
|
|
13031
13042
|
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)))))), s = s * i, this.cgb[1] = s * (7 / 3 + i * (-8 / 5 + i * (-227 / 45 + i * (2704 / 315 + i * (2323 / 945))))), this.cbg[1] = s * (5 / 3 + i * (-16 / 15 + i * (-13 / 9 + i * (904 / 315 + i * (-1522 / 945))))), s = s * i, this.cgb[2] = s * (56 / 15 + i * (-136 / 35 + i * (-1262 / 105 + i * (73814 / 2835)))), this.cbg[2] = s * (-26 / 15 + i * (34 / 21 + i * (8 / 5 + i * (-12686 / 2835)))), s = s * i, this.cgb[3] = s * (4279 / 630 + i * (-332 / 35 + i * (-399572 / 14175))), this.cbg[3] = s * (1237 / 630 + i * (-12 / 5 + i * (-24832 / 14175))), s = s * i, this.cgb[4] = s * (4174 / 315 + i * (-144838 / 6237)), this.cbg[4] = s * (-734 / 315 + i * (109598 / 31185)), s = s * i, this.cgb[5] = s * (601676 / 22275), this.cbg[5] = s * (444337 / 155925), s = Math.pow(i, 2), this.Qn = this.k0 / (1 + i) * (1 + s * (1 / 4 + s * (1 / 64 + s / 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] = s * (-1 / 48 + i * (-1 / 15 + i * (437 / 1440 + i * (-46 / 105 + i * (1118711 / 3870720))))), this.gtu[1] = s * (13 / 48 + i * (-3 / 5 + i * (557 / 1440 + i * (281 / 630 + i * (-1983433 / 1935360))))), s = s * i, this.utg[2] = s * (-17 / 480 + i * (37 / 840 + i * (209 / 4480 + i * (-5569 / 90720)))), this.gtu[2] = s * (61 / 240 + i * (-103 / 140 + i * (15061 / 26880 + i * (167603 / 181440)))), s = s * i, this.utg[3] = s * (-4397 / 161280 + i * (11 / 504 + i * (830251 / 7257600))), this.gtu[3] = s * (49561 / 161280 + i * (-179 / 168 + i * (6601661 / 7257600))), s = s * i, this.utg[4] = s * (-4583 / 161280 + i * (108847 / 3991680)), this.gtu[4] = s * (34729 / 80640 + i * (-3418889 / 1995840)), s = s * i, this.utg[5] = s * (-20648693 / 638668800), this.gtu[5] = s * (212378941 / 319334400);
|
|
13032
13043
|
var o = Kn(this.cbg, this.lat0);
|
|
13033
|
-
this.Zb = -this.Qn * (o +
|
|
13044
|
+
this.Zb = -this.Qn * (o + au(this.gtu, 2 * o));
|
|
13034
13045
|
}
|
|
13035
|
-
function
|
|
13046
|
+
function hu(e) {
|
|
13036
13047
|
var i = O(e.x - this.long0), s = e.y;
|
|
13037
13048
|
s = Kn(this.cbg, s);
|
|
13038
13049
|
var o = Math.sin(s), l = Math.cos(s), a = Math.sin(i), h = Math.cos(i);
|
|
13039
|
-
s = Math.atan2(o, h * l), i = Math.atan2(a * l, Pt(o, l * h)), i =
|
|
13050
|
+
s = Math.atan2(o, h * l), i = Math.atan2(a * l, Pt(o, l * h)), i = su(Math.tan(i));
|
|
13040
13051
|
var u = ur(this.gtu, 2 * s, 2 * i);
|
|
13041
13052
|
s = s + u[0], i = i + u[1];
|
|
13042
13053
|
var f, p;
|
|
13043
13054
|
return Math.abs(i) <= 2.623395162778 ? (f = this.a * (this.Qn * i) + this.x0, p = this.a * (this.Qn * s + this.Zb) + this.y0) : (f = 1 / 0, p = 1 / 0), e.x = f, e.y = p, e;
|
|
13044
13055
|
}
|
|
13045
|
-
function
|
|
13056
|
+
function lu(e) {
|
|
13046
13057
|
var i = (e.x - this.x0) * (1 / this.a), s = (e.y - this.y0) * (1 / this.a);
|
|
13047
13058
|
s = (s - this.Zb) / this.Qn, i = i / this.Qn;
|
|
13048
13059
|
var o, l;
|
|
@@ -13055,14 +13066,14 @@ function hu(e) {
|
|
|
13055
13066
|
o = 1 / 0, l = 1 / 0;
|
|
13056
13067
|
return e.x = o, e.y = l, e;
|
|
13057
13068
|
}
|
|
13058
|
-
var
|
|
13069
|
+
var uu = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
|
|
13059
13070
|
const Fi = {
|
|
13060
|
-
init:
|
|
13061
|
-
forward:
|
|
13062
|
-
inverse:
|
|
13063
|
-
names:
|
|
13071
|
+
init: ou,
|
|
13072
|
+
forward: hu,
|
|
13073
|
+
inverse: lu,
|
|
13074
|
+
names: uu
|
|
13064
13075
|
};
|
|
13065
|
-
function
|
|
13076
|
+
function cu(e, i) {
|
|
13066
13077
|
if (e === void 0) {
|
|
13067
13078
|
if (e = Math.floor((O(i) + Math.PI) * 30 / Math.PI) + 1, e < 0)
|
|
13068
13079
|
return 0;
|
|
@@ -13071,51 +13082,51 @@ function uu(e, i) {
|
|
|
13071
13082
|
}
|
|
13072
13083
|
return e;
|
|
13073
13084
|
}
|
|
13074
|
-
var
|
|
13075
|
-
function
|
|
13076
|
-
var e =
|
|
13085
|
+
var du = "etmerc";
|
|
13086
|
+
function fu() {
|
|
13087
|
+
var e = cu(this.zone, this.long0);
|
|
13077
13088
|
if (e === void 0)
|
|
13078
13089
|
throw new Error("unknown utm zone");
|
|
13079
13090
|
this.lat0 = 0, this.long0 = (6 * Math.abs(e) - 183) * _t, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, Fi.init.apply(this), this.forward = Fi.forward, this.inverse = Fi.inverse;
|
|
13080
13091
|
}
|
|
13081
|
-
var
|
|
13082
|
-
const
|
|
13083
|
-
init:
|
|
13084
|
-
names:
|
|
13085
|
-
dependsOn:
|
|
13092
|
+
var _u = ["Universal Transverse Mercator System", "utm"];
|
|
13093
|
+
const mu = {
|
|
13094
|
+
init: fu,
|
|
13095
|
+
names: _u,
|
|
13096
|
+
dependsOn: du
|
|
13086
13097
|
};
|
|
13087
13098
|
function Xn(e, i) {
|
|
13088
13099
|
return Math.pow((1 - e) / (1 + e), i);
|
|
13089
13100
|
}
|
|
13090
|
-
var
|
|
13091
|
-
function
|
|
13101
|
+
var pu = 20;
|
|
13102
|
+
function gu() {
|
|
13092
13103
|
var e = Math.sin(this.lat0), i = Math.cos(this.lat0);
|
|
13093
13104
|
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 + K) / (Math.pow(Math.tan(0.5 * this.lat0 + K), this.C) * Xn(this.e * e, this.ratexp));
|
|
13094
13105
|
}
|
|
13095
|
-
function
|
|
13106
|
+
function vu(e) {
|
|
13096
13107
|
var i = e.x, s = e.y;
|
|
13097
13108
|
return e.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * s + K), this.C) * Xn(this.e * Math.sin(s), this.ratexp)) - E, e.x = this.C * i, e;
|
|
13098
13109
|
}
|
|
13099
|
-
function
|
|
13100
|
-
for (var i = 1e-14, s = e.x / this.C, o = e.y, l = Math.pow(Math.tan(0.5 * o + K) / this.K, 1 / this.C), a =
|
|
13110
|
+
function yu(e) {
|
|
13111
|
+
for (var i = 1e-14, s = e.x / this.C, o = e.y, l = Math.pow(Math.tan(0.5 * o + K) / this.K, 1 / this.C), a = pu; a > 0 && (o = 2 * Math.atan(l * Xn(this.e * Math.sin(e.y), -0.5 * this.e)) - E, !(Math.abs(o - e.y) < i)); --a)
|
|
13101
13112
|
e.y = o;
|
|
13102
13113
|
return a ? (e.x = s, e.y = o, e) : null;
|
|
13103
13114
|
}
|
|
13104
|
-
var
|
|
13115
|
+
var Mu = ["gauss"];
|
|
13105
13116
|
const Jn = {
|
|
13106
|
-
init:
|
|
13107
|
-
forward:
|
|
13108
|
-
inverse:
|
|
13109
|
-
names:
|
|
13117
|
+
init: gu,
|
|
13118
|
+
forward: vu,
|
|
13119
|
+
inverse: yu,
|
|
13120
|
+
names: Mu
|
|
13110
13121
|
};
|
|
13111
|
-
function
|
|
13122
|
+
function xu() {
|
|
13112
13123
|
Jn.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"));
|
|
13113
13124
|
}
|
|
13114
|
-
function
|
|
13125
|
+
function Lu(e) {
|
|
13115
13126
|
var i, s, o, l;
|
|
13116
13127
|
return e.x = O(e.x - this.long0), Jn.forward.apply(this, [e]), i = Math.sin(e.y), s = Math.cos(e.y), o = Math.cos(e.x), l = this.k0 * this.R2 / (1 + this.sinc0 * i + this.cosc0 * s * o), e.x = l * s * Math.sin(e.x), e.y = l * (this.cosc0 * i - this.sinc0 * s * o), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
|
|
13117
13128
|
}
|
|
13118
|
-
function
|
|
13129
|
+
function wu(e) {
|
|
13119
13130
|
var i, s, o, l, a;
|
|
13120
13131
|
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 = Pt(e.x, e.y)) {
|
|
13121
13132
|
var h = 2 * Math.atan2(a, this.R2);
|
|
@@ -13124,24 +13135,24 @@ function Lu(e) {
|
|
|
13124
13135
|
l = this.phic0, o = 0;
|
|
13125
13136
|
return e.x = o, e.y = l, Jn.inverse.apply(this, [e]), e.x = O(e.x + this.long0), e;
|
|
13126
13137
|
}
|
|
13127
|
-
var
|
|
13128
|
-
const
|
|
13129
|
-
init:
|
|
13130
|
-
forward:
|
|
13131
|
-
inverse:
|
|
13132
|
-
names:
|
|
13138
|
+
var bu = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
13139
|
+
const Pu = {
|
|
13140
|
+
init: xu,
|
|
13141
|
+
forward: Lu,
|
|
13142
|
+
inverse: wu,
|
|
13143
|
+
names: bu
|
|
13133
13144
|
};
|
|
13134
|
-
function
|
|
13145
|
+
function Cu(e, i, s) {
|
|
13135
13146
|
return i *= s, Math.tan(0.5 * (E + e)) * Math.pow((1 - i) / (1 + i), 0.5 * s);
|
|
13136
13147
|
}
|
|
13137
|
-
function
|
|
13148
|
+
function ku() {
|
|
13138
13149
|
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 + li(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 * qt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / Bt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = qt(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - E, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
13139
13150
|
}
|
|
13140
|
-
function
|
|
13151
|
+
function Tu(e) {
|
|
13141
13152
|
var i = e.x, s = e.y, o = Math.sin(s), l = Math.cos(s), a, h, u, f, p, M, g = O(i - this.long0);
|
|
13142
13153
|
return Math.abs(Math.abs(i - this.long0) - Math.PI) <= I && Math.abs(s + this.lat0) <= I ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (a = 2 * this.k0 / (1 + this.sinlat0 * o + this.coslat0 * l * Math.cos(g)), e.x = this.a * a * l * Math.sin(g) + this.x0, e.y = this.a * a * (this.coslat0 * o - this.sinlat0 * l * Math.cos(g)) + this.y0, e) : (h = 2 * Math.atan(this.ssfn_(s, o, this.e)) - E, f = Math.cos(h), u = Math.sin(h), Math.abs(this.coslat0) <= I ? (p = Bt(this.e, s * this.con, this.con * o), M = 2 * this.a * this.k0 * p / this.cons, e.x = this.x0 + M * Math.sin(i - this.long0), e.y = this.y0 - this.con * M * Math.cos(i - this.long0), e) : (Math.abs(this.sinlat0) < I ? (a = 2 * this.a * this.k0 / (1 + f * Math.cos(g)), e.y = a * u) : (a = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * u + this.cosX0 * f * Math.cos(g))), e.y = a * (this.cosX0 * u - this.sinX0 * f * Math.cos(g)) + this.y0), e.x = a * f * Math.sin(g) + this.x0, e));
|
|
13143
13154
|
}
|
|
13144
|
-
function
|
|
13155
|
+
function Eu(e) {
|
|
13145
13156
|
e.x -= this.x0, e.y -= this.y0;
|
|
13146
13157
|
var i, s, o, l, a, h = Math.sqrt(e.x * e.x + e.y * e.y);
|
|
13147
13158
|
if (this.sphere) {
|
|
@@ -13155,15 +13166,15 @@ function Tu(e) {
|
|
|
13155
13166
|
l = 2 * Math.atan(h * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), i = this.long0, h <= I ? a = this.X0 : (a = Math.asin(Math.cos(l) * this.sinX0 + e.y * Math.sin(l) * this.cosX0 / h), i = O(this.long0 + Math.atan2(e.x * Math.sin(l), h * this.cosX0 * Math.cos(l) - e.y * this.sinX0 * Math.sin(l)))), s = -1 * oi(this.e, Math.tan(0.5 * (E + a)));
|
|
13156
13167
|
return e.x = i, e.y = s, e;
|
|
13157
13168
|
}
|
|
13158
|
-
var
|
|
13159
|
-
const
|
|
13160
|
-
init:
|
|
13161
|
-
forward:
|
|
13162
|
-
inverse:
|
|
13163
|
-
names:
|
|
13164
|
-
ssfn_:
|
|
13169
|
+
var Su = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)", "Polar_Stereographic"];
|
|
13170
|
+
const Au = {
|
|
13171
|
+
init: ku,
|
|
13172
|
+
forward: Tu,
|
|
13173
|
+
inverse: Eu,
|
|
13174
|
+
names: Su,
|
|
13175
|
+
ssfn_: Cu
|
|
13165
13176
|
};
|
|
13166
|
-
function
|
|
13177
|
+
function Iu() {
|
|
13167
13178
|
var e = this.lat0;
|
|
13168
13179
|
this.lambda0 = this.long0;
|
|
13169
13180
|
var i = Math.sin(e), s = this.a, o = this.rf, l = 1 / o, a = 2 * l - Math.pow(l, 2), h = this.e = Math.sqrt(a);
|
|
@@ -13171,11 +13182,11 @@ function Au() {
|
|
|
13171
13182
|
var u = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), f = Math.log(Math.tan(Math.PI / 4 + e / 2)), p = Math.log((1 + h * i) / (1 - h * i));
|
|
13172
13183
|
this.K = u - this.alpha * f + this.alpha * h / 2 * p;
|
|
13173
13184
|
}
|
|
13174
|
-
function
|
|
13185
|
+
function Ou(e) {
|
|
13175
13186
|
var i = Math.log(Math.tan(Math.PI / 4 - e.y / 2)), s = this.e / 2 * Math.log((1 + this.e * Math.sin(e.y)) / (1 - this.e * Math.sin(e.y))), o = -this.alpha * (i + s) + this.K, l = 2 * (Math.atan(Math.exp(o)) - Math.PI / 4), a = this.alpha * (e.x - this.lambda0), h = Math.atan(Math.sin(a) / (Math.sin(this.b0) * Math.tan(l) + Math.cos(this.b0) * Math.cos(a))), u = Math.asin(Math.cos(this.b0) * Math.sin(l) - Math.sin(this.b0) * Math.cos(l) * Math.cos(a));
|
|
13176
13187
|
return e.y = this.R / 2 * Math.log((1 + Math.sin(u)) / (1 - Math.sin(u))) + this.y0, e.x = this.R * h + this.x0, e;
|
|
13177
13188
|
}
|
|
13178
|
-
function
|
|
13189
|
+
function zu(e) {
|
|
13179
13190
|
for (var i = e.x - this.x0, s = e.y - this.y0, o = i / this.R, l = 2 * (Math.atan(Math.exp(s / this.R)) - Math.PI / 4), a = Math.asin(Math.cos(this.b0) * Math.sin(l) + Math.sin(this.b0) * Math.cos(l) * Math.cos(o)), h = Math.atan(Math.sin(o) / (Math.cos(this.b0) * Math.cos(o) - Math.sin(this.b0) * Math.tan(l))), u = this.lambda0 + h / this.alpha, f = 0, p = a, M = -1e3, g = 0; Math.abs(p - M) > 1e-7; ) {
|
|
13180
13191
|
if (++g > 20)
|
|
13181
13192
|
return;
|
|
@@ -13183,21 +13194,21 @@ function Ou(e) {
|
|
|
13183
13194
|
}
|
|
13184
13195
|
return e.x = u, e.y = p, e;
|
|
13185
13196
|
}
|
|
13186
|
-
var
|
|
13187
|
-
const
|
|
13188
|
-
init:
|
|
13189
|
-
forward:
|
|
13190
|
-
inverse:
|
|
13191
|
-
names:
|
|
13197
|
+
var Bu = ["somerc"];
|
|
13198
|
+
const Nu = {
|
|
13199
|
+
init: Iu,
|
|
13200
|
+
forward: Ou,
|
|
13201
|
+
inverse: zu,
|
|
13202
|
+
names: Bu
|
|
13192
13203
|
};
|
|
13193
13204
|
var Le = 1e-7;
|
|
13194
|
-
function
|
|
13205
|
+
function Du(e) {
|
|
13195
13206
|
var i = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], s = typeof e.PROJECTION == "object" ? Object.keys(e.PROJECTION)[0] : e.PROJECTION;
|
|
13196
13207
|
return "no_uoff" in e || "no_off" in e || i.indexOf(s) !== -1;
|
|
13197
13208
|
}
|
|
13198
|
-
function
|
|
13209
|
+
function Ru() {
|
|
13199
13210
|
var e, i, s, o, l, a, h, u, f, p, M = 0, g, c = 0, m = 0, v = 0, x = 0, b = 0, C = 0;
|
|
13200
|
-
this.no_off =
|
|
13211
|
+
this.no_off = Du(this), this.no_rot = "no_rot" in this;
|
|
13201
13212
|
var S = !1;
|
|
13202
13213
|
"alpha" in this && (S = !0);
|
|
13203
13214
|
var A = !1;
|
|
@@ -13208,7 +13219,7 @@ function Du() {
|
|
|
13208
13219
|
var R = 1 - this.es;
|
|
13209
13220
|
i = Math.sqrt(R), Math.abs(this.lat0) > I ? (u = Math.sin(this.lat0), s = Math.cos(this.lat0), e = 1 - this.es * u * u, this.B = s * s, this.B = Math.sqrt(1 + this.es * this.B * this.B / R), this.A = this.B * this.k0 * i / e, o = this.B * i / (s * Math.sqrt(e)), l = o * o - 1, l <= 0 ? l = 0 : (l = Math.sqrt(l), this.lat0 < 0 && (l = -l)), this.E = l += o, this.E *= Math.pow(Bt(this.e, this.lat0, u), this.B)) : (this.B = 1 / i, this.A = this.k0, this.E = o = l = 1), S || A ? (S ? (g = Math.asin(Math.sin(C) / o), A || (M = C)) : (g = M, C = Math.asin(o * Math.sin(g))), this.lam0 = c - Math.asin(0.5 * (l - 1 / l) * Math.tan(g)) / this.B) : (a = Math.pow(Bt(this.e, x, Math.sin(x)), this.B), h = Math.pow(Bt(this.e, b, Math.sin(b)), this.B), l = this.E / a, f = (h - a) / (h + a), p = this.E * this.E, p = (p - h * a) / (p + h * a), e = m - v, e < -Math.pi ? v -= ai : e > Math.pi && (v += ai), this.lam0 = O(0.5 * (m + v) - Math.atan(p * Math.tan(0.5 * this.B * (m - v)) / f) / this.B), g = Math.atan(2 * Math.sin(this.B * O(m - this.lam0)) / (l - 1 / l)), M = C = Math.asin(o * Math.sin(g))), this.singam = Math.sin(g), this.cosgam = Math.cos(g), this.sinrot = Math.sin(M), this.cosrot = Math.cos(M), 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(o * o - 1) / Math.cos(C))), this.lat0 < 0 && (this.u_0 = -this.u_0)), l = 0.5 * g, this.v_pole_n = this.ArB * Math.log(Math.tan(K - l)), this.v_pole_s = this.ArB * Math.log(Math.tan(K + l));
|
|
13210
13221
|
}
|
|
13211
|
-
function
|
|
13222
|
+
function Zu(e) {
|
|
13212
13223
|
var i = {}, s, o, l, a, h, u, f, p;
|
|
13213
13224
|
if (e.x = e.x - this.lam0, Math.abs(Math.abs(e.y) - E) > I) {
|
|
13214
13225
|
if (h = this.E / Math.pow(Bt(this.e, e.y, Math.sin(e.y)), this.B), u = 1 / h, s = 0.5 * (h - u), o = 0.5 * (h + u), a = Math.sin(this.B * e.x), l = (s * this.singam - a * this.cosgam) / o, Math.abs(Math.abs(l) - 1) < I)
|
|
@@ -13218,7 +13229,7 @@ function Ru(e) {
|
|
|
13218
13229
|
p = e.y > 0 ? this.v_pole_n : this.v_pole_s, f = this.ArB * e.y;
|
|
13219
13230
|
return this.no_rot ? (i.x = f, i.y = p) : (f -= this.u_0, i.x = p * this.cosrot + f * this.sinrot, i.y = f * this.cosrot - p * this.sinrot), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
|
|
13220
13231
|
}
|
|
13221
|
-
function
|
|
13232
|
+
function Gu(e) {
|
|
13222
13233
|
var i, s, o, l, a, h, u, f = {};
|
|
13223
13234
|
if (e.x = (e.x - this.x0) * (1 / this.a), e.y = (e.y - this.y0) * (1 / this.a), this.no_rot ? (s = e.y, i = e.x) : (s = e.x * this.cosrot - e.y * this.sinrot, i = e.y * this.cosrot + e.x * this.sinrot + this.u_0), o = Math.exp(-this.BrA * s), l = 0.5 * (o - 1 / o), a = 0.5 * (o + 1 / o), h = Math.sin(this.BrA * i), u = (h * this.cosgam + l * this.singam) / a, Math.abs(Math.abs(u) - 1) < I)
|
|
13224
13235
|
f.x = 0, f.y = u < 0 ? -E : E;
|
|
@@ -13229,14 +13240,14 @@ function Zu(e) {
|
|
|
13229
13240
|
}
|
|
13230
13241
|
return f.x += this.lam0, f;
|
|
13231
13242
|
}
|
|
13232
|
-
var
|
|
13233
|
-
const
|
|
13234
|
-
init:
|
|
13235
|
-
forward:
|
|
13236
|
-
inverse:
|
|
13237
|
-
names:
|
|
13243
|
+
var Fu = ["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"];
|
|
13244
|
+
const Hu = {
|
|
13245
|
+
init: Ru,
|
|
13246
|
+
forward: Zu,
|
|
13247
|
+
inverse: Gu,
|
|
13248
|
+
names: Fu
|
|
13238
13249
|
};
|
|
13239
|
-
function
|
|
13250
|
+
function Uu() {
|
|
13240
13251
|
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)) {
|
|
13241
13252
|
var e = this.b / this.a;
|
|
13242
13253
|
this.e = Math.sqrt(1 - e * e);
|
|
@@ -13244,7 +13255,7 @@ function Hu() {
|
|
|
13244
13255
|
Math.abs(this.lat1 - this.lat2) > I ? this.ns = Math.log(o / u) / Math.log(l / f) : this.ns = i, isNaN(this.ns) && (this.ns = i), this.f0 = o / (this.ns * Math.pow(l, this.ns)), this.rh = this.a * this.f0 * Math.pow(p, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
13245
13256
|
}
|
|
13246
13257
|
}
|
|
13247
|
-
function
|
|
13258
|
+
function qu(e) {
|
|
13248
13259
|
var i = e.x, s = e.y;
|
|
13249
13260
|
Math.abs(2 * Math.abs(s) - Math.PI) <= I && (s = li(s) * (E - 2 * I));
|
|
13250
13261
|
var o = Math.abs(Math.abs(s) - E), l, a;
|
|
@@ -13258,7 +13269,7 @@ function Uu(e) {
|
|
|
13258
13269
|
var h = this.ns * O(i - this.long0);
|
|
13259
13270
|
return e.x = this.k0 * (a * Math.sin(h)) + this.x0, e.y = this.k0 * (this.rh - a * Math.cos(h)) + this.y0, e;
|
|
13260
13271
|
}
|
|
13261
|
-
function
|
|
13272
|
+
function ju(e) {
|
|
13262
13273
|
var i, s, o, l, a, h = (e.x - this.x0) / this.k0, u = this.rh - (e.y - this.y0) / this.k0;
|
|
13263
13274
|
this.ns > 0 ? (i = Math.sqrt(h * h + u * u), s = 1) : (i = -Math.sqrt(h * h + u * u), s = -1);
|
|
13264
13275
|
var f = 0;
|
|
@@ -13269,7 +13280,7 @@ function qu(e) {
|
|
|
13269
13280
|
l = -E;
|
|
13270
13281
|
return a = O(f / this.ns + this.long0), e.x = a, e.y = l, e;
|
|
13271
13282
|
}
|
|
13272
|
-
var
|
|
13283
|
+
var Wu = [
|
|
13273
13284
|
"Lambert Tangential Conformal Conic Projection",
|
|
13274
13285
|
"Lambert_Conformal_Conic",
|
|
13275
13286
|
"Lambert_Conformal_Conic_1SP",
|
|
@@ -13278,20 +13289,20 @@ var ju = [
|
|
|
13278
13289
|
"Lambert Conic Conformal (1SP)",
|
|
13279
13290
|
"Lambert Conic Conformal (2SP)"
|
|
13280
13291
|
];
|
|
13281
|
-
const
|
|
13282
|
-
init:
|
|
13283
|
-
forward:
|
|
13284
|
-
inverse:
|
|
13285
|
-
names:
|
|
13292
|
+
const Vu = {
|
|
13293
|
+
init: Uu,
|
|
13294
|
+
forward: qu,
|
|
13295
|
+
inverse: ju,
|
|
13296
|
+
names: Wu
|
|
13286
13297
|
};
|
|
13287
|
-
function
|
|
13298
|
+
function $u() {
|
|
13288
13299
|
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;
|
|
13289
13300
|
}
|
|
13290
|
-
function
|
|
13301
|
+
function Ku(e) {
|
|
13291
13302
|
var i, s, o, l, a, h, u, f = e.x, p = e.y, M = O(f - this.long0);
|
|
13292
13303
|
return i = Math.pow((1 + this.e * Math.sin(p)) / (1 - this.e * Math.sin(p)), this.alfa * this.e / 2), s = 2 * (Math.atan(this.k * Math.pow(Math.tan(p / 2 + this.s45), this.alfa) / i) - this.s45), o = -M * this.alfa, l = Math.asin(Math.cos(this.ad) * Math.sin(s) + Math.sin(this.ad) * Math.cos(s) * Math.cos(o)), a = Math.asin(Math.cos(s) * Math.sin(o) / Math.cos(l)), h = this.n * a, u = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(l / 2 + this.s45), this.n), e.y = u * Math.cos(h) / 1, e.x = u * Math.sin(h) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
|
|
13293
13304
|
}
|
|
13294
|
-
function
|
|
13305
|
+
function Xu(e) {
|
|
13295
13306
|
var i, s, o, l, a, h, u, f, p = e.x;
|
|
13296
13307
|
e.x = e.y, e.y = p, this.czech || (e.y *= -1, e.x *= -1), h = Math.sqrt(e.x * e.x + e.y * e.y), a = Math.atan2(e.y, e.x), l = a / Math.sin(this.s0), o = 2 * (Math.atan(Math.pow(this.ro0 / h, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), i = Math.asin(Math.cos(this.ad) * Math.sin(o) - Math.sin(this.ad) * Math.cos(o) * Math.cos(l)), s = Math.asin(Math.cos(o) * Math.sin(l) / Math.cos(i)), e.x = this.long0 - s / this.alfa, u = i, f = 0;
|
|
13297
13308
|
var M = 0;
|
|
@@ -13300,12 +13311,12 @@ function Ku(e) {
|
|
|
13300
13311
|
while (f === 0 && M < 15);
|
|
13301
13312
|
return M >= 15 ? null : e;
|
|
13302
13313
|
}
|
|
13303
|
-
var
|
|
13304
|
-
const
|
|
13305
|
-
init:
|
|
13306
|
-
forward:
|
|
13307
|
-
inverse:
|
|
13308
|
-
names:
|
|
13314
|
+
var Ju = ["Krovak", "krovak"];
|
|
13315
|
+
const Qu = {
|
|
13316
|
+
init: $u,
|
|
13317
|
+
forward: Ku,
|
|
13318
|
+
inverse: Xu,
|
|
13319
|
+
names: Ju
|
|
13309
13320
|
};
|
|
13310
13321
|
function yt(e, i, s, o, l) {
|
|
13311
13322
|
return e * l - i * Math.sin(2 * l) + s * Math.sin(4 * l) - o * Math.sin(6 * l);
|
|
@@ -13337,10 +13348,10 @@ function Wi(e, i, s, o, l) {
|
|
|
13337
13348
|
return a;
|
|
13338
13349
|
return NaN;
|
|
13339
13350
|
}
|
|
13340
|
-
function
|
|
13351
|
+
function Yu() {
|
|
13341
13352
|
this.sphere || (this.e0 = ui(this.es), this.e1 = ci(this.es), this.e2 = di(this.es), this.e3 = fi(this.es), this.ml0 = this.a * yt(this.e0, this.e1, this.e2, this.e3, this.lat0));
|
|
13342
13353
|
}
|
|
13343
|
-
function
|
|
13354
|
+
function tc(e) {
|
|
13344
13355
|
var i, s, o = e.x, l = e.y;
|
|
13345
13356
|
if (o = O(o - this.long0), this.sphere)
|
|
13346
13357
|
i = this.a * Math.asin(Math.cos(l) * Math.sin(o)), s = this.a * (Math.atan2(Math.tan(l), Math.cos(o)) - this.lat0);
|
|
@@ -13350,7 +13361,7 @@ function Yu(e) {
|
|
|
13350
13361
|
}
|
|
13351
13362
|
return e.x = i + this.x0, e.y = s + this.y0, e;
|
|
13352
13363
|
}
|
|
13353
|
-
function
|
|
13364
|
+
function ec(e) {
|
|
13354
13365
|
e.x -= this.x0, e.y -= this.y0;
|
|
13355
13366
|
var i = e.x / this.a, s = e.y / this.a, o, l;
|
|
13356
13367
|
if (this.sphere) {
|
|
@@ -13365,23 +13376,23 @@ function tc(e) {
|
|
|
13365
13376
|
}
|
|
13366
13377
|
return e.x = O(l + this.long0), e.y = se(o), e;
|
|
13367
13378
|
}
|
|
13368
|
-
var
|
|
13369
|
-
const
|
|
13370
|
-
init:
|
|
13371
|
-
forward:
|
|
13372
|
-
inverse:
|
|
13373
|
-
names:
|
|
13379
|
+
var ic = ["Cassini", "Cassini_Soldner", "cass"];
|
|
13380
|
+
const nc = {
|
|
13381
|
+
init: Yu,
|
|
13382
|
+
forward: tc,
|
|
13383
|
+
inverse: ec,
|
|
13384
|
+
names: ic
|
|
13374
13385
|
};
|
|
13375
13386
|
function ee(e, i) {
|
|
13376
13387
|
var s;
|
|
13377
13388
|
return e > 1e-7 ? (s = e * i, (1 - e * e) * (i / (1 - s * s) - 0.5 / e * Math.log((1 - s) / (1 + s)))) : 2 * i;
|
|
13378
13389
|
}
|
|
13379
|
-
var
|
|
13380
|
-
function
|
|
13390
|
+
var sc = 1, ac = 2, rc = 3, oc = 4;
|
|
13391
|
+
function hc() {
|
|
13381
13392
|
var e = Math.abs(this.lat0);
|
|
13382
13393
|
if (Math.abs(e - E) < 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) {
|
|
13383
13394
|
var i;
|
|
13384
|
-
switch (this.qp = ee(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa =
|
|
13395
|
+
switch (this.qp = ee(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = gc(this.es), this.mode) {
|
|
13385
13396
|
case this.N_POLE:
|
|
13386
13397
|
this.dd = 1;
|
|
13387
13398
|
break;
|
|
@@ -13398,7 +13409,7 @@ function oc() {
|
|
|
13398
13409
|
} else
|
|
13399
13410
|
this.mode === this.OBLIQ && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
|
|
13400
13411
|
}
|
|
13401
|
-
function
|
|
13412
|
+
function lc(e) {
|
|
13402
13413
|
var i, s, o, l, a, h, u, f, p, M, g = e.x, c = e.y;
|
|
13403
13414
|
if (g = O(g - this.long0), this.sphere) {
|
|
13404
13415
|
if (a = Math.sin(c), M = Math.cos(c), o = Math.cos(g), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
@@ -13440,7 +13451,7 @@ function hc(e) {
|
|
|
13440
13451
|
}
|
|
13441
13452
|
return e.x = this.a * i + this.x0, e.y = this.a * s + this.y0, e;
|
|
13442
13453
|
}
|
|
13443
|
-
function
|
|
13454
|
+
function uc(e) {
|
|
13444
13455
|
e.x -= this.x0, e.y -= this.y0;
|
|
13445
13456
|
var i = e.x / this.a, s = e.y / this.a, o, l, a, h, u, f, p;
|
|
13446
13457
|
if (this.sphere) {
|
|
@@ -13472,47 +13483,47 @@ function lc(e) {
|
|
|
13472
13483
|
return e.x = this.long0, e.y = this.lat0, e;
|
|
13473
13484
|
p = 1 - u / this.qp, this.mode === this.S_POLE && (p = -p);
|
|
13474
13485
|
}
|
|
13475
|
-
o = Math.atan2(i, s), l =
|
|
13486
|
+
o = Math.atan2(i, s), l = vc(Math.asin(p), this.apa);
|
|
13476
13487
|
}
|
|
13477
13488
|
return e.x = O(this.long0 + o), e.y = l, e;
|
|
13478
13489
|
}
|
|
13479
|
-
var
|
|
13480
|
-
function
|
|
13490
|
+
var cc = 0.3333333333333333, dc = 0.17222222222222222, fc = 0.10257936507936508, _c = 0.06388888888888888, mc = 0.0664021164021164, pc = 0.016415012942191543;
|
|
13491
|
+
function gc(e) {
|
|
13481
13492
|
var i, s = [];
|
|
13482
|
-
return s[0] = e *
|
|
13493
|
+
return s[0] = e * cc, i = e * e, s[0] += i * dc, s[1] = i * _c, i *= e, s[0] += i * fc, s[1] += i * mc, s[2] = i * pc, s;
|
|
13483
13494
|
}
|
|
13484
|
-
function
|
|
13495
|
+
function vc(e, i) {
|
|
13485
13496
|
var s = e + e;
|
|
13486
13497
|
return e + i[0] * Math.sin(s) + i[1] * Math.sin(s + s) + i[2] * Math.sin(s + s + s);
|
|
13487
13498
|
}
|
|
13488
|
-
var
|
|
13489
|
-
const
|
|
13490
|
-
init:
|
|
13491
|
-
forward:
|
|
13492
|
-
inverse:
|
|
13493
|
-
names:
|
|
13494
|
-
S_POLE:
|
|
13495
|
-
N_POLE:
|
|
13496
|
-
EQUIT:
|
|
13497
|
-
OBLIQ:
|
|
13499
|
+
var yc = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
|
|
13500
|
+
const Mc = {
|
|
13501
|
+
init: hc,
|
|
13502
|
+
forward: lc,
|
|
13503
|
+
inverse: uc,
|
|
13504
|
+
names: yc,
|
|
13505
|
+
S_POLE: sc,
|
|
13506
|
+
N_POLE: ac,
|
|
13507
|
+
EQUIT: rc,
|
|
13508
|
+
OBLIQ: oc
|
|
13498
13509
|
};
|
|
13499
13510
|
function ne(e) {
|
|
13500
13511
|
return Math.abs(e) > 1 && (e = e > 1 ? 1 : -1), Math.asin(e);
|
|
13501
13512
|
}
|
|
13502
|
-
function
|
|
13513
|
+
function xc() {
|
|
13503
13514
|
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 = qt(this.e3, this.sin_po, this.cos_po), this.qs1 = ee(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 = qt(this.e3, this.sin_po, this.cos_po), this.qs2 = ee(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 = ee(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);
|
|
13504
13515
|
}
|
|
13505
|
-
function
|
|
13516
|
+
function Lc(e) {
|
|
13506
13517
|
var i = e.x, s = e.y;
|
|
13507
13518
|
this.sin_phi = Math.sin(s), this.cos_phi = Math.cos(s);
|
|
13508
13519
|
var o = ee(this.e3, this.sin_phi), l = this.a * Math.sqrt(this.c - this.ns0 * o) / this.ns0, a = this.ns0 * O(i - this.long0), h = l * Math.sin(a) + this.x0, u = this.rh - l * Math.cos(a) + this.y0;
|
|
13509
13520
|
return e.x = h, e.y = u, e;
|
|
13510
13521
|
}
|
|
13511
|
-
function
|
|
13522
|
+
function wc(e) {
|
|
13512
13523
|
var i, s, o, l, a, h;
|
|
13513
13524
|
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), o = 1) : (i = -Math.sqrt(e.x * e.x + e.y * e.y), o = -1), l = 0, i !== 0 && (l = Math.atan2(o * e.x, o * e.y)), o = i * this.ns0 / this.a, this.sphere ? h = Math.asin((this.c - o * o) / (2 * this.ns0)) : (s = (this.c - o * o) / this.ns0, h = this.phi1z(this.e3, s)), a = O(l / this.ns0 + this.long0), e.x = a, e.y = h, e;
|
|
13514
13525
|
}
|
|
13515
|
-
function
|
|
13526
|
+
function bc(e, i) {
|
|
13516
13527
|
var s, o, l, a, h, u = ne(0.5 * i);
|
|
13517
13528
|
if (e < I)
|
|
13518
13529
|
return u;
|
|
@@ -13521,33 +13532,33 @@ function wc(e, i) {
|
|
|
13521
13532
|
return u;
|
|
13522
13533
|
return null;
|
|
13523
13534
|
}
|
|
13524
|
-
var
|
|
13525
|
-
const
|
|
13526
|
-
init:
|
|
13527
|
-
forward:
|
|
13528
|
-
inverse:
|
|
13529
|
-
names:
|
|
13530
|
-
phi1z:
|
|
13535
|
+
var Pc = ["Albers_Conic_Equal_Area", "Albers", "aea"];
|
|
13536
|
+
const Cc = {
|
|
13537
|
+
init: xc,
|
|
13538
|
+
forward: Lc,
|
|
13539
|
+
inverse: wc,
|
|
13540
|
+
names: Pc,
|
|
13541
|
+
phi1z: bc
|
|
13531
13542
|
};
|
|
13532
|
-
function
|
|
13543
|
+
function kc() {
|
|
13533
13544
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
|
|
13534
13545
|
}
|
|
13535
|
-
function
|
|
13546
|
+
function Tc(e) {
|
|
13536
13547
|
var i, s, o, l, a, h, u, f, p = e.x, M = e.y;
|
|
13537
13548
|
return o = O(p - this.long0), i = Math.sin(M), s = Math.cos(M), l = Math.cos(o), h = this.sin_p14 * i + this.cos_p14 * s * l, a = 1, h > 0 || Math.abs(h) <= I ? (u = this.x0 + this.a * a * s * Math.sin(o) / h, f = this.y0 + this.a * a * (this.cos_p14 * i - this.sin_p14 * s * l) / h) : (u = this.x0 + this.infinity_dist * s * Math.sin(o), f = this.y0 + this.infinity_dist * (this.cos_p14 * i - this.sin_p14 * s * l)), e.x = u, e.y = f, e;
|
|
13538
13549
|
}
|
|
13539
|
-
function
|
|
13550
|
+
function Ec(e) {
|
|
13540
13551
|
var i, s, o, l, a, h;
|
|
13541
13552
|
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)) ? (l = Math.atan2(i, this.rc), s = Math.sin(l), o = Math.cos(l), h = ne(o * this.sin_p14 + e.y * s * this.cos_p14 / i), a = Math.atan2(e.x * s, i * this.cos_p14 * o - e.y * this.sin_p14 * s), a = O(this.long0 + a)) : (h = this.phic0, a = 0), e.x = a, e.y = h, e;
|
|
13542
13553
|
}
|
|
13543
|
-
var
|
|
13544
|
-
const
|
|
13545
|
-
init:
|
|
13546
|
-
forward:
|
|
13547
|
-
inverse:
|
|
13548
|
-
names:
|
|
13554
|
+
var Sc = ["gnom"];
|
|
13555
|
+
const Ac = {
|
|
13556
|
+
init: kc,
|
|
13557
|
+
forward: Tc,
|
|
13558
|
+
inverse: Ec,
|
|
13559
|
+
names: Sc
|
|
13549
13560
|
};
|
|
13550
|
-
function
|
|
13561
|
+
function Ic(e, i) {
|
|
13551
13562
|
var s = 1 - (1 - e * e) / (2 * e) * Math.log((1 - e) / (1 + e));
|
|
13552
13563
|
if (Math.abs(Math.abs(i) - s) < 1e-6)
|
|
13553
13564
|
return i < 0 ? -1 * E : E;
|
|
@@ -13556,10 +13567,10 @@ function Ac(e, i) {
|
|
|
13556
13567
|
return o;
|
|
13557
13568
|
return NaN;
|
|
13558
13569
|
}
|
|
13559
|
-
function
|
|
13570
|
+
function Oc() {
|
|
13560
13571
|
this.sphere || (this.k0 = qt(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
13561
13572
|
}
|
|
13562
|
-
function
|
|
13573
|
+
function zc(e) {
|
|
13563
13574
|
var i = e.x, s = e.y, o, l, a = O(i - this.long0);
|
|
13564
13575
|
if (this.sphere)
|
|
13565
13576
|
o = this.x0 + this.a * a * Math.cos(this.lat_ts), l = this.y0 + this.a * Math.sin(s) / Math.cos(this.lat_ts);
|
|
@@ -13569,41 +13580,41 @@ function Oc(e) {
|
|
|
13569
13580
|
}
|
|
13570
13581
|
return e.x = o, e.y = l, e;
|
|
13571
13582
|
}
|
|
13572
|
-
function
|
|
13583
|
+
function Bc(e) {
|
|
13573
13584
|
e.x -= this.x0, e.y -= this.y0;
|
|
13574
13585
|
var i, s;
|
|
13575
|
-
return this.sphere ? (i = O(this.long0 + e.x / this.a / Math.cos(this.lat_ts)), s = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (s =
|
|
13576
|
-
}
|
|
13577
|
-
var
|
|
13578
|
-
const
|
|
13579
|
-
init:
|
|
13580
|
-
forward:
|
|
13581
|
-
inverse:
|
|
13582
|
-
names:
|
|
13586
|
+
return this.sphere ? (i = O(this.long0 + e.x / this.a / Math.cos(this.lat_ts)), s = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (s = Ic(this.e, 2 * e.y * this.k0 / this.a), i = O(this.long0 + e.x / (this.a * this.k0))), e.x = i, e.y = s, e;
|
|
13587
|
+
}
|
|
13588
|
+
var Nc = ["cea"];
|
|
13589
|
+
const Dc = {
|
|
13590
|
+
init: Oc,
|
|
13591
|
+
forward: zc,
|
|
13592
|
+
inverse: Bc,
|
|
13593
|
+
names: Nc
|
|
13583
13594
|
};
|
|
13584
|
-
function
|
|
13595
|
+
function Rc() {
|
|
13585
13596
|
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);
|
|
13586
13597
|
}
|
|
13587
|
-
function
|
|
13598
|
+
function Zc(e) {
|
|
13588
13599
|
var i = e.x, s = e.y, o = O(i - this.long0), l = se(s - this.lat0);
|
|
13589
13600
|
return e.x = this.x0 + this.a * o * this.rc, e.y = this.y0 + this.a * l, e;
|
|
13590
13601
|
}
|
|
13591
|
-
function
|
|
13602
|
+
function Gc(e) {
|
|
13592
13603
|
var i = e.x, s = e.y;
|
|
13593
13604
|
return e.x = O(this.long0 + (i - this.x0) / (this.a * this.rc)), e.y = se(this.lat0 + (s - this.y0) / this.a), e;
|
|
13594
13605
|
}
|
|
13595
|
-
var
|
|
13596
|
-
const
|
|
13597
|
-
init:
|
|
13598
|
-
forward:
|
|
13599
|
-
inverse:
|
|
13600
|
-
names:
|
|
13606
|
+
var Fc = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
|
|
13607
|
+
const Hc = {
|
|
13608
|
+
init: Rc,
|
|
13609
|
+
forward: Zc,
|
|
13610
|
+
inverse: Gc,
|
|
13611
|
+
names: Fc
|
|
13601
13612
|
};
|
|
13602
13613
|
var Ra = 20;
|
|
13603
|
-
function
|
|
13614
|
+
function Uc() {
|
|
13604
13615
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = ui(this.es), this.e1 = ci(this.es), this.e2 = di(this.es), this.e3 = fi(this.es), this.ml0 = this.a * yt(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
13605
13616
|
}
|
|
13606
|
-
function
|
|
13617
|
+
function qc(e) {
|
|
13607
13618
|
var i = e.x, s = e.y, o, l, a, h = O(i - this.long0);
|
|
13608
13619
|
if (a = h * Math.sin(s), this.sphere)
|
|
13609
13620
|
Math.abs(s) <= I ? (o = this.a * h, l = -1 * this.a * this.lat0) : (o = this.a * Math.sin(a) / Math.tan(s), l = this.a * (se(s - this.lat0) + (1 - Math.cos(a)) / Math.tan(s)));
|
|
@@ -13615,7 +13626,7 @@ function Uc(e) {
|
|
|
13615
13626
|
}
|
|
13616
13627
|
return e.x = o + this.x0, e.y = l + this.y0, e;
|
|
13617
13628
|
}
|
|
13618
|
-
function
|
|
13629
|
+
function jc(e) {
|
|
13619
13630
|
var i, s, o, l, a, h, u, f, p;
|
|
13620
13631
|
if (o = e.x - this.x0, l = e.y - this.y0, this.sphere)
|
|
13621
13632
|
if (Math.abs(l + this.a * this.lat0) <= I)
|
|
@@ -13644,17 +13655,17 @@ function qc(e) {
|
|
|
13644
13655
|
}
|
|
13645
13656
|
return e.x = i, e.y = s, e;
|
|
13646
13657
|
}
|
|
13647
|
-
var
|
|
13648
|
-
const
|
|
13649
|
-
init:
|
|
13650
|
-
forward:
|
|
13651
|
-
inverse:
|
|
13652
|
-
names:
|
|
13658
|
+
var Wc = ["Polyconic", "poly"];
|
|
13659
|
+
const Vc = {
|
|
13660
|
+
init: Uc,
|
|
13661
|
+
forward: qc,
|
|
13662
|
+
inverse: jc,
|
|
13663
|
+
names: Wc
|
|
13653
13664
|
};
|
|
13654
|
-
function
|
|
13665
|
+
function $c() {
|
|
13655
13666
|
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;
|
|
13656
13667
|
}
|
|
13657
|
-
function
|
|
13668
|
+
function Kc(e) {
|
|
13658
13669
|
var i, s = e.x, o = e.y, l = o - this.lat0, a = s - this.long0, h = l / Ye * 1e-5, u = a, f = 1, p = 0;
|
|
13659
13670
|
for (i = 1; i <= 10; i++)
|
|
13660
13671
|
f = f * h, p = p + this.A[i] * f;
|
|
@@ -13663,7 +13674,7 @@ function $c(e) {
|
|
|
13663
13674
|
v = c * M - m * g, x = m * M + c * g, c = v, m = x, b = b + this.B_re[i] * c - this.B_im[i] * m, C = C + this.B_im[i] * c + this.B_re[i] * m;
|
|
13664
13675
|
return e.x = C * this.a + this.x0, e.y = b * this.a + this.y0, e;
|
|
13665
13676
|
}
|
|
13666
|
-
function
|
|
13677
|
+
function Xc(e) {
|
|
13667
13678
|
var i, s = e.x, o = e.y, l = s - this.x0, a = o - this.y0, h = a / this.a, u = l / this.a, f = 1, p = 0, M, g, c = 0, m = 0;
|
|
13668
13679
|
for (i = 1; i <= 6; i++)
|
|
13669
13680
|
M = f * h - p * u, g = p * h + f * u, f = M, p = g, c = c + this.C_re[i] * f - this.C_im[i] * p, m = m + this.C_im[i] * f + this.C_re[i] * p;
|
|
@@ -13684,42 +13695,42 @@ function Kc(e) {
|
|
|
13684
13695
|
var dt = this.lat0 + at * Ye * 1e5, Xi = this.long0 + Mt;
|
|
13685
13696
|
return e.x = Xi, e.y = dt, e;
|
|
13686
13697
|
}
|
|
13687
|
-
var
|
|
13688
|
-
const
|
|
13689
|
-
init:
|
|
13690
|
-
forward:
|
|
13691
|
-
inverse:
|
|
13692
|
-
names:
|
|
13698
|
+
var Jc = ["New_Zealand_Map_Grid", "nzmg"];
|
|
13699
|
+
const Qc = {
|
|
13700
|
+
init: $c,
|
|
13701
|
+
forward: Kc,
|
|
13702
|
+
inverse: Xc,
|
|
13703
|
+
names: Jc
|
|
13693
13704
|
};
|
|
13694
|
-
function
|
|
13705
|
+
function Yc() {
|
|
13695
13706
|
}
|
|
13696
|
-
function
|
|
13707
|
+
function td(e) {
|
|
13697
13708
|
var i = e.x, s = e.y, o = O(i - this.long0), l = this.x0 + this.a * o, a = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + s / 2.5)) * 1.25;
|
|
13698
13709
|
return e.x = l, e.y = a, e;
|
|
13699
13710
|
}
|
|
13700
|
-
function
|
|
13711
|
+
function ed(e) {
|
|
13701
13712
|
e.x -= this.x0, e.y -= this.y0;
|
|
13702
13713
|
var i = O(this.long0 + e.x / this.a), s = 2.5 * (Math.atan(Math.exp(0.8 * e.y / this.a)) - Math.PI / 4);
|
|
13703
13714
|
return e.x = i, e.y = s, e;
|
|
13704
13715
|
}
|
|
13705
|
-
var
|
|
13706
|
-
const
|
|
13707
|
-
init:
|
|
13708
|
-
forward:
|
|
13709
|
-
inverse:
|
|
13710
|
-
names:
|
|
13716
|
+
var id = ["Miller_Cylindrical", "mill"];
|
|
13717
|
+
const nd = {
|
|
13718
|
+
init: Yc,
|
|
13719
|
+
forward: td,
|
|
13720
|
+
inverse: ed,
|
|
13721
|
+
names: id
|
|
13711
13722
|
};
|
|
13712
|
-
var
|
|
13713
|
-
function
|
|
13723
|
+
var sd = 20;
|
|
13724
|
+
function ad() {
|
|
13714
13725
|
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 = Vn(this.es);
|
|
13715
13726
|
}
|
|
13716
|
-
function
|
|
13727
|
+
function rd(e) {
|
|
13717
13728
|
var i, s, o = e.x, l = e.y;
|
|
13718
13729
|
if (o = O(o - this.long0), this.sphere) {
|
|
13719
13730
|
if (!this.m)
|
|
13720
13731
|
l = this.n !== 1 ? Math.asin(this.n * Math.sin(l)) : l;
|
|
13721
13732
|
else
|
|
13722
|
-
for (var a = this.n * Math.sin(l), h =
|
|
13733
|
+
for (var a = this.n * Math.sin(l), h = sd; h; --h) {
|
|
13723
13734
|
var u = (this.m * l + Math.sin(l) - a) / (this.m + Math.cos(l));
|
|
13724
13735
|
if (l -= u, Math.abs(u) < I)
|
|
13725
13736
|
break;
|
|
@@ -13731,20 +13742,20 @@ function ad(e) {
|
|
|
13731
13742
|
}
|
|
13732
13743
|
return e.x = i, e.y = s, e;
|
|
13733
13744
|
}
|
|
13734
|
-
function
|
|
13745
|
+
function od(e) {
|
|
13735
13746
|
var i, s, o, l;
|
|
13736
13747
|
return e.x -= this.x0, o = e.x / this.a, e.y -= this.y0, i = e.y / this.a, this.sphere ? (i /= this.C_y, o = o / (this.C_x * (this.m + Math.cos(i))), this.m ? i = ne((this.m * i + Math.sin(i)) / this.n) : this.n !== 1 && (i = ne(Math.sin(i) / this.n)), o = O(o + this.long0), i = se(i)) : (i = $n(e.y / this.a, this.es, this.en), l = Math.abs(i), l < E ? (l = Math.sin(i), s = this.long0 + e.x * Math.sqrt(1 - this.es * l * l) / (this.a * Math.cos(i)), o = O(s)) : l - I < E && (o = this.long0)), e.x = o, e.y = i, e;
|
|
13737
13748
|
}
|
|
13738
|
-
var
|
|
13739
|
-
const
|
|
13740
|
-
init:
|
|
13741
|
-
forward:
|
|
13742
|
-
inverse:
|
|
13743
|
-
names:
|
|
13749
|
+
var hd = ["Sinusoidal", "sinu"];
|
|
13750
|
+
const ld = {
|
|
13751
|
+
init: ad,
|
|
13752
|
+
forward: rd,
|
|
13753
|
+
inverse: od,
|
|
13754
|
+
names: hd
|
|
13744
13755
|
};
|
|
13745
|
-
function
|
|
13756
|
+
function ud() {
|
|
13746
13757
|
}
|
|
13747
|
-
function
|
|
13758
|
+
function cd(e) {
|
|
13748
13759
|
for (var i = e.x, s = e.y, o = O(i - this.long0), l = s, a = Math.PI * Math.sin(s); ; ) {
|
|
13749
13760
|
var h = -(l + Math.sin(l) - a) / (1 + Math.cos(l));
|
|
13750
13761
|
if (l += h, Math.abs(h) < I)
|
|
@@ -13754,7 +13765,7 @@ function ud(e) {
|
|
|
13754
13765
|
var u = 0.900316316158 * this.a * o * Math.cos(l) + this.x0, f = 1.4142135623731 * this.a * Math.sin(l) + this.y0;
|
|
13755
13766
|
return e.x = u, e.y = f, e;
|
|
13756
13767
|
}
|
|
13757
|
-
function
|
|
13768
|
+
function dd(e) {
|
|
13758
13769
|
var i, s;
|
|
13759
13770
|
e.x -= this.x0, e.y -= this.y0, s = e.y / (1.4142135623731 * this.a), Math.abs(s) > 0.999999999999 && (s = 0.999999999999), i = Math.asin(s);
|
|
13760
13771
|
var o = O(this.long0 + e.x / (0.900316316158 * this.a * Math.cos(i)));
|
|
@@ -13762,17 +13773,17 @@ function cd(e) {
|
|
|
13762
13773
|
var l = Math.asin(s);
|
|
13763
13774
|
return e.x = o, e.y = l, e;
|
|
13764
13775
|
}
|
|
13765
|
-
var
|
|
13766
|
-
const
|
|
13767
|
-
init:
|
|
13768
|
-
forward:
|
|
13769
|
-
inverse:
|
|
13770
|
-
names:
|
|
13776
|
+
var fd = ["Mollweide", "moll"];
|
|
13777
|
+
const _d = {
|
|
13778
|
+
init: ud,
|
|
13779
|
+
forward: cd,
|
|
13780
|
+
inverse: dd,
|
|
13781
|
+
names: fd
|
|
13771
13782
|
};
|
|
13772
|
-
function
|
|
13783
|
+
function md() {
|
|
13773
13784
|
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 = ui(this.es), this.e1 = ci(this.es), this.e2 = di(this.es), this.e3 = fi(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 = qt(this.e, this.sinphi, this.cosphi), this.ml1 = yt(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 = qt(this.e, this.sinphi, this.cosphi), this.ml2 = yt(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 = yt(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
13774
13785
|
}
|
|
13775
|
-
function
|
|
13786
|
+
function pd(e) {
|
|
13776
13787
|
var i = e.x, s = e.y, o;
|
|
13777
13788
|
if (this.sphere)
|
|
13778
13789
|
o = this.a * (this.g - s);
|
|
@@ -13783,7 +13794,7 @@ function md(e) {
|
|
|
13783
13794
|
var a = this.ns * O(i - this.long0), h = this.x0 + o * Math.sin(a), u = this.y0 + this.rh - o * Math.cos(a);
|
|
13784
13795
|
return e.x = h, e.y = u, e;
|
|
13785
13796
|
}
|
|
13786
|
-
function
|
|
13797
|
+
function gd(e) {
|
|
13787
13798
|
e.x -= this.x0, e.y = this.rh - e.y + this.y0;
|
|
13788
13799
|
var i, s, o, l;
|
|
13789
13800
|
this.ns >= 0 ? (s = Math.sqrt(e.x * e.x + e.y * e.y), i = 1) : (s = -Math.sqrt(e.x * e.x + e.y * e.y), i = -1);
|
|
@@ -13793,17 +13804,17 @@ function pd(e) {
|
|
|
13793
13804
|
var h = this.g - s / this.a;
|
|
13794
13805
|
return o = Wi(h, this.e0, this.e1, this.e2, this.e3), l = O(this.long0 + a / this.ns), e.x = l, e.y = o, e;
|
|
13795
13806
|
}
|
|
13796
|
-
var
|
|
13797
|
-
const
|
|
13798
|
-
init:
|
|
13799
|
-
forward:
|
|
13800
|
-
inverse:
|
|
13801
|
-
names:
|
|
13807
|
+
var vd = ["Equidistant_Conic", "eqdc"];
|
|
13808
|
+
const yd = {
|
|
13809
|
+
init: md,
|
|
13810
|
+
forward: pd,
|
|
13811
|
+
inverse: gd,
|
|
13812
|
+
names: vd
|
|
13802
13813
|
};
|
|
13803
|
-
function
|
|
13814
|
+
function Md() {
|
|
13804
13815
|
this.R = this.a;
|
|
13805
13816
|
}
|
|
13806
|
-
function
|
|
13817
|
+
function xd(e) {
|
|
13807
13818
|
var i = e.x, s = e.y, o = O(i - this.long0), l, a;
|
|
13808
13819
|
Math.abs(s) <= I && (l = this.x0 + this.R * o, a = this.y0);
|
|
13809
13820
|
var h = ne(2 * Math.abs(s / Math.PI));
|
|
@@ -13813,53 +13824,53 @@ function Md(e) {
|
|
|
13813
13824
|
var b = f + g;
|
|
13814
13825
|
return x = Math.PI * this.R * (m * b - u * Math.sqrt((v + f) * (f + 1) - b * b)) / (v + f), s >= 0 ? a = this.y0 + x : a = this.y0 - x, e.x = l, e.y = a, e;
|
|
13815
13826
|
}
|
|
13816
|
-
function
|
|
13827
|
+
function Ld(e) {
|
|
13817
13828
|
var i, s, o, l, a, h, u, f, p, M, g, c, m;
|
|
13818
13829
|
return e.x -= this.x0, e.y -= this.y0, g = Math.PI * this.R, o = e.x / g, l = e.y / g, a = o * o + l * l, h = -Math.abs(l) * (1 + a), u = h - 2 * l * l + o * o, f = -2 * h + 1 + 2 * l * l + a * a, m = l * l / f + (2 * u * u * u / f / f / f - 9 * h * u / f / f) / 27, p = (h - u * u / 3 / f) / f, M = 2 * Math.sqrt(-p / 3), g = 3 * m / p / M, Math.abs(g) > 1 && (g >= 0 ? g = 1 : g = -1), c = Math.acos(g) / 3, e.y >= 0 ? s = (-M * Math.cos(c + Math.PI / 3) - u / 3 / f) * Math.PI : s = -(-M * Math.cos(c + Math.PI / 3) - u / 3 / f) * Math.PI, Math.abs(o) < I ? i = this.long0 : i = O(this.long0 + Math.PI * (a - 1 + Math.sqrt(1 + 2 * (o * o - l * l) + a * a)) / 2 / o), e.x = i, e.y = s, e;
|
|
13819
13830
|
}
|
|
13820
|
-
var
|
|
13821
|
-
const
|
|
13822
|
-
init:
|
|
13823
|
-
forward:
|
|
13824
|
-
inverse:
|
|
13825
|
-
names:
|
|
13831
|
+
var wd = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
|
|
13832
|
+
const bd = {
|
|
13833
|
+
init: Md,
|
|
13834
|
+
forward: xd,
|
|
13835
|
+
inverse: Ld,
|
|
13836
|
+
names: wd
|
|
13826
13837
|
};
|
|
13827
|
-
function
|
|
13838
|
+
function Pd() {
|
|
13828
13839
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
|
|
13829
13840
|
}
|
|
13830
|
-
function
|
|
13841
|
+
function Cd(e) {
|
|
13831
13842
|
var i = e.x, s = e.y, o = Math.sin(e.y), l = Math.cos(e.y), a = O(i - this.long0), h, u, f, p, M, g, c, m, v, x, b, C, S, A, R, N, F, tt, Y, Mt, Nt, at, dt;
|
|
13832
13843
|
return this.sphere ? Math.abs(this.sin_p12 - 1) <= I ? (e.x = this.x0 + this.a * (E - s) * Math.sin(a), e.y = this.y0 - this.a * (E - s) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (e.x = this.x0 + this.a * (E + s) * Math.sin(a), e.y = this.y0 + this.a * (E + s) * Math.cos(a), e) : (tt = this.sin_p12 * o + this.cos_p12 * l * Math.cos(a), N = Math.acos(tt), F = N ? N / Math.sin(N) : 1, e.x = this.x0 + this.a * F * l * Math.sin(a), e.y = this.y0 + this.a * F * (this.cos_p12 * o - this.sin_p12 * l * Math.cos(a)), e) : (h = ui(this.es), u = ci(this.es), f = di(this.es), p = fi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (M = this.a * yt(h, u, f, p, E), g = this.a * yt(h, u, f, p, s), e.x = this.x0 + (M - g) * Math.sin(a), e.y = this.y0 - (M - g) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (M = this.a * yt(h, u, f, p, E), g = this.a * yt(h, u, f, p, s), e.x = this.x0 + (M + g) * Math.sin(a), e.y = this.y0 + (M + g) * Math.cos(a), e) : (c = o / l, m = Ae(this.a, this.e, this.sin_p12), v = Ae(this.a, this.e, o), x = Math.atan((1 - this.es) * c + this.es * m * this.sin_p12 / (v * l)), b = Math.atan2(Math.sin(a), this.cos_p12 * Math.tan(x) - this.sin_p12 * Math.cos(a)), b === 0 ? Y = Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : Math.abs(Math.abs(b) - Math.PI) <= I ? Y = -Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : Y = Math.asin(Math.sin(a) * Math.cos(x) / Math.sin(b)), C = this.e * this.sin_p12 / Math.sqrt(1 - this.es), S = this.e * this.cos_p12 * Math.cos(b) / Math.sqrt(1 - this.es), A = C * S, R = S * S, Mt = Y * Y, Nt = Mt * Y, at = Nt * Y, dt = at * Y, N = m * Y * (1 - Mt * R * (1 - R) / 6 + Nt / 8 * A * (1 - 2 * R) + at / 120 * (R * (4 - 7 * R) - 3 * C * C * (1 - 7 * R)) - dt / 48 * A), e.x = this.x0 + N * Math.sin(b), e.y = this.y0 + N * Math.cos(b), e));
|
|
13833
13844
|
}
|
|
13834
|
-
function
|
|
13845
|
+
function kd(e) {
|
|
13835
13846
|
e.x -= this.x0, e.y -= this.y0;
|
|
13836
13847
|
var i, s, o, l, a, h, u, f, p, M, g, c, m, v, x, b, C, S, A, R, N, F, tt, Y;
|
|
13837
13848
|
return this.sphere ? (i = Math.sqrt(e.x * e.x + e.y * e.y), i > 2 * E * this.a ? void 0 : (s = i / this.a, o = Math.sin(s), l = Math.cos(s), a = this.long0, Math.abs(i) <= I ? h = this.lat0 : (h = ne(l * this.sin_p12 + e.y * o * this.cos_p12 / i), u = Math.abs(this.lat0) - E, 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 * o, i * this.cos_p12 * l - e.y * this.sin_p12 * o))), e.x = a, e.y = h, e)) : (f = ui(this.es), p = ci(this.es), M = di(this.es), g = fi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (c = this.a * yt(f, p, M, g, E), i = Math.sqrt(e.x * e.x + e.y * e.y), m = c - i, h = Wi(m / this.a, f, p, M, g), a = O(this.long0 + Math.atan2(e.x, -1 * e.y)), e.x = a, e.y = h, e) : Math.abs(this.sin_p12 + 1) <= I ? (c = this.a * yt(f, p, M, g, E), i = Math.sqrt(e.x * e.x + e.y * e.y), m = i - c, h = Wi(m / this.a, f, p, M, g), a = O(this.long0 + Math.atan2(e.x, e.y)), e.x = a, e.y = h, e) : (i = Math.sqrt(e.x * e.x + e.y * e.y), b = Math.atan2(e.x, e.y), v = Ae(this.a, this.e, this.sin_p12), C = Math.cos(b), S = this.e * this.cos_p12 * C, A = -S * S / (1 - this.es), R = 3 * this.es * (1 - A) * this.sin_p12 * this.cos_p12 * C / (1 - this.es), N = i / v, F = N - A * (1 + A) * Math.pow(N, 3) / 6 - R * (1 + 3 * A) * Math.pow(N, 4) / 24, tt = 1 - A * F * F / 2 - N * F * F * F / 6, x = Math.asin(this.sin_p12 * Math.cos(F) + this.cos_p12 * Math.sin(F) * C), a = O(this.long0 + Math.asin(Math.sin(b) * Math.sin(F) / Math.cos(x))), Y = Math.sin(x), h = Math.atan2((Y - this.es * tt * this.sin_p12) * Math.tan(x), Y * (1 - this.es)), e.x = a, e.y = h, e));
|
|
13838
13849
|
}
|
|
13839
|
-
var
|
|
13840
|
-
const
|
|
13841
|
-
init:
|
|
13842
|
-
forward:
|
|
13843
|
-
inverse:
|
|
13844
|
-
names:
|
|
13850
|
+
var Td = ["Azimuthal_Equidistant", "aeqd"];
|
|
13851
|
+
const Ed = {
|
|
13852
|
+
init: Pd,
|
|
13853
|
+
forward: Cd,
|
|
13854
|
+
inverse: kd,
|
|
13855
|
+
names: Td
|
|
13845
13856
|
};
|
|
13846
|
-
function
|
|
13857
|
+
function Sd() {
|
|
13847
13858
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
|
|
13848
13859
|
}
|
|
13849
|
-
function
|
|
13860
|
+
function Ad(e) {
|
|
13850
13861
|
var i, s, o, l, a, h, u, f, p = e.x, M = e.y;
|
|
13851
13862
|
return o = O(p - this.long0), i = Math.sin(M), s = Math.cos(M), l = Math.cos(o), h = this.sin_p14 * i + this.cos_p14 * s * l, a = 1, (h > 0 || Math.abs(h) <= I) && (u = this.a * a * s * Math.sin(o), f = this.y0 + this.a * a * (this.cos_p14 * i - this.sin_p14 * s * l)), e.x = u, e.y = f, e;
|
|
13852
13863
|
}
|
|
13853
|
-
function
|
|
13864
|
+
function Id(e) {
|
|
13854
13865
|
var i, s, o, l, a, h, u;
|
|
13855
13866
|
return e.x -= this.x0, e.y -= this.y0, i = Math.sqrt(e.x * e.x + e.y * e.y), s = ne(i / this.a), o = Math.sin(s), l = Math.cos(s), h = this.long0, Math.abs(i) <= I ? (u = this.lat0, e.x = h, e.y = u, e) : (u = ne(l * this.sin_p14 + e.y * o * this.cos_p14 / i), a = Math.abs(this.lat0) - E, Math.abs(a) <= I ? (this.lat0 >= 0 ? h = O(this.long0 + Math.atan2(e.x, -e.y)) : h = O(this.long0 - Math.atan2(-e.x, e.y)), e.x = h, e.y = u, e) : (h = O(this.long0 + Math.atan2(e.x * o, i * this.cos_p14 * l - e.y * this.sin_p14 * o)), e.x = h, e.y = u, e));
|
|
13856
13867
|
}
|
|
13857
|
-
var
|
|
13858
|
-
const
|
|
13859
|
-
init:
|
|
13860
|
-
forward:
|
|
13861
|
-
inverse:
|
|
13862
|
-
names:
|
|
13868
|
+
var Od = ["ortho"];
|
|
13869
|
+
const zd = {
|
|
13870
|
+
init: Sd,
|
|
13871
|
+
forward: Ad,
|
|
13872
|
+
inverse: Id,
|
|
13873
|
+
names: Od
|
|
13863
13874
|
};
|
|
13864
13875
|
var nt = {
|
|
13865
13876
|
FRONT: 1,
|
|
@@ -13874,10 +13885,10 @@ var nt = {
|
|
|
13874
13885
|
AREA_2: 3,
|
|
13875
13886
|
AREA_3: 4
|
|
13876
13887
|
};
|
|
13877
|
-
function
|
|
13888
|
+
function Bd() {
|
|
13878
13889
|
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 >= E - K / 2 ? this.face = nt.TOP : this.lat0 <= -(E - K / 2) ? this.face = nt.BOTTOM : Math.abs(this.long0) <= K ? this.face = nt.FRONT : Math.abs(this.long0) <= E + K ? this.face = this.long0 > 0 ? nt.RIGHT : nt.LEFT : this.face = nt.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);
|
|
13879
13890
|
}
|
|
13880
|
-
function
|
|
13891
|
+
function Nd(e) {
|
|
13881
13892
|
var i = { x: 0, y: 0 }, s, o, l, a, h, u, f = { value: 0 };
|
|
13882
13893
|
if (e.x -= this.long0, this.es !== 0 ? s = Math.atan(this.one_minus_f_squared * Math.tan(e.y)) : s = e.y, o = e.x, this.face === nt.TOP)
|
|
13883
13894
|
a = E - s, o >= K && o <= E + K ? (f.value = X.AREA_0, l = o - E) : o > E + K || o <= -(E + K) ? (f.value = X.AREA_1, l = o > 0 ? o - ot : o + ot) : o > -(E + K) && o <= -K ? (f.value = X.AREA_2, l = o + E) : (f.value = X.AREA_3, l = o);
|
|
@@ -13889,7 +13900,7 @@ function Bd(e) {
|
|
|
13889
13900
|
}
|
|
13890
13901
|
return u = Math.atan(12 / ot * (l + Math.acos(Math.sin(l) * Math.cos(K)) - E)), h = Math.sqrt((1 - Math.cos(a)) / (Math.cos(u) * Math.cos(u)) / (1 - Math.cos(Math.atan(1 / Math.cos(l))))), f.value === X.AREA_1 ? u += E : f.value === X.AREA_2 ? u += ot : f.value === X.AREA_3 && (u += 1.5 * ot), i.x = h * Math.cos(u), i.y = h * 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;
|
|
13891
13902
|
}
|
|
13892
|
-
function
|
|
13903
|
+
function Dd(e) {
|
|
13893
13904
|
var i = { lam: 0, phi: 0 }, s, o, l, a, h, u, f, p, M, g = { value: 0 };
|
|
13894
13905
|
if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, o = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), s = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? g.value = X.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (g.value = X.AREA_1, s -= E) : e.x < 0 && -e.x >= Math.abs(e.y) ? (g.value = X.AREA_2, s = s < 0 ? s + ot : s - ot) : (g.value = X.AREA_3, s += E), M = ot / 12 * Math.tan(s), h = Math.sin(M) / (Math.cos(M) - 1 / Math.sqrt(2)), u = Math.atan(h), l = Math.cos(s), a = Math.tan(o), f = 1 - l * l * a * a * (1 - Math.cos(Math.atan(1 / Math.cos(u)))), f < -1 ? f = -1 : f > 1 && (f = 1), this.face === nt.TOP)
|
|
13895
13906
|
p = Math.acos(f), i.phi = E - p, g.value === X.AREA_0 ? i.lam = u + E : g.value === X.AREA_1 ? i.lam = u < 0 ? u + ot : u - ot : g.value === X.AREA_2 ? i.lam = u - E : i.lam = u;
|
|
@@ -13913,12 +13924,12 @@ function Ee(e, i) {
|
|
|
13913
13924
|
var s = e + i;
|
|
13914
13925
|
return s < -ot ? s += ai : s > +ot && (s -= ai), s;
|
|
13915
13926
|
}
|
|
13916
|
-
var
|
|
13917
|
-
const
|
|
13918
|
-
init:
|
|
13919
|
-
forward:
|
|
13920
|
-
inverse:
|
|
13921
|
-
names:
|
|
13927
|
+
var Rd = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
|
|
13928
|
+
const Zd = {
|
|
13929
|
+
init: Bd,
|
|
13930
|
+
forward: Nd,
|
|
13931
|
+
inverse: Dd,
|
|
13932
|
+
names: Rd
|
|
13922
13933
|
};
|
|
13923
13934
|
var Fn = [
|
|
13924
13935
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
@@ -13960,12 +13971,12 @@ var Fn = [
|
|
|
13960
13971
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
13961
13972
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
13962
13973
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
13963
|
-
], cr = 0.8487, dr = 1.3523, fr = Ht / 5,
|
|
13974
|
+
], cr = 0.8487, dr = 1.3523, fr = Ht / 5, Gd = 1 / fr, ke = 18, Vi = function(e, i) {
|
|
13964
13975
|
return e[0] + i * (e[1] + i * (e[2] + i * e[3]));
|
|
13965
|
-
},
|
|
13976
|
+
}, Fd = function(e, i) {
|
|
13966
13977
|
return e[1] + i * (2 * e[2] + i * 3 * e[3]);
|
|
13967
13978
|
};
|
|
13968
|
-
function
|
|
13979
|
+
function Hd(e, i, s, o) {
|
|
13969
13980
|
for (var l = i; o; --o) {
|
|
13970
13981
|
var a = e(l);
|
|
13971
13982
|
if (l -= a, Math.abs(a) < s)
|
|
@@ -13973,19 +13984,19 @@ function Fd(e, i, s, o) {
|
|
|
13973
13984
|
}
|
|
13974
13985
|
return l;
|
|
13975
13986
|
}
|
|
13976
|
-
function
|
|
13987
|
+
function Ud() {
|
|
13977
13988
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
13978
13989
|
}
|
|
13979
|
-
function
|
|
13990
|
+
function qd(e) {
|
|
13980
13991
|
var i = O(e.x - this.long0), s = Math.abs(e.y), o = Math.floor(s * fr);
|
|
13981
|
-
o < 0 ? o = 0 : o >= ke && (o = ke - 1), s = Ht * (s -
|
|
13992
|
+
o < 0 ? o = 0 : o >= ke && (o = ke - 1), s = Ht * (s - Gd * o);
|
|
13982
13993
|
var l = {
|
|
13983
13994
|
x: Vi(Fn[o], s) * i,
|
|
13984
13995
|
y: Vi(Qe[o], s)
|
|
13985
13996
|
};
|
|
13986
13997
|
return e.y < 0 && (l.y = -l.y), l.x = l.x * this.a * cr + this.x0, l.y = l.y * this.a * dr + this.y0, l;
|
|
13987
13998
|
}
|
|
13988
|
-
function
|
|
13999
|
+
function jd(e) {
|
|
13989
14000
|
var i = {
|
|
13990
14001
|
x: (e.x - this.x0) / (this.a * cr),
|
|
13991
14002
|
y: Math.abs(e.y - this.y0) / (this.a * dr)
|
|
@@ -14002,36 +14013,36 @@ function qd(e) {
|
|
|
14002
14013
|
else
|
|
14003
14014
|
break;
|
|
14004
14015
|
var o = Qe[s], l = 5 * (i.y - o[0]) / (Qe[s + 1][0] - o[0]);
|
|
14005
|
-
l =
|
|
14006
|
-
return (Vi(o, a) - i.y) /
|
|
14016
|
+
l = Hd(function(a) {
|
|
14017
|
+
return (Vi(o, a) - i.y) / Fd(o, a);
|
|
14007
14018
|
}, l, I, 100), i.x /= Vi(Fn[s], l), i.y = (5 * s + l) * _t, e.y < 0 && (i.y = -i.y);
|
|
14008
14019
|
}
|
|
14009
14020
|
return i.x = O(i.x + this.long0), i;
|
|
14010
14021
|
}
|
|
14011
|
-
var
|
|
14012
|
-
const
|
|
14013
|
-
init:
|
|
14014
|
-
forward:
|
|
14015
|
-
inverse:
|
|
14016
|
-
names:
|
|
14022
|
+
var Wd = ["Robinson", "robin"];
|
|
14023
|
+
const Vd = {
|
|
14024
|
+
init: Ud,
|
|
14025
|
+
forward: qd,
|
|
14026
|
+
inverse: jd,
|
|
14027
|
+
names: Wd
|
|
14017
14028
|
};
|
|
14018
|
-
function
|
|
14029
|
+
function $d() {
|
|
14019
14030
|
this.name = "geocent";
|
|
14020
14031
|
}
|
|
14021
|
-
function
|
|
14032
|
+
function Kd(e) {
|
|
14022
14033
|
var i = tr(e, this.es, this.a);
|
|
14023
14034
|
return i;
|
|
14024
14035
|
}
|
|
14025
|
-
function
|
|
14036
|
+
function Xd(e) {
|
|
14026
14037
|
var i = er(e, this.es, this.a, this.b);
|
|
14027
14038
|
return i;
|
|
14028
14039
|
}
|
|
14029
|
-
var
|
|
14030
|
-
const
|
|
14031
|
-
init:
|
|
14032
|
-
forward:
|
|
14033
|
-
inverse:
|
|
14034
|
-
names:
|
|
14040
|
+
var Jd = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
14041
|
+
const Qd = {
|
|
14042
|
+
init: $d,
|
|
14043
|
+
forward: Kd,
|
|
14044
|
+
inverse: Xd,
|
|
14045
|
+
names: Jd
|
|
14035
14046
|
};
|
|
14036
14047
|
var pt = {
|
|
14037
14048
|
N_POLE: 0,
|
|
@@ -14050,7 +14061,7 @@ var pt = {
|
|
|
14050
14061
|
lat0: { def: 0, num: !0 }
|
|
14051
14062
|
// default is Equator, conversion to rad is automatic
|
|
14052
14063
|
};
|
|
14053
|
-
function
|
|
14064
|
+
function Yd() {
|
|
14054
14065
|
if (Object.keys(Ke).forEach((function(s) {
|
|
14055
14066
|
if (typeof this[s] > "u")
|
|
14056
14067
|
this[s] = Ke[s].def;
|
|
@@ -14066,7 +14077,7 @@ function Qd() {
|
|
|
14066
14077
|
var e = this.tilt, i = this.azi;
|
|
14067
14078
|
this.cg = Math.cos(i), this.sg = Math.sin(i), this.cw = Math.cos(e), this.sw = Math.sin(e);
|
|
14068
14079
|
}
|
|
14069
|
-
function
|
|
14080
|
+
function tf(e) {
|
|
14070
14081
|
e.x -= this.long0;
|
|
14071
14082
|
var i = Math.sin(e.y), s = Math.cos(e.y), o = Math.cos(e.x), l, a;
|
|
14072
14083
|
switch (this.mode) {
|
|
@@ -14100,7 +14111,7 @@ function Yd(e) {
|
|
|
14100
14111
|
var h, u;
|
|
14101
14112
|
return h = a * this.cg + l * this.sg, u = 1 / (h * this.sw * this.h1 + this.cw), l = (l * this.cg - a * this.sg) * this.cw * u, a = h * u, e.x = l * this.a, e.y = a * this.a, e;
|
|
14102
14113
|
}
|
|
14103
|
-
function
|
|
14114
|
+
function ef(e) {
|
|
14104
14115
|
e.x /= this.a, e.y /= this.a;
|
|
14105
14116
|
var i = { x: e.x, y: e.y }, s, o, l;
|
|
14106
14117
|
l = 1 / (this.pn1 - e.y * this.sw), s = this.pn1 * e.x * l, o = this.pn1 * e.y * this.cw * l, e.x = s * this.cg + o * this.sg, e.y = o * this.cg - s * this.sg;
|
|
@@ -14127,14 +14138,14 @@ function tf(e) {
|
|
|
14127
14138
|
}
|
|
14128
14139
|
return e.x = i.x + this.long0, e.y = i.y, e;
|
|
14129
14140
|
}
|
|
14130
|
-
var
|
|
14131
|
-
const
|
|
14132
|
-
init:
|
|
14133
|
-
forward:
|
|
14134
|
-
inverse:
|
|
14135
|
-
names:
|
|
14141
|
+
var nf = ["Tilted_Perspective", "tpers"];
|
|
14142
|
+
const sf = {
|
|
14143
|
+
init: Yd,
|
|
14144
|
+
forward: tf,
|
|
14145
|
+
inverse: ef,
|
|
14146
|
+
names: nf
|
|
14136
14147
|
};
|
|
14137
|
-
function
|
|
14148
|
+
function af() {
|
|
14138
14149
|
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)
|
|
14139
14150
|
throw new Error();
|
|
14140
14151
|
if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
|
|
@@ -14144,7 +14155,7 @@ function sf() {
|
|
|
14144
14155
|
this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
|
|
14145
14156
|
this.title || (this.title = "Geostationary Satellite View");
|
|
14146
14157
|
}
|
|
14147
|
-
function
|
|
14158
|
+
function rf(e) {
|
|
14148
14159
|
var i = e.x, s = e.y, o, l, a, h;
|
|
14149
14160
|
if (i = i - this.long0, this.shape === "ellipse") {
|
|
14150
14161
|
s = Math.atan(this.radius_p2 * Math.tan(s));
|
|
@@ -14155,7 +14166,7 @@ function af(e) {
|
|
|
14155
14166
|
} else this.shape === "sphere" && (o = Math.cos(s), l = Math.cos(i) * o, a = Math.sin(i) * o, h = Math.sin(s), o = this.radius_g - l, this.flip_axis ? (e.x = this.radius_g_1 * Math.atan(a / Pt(h, o)), e.y = this.radius_g_1 * Math.atan(h / o)) : (e.x = this.radius_g_1 * Math.atan(a / o), e.y = this.radius_g_1 * Math.atan(h / Pt(a, o))));
|
|
14156
14167
|
return e.x = e.x * this.a, e.y = e.y * this.a, e;
|
|
14157
14168
|
}
|
|
14158
|
-
function
|
|
14169
|
+
function of(e) {
|
|
14159
14170
|
var i = -1, s = 0, o = 0, l, a, h, u;
|
|
14160
14171
|
if (e.x = e.x / this.a, e.y = e.y / this.a, this.shape === "ellipse") {
|
|
14161
14172
|
this.flip_axis ? (o = Math.tan(e.y / this.radius_g_1), s = Math.tan(e.x / this.radius_g_1) * Pt(1, o)) : (s = Math.tan(e.x / this.radius_g_1), o = Math.tan(e.y / this.radius_g_1) * Pt(1, s));
|
|
@@ -14170,37 +14181,37 @@ function rf(e) {
|
|
|
14170
14181
|
}
|
|
14171
14182
|
return e.x = e.x + this.long0, e;
|
|
14172
14183
|
}
|
|
14173
|
-
var
|
|
14174
|
-
const
|
|
14175
|
-
init:
|
|
14176
|
-
forward:
|
|
14177
|
-
inverse:
|
|
14178
|
-
names:
|
|
14184
|
+
var hf = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
|
|
14185
|
+
const lf = {
|
|
14186
|
+
init: af,
|
|
14187
|
+
forward: rf,
|
|
14188
|
+
inverse: of,
|
|
14189
|
+
names: hf
|
|
14179
14190
|
};
|
|
14180
14191
|
var ti = 1.340264, ei = -0.081106, ii = 893e-6, ni = 3796e-6, $i = Math.sqrt(3) / 2;
|
|
14181
|
-
function
|
|
14192
|
+
function uf() {
|
|
14182
14193
|
this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
|
|
14183
14194
|
}
|
|
14184
|
-
function
|
|
14195
|
+
function cf(e) {
|
|
14185
14196
|
var i = O(e.x - this.long0), s = e.y, o = Math.asin($i * Math.sin(s)), l = o * o, a = l * l * l;
|
|
14186
14197
|
return e.x = i * Math.cos(o) / ($i * (ti + 3 * ei * l + a * (7 * ii + 9 * ni * l))), e.y = o * (ti + ei * l + a * (ii + ni * l)), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
|
|
14187
14198
|
}
|
|
14188
|
-
function
|
|
14199
|
+
function df(e) {
|
|
14189
14200
|
e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a;
|
|
14190
14201
|
var i = 1e-9, s = 12, o = e.y, l, a, h, u, f, p;
|
|
14191
14202
|
for (p = 0; p < s && (l = o * o, a = l * l * l, h = o * (ti + ei * l + a * (ii + ni * l)) - e.y, u = ti + 3 * ei * l + a * (7 * ii + 9 * ni * l), o -= f = h / u, !(Math.abs(f) < i)); ++p)
|
|
14192
14203
|
;
|
|
14193
14204
|
return l = o * o, a = l * l * l, e.x = $i * e.x * (ti + 3 * ei * l + a * (7 * ii + 9 * ni * l)) / Math.cos(o), e.y = Math.asin(Math.sin(o) / $i), e.x = O(e.x + this.long0), e;
|
|
14194
14205
|
}
|
|
14195
|
-
var
|
|
14196
|
-
const
|
|
14197
|
-
init:
|
|
14198
|
-
forward:
|
|
14199
|
-
inverse:
|
|
14200
|
-
names:
|
|
14206
|
+
var ff = ["eqearth", "Equal Earth", "Equal_Earth"];
|
|
14207
|
+
const _f = {
|
|
14208
|
+
init: uf,
|
|
14209
|
+
forward: cf,
|
|
14210
|
+
inverse: df,
|
|
14211
|
+
names: ff
|
|
14201
14212
|
};
|
|
14202
14213
|
var hi = 1e-10;
|
|
14203
|
-
function
|
|
14214
|
+
function mf() {
|
|
14204
14215
|
var e;
|
|
14205
14216
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < hi)
|
|
14206
14217
|
throw new Error();
|
|
@@ -14209,13 +14220,13 @@ function _f() {
|
|
|
14209
14220
|
this.am1 = Math.sin(this.phi1),
|
|
14210
14221
|
e = Math.cos(this.phi1),
|
|
14211
14222
|
this.en
|
|
14212
|
-
), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse =
|
|
14223
|
+
), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = gf, this.forward = pf) : (Math.abs(this.phi1) + hi >= E ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = yf, this.forward = vf);
|
|
14213
14224
|
}
|
|
14214
|
-
function
|
|
14225
|
+
function pf(e) {
|
|
14215
14226
|
var i = O(e.x - (this.long0 || 0)), s = e.y, o, l, a;
|
|
14216
14227
|
return o = this.am1 + this.m1 - Ie(s, l = Math.sin(s), a = Math.cos(s), this.en), l = a * i / (o * Math.sqrt(1 - this.es * l * l)), e.x = o * Math.sin(l), e.y = this.am1 - o * Math.cos(l), e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
|
|
14217
14228
|
}
|
|
14218
|
-
function
|
|
14229
|
+
function gf(e) {
|
|
14219
14230
|
e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
|
|
14220
14231
|
var i, s, o, l;
|
|
14221
14232
|
if (s = Pt(e.x, e.y = this.am1 - e.y), l = $n(this.am1 + this.m1 - s, this.es, this.en), (i = Math.abs(l)) < E)
|
|
@@ -14226,24 +14237,24 @@ function pf(e) {
|
|
|
14226
14237
|
throw new Error();
|
|
14227
14238
|
return e.x = O(o + (this.long0 || 0)), e.y = se(l), e;
|
|
14228
14239
|
}
|
|
14229
|
-
function
|
|
14240
|
+
function vf(e) {
|
|
14230
14241
|
var i = O(e.x - (this.long0 || 0)), s = e.y, o, l;
|
|
14231
14242
|
return l = this.cphi1 + this.phi1 - s, Math.abs(l) > hi ? (e.x = l * Math.sin(o = i * Math.cos(s) / l), e.y = this.cphi1 - l * Math.cos(o)) : e.x = e.y = 0, e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
|
|
14232
14243
|
}
|
|
14233
|
-
function
|
|
14244
|
+
function yf(e) {
|
|
14234
14245
|
e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
|
|
14235
14246
|
var i, s, o = Pt(e.x, e.y = this.cphi1 - e.y);
|
|
14236
14247
|
if (s = this.cphi1 + this.phi1 - o, Math.abs(s) > E)
|
|
14237
14248
|
throw new Error();
|
|
14238
14249
|
return Math.abs(Math.abs(s) - E) <= hi ? i = 0 : i = o * Math.atan2(e.x, e.y) / Math.cos(s), e.x = O(i + (this.long0 || 0)), e.y = se(s), e;
|
|
14239
14250
|
}
|
|
14240
|
-
var
|
|
14241
|
-
const
|
|
14242
|
-
init:
|
|
14243
|
-
names:
|
|
14251
|
+
var Mf = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
14252
|
+
const xf = {
|
|
14253
|
+
init: mf,
|
|
14254
|
+
names: Mf
|
|
14244
14255
|
};
|
|
14245
|
-
function
|
|
14246
|
-
e.Proj.projections.add(Gi), e.Proj.projections.add(Fi), e.Proj.projections.add(
|
|
14256
|
+
function Lf(e) {
|
|
14257
|
+
e.Proj.projections.add(Gi), e.Proj.projections.add(Fi), e.Proj.projections.add(mu), e.Proj.projections.add(Pu), e.Proj.projections.add(Au), e.Proj.projections.add(Nu), e.Proj.projections.add(Hu), e.Proj.projections.add(Vu), e.Proj.projections.add(Qu), e.Proj.projections.add(nc), e.Proj.projections.add(Mc), e.Proj.projections.add(Cc), e.Proj.projections.add(Ac), e.Proj.projections.add(Dc), e.Proj.projections.add(Hc), e.Proj.projections.add(Vc), e.Proj.projections.add(Qc), e.Proj.projections.add(nd), e.Proj.projections.add(ld), e.Proj.projections.add(_d), e.Proj.projections.add(yd), e.Proj.projections.add(bd), e.Proj.projections.add(Ed), e.Proj.projections.add(zd), e.Proj.projections.add(Zd), e.Proj.projections.add(Vd), e.Proj.projections.add(Qd), e.Proj.projections.add(sf), e.Proj.projections.add(lf), e.Proj.projections.add(_f), e.Proj.projections.add(xf);
|
|
14247
14258
|
}
|
|
14248
14259
|
Tt.defaultDatum = "WGS84";
|
|
14249
14260
|
Tt.Proj = Ut;
|
|
@@ -14251,19 +14262,19 @@ Tt.WGS84 = new Tt.Proj("WGS84");
|
|
|
14251
14262
|
Tt.Point = Se;
|
|
14252
14263
|
Tt.toPoint = ir;
|
|
14253
14264
|
Tt.defs = vt;
|
|
14254
|
-
Tt.nadgrid =
|
|
14265
|
+
Tt.nadgrid = gl;
|
|
14255
14266
|
Tt.transform = ji;
|
|
14256
|
-
Tt.mgrs =
|
|
14267
|
+
Tt.mgrs = Ol;
|
|
14257
14268
|
Tt.version = "__VERSION__";
|
|
14258
|
-
|
|
14259
|
-
const
|
|
14269
|
+
Lf(Tt);
|
|
14270
|
+
const wf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14260
14271
|
__proto__: null,
|
|
14261
14272
|
default: Tt
|
|
14262
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
14273
|
+
}, Symbol.toStringTag, { value: "Module" })), bf = /* @__PURE__ */ Ho(wf);
|
|
14263
14274
|
(function(e) {
|
|
14264
14275
|
(function(i) {
|
|
14265
14276
|
var s, o;
|
|
14266
|
-
s = Hn(), o =
|
|
14277
|
+
s = Hn(), o = bf, e.exports = i(s, o);
|
|
14267
14278
|
})(function(i, s) {
|
|
14268
14279
|
return s.__esModule && s.default && (s = s.default), i.Proj = {}, i.Proj._isProj4Obj = function(o) {
|
|
14269
14280
|
return typeof o.inverse < "u" && typeof o.forward < "u";
|
|
@@ -14376,31 +14387,31 @@ const Lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14376
14387
|
return new i.Proj.ImageOverlay(o, l, a);
|
|
14377
14388
|
}, i.Proj;
|
|
14378
14389
|
});
|
|
14379
|
-
})(
|
|
14380
|
-
function
|
|
14390
|
+
})(Eh);
|
|
14391
|
+
function Tf() {
|
|
14381
14392
|
const e = Uo();
|
|
14382
14393
|
return {
|
|
14383
14394
|
mapType: e.mapType,
|
|
14384
14395
|
tileType: e.tileType
|
|
14385
14396
|
};
|
|
14386
14397
|
}
|
|
14387
|
-
function
|
|
14398
|
+
function Pf(e) {
|
|
14388
14399
|
Un({
|
|
14389
14400
|
tileType: e.tileType ? e.tileType : "Normal",
|
|
14390
14401
|
mapType: e.mapType
|
|
14391
14402
|
});
|
|
14392
14403
|
}
|
|
14393
|
-
function
|
|
14404
|
+
function Ef(e) {
|
|
14394
14405
|
Un({
|
|
14395
14406
|
mapInfoShow: e
|
|
14396
14407
|
});
|
|
14397
14408
|
}
|
|
14398
|
-
function
|
|
14409
|
+
function Sf(e) {
|
|
14399
14410
|
Un({
|
|
14400
14411
|
clusterType: e
|
|
14401
14412
|
});
|
|
14402
14413
|
}
|
|
14403
|
-
function
|
|
14414
|
+
function Af(e) {
|
|
14404
14415
|
var g, c, m;
|
|
14405
14416
|
const i = [];
|
|
14406
14417
|
st.CRS.Baidu = new st.Proj.CRS(
|
|
@@ -14443,13 +14454,13 @@ function Sf(e) {
|
|
|
14443
14454
|
Hi("clusterType", (v) => {
|
|
14444
14455
|
!v || v == "NORMAL" ? a.setMaxClusterRadius(80) : a.setMaxClusterRadius(-1);
|
|
14445
14456
|
})
|
|
14446
|
-
), e.tileType &&
|
|
14457
|
+
), e.tileType && Pf(e.tileType), i.push(
|
|
14447
14458
|
Vo("Normal", s, { rightBottomTextHandle: o, direct: (m = e.tileType) == null ? void 0 : m.direct })
|
|
14448
14459
|
);
|
|
14449
|
-
const l = we("clusterType")[0], a = new
|
|
14460
|
+
const l = we("clusterType")[0], a = new ah(s, {
|
|
14450
14461
|
...e.renderOptions,
|
|
14451
14462
|
clusterType: l
|
|
14452
|
-
}), h = new
|
|
14463
|
+
}), h = new uh(s), u = new dh(s);
|
|
14453
14464
|
function f(v) {
|
|
14454
14465
|
const b = v.map((C) => C.getBounds()).filter((C) => C);
|
|
14455
14466
|
if (b && b.length > 0) {
|
|
@@ -14461,7 +14472,7 @@ function Sf(e) {
|
|
|
14461
14472
|
s.fitBounds(C, { maxZoom: 18 });
|
|
14462
14473
|
}
|
|
14463
14474
|
}
|
|
14464
|
-
const p = new
|
|
14475
|
+
const p = new Th(s), M = new IntersectionObserver((v) => {
|
|
14465
14476
|
v.forEach((x) => {
|
|
14466
14477
|
x.target.isSameNode(e.container) && e.container.clientWidth && (s == null || s._onResize());
|
|
14467
14478
|
});
|
|
@@ -14558,14 +14569,14 @@ function Sf(e) {
|
|
|
14558
14569
|
};
|
|
14559
14570
|
}
|
|
14560
14571
|
export {
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14572
|
+
Af as CreateMap,
|
|
14573
|
+
Tf as GetCurrentTileType,
|
|
14574
|
+
Cf as L,
|
|
14564
14575
|
Ua as LeaflePolygonEditHandle,
|
|
14565
14576
|
qa as LeafletCicleEditHandle,
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14577
|
+
kf as ParseShapeType,
|
|
14578
|
+
Ef as SetMapBottomLeftShow,
|
|
14579
|
+
Sf as SetMapClusterType,
|
|
14580
|
+
Pf as SwichTileType
|
|
14570
14581
|
};
|
|
14571
14582
|
//# sourceMappingURL=main.js.map
|