react-map4d-map 1.3.3 → 1.3.4

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.
@@ -11,7 +11,7 @@ interface BuildingProps {
11
11
  zIndex?: number;
12
12
  visible?: boolean;
13
13
  draggable?: boolean;
14
- userInteractionEnabled?: boolean;
14
+ clickable?: boolean;
15
15
  selected?: boolean;
16
16
  growUp?: boolean;
17
17
  map?: map4d.Map;
@@ -9,7 +9,7 @@ interface CircleProps {
9
9
  draggable?: boolean;
10
10
  zIndex?: number;
11
11
  elevation?: number;
12
- userInteractionEnabled?: boolean;
12
+ clickable?: boolean;
13
13
  map?: map4d.Map;
14
14
  onCreated?: (circle: map4d.Circle) => void;
15
15
  }
@@ -18,7 +18,7 @@ interface MarkerProps {
18
18
  label?: any;
19
19
  draggable?: boolean;
20
20
  iconView?: string | Node;
21
- userInteractionEnabled?: boolean;
21
+ clickable?: boolean;
22
22
  map?: any;
23
23
  infoWindow?: string | Node;
24
24
  infoContents?: string | Node;
@@ -9,7 +9,7 @@ interface POIProps extends map4d.POIOptions {
9
9
  zIndex?: number;
10
10
  visible?: boolean;
11
11
  draggable?: boolean;
12
- userInteractionEnabled?: boolean;
12
+ clickable?: boolean;
13
13
  map?: map4d.Map;
14
14
  onCreated?: (poi: map4d.POI) => void;
15
15
  onClick?: (args: any) => void;
@@ -8,7 +8,7 @@ interface PolygonProps {
8
8
  draggable?: boolean;
9
9
  zIndex?: number;
10
10
  elevation?: number;
11
- userInteractionEnabled?: boolean;
11
+ clickable?: boolean;
12
12
  map?: map4d.Map;
13
13
  onCreated?: (polygon: map4d.Polygon) => void;
14
14
  onHover?: (args: any) => void;
@@ -9,7 +9,7 @@ interface PolylineProps {
9
9
  zIndex?: number;
10
10
  elevation?: number;
11
11
  strokePattern?: any;
12
- userInteractionEnabled?: boolean;
12
+ clickable?: boolean;
13
13
  map?: map4d.Map;
14
14
  onCreated?: (polyline: map4d.Polyline) => void;
15
15
  onHover?: (args: any) => void;
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ var MFBuilding = function MFBuilding(props) {
26
26
  coordinates = props.coordinates,
27
27
  visible = props.visible,
28
28
  draggable = props.draggable,
29
- userInteractionEnabled = props.userInteractionEnabled,
29
+ clickable = props.clickable,
30
30
  selected = props.selected,
31
31
  growUp = props.growUp,
32
32
  map = props.map,
@@ -53,7 +53,7 @@ var MFBuilding = function MFBuilding(props) {
53
53
  coordinates: coordinates,
54
54
  visible: visible,
55
55
  draggable: draggable,
56
- userInteractionEnabled: userInteractionEnabled,
56
+ clickable: clickable,
57
57
  selected: selected,
58
58
  growUp: growUp
59
59
  };
@@ -147,8 +147,8 @@ var MFBuilding = function MFBuilding(props) {
147
147
  React.useEffect(function () {
148
148
  var _buildingRef$current16;
149
149
 
150
- userInteractionEnabled != undefined && ((_buildingRef$current16 = buildingRef.current) === null || _buildingRef$current16 === void 0 ? void 0 : _buildingRef$current16.setUserInteraction(userInteractionEnabled));
151
- }, [userInteractionEnabled]);
150
+ clickable != undefined && ((_buildingRef$current16 = buildingRef.current) === null || _buildingRef$current16 === void 0 ? void 0 : _buildingRef$current16.setClickable(clickable));
151
+ }, [clickable]);
152
152
  React.useEffect(function () {
153
153
  var _buildingRef$current17;
154
154
 
@@ -250,7 +250,7 @@ var MFCircle = function MFCircle(props) {
250
250
  draggable = props.draggable,
251
251
  zIndex = props.zIndex,
252
252
  elevation = props.elevation,
253
- userInteractionEnabled = props.userInteractionEnabled,
253
+ clickable = props.clickable,
254
254
  map = props.map,
255
255
  onCreated = props.onCreated;
256
256
  var map4dContext = React.useContext(Map4dContext);
@@ -274,7 +274,7 @@ var MFCircle = function MFCircle(props) {
274
274
  draggable: draggable,
275
275
  zIndex: zIndex,
276
276
  elevation: elevation,
277
- userInteractionEnabled: userInteractionEnabled
277
+ clickable: clickable
278
278
  };
279
279
  Object.keys(option).forEach(function (key) {
280
280
  if (option[key] == undefined || option[key] == null) {
@@ -377,12 +377,12 @@ var MFCircle = function MFCircle(props) {
377
377
  }
378
378
  }, [elevation]);
379
379
  React.useEffect(function () {
380
- if (VariableTool.hasValue(userInteractionEnabled)) {
380
+ if (VariableTool.hasValue(clickable)) {
381
381
  var _circleRef$current15;
382
382
 
383
- (_circleRef$current15 = circleRef.current) === null || _circleRef$current15 === void 0 ? void 0 : _circleRef$current15.setUserInteraction(userInteractionEnabled);
383
+ (_circleRef$current15 = circleRef.current) === null || _circleRef$current15 === void 0 ? void 0 : _circleRef$current15.setClickable(clickable);
384
384
  }
385
- }, [userInteractionEnabled]);
385
+ }, [clickable]);
386
386
  return null;
387
387
  };
388
388
 
@@ -1074,7 +1074,7 @@ var MFMarker = function MFMarker(props) {
1074
1074
  label = props.label,
1075
1075
  draggable = props.draggable,
1076
1076
  iconView = props.iconView,
1077
- userInteractionEnabled = props.userInteractionEnabled,
1077
+ clickable = props.clickable,
1078
1078
  map = props.map,
1079
1079
  onCreated = props.onCreated,
1080
1080
  onClick = props.onClick,
@@ -1107,7 +1107,7 @@ var MFMarker = function MFMarker(props) {
1107
1107
  label: label,
1108
1108
  draggable: draggable,
1109
1109
  iconView: iconView,
1110
- userInteractionEnabled: userInteractionEnabled
1110
+ clickable: clickable
1111
1111
  };
1112
1112
  Object.keys(option).forEach(function (key) {
1113
1113
  if (option[key] == undefined || option[key] == null) {
@@ -1287,8 +1287,8 @@ var MFMarker = function MFMarker(props) {
1287
1287
  React.useEffect(function () {
1288
1288
  var _markerRef$current20;
1289
1289
 
1290
- userInteractionEnabled != undefined && ((_markerRef$current20 = markerRef.current) === null || _markerRef$current20 === void 0 ? void 0 : _markerRef$current20.setUserInteraction(userInteractionEnabled));
1291
- }, [userInteractionEnabled]);
1290
+ clickable != undefined && ((_markerRef$current20 = markerRef.current) === null || _markerRef$current20 === void 0 ? void 0 : _markerRef$current20.setClickable(clickable));
1291
+ }, [clickable]);
1292
1292
  React.useEffect(function () {
1293
1293
  var _markerRef$current21;
1294
1294
 
@@ -1418,7 +1418,7 @@ var MFPOI = function MFPOI(props) {
1418
1418
  zIndex = props.zIndex,
1419
1419
  visible = props.visible,
1420
1420
  draggable = props.draggable,
1421
- userInteractionEnabled = props.userInteractionEnabled,
1421
+ clickable = props.clickable,
1422
1422
  map = props.map,
1423
1423
  onCreated = props.onCreated,
1424
1424
  onClick = props.onClick,
@@ -1444,7 +1444,7 @@ var MFPOI = function MFPOI(props) {
1444
1444
  zIndex: zIndex,
1445
1445
  visible: visible,
1446
1446
  draggable: draggable,
1447
- userInteractionEnabled: userInteractionEnabled
1447
+ clickable: clickable
1448
1448
  };
1449
1449
  Object.keys(option).forEach(function (key) {
1450
1450
  if (option[key] == undefined || option[key] == null) {
@@ -1531,8 +1531,8 @@ var MFPOI = function MFPOI(props) {
1531
1531
  React.useEffect(function () {
1532
1532
  var _poiRef$current15;
1533
1533
 
1534
- userInteractionEnabled != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setUserInteraction(userInteractionEnabled));
1535
- }, [userInteractionEnabled]);
1534
+ clickable != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setClickable(clickable));
1535
+ }, [clickable]);
1536
1536
  React.useEffect(function () {
1537
1537
  if (poiRef.current) {
1538
1538
  poiRef.current.onClick = onClick;
@@ -1625,7 +1625,7 @@ var MFPolygon = function MFPolygon(props) {
1625
1625
  draggable = props.draggable,
1626
1626
  elevation = props.elevation,
1627
1627
  zIndex = props.zIndex,
1628
- userInteractionEnabled = props.userInteractionEnabled,
1628
+ clickable = props.clickable,
1629
1629
  map = props.map,
1630
1630
  onHover = props.onHover,
1631
1631
  onCreated = props.onCreated;
@@ -1647,7 +1647,7 @@ var MFPolygon = function MFPolygon(props) {
1647
1647
  draggable: draggable,
1648
1648
  elevation: elevation,
1649
1649
  zIndex: zIndex,
1650
- userInteractionEnabled: userInteractionEnabled
1650
+ clickable: clickable
1651
1651
  };
1652
1652
  Object.keys(option).forEach(function (key) {
1653
1653
  if (option[key] == undefined || option[key] == null) {
@@ -1742,8 +1742,8 @@ var MFPolygon = function MFPolygon(props) {
1742
1742
  React.useEffect(function () {
1743
1743
  var _polygonRef$current15;
1744
1744
 
1745
- userInteractionEnabled != undefined && ((_polygonRef$current15 = polygonRef.current) === null || _polygonRef$current15 === void 0 ? void 0 : _polygonRef$current15.setUserInteraction(userInteractionEnabled));
1746
- }, [userInteractionEnabled]);
1745
+ clickable != undefined && ((_polygonRef$current15 = polygonRef.current) === null || _polygonRef$current15 === void 0 ? void 0 : _polygonRef$current15.setClickable(clickable));
1746
+ }, [clickable]);
1747
1747
  return null;
1748
1748
  };
1749
1749
 
@@ -1759,7 +1759,7 @@ var MFPolyline = function MFPolyline(props) {
1759
1759
  zIndex = props.zIndex,
1760
1760
  elevation = props.elevation,
1761
1761
  strokePattern = props.strokePattern,
1762
- userInteractionEnabled = props.userInteractionEnabled,
1762
+ clickable = props.clickable,
1763
1763
  map = props.map,
1764
1764
  onClick = props.onClick,
1765
1765
  onHover = props.onHover,
@@ -1788,7 +1788,7 @@ var MFPolyline = function MFPolyline(props) {
1788
1788
  zIndex: zIndex,
1789
1789
  elevation: elevation,
1790
1790
  strokePattern: strokePattern,
1791
- userInteractionEnabled: userInteractionEnabled
1791
+ clickable: clickable
1792
1792
  };
1793
1793
  Object.keys(option).forEach(function (key) {
1794
1794
  if (option[key] == undefined || option[key] == null) {
@@ -1903,8 +1903,8 @@ var MFPolyline = function MFPolyline(props) {
1903
1903
  React.useEffect(function () {
1904
1904
  var _polylineRef$current15;
1905
1905
 
1906
- userInteractionEnabled != undefined && ((_polylineRef$current15 = polylineRef.current) === null || _polylineRef$current15 === void 0 ? void 0 : _polylineRef$current15.setUserInteraction(userInteractionEnabled));
1907
- }, [userInteractionEnabled]);
1906
+ clickable != undefined && ((_polylineRef$current15 = polylineRef.current) === null || _polylineRef$current15 === void 0 ? void 0 : _polylineRef$current15.setClickable(clickable));
1907
+ }, [clickable]);
1908
1908
  return null;
1909
1909
  };
1910
1910