@performant-software/geospatial 3.1.0-beta.2 → 3.1.0
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/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs201.js +7 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -7
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs74.js +1 -743
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs76.js +9 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +17 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +743 -9
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -17
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.es15.js +4 -4
- package/dist/index.es16.js +3 -3
- package/dist/index.es17.js +3 -3
- package/dist/index.es18.js +1 -1
- package/dist/index.es188.js +1 -1
- package/dist/index.es189.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +2 -2
- package/dist/index.es193.js +3 -3
- package/dist/index.es194.js +1 -1
- package/dist/index.es195.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es198.js +2 -2
- package/dist/index.es199.js +3 -3
- package/dist/index.es20.js +1 -1
- package/dist/index.es201.js +7505 -241
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +2 -43
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +243 -3
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +40 -8
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +3 -11
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +9 -29
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +10 -13
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +30 -4
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +13 -7506
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es210.js +5 -2
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es213.js +1 -1
- package/dist/index.es214.js +1 -1
- package/dist/index.es215.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es233.js +1 -1
- package/dist/index.es238.js +22 -18
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +16 -22
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +28 -22
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +20 -15
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +74 -30
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +20 -21
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +37 -71
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +48 -19
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +7 -40
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +19 -48
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +65 -7
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +40 -18
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es250.js +58 -60
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +8 -42
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +3 -63
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +12 -8
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +59 -3
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +48 -11
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +6 -58
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +3 -50
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +21 -3
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +22 -5
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +4 -6
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es262.js +4 -4
- package/dist/index.es263.js +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +2 -2
- package/dist/index.es29.js +2 -2
- package/dist/index.es31.js +1 -1
- package/dist/index.es38.js +1 -1
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es74.js +7 -21351
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es76.js +25 -7
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +589 -2
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +21351 -25
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +2 -589
- package/dist/index.es79.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MapControl.js +0 -1
- package/types/components/MapControl.js.flow +0 -1
package/dist/index.es256.js
CHANGED
|
@@ -1,63 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
return +t ? Y(e, t) : X(e);
|
|
7
|
-
}
|
|
8
|
-
function X(e) {
|
|
9
|
-
return V({
|
|
10
|
-
point: function(t, D) {
|
|
11
|
-
t = e(t, D), this.stream.point(t[0], t[1]);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function Y(e, t) {
|
|
16
|
-
function D(i, P, q, L, M, T, w, $, r, u, l, c, s, n) {
|
|
17
|
-
var E = w - i, S = $ - P, v = E * E + S * S;
|
|
18
|
-
if (v > 4 * t && s--) {
|
|
19
|
-
var p = L + u, a = M + l, g = T + c, y = Q(p * p + a * a + g * g), o = O(g /= y), f = B(B(g) - 1) < H || B(q - r) < H ? (q + r) / 2 : K(a, p), k = e(f, o), N = k[0], A = k[1], C = N - i, F = A - P, G = S * C - E * F;
|
|
20
|
-
(G * G / v > t || B((E * C + S * F) / v - 0.5) > 0.3 || L * u + M * l + T * c < W) && (D(i, P, q, L, M, T, N, A, f, p /= y, a /= y, g, s, n), n.point(N, A), D(N, A, f, p, a, g, w, $, r, u, l, c, s, n));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return function(i) {
|
|
24
|
-
var P, q, L, M, T, w, $, r, u, l, c, s, n = {
|
|
25
|
-
point: E,
|
|
26
|
-
lineStart: S,
|
|
27
|
-
lineEnd: p,
|
|
28
|
-
polygonStart: function() {
|
|
29
|
-
i.polygonStart(), n.lineStart = a;
|
|
30
|
-
},
|
|
31
|
-
polygonEnd: function() {
|
|
32
|
-
i.polygonEnd(), n.lineStart = S;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
function E(o, f) {
|
|
36
|
-
o = e(o, f), i.point(o[0], o[1]);
|
|
37
|
-
}
|
|
38
|
-
function S() {
|
|
39
|
-
r = NaN, n.point = v, i.lineStart();
|
|
40
|
-
}
|
|
41
|
-
function v(o, f) {
|
|
42
|
-
var k = J([o, f]), N = e(o, f);
|
|
43
|
-
D(r, u, $, l, c, s, r = N[0], u = N[1], $ = o, l = k[0], c = k[1], s = k[2], I, i), i.point(r, u);
|
|
44
|
-
}
|
|
45
|
-
function p() {
|
|
46
|
-
n.point = E, i.lineEnd();
|
|
47
|
-
}
|
|
48
|
-
function a() {
|
|
49
|
-
S(), n.point = g, n.lineEnd = y;
|
|
50
|
-
}
|
|
51
|
-
function g(o, f) {
|
|
52
|
-
v(P = o, f), q = r, L = u, M = l, T = c, w = s, n.point = v;
|
|
53
|
-
}
|
|
54
|
-
function y() {
|
|
55
|
-
D(r, u, $, l, c, s, q, L, P, M, T, w, I, i), n.lineEnd = p, p();
|
|
56
|
-
}
|
|
57
|
-
return n;
|
|
1
|
+
import { MAX_ARRAY_INDEX as o } from "./index.es36.js";
|
|
2
|
+
function u(e) {
|
|
3
|
+
return function(t) {
|
|
4
|
+
var r = e(t);
|
|
5
|
+
return typeof r == "number" && r >= 0 && r <= o;
|
|
58
6
|
};
|
|
59
7
|
}
|
|
60
8
|
export {
|
|
61
|
-
|
|
9
|
+
u as default
|
|
62
10
|
};
|
|
63
11
|
//# sourceMappingURL=index.es256.js.map
|
package/dist/index.es256.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es256.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es256.js","sources":["../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AAC1B,QAAIC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EACjF;AACF;","x_google_ignoreList":[0]}
|
package/dist/index.es257.js
CHANGED
|
@@ -1,53 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
var u = {
|
|
5
|
-
Feature: function(n, i) {
|
|
6
|
-
l(n.geometry, i);
|
|
7
|
-
},
|
|
8
|
-
FeatureCollection: function(n, i) {
|
|
9
|
-
for (var e = n.features, t = -1, o = e.length; ++t < o; ) l(e[t].geometry, i);
|
|
10
|
-
}
|
|
11
|
-
}, f = {
|
|
12
|
-
Sphere: function(n, i) {
|
|
13
|
-
i.sphere();
|
|
14
|
-
},
|
|
15
|
-
Point: function(n, i) {
|
|
16
|
-
n = n.coordinates, i.point(n[0], n[1], n[2]);
|
|
17
|
-
},
|
|
18
|
-
MultiPoint: function(n, i) {
|
|
19
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) n = e[t], i.point(n[0], n[1], n[2]);
|
|
20
|
-
},
|
|
21
|
-
LineString: function(n, i) {
|
|
22
|
-
a(n.coordinates, i, 0);
|
|
23
|
-
},
|
|
24
|
-
MultiLineString: function(n, i) {
|
|
25
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) a(e[t], i, 0);
|
|
26
|
-
},
|
|
27
|
-
Polygon: function(n, i) {
|
|
28
|
-
h(n.coordinates, i);
|
|
29
|
-
},
|
|
30
|
-
MultiPolygon: function(n, i) {
|
|
31
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) h(e[t], i);
|
|
32
|
-
},
|
|
33
|
-
GeometryCollection: function(n, i) {
|
|
34
|
-
for (var e = n.geometries, t = -1, o = e.length; ++t < o; ) l(e[t], i);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
function a(n, i, e) {
|
|
38
|
-
var t = -1, o = n.length - e, r;
|
|
39
|
-
for (i.lineStart(); ++t < o; ) r = n[t], i.point(r[0], r[1], r[2]);
|
|
40
|
-
i.lineEnd();
|
|
41
|
-
}
|
|
42
|
-
function h(n, i) {
|
|
43
|
-
var e = -1, t = n.length;
|
|
44
|
-
for (i.polygonStart(); ++e < t; ) a(n[e], i, 1);
|
|
45
|
-
i.polygonEnd();
|
|
46
|
-
}
|
|
47
|
-
function g(n, i) {
|
|
48
|
-
n && u.hasOwnProperty(n.type) ? u[n.type](n, i) : l(n, i);
|
|
49
|
-
}
|
|
1
|
+
import t from "./index.es211.js";
|
|
2
|
+
const a = t("Object");
|
|
50
3
|
export {
|
|
51
|
-
|
|
4
|
+
a as default
|
|
52
5
|
};
|
|
53
6
|
//# sourceMappingURL=index.es257.js.map
|
package/dist/index.es257.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es257.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es257.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAAA,IAAeC,EAAU,QAAQ;","x_google_ignoreList":[0]}
|
package/dist/index.es258.js
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { deepEqual as a } from "./index.es208.js";
|
|
2
|
+
function g(i) {
|
|
3
|
+
return {
|
|
4
|
+
longitude: i.center.lng,
|
|
5
|
+
latitude: i.center.lat,
|
|
6
|
+
zoom: i.zoom,
|
|
7
|
+
pitch: i.pitch,
|
|
8
|
+
bearing: i.bearing,
|
|
9
|
+
padding: i.padding
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function c(i, t) {
|
|
13
|
+
const n = t.viewState || t, e = {};
|
|
14
|
+
if ("longitude" in n && "latitude" in n && (n.longitude !== i.center.lng || n.latitude !== i.center.lat)) {
|
|
15
|
+
const o = i.center.constructor;
|
|
16
|
+
e.center = new o(n.longitude, n.latitude);
|
|
17
|
+
}
|
|
18
|
+
return "zoom" in n && n.zoom !== i.zoom && (e.zoom = n.zoom), "bearing" in n && n.bearing !== i.bearing && (e.bearing = n.bearing), "pitch" in n && n.pitch !== i.pitch && (e.pitch = n.pitch), n.padding && i.padding && !a(n.padding, i.padding) && (e.padding = n.padding), e;
|
|
19
|
+
}
|
|
3
20
|
export {
|
|
4
|
-
|
|
21
|
+
c as applyViewStateToTransform,
|
|
22
|
+
g as transformToViewState
|
|
5
23
|
};
|
|
6
24
|
//# sourceMappingURL=index.es258.js.map
|
package/dist/index.es258.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es258.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es258.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v","changes","LngLat","deepEqual"],"mappings":";AAMO,SAASA,EAAqBC,GAAI;AACrC,SAAO;AAAA,IACH,WAAWA,EAAG,OAAO;AAAA,IACrB,UAAUA,EAAG,OAAO;AAAA,IACpB,MAAMA,EAAG;AAAA,IACT,OAAOA,EAAG;AAAA,IACV,SAASA,EAAG;AAAA,IACZ,SAASA,EAAG;AAAA,EAAA;AAEpB;AAMO,SAASC,EAEhBD,GAEAE,GAAO;AACH,QAAMC,IAAID,EAAM,aAAaA,GACvBE,IAAU,CAAA;AAChB,MAAI,eAAeD,KACf,cAAcA,MACbA,EAAE,cAAcH,EAAG,OAAO,OAAOG,EAAE,aAAaH,EAAG,OAAO,MAAM;AACjE,UAAMK,IAASL,EAAG,OAAO;AAEzB,IAAAI,EAAQ,SAAS,IAAIC,EAAOF,EAAE,WAAWA,EAAE,QAAQ;AAAA,EACvD;AACA,SAAI,UAAUA,KAAKA,EAAE,SAASH,EAAG,SAC7BI,EAAQ,OAAOD,EAAE,OAEjB,aAAaA,KAAKA,EAAE,YAAYH,EAAG,YACnCI,EAAQ,UAAUD,EAAE,UAEpB,WAAWA,KAAKA,EAAE,UAAUH,EAAG,UAC/BI,EAAQ,QAAQD,EAAE,QAElBA,EAAE,WAAWH,EAAG,WAAW,CAACM,EAAUH,EAAE,SAASH,EAAG,OAAO,MAC3DI,EAAQ,UAAUD,EAAE,UAEjBC;AACX;","x_google_ignoreList":[0]}
|
package/dist/index.es259.js
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
|
|
2
|
+
function c(r) {
|
|
3
|
+
if (!r)
|
|
4
|
+
return null;
|
|
5
|
+
if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
|
|
6
|
+
return r;
|
|
7
|
+
const t = {};
|
|
8
|
+
for (const e of r.layers)
|
|
9
|
+
t[e.id] = e;
|
|
10
|
+
const f = r.layers.map((e) => {
|
|
11
|
+
let n = null;
|
|
12
|
+
"interactive" in e && (n = Object.assign({}, e), delete n.interactive);
|
|
13
|
+
const o = t[e.ref];
|
|
14
|
+
if (o) {
|
|
15
|
+
n = n || Object.assign({}, e), delete n.ref;
|
|
16
|
+
for (const i of a)
|
|
17
|
+
i in o && (n[i] = o[i]);
|
|
18
|
+
}
|
|
19
|
+
return n || e;
|
|
20
|
+
});
|
|
21
|
+
return { ...r, layers: f };
|
|
5
22
|
}
|
|
6
23
|
export {
|
|
7
|
-
|
|
24
|
+
c as normalizeStyle
|
|
8
25
|
};
|
|
9
26
|
//# sourceMappingURL=index.es259.js.map
|
package/dist/index.es259.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es259.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es259.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACD,WAAO;AAQX,MANI,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,KAAA,IAEd,CAACA,EAAM;AACP,WAAOA;AAEX,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAASF,EAAM;AACtB,IAAAC,EAAWC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAAAE,MAAS;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAGzC,OAAOE,EAAgB;AAI3B,UAAMC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACZD,EAAgBE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAC9B,CAAC;AAED,SAAO,EAAE,GAAGF,GAAO,QAAAG,EAAA;AACvB;","x_google_ignoreList":[0]}
|
package/dist/index.es260.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
var r = e(t);
|
|
5
|
-
return typeof r == "number" && r >= 0 && r <= o;
|
|
1
|
+
function t(r) {
|
|
2
|
+
return function(n) {
|
|
3
|
+
return n?.[r];
|
|
6
4
|
};
|
|
7
5
|
}
|
|
8
6
|
export {
|
|
9
|
-
|
|
7
|
+
t as default
|
|
10
8
|
};
|
|
11
9
|
//# sourceMappingURL=index.es260.js.map
|
package/dist/index.es260.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es260.js","sources":["../node_modules/underscore/modules/
|
|
1
|
+
{"version":3,"file":"index.es260.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"AACA,SAAwBA,EAAgBC,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAA8BA,IAAID,CAAG;AAAA,EACvC;AACF;","x_google_ignoreList":[0]}
|
package/dist/index.es262.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import A from "./index.
|
|
2
|
-
import D from "./index.
|
|
3
|
-
import { halfPi as S, epsilon as R } from "./index.
|
|
1
|
+
import A from "./index.es243.js";
|
|
2
|
+
import D from "./index.es245.js";
|
|
3
|
+
import { halfPi as S, epsilon as R } from "./index.es241.js";
|
|
4
4
|
import F from "./index.es193.js";
|
|
5
5
|
import "./index.es192.js";
|
|
6
|
-
import G from "./index.
|
|
6
|
+
import G from "./index.es246.js";
|
|
7
7
|
function T(e, p, m, v) {
|
|
8
8
|
return function(g, n) {
|
|
9
9
|
var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
|
package/dist/index.es263.js
CHANGED
package/dist/index.es27.js
CHANGED
package/dist/index.es28.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
2
|
import { useContext as s, useRef as f, useState as y, useMemo as m, useEffect as g, cloneElement as S } from "react";
|
|
3
3
|
import { MapContext as h } from "./index.es15.js";
|
|
4
|
-
import u from "./index.
|
|
5
|
-
import { deepEqual as C } from "./index.
|
|
4
|
+
import u from "./index.es210.js";
|
|
5
|
+
import { deepEqual as C } from "./index.es208.js";
|
|
6
6
|
let b = 0;
|
|
7
7
|
function k(t, e, a) {
|
|
8
8
|
if (t.style && t.style._loaded) {
|
package/dist/index.es29.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext as m, useRef as L, useState as g, useMemo as x, useEffect as h } from "react";
|
|
2
2
|
import { MapContext as b } from "./index.es15.js";
|
|
3
|
-
import d from "./index.
|
|
4
|
-
import { deepEqual as l } from "./index.
|
|
3
|
+
import d from "./index.es210.js";
|
|
4
|
+
import { deepEqual as l } from "./index.es208.js";
|
|
5
5
|
function k(t, e, a, o) {
|
|
6
6
|
if (d(a.id === o.id, "layer id changed"), d(a.type === o.type, "layer type changed"), a.type === "custom" || o.type === "custom")
|
|
7
7
|
return;
|
package/dist/index.es31.js
CHANGED
package/dist/index.es38.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { supportsDataView as e } from "./index.es36.js";
|
|
2
|
-
import a from "./index.
|
|
2
|
+
import a from "./index.es257.js";
|
|
3
3
|
var i = e && (!/\[native code\]/.test(String(DataView)) || a(new DataView(new ArrayBuffer(8)))), o = typeof Map < "u" && a(/* @__PURE__ */ new Map());
|
|
4
4
|
export {
|
|
5
5
|
i as hasDataViewBug,
|
package/dist/index.es7.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es7.js","sources":["../src/components/MapControl.js"],"sourcesContent":["// @flow\n\nimport { IControl } from 'maplibre-gl';\nimport {\n Children,\n cloneElement,\n useCallback,\n useEffect,\n useState\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { type MapboxMap, useControl } from 'react-map-gl/maplibre';\nimport _ from 'underscore';\n\n/**\n * Class to implement the IControl interface to allow custom controls to be drawn on the map.\n */\nclass IControlImpl implements IControl {\n _map: MapboxMap = null;\n _container: HTMLElement;\n _redraw: () => void;\n\n /**\n * Constructs a new IControlImpl object.\n *\n * @param redraw\n */\n constructor(redraw: () => void) {\n this._redraw = redraw;\n }\n\n /**\n * Creates the container when the component is added to the passed map.\n *\n * @param map\n *\n * @returns {HTMLElement}\n */\n onAdd(map) {\n this._map = map;\n map.on('move', this._redraw);\n\n this._container = document.createElement('div');\n this._container.className = 'maplibregl-ctrl-group maplibregl-ctrl';\n this._redraw();\n return this._container;\n }\n\n /**\n * Removes the container when the component is removed from the map.\n */\n onRemove() {\n this._container.remove();\n this._map.off('move', this._redraw);\n this._map = null;\n }\n\n /**\n * Returns the map instance.\n *\n * @returns {mapboxgl.Map}\n */\n getMap() {\n return this._map;\n }\n\n /**\n * Returns the container instance.\n *\n * @returns {HTMLElement}\n */\n getElement() {\n return this._container;\n }\n}\n\nconst MapControl = (props) => {\n const [, setVersion] = useState(0);\n\n /**\n * Forces the component to re-render on map move.\n *\n * @type {function(): void}\n */\n const forceUpdate = useCallback(() => setVersion((v) => v + 1), []);\n\n /**\n * Creates the map control.\n *\n * @type {IControlImpl}\n */\n const ctrl = useControl(() => new IControlImpl(forceUpdate), { position: props.position });\n\n /**\n * Sets the map instance.\n *\n * @type {mapboxgl.Map}\n */\n const map = ctrl.getMap();\n\n /**\n * Creates the list of children to be added to the map instance.\n *\n * @type {Array<$NonMaybeType<*>>}\n */\n const children = Children.map(_.compact(Children.toArray(props.children)), (child) => cloneElement(child, { map }));\n\n /**\n * Sets the map ref.\n */\n useEffect(() => {\n if (props.mapRef) {\n
|
|
1
|
+
{"version":3,"file":"index.es7.js","sources":["../src/components/MapControl.js"],"sourcesContent":["// @flow\n\nimport { IControl } from 'maplibre-gl';\nimport {\n Children,\n cloneElement,\n useCallback,\n useEffect,\n useState\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { type MapboxMap, useControl } from 'react-map-gl/maplibre';\nimport _ from 'underscore';\n\n/**\n * Class to implement the IControl interface to allow custom controls to be drawn on the map.\n */\nclass IControlImpl implements IControl {\n _map: MapboxMap = null;\n _container: HTMLElement;\n _redraw: () => void;\n\n /**\n * Constructs a new IControlImpl object.\n *\n * @param redraw\n */\n constructor(redraw: () => void) {\n this._redraw = redraw;\n }\n\n /**\n * Creates the container when the component is added to the passed map.\n *\n * @param map\n *\n * @returns {HTMLElement}\n */\n onAdd(map) {\n this._map = map;\n map.on('move', this._redraw);\n\n this._container = document.createElement('div');\n this._container.className = 'maplibregl-ctrl-group maplibregl-ctrl';\n this._redraw();\n return this._container;\n }\n\n /**\n * Removes the container when the component is removed from the map.\n */\n onRemove() {\n this._container.remove();\n this._map.off('move', this._redraw);\n this._map = null;\n }\n\n /**\n * Returns the map instance.\n *\n * @returns {mapboxgl.Map}\n */\n getMap() {\n return this._map;\n }\n\n /**\n * Returns the container instance.\n *\n * @returns {HTMLElement}\n */\n getElement() {\n return this._container;\n }\n}\n\nconst MapControl = (props) => {\n const [, setVersion] = useState(0);\n\n /**\n * Forces the component to re-render on map move.\n *\n * @type {function(): void}\n */\n const forceUpdate = useCallback(() => setVersion((v) => v + 1), []);\n\n /**\n * Creates the map control.\n *\n * @type {IControlImpl}\n */\n const ctrl = useControl(() => new IControlImpl(forceUpdate), { position: props.position });\n\n /**\n * Sets the map instance.\n *\n * @type {mapboxgl.Map}\n */\n const map = ctrl.getMap();\n\n /**\n * Creates the list of children to be added to the map instance.\n *\n * @type {Array<$NonMaybeType<*>>}\n */\n const children = Children.map(_.compact(Children.toArray(props.children)), (child) => cloneElement(child, { map }));\n\n /**\n * Sets the map ref.\n */\n useEffect(() => {\n if (props.mapRef) {\n props.mapRef.current = map;\n }\n }, [map, props.mapRef]);\n\n return map && createPortal(children, ctrl.getElement());\n};\n\nexport default MapControl;\n"],"names":["IControlImpl","redraw","map","MapControl","props","setVersion","useState","forceUpdate","useCallback","v","ctrl","useControl","children","Children","_","child","cloneElement","useEffect","createPortal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAMA,EAAiC;AAAA,EACrC,OAAkB;AAAA,EAClB;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,YAAYC,GAAoB;AAC9B,SAAK,UAAUA;AAAA,EACjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAMC,GAAK;AACT,gBAAK,OAAOA,GACZA,EAAI,GAAG,QAAQ,KAAK,OAAO,GAE3B,KAAK,aAAa,SAAS,cAAc,KAAK,GAC9C,KAAK,WAAW,YAAY,yCAC5B,KAAK,QAAA,GACE,KAAK;AAAA,EACd;AAAA;AAAA;AAAA;AAAA,EAKA,WAAW;AACT,SAAK,WAAW,OAAA,GAChB,KAAK,KAAK,IAAI,QAAQ,KAAK,OAAO,GAClC,KAAK,OAAO;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,SAAS;AACP,WAAO,KAAK;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,aAAa;AACX,WAAO,KAAK;AAAA,EACd;AACF;AAEA,MAAMC,KAAa,CAACC,MAAU;AAC5B,QAAM,GAAGC,CAAU,IAAIC,EAAS,CAAC,GAO3BC,IAAcC,EAAY,MAAMH,EAAW,CAACI,MAAMA,IAAI,CAAC,GAAG,EAAE,GAO5DC,IAAOC,EAAW,MAAM,IAAIX,EAAaO,CAAW,GAAG,EAAE,UAAUH,EAAM,UAAU,GAOnFF,IAAMQ,EAAK,OAAA,GAOXE,IAAWC,EAAS,IAAIC,EAAE,QAAQD,EAAS,QAAQT,EAAM,QAAQ,CAAC,GAAG,CAACW,MAAUC,EAAaD,GAAO,EAAE,KAAAb,EAAA,CAAK,CAAC;AAKlH,SAAAe,EAAU,MAAM;AACd,IAAIb,EAAM,WACRA,EAAM,OAAO,UAAUF;AAAA,EAE3B,GAAG,CAACA,GAAKE,EAAM,MAAM,CAAC,GAEfF,KAAOgB,EAAaN,GAAUF,EAAK,YAAY;AACxD;"}
|