@abi-software/flatmap-viewer 3.2.11 → 3.2.12

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/README.rst CHANGED
@@ -38,7 +38,7 @@ The map server endpoint is specified as ``MAP_ENDPOINT`` in ``src/main.js``. It
38
38
  Package Installation
39
39
  ====================
40
40
 
41
- * ``npm install @abi-software/flatmap-viewer@3.2.11``
41
+ * ``npm install @abi-software/flatmap-viewer@3.2.12``
42
42
 
43
43
  Documentation
44
44
  -------------
package/dist/index.js CHANGED
@@ -91709,6 +91709,12 @@ class jAt {
91709
91709
  removeTooltip_() {
91710
91710
  this._tooltip && (this._tooltip.remove(), this._tooltip = null);
91711
91711
  }
91712
+ /**
91713
+ * Remove the currently active popup from the map.
91714
+ */
91715
+ removePopup() {
91716
+ this._currentPopup && (this._currentPopup.remove(), this._currentPopup = null);
91717
+ }
91712
91718
  lineTooltip_(t) {
91713
91719
  const r = [];
91714
91720
  for (const n of t) {
@@ -92145,7 +92151,7 @@ const $At = [
92145
92151
  stretchY: [[7, 9]]
92146
92152
  }
92147
92153
  }
92148
- ], zAt = "3.2.11", UAt = 1.4, ZAt = 1.6, rU = "NCBITaxon:2787823", WAt = [
92154
+ ], zAt = "3.2.12", UAt = 1.4, ZAt = 1.6, rU = "NCBITaxon:2787823", WAt = [
92149
92155
  "bounds",
92150
92156
  "class",
92151
92157
  "coordinates",
@@ -92618,6 +92624,12 @@ class qAt {
92618
92624
  showPopup(t, r, n) {
92619
92625
  this._userInteractions !== null && this._userInteractions.showPopup(t, r, n);
92620
92626
  }
92627
+ /**
92628
+ * Remove the currently active popup from the map.
92629
+ */
92630
+ removePopup() {
92631
+ this._userInteractions !== null && this._userInteractions.removePopup();
92632
+ }
92621
92633
  setPaint(t = null) {
92622
92634
  t = fl(t, {
92623
92635
  colour: !0,
@@ -92936,7 +92948,7 @@ class qAt {
92936
92948
  * `draw_polygon` or `draw_point`. Options is accepted in first three modes.
92937
92949
  * More details in mapbox-gl-draw github repository.
92938
92950
  *
92939
- * @param type {Object} The object
92951
+ * @param type {Object} The object
92940
92952
  * @param type.mode {string} Either ``simple_select``, ``direct_select``, etc
92941
92953
  * @param type.options {Object} Feature id(s) object.
92942
92954
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmap-viewer",
3
- "version": "3.2.11",
3
+ "version": "3.2.12",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": {
6
6
  "type": "git",