@idmwx/idmui-gl4 0.8.4 → 0.8.5

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/dist/index.js CHANGED
@@ -378,8 +378,8 @@ const Va = {
378
378
  watch: {
379
379
  zone: {
380
380
  handler() {
381
- var t, e;
382
- this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick));
381
+ var t, e, o, i, a, r;
382
+ this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
383
383
  },
384
384
  immediate: !0
385
385
  }
@@ -479,6 +479,12 @@ const Va = {
479
479
  },
480
480
  handleClear() {
481
481
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
482
+ },
483
+ handleHover() {
484
+ this.map.getCanvas().style.cursor = "pointer";
485
+ },
486
+ handleLeave() {
487
+ this.map.getCanvas().style.cursor = "grab";
482
488
  }
483
489
  }
484
490
  }, Ya = ["innerHTML"];
@@ -564,8 +570,8 @@ const qa = {
564
570
  watch: {
565
571
  port: {
566
572
  handler() {
567
- var t, e;
568
- this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
573
+ var t, e, o, i, a, r;
574
+ this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.layer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.layer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.layer], this.handleLeave));
569
575
  },
570
576
  immediate: !0
571
577
  }
@@ -622,6 +628,12 @@ const qa = {
622
628
  },
623
629
  handleClickMeteo(t) {
624
630
  t.forecastModel = this.forecastModel, this.$emit("meteoMore", t);
631
+ },
632
+ handleHover() {
633
+ this.map.getCanvas().style.cursor = "pointer";
634
+ },
635
+ handleLeave() {
636
+ this.map.getCanvas().style.cursor = "grab";
625
637
  }
626
638
  }
627
639
  }, Ka = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Qa = { class: "d-flex justify-start align-center" }, Ja = { class: "d-flex justify-start align-center" }, $a = { class: "d-flex justify-start align-center" }, ei = { class: "d-flex justify-start align-center" };
@@ -692,7 +704,7 @@ function ti(t, e, o, i, a, r) {
692
704
  [We, a.showInfo]
693
705
  ]);
694
706
  }
695
- const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-a856b640"]]), ai = {
707
+ const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-a88fe459"]]), ai = {
696
708
  name: "IdmLoadLine",
697
709
  props: {
698
710
  map: {
@@ -1390,8 +1402,8 @@ const Ci = {
1390
1402
  watch: {
1391
1403
  show: {
1392
1404
  handler() {
1393
- var t, e;
1394
- this.show ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
1405
+ var t, e, o, i, a, r;
1406
+ this.show ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.layer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.layer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.layer], this.handleLeave));
1395
1407
  },
1396
1408
  immediate: !0
1397
1409
  },
@@ -1421,6 +1433,12 @@ const Ci = {
1421
1433
  handleClear() {
1422
1434
  var t;
1423
1435
  this.showInfo = !1, (t = this.map) != null && t.getLayer(this.layer) && this.map.setLayoutProperty(this.layer, "visibility", "none");
1436
+ },
1437
+ handleHover() {
1438
+ this.map.getCanvas().style.cursor = "pointer";
1439
+ },
1440
+ handleLeave() {
1441
+ this.map.getCanvas().style.cursor = "grab";
1424
1442
  }
1425
1443
  }
1426
1444
  }, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" }, Ai = { class: "d-flex justify-start align-center" };
@@ -1469,7 +1487,7 @@ function Ri(t, e, o, i, a, r) {
1469
1487
  [We, a.showInfo]
1470
1488
  ]);
1471
1489
  }
1472
- const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-ca81f9bd"]]), Oi = {
1490
+ const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-824556f3"]]), Oi = {
1473
1491
  name: "IdmIceAreas",
1474
1492
  props: {
1475
1493
  map: {