@maptiler/geocoding-control 2.1.4 → 2.1.6
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/MapLibreBasedGeocodingControl.d.ts +51 -34
- package/leaflet-controller.js +1 -1
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +1 -1
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +161 -161
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +2 -2
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.js +29 -29
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +1 -1
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +51 -34
- package/maplibregl.js +1198 -1196
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +51 -34
- package/maptilersdk.js +1199 -1197
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +5 -5
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.js +35 -35
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +1 -1
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +3 -3
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +11 -11
- package/react.js +2 -2
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +4 -2
- package/svelte/GeocodingControl.svelte.d.ts +1 -1
- package/svelte/MapLibreBasedGeocodingControl.d.ts +51 -34
- package/svelte/MapLibreBasedGeocodingControl.js +4 -0
- package/svelte/info.json +1 -1
- package/svelte/leaflet-controller.js +1 -1
- package/svelte/maplibregl-controller.js +1 -1
- package/svelte/maplibregl.d.ts +51 -34
- package/svelte/maptilersdk.d.ts +51 -34
- package/svelte/openlayers-controller.js +1 -1
- package/vanilla.js +2 -2
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/maplibregl-controller.js
CHANGED
|
@@ -32,7 +32,7 @@ function gt(n, e, t = {}) {
|
|
|
32
32
|
coordinates: n
|
|
33
33
|
}, e, t);
|
|
34
34
|
}
|
|
35
|
-
var Mt = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Be = Math.ceil, J = Math.floor, Z = "[BigNumber Error] ", Ze = Z + "Number primitive has more than 15 significant digits: ", ee = 1e14, C = 14,
|
|
35
|
+
var Mt = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Be = Math.ceil, J = Math.floor, Z = "[BigNumber Error] ", Ze = Z + "Number primitive has more than 15 significant digits: ", ee = 1e14, C = 14, We = 9007199254740991, Ge = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], le = 1e7, W = 1e9;
|
|
36
36
|
function pt(n) {
|
|
37
37
|
var e, t, i, r = S.prototype = { constructor: S, toString: null, valueOf: null }, u = new S(1), y = 20, c = 4, E = -7, h = 21, b = -1e7, _ = 1e7, T = !1, O = 1, G = 0, F = {
|
|
38
38
|
prefix: "",
|
|
@@ -92,7 +92,7 @@ function pt(n) {
|
|
|
92
92
|
for (w = 0; x.charCodeAt(w) === 48; w++) ;
|
|
93
93
|
for (g = x.length; x.charCodeAt(--g) === 48; ) ;
|
|
94
94
|
if (x = x.slice(w, ++g)) {
|
|
95
|
-
if (g -= w, f && S.DEBUG && g > 15 && (s >
|
|
95
|
+
if (g -= w, f && S.DEBUG && g > 15 && (s > We || s !== J(s)))
|
|
96
96
|
throw Error(Ze + d.s * s);
|
|
97
97
|
if ((p = p - w - 1) > _)
|
|
98
98
|
d.c = d.e = null;
|
|
@@ -115,10 +115,10 @@ function pt(n) {
|
|
|
115
115
|
var o, l;
|
|
116
116
|
if (s != null)
|
|
117
117
|
if (typeof s == "object") {
|
|
118
|
-
if (s.hasOwnProperty(o = "DECIMAL_PLACES") && (l = s[o], D(l, 0,
|
|
118
|
+
if (s.hasOwnProperty(o = "DECIMAL_PLACES") && (l = s[o], D(l, 0, W, o), y = l), s.hasOwnProperty(o = "ROUNDING_MODE") && (l = s[o], D(l, 0, 8, o), c = l), s.hasOwnProperty(o = "EXPONENTIAL_AT") && (l = s[o], l && l.pop ? (D(l[0], -1e9, 0, o), D(l[1], 0, W, o), E = l[0], h = l[1]) : (D(l, -1e9, W, o), E = -(h = l < 0 ? -l : l))), s.hasOwnProperty(o = "RANGE"))
|
|
119
119
|
if (l = s[o], l && l.pop)
|
|
120
|
-
D(l[0], -1e9, -1, o), D(l[1], 1,
|
|
121
|
-
else if (D(l, -1e9,
|
|
120
|
+
D(l[0], -1e9, -1, o), D(l[1], 1, W, o), b = l[0], _ = l[1];
|
|
121
|
+
else if (D(l, -1e9, W, o), l)
|
|
122
122
|
b = -(_ = l < 0 ? -l : l);
|
|
123
123
|
else
|
|
124
124
|
throw Error(Z + o + " cannot be zero: " + l);
|
|
@@ -133,7 +133,7 @@ function pt(n) {
|
|
|
133
133
|
T = l;
|
|
134
134
|
else
|
|
135
135
|
throw Error(Z + o + " not true or false: " + l);
|
|
136
|
-
if (s.hasOwnProperty(o = "MODULO_MODE") && (l = s[o], D(l, 0, 9, o), O = l), s.hasOwnProperty(o = "POW_PRECISION") && (l = s[o], D(l, 0,
|
|
136
|
+
if (s.hasOwnProperty(o = "MODULO_MODE") && (l = s[o], D(l, 0, 9, o), O = l), s.hasOwnProperty(o = "POW_PRECISION") && (l = s[o], D(l, 0, W, o), G = l), s.hasOwnProperty(o = "FORMAT"))
|
|
137
137
|
if (l = s[o], typeof l == "object") F = l;
|
|
138
138
|
else throw Error(Z + o + " not an object: " + l);
|
|
139
139
|
if (s.hasOwnProperty(o = "ALPHABET"))
|
|
@@ -159,7 +159,7 @@ function pt(n) {
|
|
|
159
159
|
if (!S.DEBUG) return !0;
|
|
160
160
|
var o, l, m = s.c, a = s.e, p = s.s;
|
|
161
161
|
e: if ({}.toString.call(m) == "[object Array]") {
|
|
162
|
-
if ((p === 1 || p === -1) && a >= -1e9 && a <=
|
|
162
|
+
if ((p === 1 || p === -1) && a >= -1e9 && a <= W && a === J(a)) {
|
|
163
163
|
if (m[0] === 0) {
|
|
164
164
|
if (a === 0 && m.length === 1) return !0;
|
|
165
165
|
break e;
|
|
@@ -185,7 +185,7 @@ function pt(n) {
|
|
|
185
185
|
};
|
|
186
186
|
return function(l) {
|
|
187
187
|
var m, a, p, w, f, g = 0, x = [], d = new S(u);
|
|
188
|
-
if (l == null ? l = y : D(l, 0,
|
|
188
|
+
if (l == null ? l = y : D(l, 0, W), w = Be(l / C), T)
|
|
189
189
|
if (crypto.getRandomValues) {
|
|
190
190
|
for (m = crypto.getRandomValues(new Uint32Array(w *= 2)); g < w; )
|
|
191
191
|
f = m[g] * 131072 + (m[g + 1] >>> 11), f >= 9e15 ? (a = crypto.getRandomValues(new Uint32Array(2)), m[g] = a[0], m[g + 1] = a[1]) : (x.push(f % 1e14), g += 2);
|
|
@@ -268,20 +268,20 @@ function pt(n) {
|
|
|
268
268
|
for (; !m[0] && m.length > 1; m.splice(0, 1)) ;
|
|
269
269
|
}
|
|
270
270
|
return function(m, a, p, w, f) {
|
|
271
|
-
var g, x, d, v, P, R, I, U, K, A, B, X, Se, Ie, ke, te, ge,
|
|
271
|
+
var g, x, d, v, P, R, I, U, K, A, B, X, Se, Ie, ke, te, ge, j = m.s == a.s ? 1 : -1, Y = m.c, z = a.c;
|
|
272
272
|
if (!Y || !Y[0] || !z || !z[0])
|
|
273
273
|
return new S(
|
|
274
274
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
275
275
|
!m.s || !a.s || (Y ? z && Y[0] == z[0] : !z) ? NaN : (
|
|
276
276
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
277
|
-
Y && Y[0] == 0 || !z ?
|
|
277
|
+
Y && Y[0] == 0 || !z ? j * 0 : j / 0
|
|
278
278
|
)
|
|
279
279
|
);
|
|
280
|
-
for (U = new S(
|
|
281
|
-
if (z[d] > (Y[d] || 0) && x--,
|
|
280
|
+
for (U = new S(j), K = U.c = [], x = m.e - a.e, j = p + x + 1, f || (f = ee, x = Q(m.e / C) - Q(a.e / C), j = j / C | 0), d = 0; z[d] == (Y[d] || 0); d++) ;
|
|
281
|
+
if (z[d] > (Y[d] || 0) && x--, j < 0)
|
|
282
282
|
K.push(1), v = !0;
|
|
283
283
|
else {
|
|
284
|
-
for (Ie = Y.length, te = z.length, d = 0,
|
|
284
|
+
for (Ie = Y.length, te = z.length, d = 0, j += 2, P = J(f / (z[0] + 1)), P > 1 && (z = s(z, P, f), Y = s(Y, P, f), te = z.length, Ie = Y.length), Se = te, A = Y.slice(0, te), B = A.length; B < te; A[B++] = 0) ;
|
|
285
285
|
ge = z.slice(), ge = [0].concat(ge), ke = z[0], z[1] >= f / 2 && ke++;
|
|
286
286
|
do {
|
|
287
287
|
if (P = 0, g = o(z, A, te, B), g < 0) {
|
|
@@ -295,11 +295,11 @@ function pt(n) {
|
|
|
295
295
|
P++, l(A, te < B ? ge : z, B, f), B = A.length;
|
|
296
296
|
} else g === 0 && (P++, A = [0]);
|
|
297
297
|
K[d++] = P, A[0] ? A[B++] = Y[Se] || 0 : (A = [Y[Se]], B = 1);
|
|
298
|
-
} while ((Se++ < Ie || A[0] != null) &&
|
|
298
|
+
} while ((Se++ < Ie || A[0] != null) && j--);
|
|
299
299
|
v = A[0] != null, K[0] || K.splice(0, 1);
|
|
300
300
|
}
|
|
301
301
|
if (f == ee) {
|
|
302
|
-
for (d = 1,
|
|
302
|
+
for (d = 1, j = K[0]; j >= 10; j /= 10, d++) ;
|
|
303
303
|
V(U, p + (U.e = d + x * C - 1) + 1, w, v);
|
|
304
304
|
} else
|
|
305
305
|
U.e = x, U.r = +v;
|
|
@@ -400,7 +400,7 @@ function pt(n) {
|
|
|
400
400
|
}, r.decimalPlaces = r.dp = function(s, o) {
|
|
401
401
|
var l, m, a, p = this;
|
|
402
402
|
if (s != null)
|
|
403
|
-
return D(s, 0,
|
|
403
|
+
return D(s, 0, W), o == null ? o = c : D(o, 0, 8), V(new S(p), s + p.e + 1, o);
|
|
404
404
|
if (!(l = p.c)) return null;
|
|
405
405
|
if (m = ((a = l.length - 1) - Q(this.e / C)) * C, a = l[a]) for (; a % 10 == 0; a /= 10, m--) ;
|
|
406
406
|
return m < 0 && (m = 0), m;
|
|
@@ -534,7 +534,7 @@ function pt(n) {
|
|
|
534
534
|
}, r.precision = r.sd = function(s, o) {
|
|
535
535
|
var l, m, a, p = this;
|
|
536
536
|
if (s != null && s !== !!s)
|
|
537
|
-
return D(s, 1,
|
|
537
|
+
return D(s, 1, W), o == null ? o = c : D(o, 0, 8), V(new S(p), s, o);
|
|
538
538
|
if (!(l = p.c)) return null;
|
|
539
539
|
if (a = l.length - 1, m = a * C + 1, a = l[a]) {
|
|
540
540
|
for (; a % 10 == 0; a /= 10, m--) ;
|
|
@@ -542,7 +542,7 @@ function pt(n) {
|
|
|
542
542
|
}
|
|
543
543
|
return s && p.e + 1 > m && (m = p.e + 1), m;
|
|
544
544
|
}, r.shiftedBy = function(s) {
|
|
545
|
-
return D(s, -9007199254740991,
|
|
545
|
+
return D(s, -9007199254740991, We), this.times("1e" + s);
|
|
546
546
|
}, r.squareRoot = r.sqrt = function() {
|
|
547
547
|
var s, o, l, m, a, p = this, w = p.c, f = p.s, g = p.e, x = y + 4, d = new S("0.5");
|
|
548
548
|
if (f !== 1 || !w || !w[0])
|
|
@@ -563,9 +563,9 @@ function pt(n) {
|
|
|
563
563
|
}
|
|
564
564
|
return V(l, l.e + y + 1, c, s);
|
|
565
565
|
}, r.toExponential = function(s, o) {
|
|
566
|
-
return s != null && (D(s, 0,
|
|
566
|
+
return s != null && (D(s, 0, W), s++), k(this, s, o, 1);
|
|
567
567
|
}, r.toFixed = function(s, o) {
|
|
568
|
-
return s != null && (D(s, 0,
|
|
568
|
+
return s != null && (D(s, 0, W), s = s + this.e + 1), k(this, s, o);
|
|
569
569
|
}, r.toFormat = function(s, o, l) {
|
|
570
570
|
var m, a = this;
|
|
571
571
|
if (l == null)
|
|
@@ -597,7 +597,7 @@ function pt(n) {
|
|
|
597
597
|
}, r.toNumber = function() {
|
|
598
598
|
return +re(this);
|
|
599
599
|
}, r.toPrecision = function(s, o) {
|
|
600
|
-
return s != null && D(s, 1,
|
|
600
|
+
return s != null && D(s, 1, W), k(this, s, o, 2);
|
|
601
601
|
}, r.toString = function(s) {
|
|
602
602
|
var o, l = this, m = l.s, a = l.e;
|
|
603
603
|
return a === null ? m ? (o = "Infinity", m < 0 && (o = "-" + o)) : o = "NaN" : (s == null ? o = a <= E || a >= h ? be(H(l.c), a) : se(H(l.c), a, "0") : s === 10 && N ? (l = V(new S(l), y + a + 1, c), o = se(H(l.c), l.e, "0")) : (D(s, 2, L.length, "Base"), o = t(se(H(l.c), a, "0"), 10, s, m, !0)), m < 0 && l.c[0] && (o = "-" + o)), o;
|
|
@@ -996,11 +996,11 @@ var At = (n) => n, It = (n) => {
|
|
|
996
996
|
}, Bt = (n, e, t) => {
|
|
997
997
|
const i = { x: e.x.minus(n.x), y: e.y.minus(n.y) }, r = { x: t.x.minus(n.x), y: t.y.minus(n.y) };
|
|
998
998
|
return mt(r, i).div(Ce(r)).div(Ce(i));
|
|
999
|
-
},
|
|
999
|
+
}, je = (n, e, t) => e.y.isZero() ? null : { x: n.x.plus(e.x.div(e.y).times(t.minus(n.y))), y: t }, He = (n, e, t) => e.x.isZero() ? null : { x: t, y: n.y.plus(e.y.div(e.x).times(t.minus(n.x))) }, Gt = (n, e, t, i) => {
|
|
1000
1000
|
if (e.x.isZero()) return He(t, i, n.x);
|
|
1001
1001
|
if (i.x.isZero()) return He(n, e, t.x);
|
|
1002
|
-
if (e.y.isZero()) return
|
|
1003
|
-
if (i.y.isZero()) return
|
|
1002
|
+
if (e.y.isZero()) return je(t, i, n.y);
|
|
1003
|
+
if (i.y.isZero()) return je(n, e, t.y);
|
|
1004
1004
|
const r = Me(e, i);
|
|
1005
1005
|
if (r.isZero()) return null;
|
|
1006
1006
|
const u = { x: t.x.minus(n.x), y: t.y.minus(n.y) }, y = Me(u, e).div(r), c = Me(u, i).div(r), E = n.x.plus(c.times(e.x)), h = t.x.plus(y.times(i.x)), b = n.y.plus(c.times(e.y)), _ = t.y.plus(y.times(i.y)), T = E.plus(h).div(2), O = b.plus(_).div(2);
|
|
@@ -1920,10 +1920,10 @@ function St(n) {
|
|
|
1920
1920
|
function Zt(n, e) {
|
|
1921
1921
|
return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function Wt(n) {
|
|
1924
1924
|
return Object.keys(n).length === 0;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function jt(n, e) {
|
|
1927
1927
|
n.appendChild(e);
|
|
1928
1928
|
}
|
|
1929
1929
|
function Ht(n, e, t) {
|
|
@@ -2095,7 +2095,7 @@ class cn {
|
|
|
2095
2095
|
* @returns {void}
|
|
2096
2096
|
*/
|
|
2097
2097
|
$set(e) {
|
|
2098
|
-
this.$$set && !
|
|
2098
|
+
this.$$set && !Wt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
2101
2101
|
const an = "4";
|
|
@@ -2118,7 +2118,7 @@ function hn(n) {
|
|
|
2118
2118
|
);
|
|
2119
2119
|
},
|
|
2120
2120
|
m(r, u) {
|
|
2121
|
-
Ht(r, e, u),
|
|
2121
|
+
Ht(r, e, u), jt(e, t);
|
|
2122
2122
|
},
|
|
2123
2123
|
p(r, [u]) {
|
|
2124
2124
|
u & /*displayIn*/
|
|
@@ -2364,7 +2364,7 @@ function vn(n, e, t = !0, i = !0, r = {}, u = {}, y = ut) {
|
|
|
2364
2364
|
break e;
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
|
-
if (!S && N.geometry.type
|
|
2367
|
+
if (!S && !N.geometry.type.endsWith("Point"))
|
|
2368
2368
|
break e;
|
|
2369
2369
|
if (t instanceof Function) {
|
|
2370
2370
|
const $ = t(n, N);
|