@maptiler/geocoding-control 0.0.42 → 0.0.43
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/leaflet.js +9 -9
- package/dist/leaflet.umd.js +3 -3
- package/dist/lib/LeafletGeocodingControl.d.ts +1 -1
- package/dist/lib/MaplibreglGeocodingControl.d.ts +4 -4
- package/dist/lib/types.d.ts +5 -5
- package/dist/maplibregl.js +120 -124
- package/dist/maplibregl.umd.js +5 -5
- package/package.json +6 -6
- package/src/lib/MaplibreglGeocodingControl.ts +10 -13
- package/src/lib/leafletMapController.ts +0 -4
- package/src/lib/maplibreglMapController.ts +0 -4
package/dist/leaflet.js
CHANGED
|
@@ -82,7 +82,7 @@ function je(r, t, e) {
|
|
|
82
82
|
r.insertBefore(t, e || null);
|
|
83
83
|
}
|
|
84
84
|
function Ae(r) {
|
|
85
|
-
r.parentNode.removeChild(r);
|
|
85
|
+
r.parentNode && r.parentNode.removeChild(r);
|
|
86
86
|
}
|
|
87
87
|
function ul(r, t) {
|
|
88
88
|
for (let e = 0; e < r.length; e += 1)
|
|
@@ -2214,18 +2214,18 @@ function va(r) {
|
|
|
2214
2214
|
function Do(r) {
|
|
2215
2215
|
return r.type === "Feature" ? r.geometry : r;
|
|
2216
2216
|
}
|
|
2217
|
-
function sc(r, t) {
|
|
2217
|
+
function sc(r, t, e) {
|
|
2218
|
+
e === void 0 && (e = {});
|
|
2219
|
+
var n = Do(r), i = Do(t), o = Wa.union(n.coordinates, i.coordinates);
|
|
2220
|
+
return o.length === 0 ? null : o.length === 1 ? Ka(o[0], e.properties) : Qa(o, e.properties);
|
|
2221
|
+
}
|
|
2222
|
+
function ac(r, t) {
|
|
2218
2223
|
var e = Do(r), n = Do(t), i = r.properties || {}, o = Wa.difference(
|
|
2219
2224
|
e.coordinates,
|
|
2220
2225
|
n.coordinates
|
|
2221
2226
|
);
|
|
2222
2227
|
return o.length === 0 ? null : o.length === 1 ? Ka(o[0], i) : Qa(o, i);
|
|
2223
2228
|
}
|
|
2224
|
-
function ac(r, t, e) {
|
|
2225
|
-
e === void 0 && (e = {});
|
|
2226
|
-
var n = Do(r), i = Do(t), o = Wa.union(n.coordinates, i.coordinates);
|
|
2227
|
-
return o.length === 0 ? null : o.length === 1 ? Ka(o[0], e.properties) : Qa(o, e.properties);
|
|
2228
|
-
}
|
|
2229
2229
|
function Ja(r, t, e) {
|
|
2230
2230
|
if (r !== null)
|
|
2231
2231
|
for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", v = g === "Feature", d = p ? r.features.length : 1, E = 0; E < d; E++) {
|
|
@@ -15177,7 +15177,7 @@ function Ga(r) {
|
|
|
15177
15177
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
15178
15178
|
}
|
|
15179
15179
|
function ka(r, t) {
|
|
15180
|
-
const e =
|
|
15180
|
+
const e = ac(
|
|
15181
15181
|
{
|
|
15182
15182
|
type: "Polygon",
|
|
15183
15183
|
coordinates: [
|
|
@@ -15278,7 +15278,7 @@ function $c(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15278
15278
|
if (P.length > 0) {
|
|
15279
15279
|
let S = P.pop();
|
|
15280
15280
|
for (const D of P)
|
|
15281
|
-
S =
|
|
15281
|
+
S = sc(S, D);
|
|
15282
15282
|
ka({ ...d, geometry: S }, E), C = !0;
|
|
15283
15283
|
} else {
|
|
15284
15284
|
const S = d.geometry.geometries.filter(
|