@maptiler/geocoding-control 0.0.86 → 0.0.87
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/GeocodingControl.svelte +1 -1
- package/MapLibreBasedGeocodingControl.d.ts +5 -9
- package/MapTilerSdkGeocodingControl.d.ts +3 -3
- package/leaflet.js +13 -13
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.d.ts +9 -3
- package/maplibregl.js +16 -16
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +2 -2
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +16 -16
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +4 -4
- package/maptilersdk.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +107 -107
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
package/maplibregl.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import type { Map } from "maplibre-gl";
|
|
2
2
|
import * as maplibregl from "maplibre-gl";
|
|
3
3
|
import type GeocodingControlComponent from "./GeocodingControl.svelte";
|
|
4
|
-
import { MapLibreBasedGeocodingControl, type Props } from "./MapLibreBasedGeocodingControl";
|
|
4
|
+
import { MapLibreBasedGeocodingControl, type MapLibreBaseControlOptions, type Props } from "./MapLibreBasedGeocodingControl";
|
|
5
5
|
export { createMapLibreGlMapController } from "./maplibreglMapController";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type Options = MapLibreBaseControlOptions & {
|
|
7
|
+
/**
|
|
8
|
+
* Maptiler API key. Optional if used with MapTiler SDK.
|
|
9
|
+
*/
|
|
10
|
+
apiKey: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class GeocodingControl extends MapLibreBasedGeocodingControl<Options> {
|
|
13
|
+
getMapLibreGl(): typeof maplibregl;
|
|
8
14
|
getExtraProps(_map: Map, _div: HTMLElement): Partial<Props<GeocodingControlComponent>>;
|
|
9
15
|
}
|
package/maplibregl.js
CHANGED
|
@@ -420,7 +420,7 @@ function aa(r) {
|
|
|
420
420
|
"title",
|
|
421
421
|
/*reverseButtonTitle*/
|
|
422
422
|
r[9]
|
|
423
|
-
), B(t, "class", "svelte-
|
|
423
|
+
), B(t, "class", "svelte-p509gh"), en(
|
|
424
424
|
t,
|
|
425
425
|
"active",
|
|
426
426
|
/*reverseActive*/
|
|
@@ -473,7 +473,7 @@ function Ol(r) {
|
|
|
473
473
|
t = oe("ul");
|
|
474
474
|
for (let s = 0; s < o.length; s += 1)
|
|
475
475
|
o[s].c();
|
|
476
|
-
B(t, "class", "svelte-
|
|
476
|
+
B(t, "class", "svelte-p509gh");
|
|
477
477
|
},
|
|
478
478
|
m(s, a) {
|
|
479
479
|
We(s, t, a);
|
|
@@ -521,7 +521,7 @@ function Dl(r) {
|
|
|
521
521
|
t = oe("div"), e = Vr(
|
|
522
522
|
/*noResultsMessage*/
|
|
523
523
|
r[7]
|
|
524
|
-
), B(t, "class", "no-results svelte-
|
|
524
|
+
), B(t, "class", "no-results svelte-p509gh");
|
|
525
525
|
},
|
|
526
526
|
m(n, i) {
|
|
527
527
|
We(n, t, i), ct(t, e);
|
|
@@ -561,7 +561,7 @@ function Ml(r) {
|
|
|
561
561
|
t = oe("div"), e = Vr(
|
|
562
562
|
/*errorMessage*/
|
|
563
563
|
r[6]
|
|
564
|
-
), B(t, "class", "error svelte-
|
|
564
|
+
), B(t, "class", "error svelte-p509gh");
|
|
565
565
|
},
|
|
566
566
|
m(n, i) {
|
|
567
567
|
We(n, t, i), ct(t, e);
|
|
@@ -588,7 +588,7 @@ function ua(r) {
|
|
|
588
588
|
), n;
|
|
589
589
|
return {
|
|
590
590
|
c() {
|
|
591
|
-
t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-
|
|
591
|
+
t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-p509gh");
|
|
592
592
|
},
|
|
593
593
|
m(s, a) {
|
|
594
594
|
We(s, t, a), ct(t, n);
|
|
@@ -636,9 +636,9 @@ function la(r) {
|
|
|
636
636
|
}
|
|
637
637
|
return {
|
|
638
638
|
c() {
|
|
639
|
-
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-
|
|
639
|
+
t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-p509gh"), B(u, "class", "secondary svelte-p509gh"), B(n, "class", "line1 svelte-p509gh"), B(e, "class", "texts svelte-p509gh"), B(t, "tabindex", "0"), B(t, "data-selected", g = /*selectedItemIndex*/
|
|
640
640
|
r[13] === /*i*/
|
|
641
|
-
r[71]), B(t, "class", "svelte-
|
|
641
|
+
r[71]), B(t, "class", "svelte-p509gh"), en(
|
|
642
642
|
t,
|
|
643
643
|
"selected",
|
|
644
644
|
/*selectedItemIndex*/
|
|
@@ -720,7 +720,7 @@ function Al(r) {
|
|
|
720
720
|
let F = A(r), D = F && F(r);
|
|
721
721
|
return {
|
|
722
722
|
c() {
|
|
723
|
-
t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(), N && N.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-
|
|
723
|
+
t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(), N && N.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-p509gh"), B(
|
|
724
724
|
s,
|
|
725
725
|
"placeholder",
|
|
726
726
|
/*placeholder*/
|
|
@@ -730,20 +730,20 @@ function Al(r) {
|
|
|
730
730
|
"aria-label",
|
|
731
731
|
/*placeholder*/
|
|
732
732
|
r[8]
|
|
733
|
-
), B(s, "class", "svelte-
|
|
733
|
+
), B(s, "class", "svelte-p509gh"), B(l, "type", "button"), B(
|
|
734
734
|
l,
|
|
735
735
|
"title",
|
|
736
736
|
/*clearButtonTitle*/
|
|
737
737
|
r[3]
|
|
738
|
-
), B(l, "class", "svelte-
|
|
738
|
+
), B(l, "class", "svelte-p509gh"), B(u, "class", "clear-button-container svelte-p509gh"), en(
|
|
739
739
|
u,
|
|
740
740
|
"displayable",
|
|
741
741
|
/*searchValue*/
|
|
742
742
|
r[1] !== ""
|
|
743
|
-
), B(e, "class", "input-group svelte-
|
|
743
|
+
), B(e, "class", "input-group svelte-p509gh"), B(t, "tabindex", "0"), B(t, "class", m = ta(
|
|
744
744
|
/*className*/
|
|
745
745
|
r[2]
|
|
746
|
-
) + " svelte-
|
|
746
|
+
) + " svelte-p509gh"), en(
|
|
747
747
|
t,
|
|
748
748
|
"can-collapse",
|
|
749
749
|
/*collapsed*/
|
|
@@ -866,7 +866,7 @@ function Al(r) {
|
|
|
866
866
|
4 && m !== (m = ta(
|
|
867
867
|
/*className*/
|
|
868
868
|
R[2]
|
|
869
|
-
) + " svelte-
|
|
869
|
+
) + " svelte-p509gh")) && B(t, "class", m), (!d || z[0] & /*className, collapsed, searchValue*/
|
|
870
870
|
22) && en(
|
|
871
871
|
t,
|
|
872
872
|
"can-collapse",
|
|
@@ -16050,7 +16050,7 @@ function uf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16050
16050
|
}
|
|
16051
16051
|
var _n, zr;
|
|
16052
16052
|
class lf extends EventTarget {
|
|
16053
|
-
constructor(e
|
|
16053
|
+
constructor(e) {
|
|
16054
16054
|
super();
|
|
16055
16055
|
ls(this, _n, void 0);
|
|
16056
16056
|
ls(this, zr, void 0);
|
|
@@ -16068,7 +16068,7 @@ class lf extends EventTarget {
|
|
|
16068
16068
|
} = Bn(this, zr), l = typeof s == "boolean" ? {} : s, c = this.getExtraProps(e, n), h = {
|
|
16069
16069
|
mapController: uf(
|
|
16070
16070
|
e,
|
|
16071
|
-
this.
|
|
16071
|
+
this.getMapLibreGl(),
|
|
16072
16072
|
i,
|
|
16073
16073
|
o,
|
|
16074
16074
|
l,
|
|
@@ -16132,7 +16132,7 @@ class lf extends EventTarget {
|
|
|
16132
16132
|
}
|
|
16133
16133
|
_n = new WeakMap(), zr = new WeakMap();
|
|
16134
16134
|
class hf extends lf {
|
|
16135
|
-
|
|
16135
|
+
getMapLibreGl() {
|
|
16136
16136
|
return ol;
|
|
16137
16137
|
}
|
|
16138
16138
|
getExtraProps(t, e) {
|