@opengeoweb/webmap 2.14.0 → 2.15.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.
package/index.esm.js CHANGED
@@ -3622,8 +3622,14 @@ var MapPin = /*#__PURE__*/function () {
3622
3622
  _this.setMapPin(newpos.x, newpos.y);
3623
3623
  };
3624
3624
 
3625
- this.toggleDisableMapPin = function () {
3626
- _this.disableMapPin = !_this.disableMapPin;
3625
+ this.setMapPinDisabled = function () {
3626
+ _this.disableMapPin = true;
3627
+
3628
+ _this.redrawMap();
3629
+ };
3630
+
3631
+ this.setMapPinEnabled = function () {
3632
+ _this.disableMapPin = false;
3627
3633
 
3628
3634
  _this.redrawMap();
3629
3635
  };
package/index.umd.js CHANGED
@@ -3667,8 +3667,14 @@
3667
3667
  _this.setMapPin(newpos.x, newpos.y);
3668
3668
  };
3669
3669
 
3670
- this.toggleDisableMapPin = function () {
3671
- _this.disableMapPin = !_this.disableMapPin;
3670
+ this.setMapPinDisabled = function () {
3671
+ _this.disableMapPin = true;
3672
+
3673
+ _this.redrawMap();
3674
+ };
3675
+
3676
+ this.setMapPinEnabled = function () {
3677
+ _this.disableMapPin = false;
3672
3678
 
3673
3679
  _this.redrawMap();
3674
3680
  };
@@ -19,7 +19,8 @@ declare class MapPin {
19
19
  x: number;
20
20
  y: number;
21
21
  }) => void;
22
- toggleDisableMapPin: () => void;
22
+ setMapPinDisabled: () => void;
23
+ setMapPinEnabled: () => void;
23
24
  showMapPin: () => void;
24
25
  hideMapPin: () => void;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {