@abi-software/flatmap-viewer 4.6.1 → 4.6.3

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -56091,6 +56091,9 @@ class rnA {
56091
56091
  const B = this.#t.addMarker(A, I, Q);
56092
56092
  return B !== null && this.#o.set(A.featureId, B), B;
56093
56093
  }
56094
+ clearLayeredMarkers() {
56095
+ this.#t.clearMarkers();
56096
+ }
56094
56097
  updateBaseMarker(A, I) {
56095
56098
  const Q = this.#o.get(A.featureId);
56096
56099
  Q ? this.#t.updateMarkerCount(Q) : this.addLayeredMarker(A, I, !0);
@@ -56237,6 +56240,10 @@ class DnA {
56237
56240
  clearClusteredAnatomicalMarkers() {
56238
56241
  this.#D.clearClusteredMarkers();
56239
56242
  }
56243
+ clearLayeredMarkers() {
56244
+ for (const A of this.#r.values())
56245
+ A.clearLayeredMarkers();
56246
+ }
56240
56247
  datasetTerms(A) {
56241
56248
  return this.#D.datasetTerms(A);
56242
56249
  }
@@ -92364,7 +92371,14 @@ class LyA {
92364
92371
  }
92365
92372
  const Q = I.filter((C) => !C.id);
92366
92373
  I = I.filter((C) => C.id);
92367
- const B = I[0];
92374
+ let B = I[0];
92375
+ if (this.#e.mapMetadata["map-kinds"]?.includes("model")) {
92376
+ for (const C of I)
92377
+ if (C.properties.variable) {
92378
+ B = C;
92379
+ break;
92380
+ }
92381
+ }
92368
92382
  if (this.#p)
92369
92383
  this.#q && (this.#IA(), this.unselectFeatures(), this.#v());
92370
92384
  else if (Q.length > 0) {
@@ -92523,7 +92537,7 @@ class LyA {
92523
92537
  return I;
92524
92538
  }
92525
92539
  clearMarkers() {
92526
- this.#s && this.#s.clearMarkers();
92540
+ this.#s.clearMarkers(), this.#s.clearLayeredMarkers();
92527
92541
  for (const A of this.#h.keys())
92528
92542
  A.remove();
92529
92543
  this.#h.clear(), this.#I.clear();
@@ -103238,7 +103252,7 @@ class GuA {
103238
103252
  }
103239
103253
  //==========================================================================
103240
103254
  }
103241
- const yuA = "4.6.1", MuA = 1.4;
103255
+ const yuA = "4.6.3", MuA = 1.4;
103242
103256
  class OuA {
103243
103257
  /**
103244
103258
  * The released version of the viewer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmap-viewer",
3
- "version": "4.6.1",
3
+ "version": "4.6.3",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": {
6
6
  "type": "git",