@abi-software/flatmapvuer 1.7.2 → 1.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
@@ -43,8 +43,8 @@
43
43
  "./src/*": "./src/*"
44
44
  },
45
45
  "dependencies": {
46
- "@abi-software/flatmap-viewer": "3.2.10",
47
- "@abi-software/map-utilities": "^1.3.1",
46
+ "@abi-software/flatmap-viewer": "3.2.12",
47
+ "@abi-software/map-utilities": "^1.3.2",
48
48
  "@abi-software/sparc-annotation": "0.3.2",
49
49
  "@abi-software/svg-sprite": "^1.0.1",
50
50
  "@element-plus/icons-vue": "^2.3.1",
@@ -644,7 +644,7 @@ const centroid = (geometry) => {
644
644
  } else {
645
645
  coordinates = geometry.coordinates
646
646
  }
647
- if (coordinates) {
647
+ if (coordinates) {
648
648
  if (!(geometry.type === 'Point')) {
649
649
  coordinates.map((coor) => {
650
650
  featureGeometry.lng += parseFloat(coor[0])
@@ -1703,6 +1703,12 @@ export default {
1703
1703
  * Function to remove active tooltips on map.
1704
1704
  */
1705
1705
  removeActiveTooltips: function () {
1706
+ // Remove active tooltip/popup on map
1707
+ if (this.mapImp) {
1708
+ this.mapImp.removePopup();
1709
+ }
1710
+
1711
+ // Fallback: remove any existing toolitp on DOM
1706
1712
  const tooltips = this.$el.querySelectorAll('.flatmap-tooltip-popup');
1707
1713
  tooltips.forEach((tooltip) => tooltip.remove());
1708
1714
  },
@@ -3405,6 +3411,12 @@ export default {
3405
3411
  border-style: solid;
3406
3412
  flex-shrink: 0;
3407
3413
  }
3414
+
3415
+ hr {
3416
+ margin: 0.5rem 0;
3417
+ border: 0;
3418
+ border-top: 1px solid var(--el-border-color);
3419
+ }
3408
3420
  }
3409
3421
  .maplibregl-popup-tip {
3410
3422
  display: none;