@ogc-maps/storybook-components 0.11.0 → 0.12.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"LayerEditor.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAkC,MAAM,aAAa,CAAC;AA6B7F,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAKD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,EAAE,gBAAgB,2CAsRlG"}
1
+ {"version":3,"file":"LayerEditor.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAkC,MAAM,aAAa,CAAC;AA6B7F,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAKD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,EAAE,gBAAgB,2CA2UlG"}
@@ -1 +1 @@
1
- {"version":3,"file":"LayerList.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI7D,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC1C,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAWD,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,EAAE,cAAc,2CA6P/F"}
1
+ {"version":3,"file":"LayerList.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI7D,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC1C,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAWD,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,EAAE,cAAc,2CAkQ/F"}
@@ -51,7 +51,7 @@ function ne(e, t = "kilometers") {
51
51
  throw new Error(t + " units is invalid");
52
52
  return e * n;
53
53
  }
54
- function O(e) {
54
+ function F(e) {
55
55
  return e % 360 * Math.PI / 180;
56
56
  }
57
57
  function x(e) {
@@ -68,13 +68,13 @@ function x(e) {
68
68
  throw new Error("coord must be GeoJSON Point or an Array of numbers");
69
69
  }
70
70
  function re(e, t, n = {}) {
71
- var r = x(e), s = x(t), i = O(s[1] - r[1]), l = O(s[0] - r[0]), o = O(r[1]), a = O(s[1]), c = Math.pow(Math.sin(i / 2), 2) + Math.pow(Math.sin(l / 2), 2) * Math.cos(o) * Math.cos(a);
71
+ var r = x(e), s = x(t), i = F(s[1] - r[1]), l = F(s[0] - r[0]), o = F(r[1]), a = F(s[1]), c = Math.pow(Math.sin(i / 2), 2) + Math.pow(Math.sin(l / 2), 2) * Math.cos(o) * Math.cos(a);
72
72
  return ne(
73
73
  2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)),
74
74
  n.units
75
75
  );
76
76
  }
77
- function Q(e, t, n) {
77
+ function V(e, t, n) {
78
78
  if (e !== null)
79
79
  for (var r, s, i, l, o, a, c, g = 0, f = 0, u, m = e.type, h = m === "FeatureCollection", y = m === "Feature", w = h ? e.features.length : 1, p = 0; p < w; p++) {
80
80
  c = h ? (
@@ -85,11 +85,11 @@ function Q(e, t, n) {
85
85
  e.geometry
86
86
  ) : e, u = c ? c.type === "GeometryCollection" : !1, o = u ? c.geometries.length : 1;
87
87
  for (var $ = 0; $ < o; $++) {
88
- var M = 0, v = 0;
88
+ var S = 0, v = 0;
89
89
  if (l = u ? c.geometries[$] : c, l !== null) {
90
90
  a = l.coordinates;
91
- var S = l.type;
92
- switch (g = 0, S) {
91
+ var M = l.type;
92
+ switch (g = 0, M) {
93
93
  case null:
94
94
  break;
95
95
  case "Point":
@@ -99,12 +99,12 @@ function Q(e, t, n) {
99
99
  a,
100
100
  f,
101
101
  p,
102
- M,
102
+ S,
103
103
  v
104
104
  ) === !1
105
105
  )
106
106
  return !1;
107
- f++, M++;
107
+ f++, S++;
108
108
  break;
109
109
  case "LineString":
110
110
  case "MultiPoint":
@@ -115,14 +115,14 @@ function Q(e, t, n) {
115
115
  a[r],
116
116
  f,
117
117
  p,
118
- M,
118
+ S,
119
119
  v
120
120
  ) === !1
121
121
  )
122
122
  return !1;
123
- f++, S === "MultiPoint" && M++;
123
+ f++, M === "MultiPoint" && S++;
124
124
  }
125
- S === "LineString" && M++;
125
+ M === "LineString" && S++;
126
126
  break;
127
127
  case "Polygon":
128
128
  case "MultiLineString":
@@ -134,16 +134,16 @@ function Q(e, t, n) {
134
134
  a[r][s],
135
135
  f,
136
136
  p,
137
- M,
137
+ S,
138
138
  v
139
139
  ) === !1
140
140
  )
141
141
  return !1;
142
142
  f++;
143
143
  }
144
- S === "MultiLineString" && M++, S === "Polygon" && v++;
144
+ M === "MultiLineString" && S++, M === "Polygon" && v++;
145
145
  }
146
- S === "Polygon" && M++;
146
+ M === "Polygon" && S++;
147
147
  break;
148
148
  case "MultiPolygon":
149
149
  for (r = 0; r < a.length; r++) {
@@ -155,7 +155,7 @@ function Q(e, t, n) {
155
155
  a[r][s][i],
156
156
  f,
157
157
  p,
158
- M,
158
+ S,
159
159
  v
160
160
  ) === !1
161
161
  )
@@ -164,14 +164,14 @@ function Q(e, t, n) {
164
164
  }
165
165
  v++;
166
166
  }
167
- M++;
167
+ S++;
168
168
  }
