@cpra/mp-ui 0.3.1 → 0.4.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.
@@ -651,17 +651,23 @@ class lp {
651
651
  n
652
652
  );
653
653
  }
654
- getMapStyleUrl({ analysis: t, mapOptions: n }) {
654
+ getMapStyleUrl({
655
+ analysis: t,
656
+ mapOptions: n,
657
+ extraParams: r = []
658
+ }) {
655
659
  return this.structure.visualizationsMap.map.getSpecUrl(
656
660
  this,
657
661
  {
658
662
  analysis: t,
659
663
  includeTimeDimension: !0
660
664
  },
661
- Object.keys(n).map((r) => [
662
- Ec(r),
663
- n[r]
664
- ])
665
+ [
666
+ ...Object.keys(n).map(
667
+ (o) => [Ec(o), n[o]]
668
+ ),
669
+ ...r
670
+ ]
665
671
  );
666
672
  }
667
673
  getModelGroup() {
@@ -14657,26 +14663,30 @@ function G2({
14657
14663
  }) {
14658
14664
  return dt(Um), dt(Qm), Pc(IS), Nc(), /* @__PURE__ */ x(If, { children: e });
14659
14665
  }
14660
- function W2({ className: e = "" }) {
14661
- const t = Qe(Da), n = Qe(Et), r = Qe(Rt).getMapCatalogQuery(), [o, a] = dt(
14666
+ function W2({
14667
+ className: e = "",
14668
+ styleParams: t = []
14669
+ }) {
14670
+ const n = Qe(Da), r = Qe(Et), o = Qe(Rt).getMapCatalogQuery(), [a, s] = dt(
14662
14671
  Kr
14663
- ), [s, i] = dt(Fc), c = Aa(_c), l = Qe(Gc), d = r.getMapStyleUrl({
14664
- analysis: n,
14665
- mapOptions: l
14666
- }), u = r.dataset.grid.label.toLowerCase(), [m, h, b] = s;
14672
+ ), [i, c] = dt(Fc), l = Aa(_c), d = Qe(Gc), u = o.getMapStyleUrl({
14673
+ analysis: r,
14674
+ mapOptions: d,
14675
+ extraParams: t
14676
+ }), m = o.dataset.grid.label.toLowerCase(), [h, b, f] = i;
14667
14677
  return /* @__PURE__ */ x(
14668
14678
  K0,
14669
14679
  {
14670
- center: [b, h],
14680
+ center: [f, b],
14671
14681
  className: e,
14672
- gridLabel: u,
14673
- maxSelectedGeographies: t,
14674
- selectedGeographies: o,
14675
- setMapLoading: c,
14676
- setMapPosition: i,
14677
- setSelectedGeographies: a,
14678
- styleUrl: d,
14679
- zoom: m
14682
+ gridLabel: m,
14683
+ maxSelectedGeographies: n,
14684
+ selectedGeographies: a,
14685
+ setMapLoading: l,
14686
+ setMapPosition: c,
14687
+ setSelectedGeographies: s,
14688
+ styleUrl: u,
14689
+ zoom: h
14680
14690
  }
14681
14691
  );
14682
14692
  }