169
169
  break;
170
170
  case "GeometryCollection":
171
171
  for (r = 0; r < l.geometries.length; r++)
172
172
  if (
173
173
  // @ts-expect-error: Known type conflict
174
- Q(l.geometries[r], t) === !1
174
+ V(l.geometries[r], t) === !1
175
175
  )
176
176
  return !1;
177
177
  break;
@@ -182,7 +182,7 @@ function Q(e, t, n) {
182
182
  }
183
183
  }
184
184
  }
185
- function V(e, t) {
185
+ function Q(e, t) {
186
186
  var n, r, s, i, l, o, a, c, g, f, u = 0, m = e.type === "FeatureCollection", h = e.type === "Feature", y = m ? e.features.length : 1;
187
187
  for (n = 0; n < y; n++) {
188
188
  for (o = m ? (
@@ -269,7 +269,7 @@ function V(e, t) {
269
269
  }
270
270
  function se(e, t, n) {
271
271
  var r = n;
272
- return V(
272
+ return Q(
273
273
  e,
274
274
  function(s, i, l, o, a) {
275
275
  r = t(
@@ -285,7 +285,7 @@ function se(e, t, n) {
285
285
  ), r;
286
286
  }
287
287
  function ie(e, t) {
288
- V(e, function(n, r, s, i, l) {
288
+ Q(e, function(n, r, s, i, l) {
289
289
  var o = n === null ? null : n.type;
290
290
  switch (o) {
291
291
  case null:
@@ -340,7 +340,7 @@ function oe(e, t) {
340
340
  var o, a = 0, c = 0, g = 0;
341
341
  if (
342
342
  // @ts-expect-error: Known type conflict
343
- Q(
343
+ V(
344
344
  n,
345
345
  function(f, u, m, h, y) {
346
346
  if (
@@ -485,10 +485,10 @@ function be(e, t = "km2") {
485
485
  function we(e, t, n) {
486
486
  return e === "distance" && t.length >= 2 ? { value: pe(t, n), unit: n } : e === "area" && t.length >= 3 ? { value: be(t, n), unit: n } : null;
487
487
  }
488
- function Me(e) {
488
+ function Se(e) {
489
489
  return e === "distance" ? "km" : "km2";
490
490
  }
491
- function Se(e, t) {
491
+ function Me(e, t) {
492
492
  return t.length < 2 ? null : {
493
493
  type: "Feature",
494
494
  geometry: e === "area" && t.length >= 3 ? { type: "Polygon", coordinates: [[...t, t[0]]] } : { type: "LineString", coordinates: t },
@@ -549,11 +549,11 @@ async function Ce(e, t) {
549
549
  const r = `${C(e)}/collections/${encodeURIComponent(t)}?f=json`;
550
550
  return L(r);
551
551
  }
552
- async function We(e) {
552
+ async function Je(e) {
553
553
  const t = `${C(e)}/conformance?f=json`;
554
554
  return L(t);
555
555
  }
556
- async function Je(e, t, n = "WebMercatorQuad") {
556
+ async function We(e, t, n = "WebMercatorQuad") {
557
557
  const r = Le(e, t, n);
558
558
  return L(r);
559
559
  }
@@ -566,10 +566,10 @@ async function ze(e, t, n = {}) {
566
566
  function Le(e, t, n = "WebMercatorQuad") {
567
567
  return `${C(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(n)}/tilejson.json`;
568
568
  }
569
- function Qe(e, t, n = "WebMercatorQuad") {
569
+ function Ve(e, t, n = "WebMercatorQuad") {
570
570
  return `${C(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(n)}/{z}/{x}/{y}`;
571
571
  }
572
- function Ve(e, t, n, r = "WebMercatorQuad") {
572
+ function Qe(e, t, n, r = "WebMercatorQuad") {
573
573
  const i = `${C(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(r)}/{z}/{x}/{y}`;
574
574
  if (!n || Object.keys(n).length === 0) return i;
575
575
  const l = new URLSearchParams();
@@ -616,7 +616,13 @@ function Ke(e, t, n, r = "WebMercatorQuad") {
616
616
  });
617
617
  return `${i}?${l}`;
618
618
  }
619
- function Ye(e) {
619
+ function Ye(e, t) {
620
+ return t ? `${e}--${JSON.stringify(t)}` : e;
621
+ }
622
+ function Xe(e) {
623
+ return e.length === 1 ? ["==", ["geometry-type"], e[0]] : ["in", ["geometry-type"], ["literal", e]];
624
+ }
625
+ function He(e) {
620
626
  const [t, n] = d([]), [r, s] = d(!1), [i, l] = d(null);
621
627
  return G(() => {
622
628
  if (!e) return;
@@ -632,7 +638,7 @@ function Ye(e) {
632
638
  };
633
639
  }, [e]), { collections: t, loading: r, error: i };
634
640
  }
635
- function Xe(e, t) {
641
+ function Ze(e, t) {
636
642
  const [n, r] = d(null), [s, i] = d(!1), [l, o] = d(null);
637
643
  return G(() => {
638
644
  if (!e || !t) return;
@@ -648,7 +654,7 @@ function Xe(e, t) {
648
654
  };
649
655
  }, [e, t]), { queryables: n, loading: s, error: l };
650
656
  }
651
- function He(e, t, n = {}) {
657
+ function et(e, t, n = {}) {
652
658
  const [r, s] = d([]), [i, l] = d(!1), [o, a] = d(null), [c, g] = d(!1), f = JSON.stringify(n);
653
659
  return G(() => {
654
660
  if (!e || !t) return;
@@ -721,11 +727,11 @@ function Ee(e, t = {}) {
721
727
  return [l.map((a) => U(a, s)).join(s), ...o].join(`
722
728
  `);
723
729
  }
724
- function Fe(e, t) {
730
+ function Oe(e, t) {
725
731
  const n = new Blob([e], { type: "text/csv;charset=utf-8;" });
726
732
  K(n, t);
727
733
  }
728
- function Ze({
734
+ function tt({
729
735
  baseUrl: e,
730
736
  limit: t = 1e3,
731
737
  csvOptions: n
@@ -746,7 +752,7 @@ function Ze({
746
752
  if (f.push(...p.features), m += p.features.length, p.features.length < w || p.numberMatched != null && m >= p.numberMatched) break;
747
753
  }
748
754
  const h = Ee(f, n);
749
- Fe(h, c);
755
+ Oe(h, c);
750
756
  } catch (h) {
751
757
  l(h instanceof Error ? h : new Error(String(h)));
752
758
  } finally {
@@ -756,7 +762,7 @@ function Ze({
756
762
  [e, t, n]
757
763
  ), loading: r, error: i };
758
764
  }
759
- function et({
765
+ function nt({
760
766
  baseUrl: e,
761
767
  limit: t = 1e5,
762
768
  converters: n
@@ -774,14 +780,14 @@ function et({
774
780
  let p = 0;
775
781
  try {
776
782
  for (; y.length < t; ) {
777
- const M = t - y.length, v = Math.min(w, M), S = await k(e, g, {
783
+ const S = t - y.length, v = Math.min(w, S), M = await k(e, g, {
778
784
  limit: v,
779
785
  offset: p,
780
786
  cql2Filter: m
781
787
  });
782
- y.push(...S.features), p += S.features.length;
783
- const F = S.numberMatched;
784
- if (F != null ? l(`Fetching features... (${y.length} of ${F})`) : l(`Fetching features... (${y.length})`), S.features.length < v || F != null && p >= F) break;
788
+ y.push(...M.features), p += M.features.length;
789
+ const O = M.numberMatched;
790
+ if (O != null ? l(`Fetching features... (${y.length} of ${O})`) : l(`Fetching features... (${y.length})`), M.features.length < v || O != null && p >= O) break;
785
791
  }
786
792
  l("Converting...");
787
793
  const $ = await h(y, g);
@@ -795,7 +801,7 @@ function et({
795
801
  [e, t, n]
796
802
  ), loading: r, progress: i, error: o };
797
803
  }
798
- function tt(e, t) {
804
+ function rt(e, t) {
799
805
  const [n, r] = d(null), [s, i] = d(!1), [l, o] = d(null);
800
806
  return G(() => {
801
807
  if (!e || !t) return;
@@ -811,18 +817,18 @@ function tt(e, t) {
811
817
  };
812
818
  }, [e, t]), { collection: n, loading: s, error: l };
813
819
  }
814
- function nt() {
820
+ function st() {
815
821
  const [e, t] = d(null), [n, r] = d([]), [s, i] = d("km"), l = j(
816
822
  () => e ? we(e, n, s) : null,
817
823
  [e, n, s]
818
824
  ), o = j(
819
- () => e ? Se(e, n) : null,
825
+ () => e ? Me(e, n) : null,
820
826
  [e, n]
821
827
  ), a = j(
822
828
  () => e ? $e(n) : null,
823
829
  [e, n]
824
830
  ), c = P((u) => {
825
- t(u), r([]), u && i(Me(u));
831
+ t(u), r([]), u && i(Se(u));
826
832
  }, []), g = P((u) => {
827
833
  r((m) => [...m, u]);
828
834
  }, []), f = P(() => {
@@ -833,8 +839,8 @@ function nt() {
833
839
  function q(e) {
834
840
  return e.id != null ? `${e.layerId}:${e.id}` : `${e.layerId}:${JSON.stringify(e.properties)}`;
835
841
  }
836
- const W = 1e3;
837
- function rt() {
842
+ const J = 1e3;
843
+ function it() {
838
844
  const [e, t] = d(null), [n, r] = d(null), [s, i] = d([]), l = j(() => s.length === 0 ? null : {
839
845
  type: "FeatureCollection",
840
846
  features: s.map((u) => ({
@@ -849,7 +855,7 @@ function rt() {
849
855
  }, []), c = P((u) => {
850
856
  i((m) => {
851
857
  const h = new Set(m.map(q)), y = u.filter((p) => !h.has(q(p))), w = [...m, ...y];
852
- return w.length > W ? w.slice(0, W) : w;
858
+ return w.length > J ? w.slice(0, J) : w;
853
859
  });
854
860
  }, []), g = P((u) => {
855
861
  i((m) => m.filter((h) => q(h) !== u));
@@ -868,14 +874,14 @@ function rt() {
868
874
  clearFeatures: f
869
875
  };
870
876
  }
871
- function st(e) {
877
+ function ot(e) {
872
878
  if (!e) return;
873
879
  const t = [], n = {};
874
880
  for (const [r, s] of Object.entries(e))
875
881
  s.visible !== !1 && (t.push(r), s.label && (n[r] = s.label));
876
882
  return { fields: t, labels: n };
877
883
  }
878
- async function it(e) {
884
+ async function at(e) {
879
885
  try {
880
886
  const t = await fetch(e);
881
887
  if (!t.ok) return null;
@@ -885,7 +891,7 @@ async function it(e) {
885
891
  return null;
886
892
  }
887
893
  }
888
- async function Oe(e) {
894
+ async function Fe(e) {
889
895
  try {
890
896
  const t = await fetch(`${e}.json`);
891
897
  if (!t.ok) return [];
@@ -895,7 +901,7 @@ async function Oe(e) {
895
901
  return [];
896
902
  }
897
903
  }
898
- async function ot(e, t) {
904
+ async function lt(e, t) {
899
905
  const n = await fetch(e);
900
906
  if (!n.ok) throw new Error(`Failed to fetch style: ${n.status}`);
901
907
  const r = await n.json();
@@ -916,26 +922,26 @@ async function Re(e) {
916
922
  return [];
917
923
  }
918
924
  }
919
- async function J(e) {
920
- const t = await Oe(e.url);
925
+ async function W(e) {
926
+ const t = await Fe(e.url);
921
927
  return e.id === "default" ? t : t.map((n) => `${e.id}:${n}`);
922
928
  }
923
- async function at(e, t = []) {
929
+ async function ct(e, t = []) {
924
930
  const n = [];
925
931
  e && n.push(
926
932
  Re(e).then(
927
- (s) => Promise.all(s.map(J)).then((i) => i.flat())
933
+ (s) => Promise.all(s.map(W)).then((i) => i.flat())
928
934
  )
929
935
  );
930
936
  for (const s of t)
931
- n.push(J(s));
937
+ n.push(W(s));
932
938
  const r = await Promise.all(n);
933
939
  return [...new Set(r.flat())].sort();
934
940
  }
935
941
  function E(e, t) {
936
942
  return { op: "=", args: [{ property: e }, t] };
937
943
  }
938
- function lt(e, t) {
944
+ function ut(e, t) {
939
945
  return { op: "<>", args: [{ property: e }, t] };
940
946
  }
941
947
  function Ae(e, t) {
@@ -953,24 +959,24 @@ function X(e, t) {
953
959
  function Te(e, t, n) {
954
960
  return { op: "and", args: [Y(e, t), X(e, n)] };
955
961
  }
956
- function ct(e, t) {
962
+ function ft(e, t) {
957
963
  return { op: "like", args: [{ property: e }, t] };
958
964
  }
959
- function ut(e, t) {
965
+ function gt(e, t) {
960
966
  return { op: "in", args: [{ property: e }, t] };
961
967
  }
962
- function ft(e) {
968
+ function ht(e) {
963
969
  return { op: "isNull", args: [{ property: e }] };
964
970
  }
965
971
  function H(...e) {
966
972
  const t = e.filter((n) => n != null);
967
973
  return t.length === 0 ? null : t.length === 1 ? t[0] : { op: "and", args: t };
968
974
  }
969
- function gt(...e) {
975
+ function mt(...e) {
970
976
  const t = e.filter((n) => n != null);
971
977
  return t.length === 0 ? null : t.length === 1 ? t[0] : { op: "or", args: t };
972
978
  }
973
- function ht(e) {
979
+ function dt(e) {
974
980
  return { op: "not", args: [e] };
975
981
  }
976
982
  function Ge(e, t) {
@@ -983,20 +989,20 @@ function Ue(e, t, n) {
983
989
  const r = "date" in t ? t.date : t.timestamp, s = "date" in n ? n.date : n.timestamp;
984
990
  return { op: "t_during", args: [{ property: e }, { interval: [r, s] }] };
985
991
  }
986
- function mt(e, t) {
992
+ function yt(e, t) {
987
993
  return { op: "s_intersects", args: [{ property: e }, t] };
988
994
  }
989
- function dt(e, t) {
995
+ function pt(e, t) {
990
996
  return { op: "s_within", args: [{ property: e }, t] };
991
997
  }
992
- function yt(e, t, n, r = "meters") {
998
+ function bt(e, t, n, r = "meters") {
993
999
  return { op: "s_dwithin", args: [{ property: e }, t, n, r] };
994
1000
  }
995
- function pt(e) {
1001
+ function wt(e) {
996
1002
  const t = Object.entries(e).filter(([, n]) => n !== void 0 && n !== "").map(([n, r]) => E(n, r));
997
1003
  return H(...t);
998
1004
  }
999
- function bt(e, t) {
1005
+ function St(e, t) {
1000
1006
  const n = new Map(t.map((s) => [s.property, s])), r = Object.entries(e).map(([s, i]) => {
1001
1007
  if (i === void 0) return null;
1002
1008
  const l = n.get(s);
@@ -1034,7 +1040,7 @@ function bt(e, t) {
1034
1040
  });
1035
1041
  return H(...r);
1036
1042
  }
1037
- function wt(e) {
1043
+ function Mt(e) {
1038
1044
  return JSON.stringify(e);
1039
1045
  }
1040
1046
  function Z(e) {
@@ -1042,7 +1048,7 @@ function Z(e) {
1042
1048
  return t === "Point" ? [n] : t === "MultiPoint" || t === "LineString" ? n : t === "MultiLineString" || t === "Polygon" ? n.flat() : t === "MultiPolygon" ? n.flat(2) : t === "GeometryCollection" ? (e.geometries ?? []).flatMap(Z) : [];
1043
1049
  }
1044
1050
  const A = 0.01;
1045
- function Mt(e) {
1051
+ function $t(e) {
1046
1052
  const t = Z(e);
1047
1053
  if (t.length === 0) return null;
1048
1054
  let n = 1 / 0, r = 1 / 0, s = -1 / 0, i = -1 / 0;
@@ -1051,66 +1057,68 @@ function Mt(e) {
1051
1057
  return n === s && r === i && (n -= A, r -= A, s += A, i += A), [n, r, s, i];
1052
1058
  }
1053
1059
  export {
1054
- be as $,
1055
- je as A,
1056
- X as B,
1057
- lt as C,
1058
- ht as D,
1059
- gt as E,
1060
- st as F,
1061
- ot as G,
1062
- yt as H,
1063
- mt as I,
1064
- dt as J,
1065
- wt as K,
1066
- Ge as L,
1067
- Ne as M,
1068
- Ue as N,
1069
- Ze as O,
1070
- et as P,
1071
- nt as Q,
1072
- tt as R,
1073
- Ye as S,
1074
- He as T,
1075
- Xe as U,
1076
- rt as V,
1077
- xe as W,
1078
- _e as X,
1079
- me as Y,
1080
- Se as Z,
1081
- $e as _,
1060
+ Me as $,
1061
+ ht as A,
1062
+ ft as B,
1063
+ je as C,
1064
+ X as D,
1065
+ ut as E,
1066
+ dt as F,
1067
+ mt as G,
1068
+ ot as H,
1069
+ lt as I,
1070
+ bt as J,
1071
+ yt as K,
1072
+ pt as L,
1073
+ Mt as M,
1074
+ Ge as N,
1075
+ Ne as O,
1076
+ Ue as P,
1077
+ tt as Q,
1078
+ nt as R,
1079
+ st as S,
1080
+ rt as T,
1081
+ He as U,
1082
+ et as V,
1083
+ Ze as W,
1084
+ it as X,
1085
+ xe as Y,
1086
+ _e as Z,
1087
+ me as _,
1082
1088
  H as a,
1083
- pe as a0,
1084
- we as a1,
1085
- Me as a2,
1086
- Fe as a3,
1087
- Oe as a4,
1088
- it as a5,
1089
- at as a6,
1090
- q as a7,
1091
- Mt as b,
1089
+ $e as a0,
1090
+ be as a1,
1091
+ pe as a2,
1092
+ we as a3,
1093
+ Se as a4,
1094
+ Oe as a5,
1095
+ Fe as a6,
1096
+ at as a7,
1097
+ ct as a8,
1098
+ q as a9,
1099
+ $t as b,
1092
1100
  Te as c,
1093
- K as d,
1094
- E as e,
1095
- Ee as f,
1096
- Ce as g,
1097
- ve as h,
1098
- We as i,
1099
- Be as j,
1100
- Ie as k,
1101
- ze as l,
1102
- k as m,
1103
- Pe as n,
1104
- Je as o,
1105
- pt as p,
1106
- bt as q,
1107
- Ke as r,
1108
- Ve as s,
1109
- Le as t,
1110
- Qe as u,
1111
- Ae as v,
1112
- Y as w,
1113
- ut as x,
1114
- ft as y,
1115
- ct as z
1101
+ Xe as d,
1102
+ K as e,
1103
+ E as f,
1104
+ Ee as g,
1105
+ Ce as h,
1106
+ ve as i,
1107
+ Je as j,
1108
+ Be as k,
1109
+ Ie as l,
1110
+ ze as m,
1111
+ k as n,
1112
+ Pe as o,
1113
+ We as p,
1114
+ wt as q,
1115
+ St as r,
1116
+ Ke as s,
1117
+ Qe as t,
1118
+ Le as u,
1119
+ Ye as v,
1120
+ Ve as w,
1121
+ Ae as x,
1122
+ Y as y,
1123
+ gt as z
1116
1124
  };
@@ -13,7 +13,7 @@ export type { OgcApiSource, LayerConfig, MapConfig, UIConfig, ViewConfig, StyleC
13
13
  export { resolvePropertyDisplay } from '../utils/propertyDisplay';
14
14
  export { resolveStyleWithSprites } from '../utils/spriteUtils';
15
15
  export type SearchFieldType = SearchField['type'];
16
- export { fetchCollections, fetchFeatures, fetchFeatureById, fetchQueryables, fetchCollectionDetail, fetchConformance, fetchTileJson, fetchFeatureCount, fetchDistinctValues, getFilteredVectorTileUrl, getCql2FilteredVectorTileUrl, getTileJsonUrl, getVectorTileUrl, type OgcCollection, type OgcCollectionsResponse, type GeoJsonFeature, type OgcFeatureCollection, type OgcQueryables, type OgcConformance, type TileJson, type QueryableProperty, type FetchFeaturesOptions, } from '../utils/ogcApi';
16
+ export { fetchCollections, fetchFeatures, fetchFeatureById, fetchQueryables, fetchCollectionDetail, fetchConformance, fetchTileJson, fetchFeatureCount, fetchDistinctValues, getFilteredVectorTileUrl, getCql2FilteredVectorTileUrl, getTileJsonUrl, getVectorTileUrl, getVectorTileSourceKey, buildGeometryFilter, type OgcCollection, type OgcCollectionsResponse, type GeoJsonFeature, type OgcFeatureCollection, type OgcQueryables, type OgcConformance, type TileJson, type QueryableProperty, type FetchFeaturesOptions, } from '../utils/ogcApi';
17
17
  export { eq, neq, gt, gte, lt, lte, between, like, inList, isNull, and, or, not, tAfter, tBefore, tDuring, fromSimpleFilters, fromStructuredFilters, serializeCql2, sIntersects, sWithin, sDwithin, type CQL2Expression, type CQL2PropertyRef, type CQL2Date, type CQL2Timestamp, type CQL2Interval, type CQL2Geometry, } from '../utils/cql2';
18
18
  export { bboxFromGeometry, type BBox } from '../utils/geo';
19
19
  export type { SelectionMode, SelectedFeature } from '../utils/selection';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGvE,YAAY,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAA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