react-map4d-map 1.3.8 → 1.3.9

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
@@ -17,18 +17,27 @@ var MarkerClusterContext = React.createContext(markerClusterDefaultContext);
17
17
  var MFBuilding = function MFBuilding(props) {
18
18
  var position = props.position,
19
19
  name = props.name,
20
- scale = props.scale,
21
- bearing = props.bearing,
22
- elevation = props.elevation,
23
- height = props.height,
20
+ _props$scale = props.scale,
21
+ scale = _props$scale === void 0 ? 1 : _props$scale,
22
+ _props$bearing = props.bearing,
23
+ bearing = _props$bearing === void 0 ? 0 : _props$bearing,
24
+ _props$elevation = props.elevation,
25
+ elevation = _props$elevation === void 0 ? 0 : _props$elevation,
26
+ _props$height = props.height,
27
+ height = _props$height === void 0 ? 1 : _props$height,
24
28
  model = props.model,
25
29
  texture = props.texture,
26
30
  coordinates = props.coordinates,
27
- visible = props.visible,
28
- draggable = props.draggable,
29
- userInteractionEnabled = props.userInteractionEnabled,
30
- selected = props.selected,
31
- growUp = props.growUp,
31
+ _props$visible = props.visible,
32
+ visible = _props$visible === void 0 ? true : _props$visible,
33
+ _props$draggable = props.draggable,
34
+ draggable = _props$draggable === void 0 ? false : _props$draggable,
35
+ _props$clickable = props.clickable,
36
+ clickable = _props$clickable === void 0 ? true : _props$clickable,
37
+ _props$selected = props.selected,
38
+ selected = _props$selected === void 0 ? false : _props$selected,
39
+ _props$growUp = props.growUp,
40
+ growUp = _props$growUp === void 0 ? true : _props$growUp,
32
41
  map = props.map,
33
42
  onCreated = props.onCreated;
34
43
  var map4dContext = React.useContext(Map4dContext);
@@ -53,7 +62,7 @@ var MFBuilding = function MFBuilding(props) {
53
62
  coordinates: coordinates,
54
63
  visible: visible,
55
64
  draggable: draggable,
56
- userInteractionEnabled: userInteractionEnabled,
65
+ clickable: clickable,
57
66
  selected: selected,
58
67
  growUp: growUp
59
68
  };
@@ -95,69 +104,67 @@ var MFBuilding = function MFBuilding(props) {
95
104
  React.useEffect(function () {
96
105
  var _buildingRef$current6;
97
106
 
98
- name != undefined && ((_buildingRef$current6 = buildingRef.current) === null || _buildingRef$current6 === void 0 ? void 0 : _buildingRef$current6.setName(name));
107
+ (_buildingRef$current6 = buildingRef.current) === null || _buildingRef$current6 === void 0 ? void 0 : _buildingRef$current6.setName(name);
99
108
  }, [name]);
100
109
  React.useEffect(function () {
101
110
  var _buildingRef$current7;
102
111
 
103
- scale != undefined && ((_buildingRef$current7 = buildingRef.current) === null || _buildingRef$current7 === void 0 ? void 0 : _buildingRef$current7.setScale(scale));
112
+ (_buildingRef$current7 = buildingRef.current) === null || _buildingRef$current7 === void 0 ? void 0 : _buildingRef$current7.setScale(scale);
104
113
  }, [scale]);
105
114
  React.useEffect(function () {
106
- if (bearing != undefined) {
107
- var _buildingRef$current8;
115
+ var _buildingRef$current8;
108
116
 
109
- (_buildingRef$current8 = buildingRef.current) === null || _buildingRef$current8 === void 0 ? void 0 : _buildingRef$current8.setBearing(bearing);
110
- }
117
+ (_buildingRef$current8 = buildingRef.current) === null || _buildingRef$current8 === void 0 ? void 0 : _buildingRef$current8.setBearing(bearing);
111
118
  }, [bearing]);
112
119
  React.useEffect(function () {
113
120
  var _buildingRef$current9;
114
121
 
115
- elevation != undefined && ((_buildingRef$current9 = buildingRef.current) === null || _buildingRef$current9 === void 0 ? void 0 : _buildingRef$current9.setElevation(elevation));
122
+ (_buildingRef$current9 = buildingRef.current) === null || _buildingRef$current9 === void 0 ? void 0 : _buildingRef$current9.setElevation(elevation);
116
123
  }, [elevation]);
117
124
  React.useEffect(function () {
118
125
  var _buildingRef$current10;
119
126
 
120
- height != undefined && ((_buildingRef$current10 = buildingRef.current) === null || _buildingRef$current10 === void 0 ? void 0 : _buildingRef$current10.setHeight(height));
127
+ (_buildingRef$current10 = buildingRef.current) === null || _buildingRef$current10 === void 0 ? void 0 : _buildingRef$current10.setHeight(height);
121
128
  }, [height]);
122
129
  React.useEffect(function () {
123
130
  var _buildingRef$current11;
124
131
 
125
- model != undefined && ((_buildingRef$current11 = buildingRef.current) === null || _buildingRef$current11 === void 0 ? void 0 : _buildingRef$current11.setModel(model));
132
+ (_buildingRef$current11 = buildingRef.current) === null || _buildingRef$current11 === void 0 ? void 0 : _buildingRef$current11.setModel(model);
126
133
  }, [model]);
127
134
  React.useEffect(function () {
128
135
  var _buildingRef$current12;
129
136
 
130
- texture != undefined && ((_buildingRef$current12 = buildingRef.current) === null || _buildingRef$current12 === void 0 ? void 0 : _buildingRef$current12.setTexture(texture));
137
+ (_buildingRef$current12 = buildingRef.current) === null || _buildingRef$current12 === void 0 ? void 0 : _buildingRef$current12.setTexture(texture);
131
138
  }, [texture]);
132
139
  React.useEffect(function () {
133
140
  var _buildingRef$current13;
134
141
 
135
- coordinates != undefined && ((_buildingRef$current13 = buildingRef.current) === null || _buildingRef$current13 === void 0 ? void 0 : _buildingRef$current13.setCoordinates(coordinates));
142
+ (_buildingRef$current13 = buildingRef.current) === null || _buildingRef$current13 === void 0 ? void 0 : _buildingRef$current13.setCoordinates(coordinates);
136
143
  }, [coordinates]);
137
144
  React.useEffect(function () {
138
145
  var _buildingRef$current14;
139
146
 
140
- visible != undefined && ((_buildingRef$current14 = buildingRef.current) === null || _buildingRef$current14 === void 0 ? void 0 : _buildingRef$current14.setVisible(visible));
147
+ (_buildingRef$current14 = buildingRef.current) === null || _buildingRef$current14 === void 0 ? void 0 : _buildingRef$current14.setVisible(visible);
141
148
  }, [visible]);
142
149
  React.useEffect(function () {
143
150
  var _buildingRef$current15;
144
151
 
145
- draggable != undefined && ((_buildingRef$current15 = buildingRef.current) === null || _buildingRef$current15 === void 0 ? void 0 : _buildingRef$current15.setDraggable(draggable));
152
+ (_buildingRef$current15 = buildingRef.current) === null || _buildingRef$current15 === void 0 ? void 0 : _buildingRef$current15.setDraggable(draggable);
146
153
  }, [draggable]);
147
154
  React.useEffect(function () {
148
155
  var _buildingRef$current16;
149
156
 
150
- userInteractionEnabled != undefined && ((_buildingRef$current16 = buildingRef.current) === null || _buildingRef$current16 === void 0 ? void 0 : _buildingRef$current16.setUserInteraction(userInteractionEnabled));
151
- }, [userInteractionEnabled]);
157
+ (_buildingRef$current16 = buildingRef.current) === null || _buildingRef$current16 === void 0 ? void 0 : _buildingRef$current16.setClickable(clickable);
158
+ }, [clickable]);
152
159
  React.useEffect(function () {
153
160
  var _buildingRef$current17;
154
161
 
155
- selected != undefined && ((_buildingRef$current17 = buildingRef.current) === null || _buildingRef$current17 === void 0 ? void 0 : _buildingRef$current17.setSelected(selected));
162
+ (_buildingRef$current17 = buildingRef.current) === null || _buildingRef$current17 === void 0 ? void 0 : _buildingRef$current17.setSelected(selected);
156
163
  }, [selected]);
157
164
  React.useEffect(function () {
158
165
  var _buildingRef$current18;
159
166
 
160
- growUp != undefined && ((_buildingRef$current18 = buildingRef.current) === null || _buildingRef$current18 === void 0 ? void 0 : _buildingRef$current18.setGrowUp(growUp));
167
+ (_buildingRef$current18 = buildingRef.current) === null || _buildingRef$current18 === void 0 ? void 0 : _buildingRef$current18.setGrowUp(growUp);
161
168
  }, [growUp]);
162
169
  return null;
163
170
  };
@@ -242,15 +249,19 @@ VariableTool.hasValue = function (variable) {
242
249
  var MFCircle = function MFCircle(props) {
243
250
  var center = props.center,
244
251
  radius = props.radius,
245
- fillColor = props.fillColor,
246
- fillOpacity = props.fillOpacity,
247
- visible = props.visible,
248
- strokeColor = props.strokeColor,
252
+ _props$fillColor = props.fillColor,
253
+ fillColor = _props$fillColor === void 0 ? "#0000FF" : _props$fillColor,
254
+ _props$fillOpacity = props.fillOpacity,
255
+ fillOpacity = _props$fillOpacity === void 0 ? 1 : _props$fillOpacity,
256
+ _props$visible = props.visible,
257
+ visible = _props$visible === void 0 ? true : _props$visible,
258
+ _props$strokeColor = props.strokeColor,
259
+ strokeColor = _props$strokeColor === void 0 ? "#00FF00" : _props$strokeColor,
249
260
  strokeWidth = props.strokeWidth,
250
261
  draggable = props.draggable,
251
262
  zIndex = props.zIndex,
252
263
  elevation = props.elevation,
253
- userInteractionEnabled = props.userInteractionEnabled,
264
+ clickable = props.clickable,
254
265
  map = props.map,
255
266
  onCreated = props.onCreated,
256
267
  onClick = props.onClick;
@@ -275,7 +286,7 @@ var MFCircle = function MFCircle(props) {
275
286
  draggable: draggable,
276
287
  zIndex: zIndex,
277
288
  elevation: elevation,
278
- userInteractionEnabled: userInteractionEnabled
289
+ clickable: clickable
279
290
  };
280
291
  Object.keys(option).forEach(function (key) {
281
292
  if (option[key] == undefined || option[key] == null) {
@@ -384,12 +395,12 @@ var MFCircle = function MFCircle(props) {
384
395
  }
385
396
  }, [elevation]);
386
397
  React.useEffect(function () {
387
- if (VariableTool.hasValue(userInteractionEnabled)) {
398
+ if (VariableTool.hasValue(clickable)) {
388
399
  var _circleRef$current15;
389
400
 
390
- (_circleRef$current15 = circleRef.current) === null || _circleRef$current15 === void 0 ? void 0 : _circleRef$current15.setUserInteraction(userInteractionEnabled);
401
+ (_circleRef$current15 = circleRef.current) === null || _circleRef$current15 === void 0 ? void 0 : _circleRef$current15.setClickable(clickable);
391
402
  }
392
- }, [userInteractionEnabled]);
403
+ }, [clickable]);
393
404
  return null;
394
405
  };
395
406
 
@@ -493,6 +504,12 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
493
504
  directionRef.current.onMouseMove = onMouseMove;
494
505
  onCreated && onCreated(directionRef.current);
495
506
  }
507
+
508
+ return function () {
509
+ var _directionRef$current2;
510
+
511
+ (_directionRef$current2 = directionRef.current) === null || _directionRef$current2 === void 0 ? void 0 : _directionRef$current2.setMap(null);
512
+ };
496
513
  }, [theMap]);
497
514
  React.useEffect(function () {
498
515
  if (directionRef.current) {
@@ -516,46 +533,46 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
516
533
  }, [onMouseMove]);
517
534
  React.useEffect(function () {
518
535
  if (theMap) {
519
- var _directionRef$current2;
536
+ var _directionRef$current3;
520
537
 
521
- (_directionRef$current2 = directionRef.current) === null || _directionRef$current2 === void 0 ? void 0 : _directionRef$current2.setMap(theMap);
538
+ (_directionRef$current3 = directionRef.current) === null || _directionRef$current3 === void 0 ? void 0 : _directionRef$current3.setMap(theMap);
522
539
  }
523
540
 
524
541
  return function () {
525
- var _directionRef$current3;
542
+ var _directionRef$current4;
526
543
 
527
- (_directionRef$current3 = directionRef.current) === null || _directionRef$current3 === void 0 ? void 0 : _directionRef$current3.setMap(null);
544
+ (_directionRef$current4 = directionRef.current) === null || _directionRef$current4 === void 0 ? void 0 : _directionRef$current4.setMap(null);
528
545
  };
529
546
  }, [theMap]);
530
547
  React.useEffect(function () {
531
548
  return function () {
532
- var _directionRef$current4;
549
+ var _directionRef$current5;
533
550
 
534
- (_directionRef$current4 = directionRef.current) === null || _directionRef$current4 === void 0 ? void 0 : _directionRef$current4.setMap(null);
551
+ (_directionRef$current5 = directionRef.current) === null || _directionRef$current5 === void 0 ? void 0 : _directionRef$current5.setMap(null);
535
552
  };
536
553
  }, []);
537
554
  React.useEffect(function () {
538
- var _directionRef$current5;
555
+ var _directionRef$current6;
539
556
 
540
- routes != undefined && ((_directionRef$current5 = directionRef.current) === null || _directionRef$current5 === void 0 ? void 0 : _directionRef$current5.setRoutes(routes));
557
+ routes != undefined && ((_directionRef$current6 = directionRef.current) === null || _directionRef$current6 === void 0 ? void 0 : _directionRef$current6.setRoutes(routes));
541
558
  }, [routes]);
542
559
  React.useEffect(function () {
543
- var _directionRef$current6;
560
+ var _directionRef$current7;
544
561
 
545
- activedIndex != undefined && ((_directionRef$current6 = directionRef.current) === null || _directionRef$current6 === void 0 ? void 0 : _directionRef$current6.setActivedIndex(activedIndex));
562
+ activedIndex != undefined && ((_directionRef$current7 = directionRef.current) === null || _directionRef$current7 === void 0 ? void 0 : _directionRef$current7.setActivedIndex(activedIndex));
546
563
  }, [activedIndex]);
547
564
  React.useEffect(function () {
548
- var _directionRef$current7;
565
+ var _directionRef$current8;
549
566
 
550
- activeStrokePattern != undefined && ((_directionRef$current7 = directionRef.current) === null || _directionRef$current7 === void 0 ? void 0 : _directionRef$current7.setActiveStrokePattern(activeStrokePattern));
567
+ activeStrokePattern != undefined && ((_directionRef$current8 = directionRef.current) === null || _directionRef$current8 === void 0 ? void 0 : _directionRef$current8.setActiveStrokePattern(activeStrokePattern));
551
568
  }, [activeStrokePattern]);
552
569
  React.useEffect(function () {
553
- var _directionRef$current8;
570
+ var _directionRef$current9;
554
571
 
555
- inactiveStrokePattern != undefined && ((_directionRef$current8 = directionRef.current) === null || _directionRef$current8 === void 0 ? void 0 : _directionRef$current8.setInactiveStrokePattern(inactiveStrokePattern));
572
+ inactiveStrokePattern != undefined && ((_directionRef$current9 = directionRef.current) === null || _directionRef$current9 === void 0 ? void 0 : _directionRef$current9.setInactiveStrokePattern(inactiveStrokePattern));
556
573
  }, [inactiveStrokePattern]);
557
574
  React.useEffect(function () {
558
- var _directionRef$current9;
575
+ var _directionRef$current10;
559
576
 
560
577
  var option = {
561
578
  routes: routes,
@@ -580,7 +597,7 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
580
597
  delete option[key];
581
598
  }
582
599
  });
583
- (_directionRef$current9 = directionRef.current) === null || _directionRef$current9 === void 0 ? void 0 : _directionRef$current9.setOptions(option);
600
+ (_directionRef$current10 = directionRef.current) === null || _directionRef$current10 === void 0 ? void 0 : _directionRef$current10.setOptions(option);
584
601
  }, [activeStrokeWidth, activeStrokeColor, activeOutlineWidth, activeOutlineColor, inactiveStrokeColor, inactiveOutlineWidth, inactiveOutlineColor, originMarkerOptions, destinationMarkerOptions, waypointMarkerOptions, onMarkerDragEnd]);
585
602
  return null;
586
603
  };
@@ -771,6 +788,8 @@ var createId = function createId() {
771
788
  };
772
789
 
773
790
  var MFMap = function MFMap(props) {
791
+ var _props$options3, _props$options8;
792
+
774
793
  var _options = React.useRef({
775
794
  options: props.options,
776
795
  mapId: props.mapid,
@@ -874,145 +893,163 @@ var MFMap = function MFMap(props) {
874
893
 
875
894
  destroy();
876
895
  };
877
- }, []);
896
+ }, [props.environment, props.version, props.accessKey]);
897
+ React.useEffect(function () {
898
+ var _props$options, _mapRef$current2, _props$options2;
899
+
900
+ ((_props$options = props.options) === null || _props$options === void 0 ? void 0 : _props$options.mapType) != undefined && ((_mapRef$current2 = mapRef.current) === null || _mapRef$current2 === void 0 ? void 0 : _mapRef$current2.setMapType((_props$options2 = props.options) === null || _props$options2 === void 0 ? void 0 : _props$options2.mapType));
901
+ }, [(_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.mapType]);
902
+ React.useEffect(function () {
903
+ var _props$options4, _props$options6, _mapRef$current5, _props$options7;
904
+
905
+ if (((_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.center) != undefined) {
906
+ var _mapRef$current3, _props$options5, _mapRef$current4;
907
+
908
+ var camera = (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.getCamera();
909
+ camera === null || camera === void 0 ? void 0 : camera.setTarget((_props$options5 = props.options) === null || _props$options5 === void 0 ? void 0 : _props$options5.center);
910
+ (_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.moveCamera(camera);
911
+ }
912
+
913
+ ((_props$options6 = props.options) === null || _props$options6 === void 0 ? void 0 : _props$options6.mapType) != undefined && ((_mapRef$current5 = mapRef.current) === null || _mapRef$current5 === void 0 ? void 0 : _mapRef$current5.setMapType((_props$options7 = props.options) === null || _props$options7 === void 0 ? void 0 : _props$options7.mapType));
914
+ }, [(_props$options8 = props.options) === null || _props$options8 === void 0 ? void 0 : _props$options8.center]);
878
915
 
879
916
  var registerEvent = function registerEvent() {
880
- var _mapRef$current2, _mapRef$current3, _mapRef$current4, _mapRef$current5, _mapRef$current6, _mapRef$current7, _mapRef$current8, _mapRef$current9, _mapRef$current10, _mapRef$current11, _mapRef$current12, _mapRef$current13, _mapRef$current14, _mapRef$current15, _mapRef$current16, _mapRef$current17, _mapRef$current18, _mapRef$current19, _mapRef$current20, _mapRef$current21;
917
+ var _mapRef$current6, _mapRef$current7, _mapRef$current8, _mapRef$current9, _mapRef$current10, _mapRef$current11, _mapRef$current12, _mapRef$current13, _mapRef$current14, _mapRef$current15, _mapRef$current16, _mapRef$current17, _mapRef$current18, _mapRef$current19, _mapRef$current20, _mapRef$current21, _mapRef$current22, _mapRef$current23, _mapRef$current24, _mapRef$current25;
881
918
 
882
- var eventClickMarker = (_mapRef$current2 = mapRef.current) === null || _mapRef$current2 === void 0 ? void 0 : _mapRef$current2.addListener("click", function (args) {
919
+ var eventClickMarker = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("click", function (args) {
883
920
  var _args$marker, _args$marker2;
884
921
 
885
922
  ((_args$marker = args.marker) === null || _args$marker === void 0 ? void 0 : _args$marker.onClick) && ((_args$marker2 = args.marker) === null || _args$marker2 === void 0 ? void 0 : _args$marker2.onClick(args));
886
923
  }, {
887
924
  marker: true
888
925
  });
889
- var eventRightClickMarker = (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.addListener("rightClick", function (args) {
926
+ var eventRightClickMarker = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("rightClick", function (args) {
890
927
  var _args$marker3, _args$marker4;
891
928
 
892
929
  ((_args$marker3 = args.marker) === null || _args$marker3 === void 0 ? void 0 : _args$marker3.onRightClick) && ((_args$marker4 = args.marker) === null || _args$marker4 === void 0 ? void 0 : _args$marker4.onRightClick(args));
893
930
  }, {
894
931
  marker: true
895
932
  });
896
- var eventDragEndMarker = (_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.addListener("dragEnd", function (args) {
933
+ var eventDragEndMarker = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("dragEnd", function (args) {
897
934
  var _args$marker5, _args$marker6;
898
935
 
899
936
  ((_args$marker5 = args.marker) === null || _args$marker5 === void 0 ? void 0 : _args$marker5.onDragEnd) && ((_args$marker6 = args.marker) === null || _args$marker6 === void 0 ? void 0 : _args$marker6.onDragEnd(args));
900
937
  }, {
901
938
  marker: true
902
939
  });
903
- var eventHoverMarker = (_mapRef$current5 = mapRef.current) === null || _mapRef$current5 === void 0 ? void 0 : _mapRef$current5.addListener("hover", function (args) {
940
+ var eventHoverMarker = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("hover", function (args) {
904
941
  var _args$marker7, _args$marker8;
905
942
 
906
943
  ((_args$marker7 = args.marker) === null || _args$marker7 === void 0 ? void 0 : _args$marker7.onHover) && ((_args$marker8 = args.marker) === null || _args$marker8 === void 0 ? void 0 : _args$marker8.onHover(args));
907
944
  }, {
908
945
  marker: true
909
946
  });
910
- var eventHoverPolygon = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("hover", function (args) {
947
+ var eventHoverPolygon = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("hover", function (args) {
911
948
  var _args$polygon, _args$polygon2;
912
949
 
913
950
  ((_args$polygon = args.polygon) === null || _args$polygon === void 0 ? void 0 : _args$polygon.onHover) && ((_args$polygon2 = args.polygon) === null || _args$polygon2 === void 0 ? void 0 : _args$polygon2.onHover(args));
914
951
  }, {
915
952
  polygon: true
916
953
  });
917
- var eventHoverPolyline = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("hover", function (args) {
954
+ var eventHoverPolyline = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("hover", function (args) {
918
955
  var _args$polyline, _args$polyline2;
919
956
 
920
957
  ((_args$polyline = args.polyline) === null || _args$polyline === void 0 ? void 0 : _args$polyline.onHover) && ((_args$polyline2 = args.polyline) === null || _args$polyline2 === void 0 ? void 0 : _args$polyline2.onHover(args));
921
958
  }, {
922
959
  polyline: true
923
960
  });
924
- var eventHoverDirection = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("hover", function (args) {
961
+ var eventHoverDirection = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("hover", function (args) {
925
962
  var _args$renderer, _args$renderer2;
926
963
 
927
964
  ((_args$renderer = args.renderer) === null || _args$renderer === void 0 ? void 0 : _args$renderer.onHover) && ((_args$renderer2 = args.renderer) === null || _args$renderer2 === void 0 ? void 0 : _args$renderer2.onHover(args));
928
965
  }, {
929
966
  directions: true
930
967
  });
931
- var eventClickPolyline = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("click", function (args) {
968
+ var eventClickPolyline = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("click", function (args) {
932
969
  var _args$polyline3, _args$polyline4;
933
970
 
934
971
  ((_args$polyline3 = args.polyline) === null || _args$polyline3 === void 0 ? void 0 : _args$polyline3.onClick) && ((_args$polyline4 = args.polyline) === null || _args$polyline4 === void 0 ? void 0 : _args$polyline4.onClick(args));
935
972
  }, {
936
973
  polyline: true
937
974
  });
938
- var eventMouseOutDirection = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("mouseOut", function (args) {
975
+ var eventMouseOutDirection = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOut", function (args) {
939
976
  var _args$renderer3, _args$renderer4;
940
977
 
941
978
  ((_args$renderer3 = args.renderer) === null || _args$renderer3 === void 0 ? void 0 : _args$renderer3.onMouseOut) && ((_args$renderer4 = args.renderer) === null || _args$renderer4 === void 0 ? void 0 : _args$renderer4.onMouseOut(args));
942
979
  }, {
943
980
  directions: true
944
981
  });
945
- var eventMouseOverDirection = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("mouseOver", function (args) {
982
+ var eventMouseOverDirection = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseOver", function (args) {
946
983
  var _args$renderer5, _args$renderer6;
947
984
 
948
985
  ((_args$renderer5 = args.renderer) === null || _args$renderer5 === void 0 ? void 0 : _args$renderer5.onMouseOver) && ((_args$renderer6 = args.renderer) === null || _args$renderer6 === void 0 ? void 0 : _args$renderer6.onMouseOver(args));
949
986
  }, {
950
987
  directions: true
951
988
  });
952
- var eventMouseMoveDirection = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("mouseMove", function (args) {
989
+ var eventMouseMoveDirection = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseMove", function (args) {
953
990
  var _args$renderer7, _args$renderer8;
954
991
 
955
992
  ((_args$renderer7 = args.renderer) === null || _args$renderer7 === void 0 ? void 0 : _args$renderer7.onMouseMove) && ((_args$renderer8 = args.renderer) === null || _args$renderer8 === void 0 ? void 0 : _args$renderer8.onMouseMove(args));
956
993
  }, {
957
994
  directions: true
958
995
  });
959
- var eventMouseOutPolyline = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("mouseOut", function (args) {
996
+ var eventMouseOutPolyline = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOut", function (args) {
960
997
  var _args$polyline5, _args$polyline6;
961
998
 
962
999
  ((_args$polyline5 = args.polyline) === null || _args$polyline5 === void 0 ? void 0 : _args$polyline5.onMouseOut) && ((_args$polyline6 = args.polyline) === null || _args$polyline6 === void 0 ? void 0 : _args$polyline6.onMouseOut(args));
963
1000
  }, {
964
1001
  polyline: true
965
1002
  });
966
- var eventMouseOverPolyline = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOver", function (args) {
1003
+ var eventMouseOverPolyline = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseOver", function (args) {
967
1004
  var _args$polyline7, _args$polyline8;
968
1005
 
969
1006
  ((_args$polyline7 = args.polyline) === null || _args$polyline7 === void 0 ? void 0 : _args$polyline7.onMouseOver) && ((_args$polyline8 = args.polyline) === null || _args$polyline8 === void 0 ? void 0 : _args$polyline8.onMouseOver(args));
970
1007
  }, {
971
1008
  polyline: true
972
1009
  });
973
- var eventMouseMovePolyline = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseMove", function (args) {
1010
+ var eventMouseMovePolyline = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("mouseMove", function (args) {
974
1011
  var _args$polyline9, _args$polyline10;
975
1012
 
976
1013
  ((_args$polyline9 = args.polyline) === null || _args$polyline9 === void 0 ? void 0 : _args$polyline9.onMouseMove) && ((_args$polyline10 = args.polyline) === null || _args$polyline10 === void 0 ? void 0 : _args$polyline10.onMouseMove(args));
977
1014
  }, {
978
1015
  polyline: true
979
1016
  });
980
- var eventMouseOutMarker = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseOut", function (args) {
1017
+ var eventMouseOutMarker = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("mouseOut", function (args) {
981
1018
  var _args$marker9, _args$marker10;
982
1019
 
983
1020
  ((_args$marker9 = args.marker) === null || _args$marker9 === void 0 ? void 0 : _args$marker9.onMouseOut) && ((_args$marker10 = args.marker) === null || _args$marker10 === void 0 ? void 0 : _args$marker10.onMouseOut(args));
984
1021
  }, {
985
1022
  marker: true
986
1023
  });
987
- var eventMouseOverMarker = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOver", function (args) {
1024
+ var eventMouseOverMarker = (_mapRef$current21 = mapRef.current) === null || _mapRef$current21 === void 0 ? void 0 : _mapRef$current21.addListener("mouseOver", function (args) {
988
1025
  var _args$marker11, _args$marker12;
989
1026
 
990
1027
  ((_args$marker11 = args.marker) === null || _args$marker11 === void 0 ? void 0 : _args$marker11.onMouseOver) && ((_args$marker12 = args.marker) === null || _args$marker12 === void 0 ? void 0 : _args$marker12.onMouseOver(args));
991
1028
  }, {
992
1029
  marker: true
993
1030
  });
994
- var eventMouseMoveMarker = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseMove", function (args) {
1031
+ var eventMouseMoveMarker = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("mouseMove", function (args) {
995
1032
  var _args$marker13, _args$marker14;
996
1033
 
997
1034
  ((_args$marker13 = args.marker) === null || _args$marker13 === void 0 ? void 0 : _args$marker13.onMouseMove) && ((_args$marker14 = args.marker) === null || _args$marker14 === void 0 ? void 0 : _args$marker14.onMouseMove(args));
998
1035
  }, {
999
1036
  marker: true
1000
1037
  });
1001
- var eventClickPoi = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("click", function (args) {
1038
+ var eventClickPoi = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("click", function (args) {
1002
1039
  var _args$poi, _args$poi2;
1003
1040
 
1004
1041
  ((_args$poi = args.poi) === null || _args$poi === void 0 ? void 0 : _args$poi.onClick) && ((_args$poi2 = args.poi) === null || _args$poi2 === void 0 ? void 0 : _args$poi2.onClick(args));
1005
1042
  }, {
1006
1043
  poi: true
1007
1044
  });
1008
- var eventHoverPoi = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("hover", function (args) {
1045
+ var eventHoverPoi = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("hover", function (args) {
1009
1046
  var _args$poi3, _args$poi4;
1010
1047
 
1011
1048
  ((_args$poi3 = args.poi) === null || _args$poi3 === void 0 ? void 0 : _args$poi3.onHover) && ((_args$poi4 = args.poi) === null || _args$poi4 === void 0 ? void 0 : _args$poi4.onHover(args));
1012
1049
  }, {
1013
1050
  poi: true
1014
1051
  });
1015
- events.current = events.current.concat([eventClickMarker, eventRightClickMarker, eventDragEndMarker, eventHoverMarker, eventHoverPolygon, eventHoverPolyline, eventHoverDirection, eventClickPolyline, eventMouseOutDirection, eventMouseOverDirection, eventMouseMoveDirection, eventMouseOutPolyline, eventMouseOverPolyline, eventMouseMovePolyline, eventMouseOutMarker, eventMouseOverMarker, eventMouseMoveMarker, eventClickPoi, eventHoverPoi, (_mapRef$current21 = mapRef.current) === null || _mapRef$current21 === void 0 ? void 0 : _mapRef$current21.addListener("click", function (args) {
1052
+ events.current = events.current.concat([eventClickMarker, eventRightClickMarker, eventDragEndMarker, eventHoverMarker, eventHoverPolygon, eventHoverPolyline, eventHoverDirection, eventClickPolyline, eventMouseOutDirection, eventMouseOverDirection, eventMouseMoveDirection, eventMouseOutPolyline, eventMouseOverPolyline, eventMouseMovePolyline, eventMouseOutMarker, eventMouseOverMarker, eventMouseMoveMarker, eventClickPoi, eventHoverPoi, (_mapRef$current25 = mapRef.current) === null || _mapRef$current25 === void 0 ? void 0 : _mapRef$current25.addListener("click", function (args) {
1016
1053
  var _args$circle, _args$circle2, _args$polygon3, _args$polygon3$onClic;
1017
1054
 
1018
1055
  ((_args$circle = args.circle) === null || _args$circle === void 0 ? void 0 : _args$circle.onClick) && ((_args$circle2 = args.circle) === null || _args$circle2 === void 0 ? void 0 : _args$circle2.onClick(args));
@@ -1023,9 +1060,9 @@ var MFMap = function MFMap(props) {
1023
1060
  })]);
1024
1061
 
1025
1062
  if (props.onClickLocation) {
1026
- var _mapRef$current22;
1063
+ var _mapRef$current26;
1027
1064
 
1028
- var onClickLocation = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("click", function (args) {
1065
+ var onClickLocation = (_mapRef$current26 = mapRef.current) === null || _mapRef$current26 === void 0 ? void 0 : _mapRef$current26.addListener("click", function (args) {
1029
1066
  props.onClickLocation && props.onClickLocation(args);
1030
1067
  }, {
1031
1068
  location: true
@@ -1034,9 +1071,9 @@ var MFMap = function MFMap(props) {
1034
1071
  }
1035
1072
 
1036
1073
  if (props.onRightClickLocation) {
1037
- var _mapRef$current23;
1074
+ var _mapRef$current27;
1038
1075
 
1039
- var onRightClickLocation = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("rightClick", function (args) {
1076
+ var onRightClickLocation = (_mapRef$current27 = mapRef.current) === null || _mapRef$current27 === void 0 ? void 0 : _mapRef$current27.addListener("rightClick", function (args) {
1040
1077
  props.onRightClickLocation && props.onRightClickLocation(args);
1041
1078
  }, {
1042
1079
  location: true
@@ -1045,9 +1082,9 @@ var MFMap = function MFMap(props) {
1045
1082
  }
1046
1083
 
1047
1084
  if (props.onTilesLoaded) {
1048
- var _mapRef$current24;
1085
+ var _mapRef$current28;
1049
1086
 
1050
- var onTilesLoaded = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("tilesLoaded", function (args) {
1087
+ var onTilesLoaded = (_mapRef$current28 = mapRef.current) === null || _mapRef$current28 === void 0 ? void 0 : _mapRef$current28.addListener("tilesLoaded", function (args) {
1051
1088
  props.onTilesLoaded && props.onTilesLoaded(args);
1052
1089
  }, {
1053
1090
  location: true
@@ -1056,9 +1093,9 @@ var MFMap = function MFMap(props) {
1056
1093
  }
1057
1094
 
1058
1095
  if (props.onCameraChanging) {
1059
- var _mapRef$current25;
1096
+ var _mapRef$current29;
1060
1097
 
1061
- var onCameraChanging = (_mapRef$current25 = mapRef.current) === null || _mapRef$current25 === void 0 ? void 0 : _mapRef$current25.addListener("cameraChanging", function (args) {
1098
+ var onCameraChanging = (_mapRef$current29 = mapRef.current) === null || _mapRef$current29 === void 0 ? void 0 : _mapRef$current29.addListener("cameraChanging", function (args) {
1062
1099
  props.onCameraChanging && props.onCameraChanging(args);
1063
1100
  }, {
1064
1101
  location: true
@@ -1098,7 +1135,7 @@ var MFMarker = function MFMarker(props) {
1098
1135
  label = props.label,
1099
1136
  draggable = props.draggable,
1100
1137
  iconView = props.iconView,
1101
- userInteractionEnabled = props.userInteractionEnabled,
1138
+ clickable = props.clickable,
1102
1139
  map = props.map,
1103
1140
  onCreated = props.onCreated,
1104
1141
  onClick = props.onClick,
@@ -1114,6 +1151,7 @@ var MFMarker = function MFMarker(props) {
1114
1151
  var markerRef = React.useRef();
1115
1152
  React.useEffect(function () {
1116
1153
  if (theMap && !markerRef.current) {
1154
+ var markerLabel = typeof label == "string" ? label : new map4d.MarkerLabel(label);
1117
1155
  var option = {
1118
1156
  position: position || {
1119
1157
  lat: 10.793113,
@@ -1128,10 +1166,10 @@ var MFMarker = function MFMarker(props) {
1128
1166
  snippet: snippet,
1129
1167
  windowAnchor: windowAnchor,
1130
1168
  zIndex: zIndex,
1131
- label: label,
1169
+ label: markerLabel,
1132
1170
  draggable: draggable,
1133
1171
  iconView: iconView,
1134
- userInteractionEnabled: userInteractionEnabled
1172
+ clickable: clickable
1135
1173
  };
1136
1174
  Object.keys(option).forEach(function (key) {
1137
1175
  if (option[key] == undefined || option[key] == null) {
@@ -1294,9 +1332,12 @@ var MFMarker = function MFMarker(props) {
1294
1332
  zIndex != undefined && ((_markerRef$current16 = markerRef.current) === null || _markerRef$current16 === void 0 ? void 0 : _markerRef$current16.setZIndex(zIndex));
1295
1333
  }, [zIndex]);
1296
1334
  React.useEffect(function () {
1297
- var _markerRef$current17;
1335
+ if (theMap && VariableTool.hasValue(label)) {
1336
+ var _markerRef$current17;
1298
1337
 
1299
- label != undefined && ((_markerRef$current17 = markerRef.current) === null || _markerRef$current17 === void 0 ? void 0 : _markerRef$current17.setLabel(label));
1338
+ var markerLabel = typeof label == "string" ? label : new map4d.MarkerLabel(label);
1339
+ (_markerRef$current17 = markerRef.current) === null || _markerRef$current17 === void 0 ? void 0 : _markerRef$current17.setLabel(markerLabel);
1340
+ }
1300
1341
  }, [label]);
1301
1342
  React.useEffect(function () {
1302
1343
  var _markerRef$current18;
@@ -1311,8 +1352,8 @@ var MFMarker = function MFMarker(props) {
1311
1352
  React.useEffect(function () {
1312
1353
  var _markerRef$current20;
1313
1354
 
1314
- userInteractionEnabled != undefined && ((_markerRef$current20 = markerRef.current) === null || _markerRef$current20 === void 0 ? void 0 : _markerRef$current20.setUserInteraction(userInteractionEnabled));
1315
- }, [userInteractionEnabled]);
1355
+ clickable != undefined && ((_markerRef$current20 = markerRef.current) === null || _markerRef$current20 === void 0 ? void 0 : _markerRef$current20.setClickable(clickable));
1356
+ }, [clickable]);
1316
1357
  React.useEffect(function () {
1317
1358
  var _markerRef$current21;
1318
1359
 
@@ -1346,6 +1387,7 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
1346
1387
  _props$radius = props.radius,
1347
1388
  radius = _props$radius === void 0 ? 100 : _props$radius,
1348
1389
  zoomOnClick = props.zoomOnClick,
1390
+ clusterIcon = props.clusterIcon,
1349
1391
  map = props.map,
1350
1392
  onCreated = props.onCreated;
1351
1393
  var map4dContext = React.useContext(Map4dContext);
@@ -1365,7 +1407,8 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
1365
1407
  minZoom: minZoom,
1366
1408
  maxZoom: maxZoom,
1367
1409
  radius: radius,
1368
- zoomOnClick: zoomOnClick
1410
+ zoomOnClick: zoomOnClick,
1411
+ clusterIcon: clusterIcon
1369
1412
  };
1370
1413
  Object.keys(option).forEach(function (key) {
1371
1414
  if (option[key] == undefined || option[key] == null) {
@@ -1425,7 +1468,7 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
1425
1468
  if (theMap) {
1426
1469
  drawCluster();
1427
1470
  }
1428
- }, [minZoom, maxZoom, radius]);
1471
+ }, [minZoom, maxZoom, radius, clusterIcon]);
1429
1472
  React.useEffect(function () {
1430
1473
  var _markerClusterRef$cur6;
1431
1474
 
@@ -1447,7 +1490,7 @@ var MFPOI = function MFPOI(props) {
1447
1490
  zIndex = props.zIndex,
1448
1491
  visible = props.visible,
1449
1492
  draggable = props.draggable,
1450
- userInteractionEnabled = props.userInteractionEnabled,
1493
+ clickable = props.clickable,
1451
1494
  map = props.map,
1452
1495
  onCreated = props.onCreated,
1453
1496
  onClick = props.onClick,
@@ -1473,7 +1516,7 @@ var MFPOI = function MFPOI(props) {
1473
1516
  zIndex: zIndex,
1474
1517
  visible: visible,
1475
1518
  draggable: draggable,
1476
- userInteractionEnabled: userInteractionEnabled
1519
+ clickable: clickable
1477
1520
  };
1478
1521
  Object.keys(option).forEach(function (key) {
1479
1522
  if (option[key] == undefined || option[key] == null) {
@@ -1560,8 +1603,8 @@ var MFPOI = function MFPOI(props) {
1560
1603
  React.useEffect(function () {
1561
1604
  var _poiRef$current15;
1562
1605
 
1563
- userInteractionEnabled != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setUserInteraction(userInteractionEnabled));
1564
- }, [userInteractionEnabled]);
1606
+ clickable != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setClickable(clickable));
1607
+ }, [clickable]);
1565
1608
  React.useEffect(function () {
1566
1609
  if (poiRef.current) {
1567
1610
  poiRef.current.onClick = onClick;
@@ -1654,7 +1697,7 @@ var MFPolygon = function MFPolygon(props) {
1654
1697
  draggable = props.draggable,
1655
1698
  elevation = props.elevation,
1656
1699
  zIndex = props.zIndex,
1657
- userInteractionEnabled = props.userInteractionEnabled,
1700
+ clickable = props.clickable,
1658
1701
  map = props.map,
1659
1702
  onHover = props.onHover,
1660
1703
  onClick = props.onClick,
@@ -1662,6 +1705,7 @@ var MFPolygon = function MFPolygon(props) {
1662
1705
  var map4dContext = React.useContext(Map4dContext);
1663
1706
  var theMap = map || map4dContext.map;
1664
1707
  var polygonRef = React.useRef();
1708
+ var a = React.useRef();
1665
1709
  React.useEffect(function () {
1666
1710
  if (theMap && !polygonRef.current) {
1667
1711
  var _polygonRef$current;
@@ -1676,7 +1720,7 @@ var MFPolygon = function MFPolygon(props) {
1676
1720
  draggable: draggable,
1677
1721
  elevation: elevation,
1678
1722
  zIndex: zIndex,
1679
- userInteractionEnabled: userInteractionEnabled
1723
+ clickable: clickable
1680
1724
  };
1681
1725
  Object.keys(option).forEach(function (key) {
1682
1726
  if (option[key] == undefined || option[key] == null) {
@@ -1684,6 +1728,8 @@ var MFPolygon = function MFPolygon(props) {
1684
1728
  }
1685
1729
  });
1686
1730
  polygonRef.current = new map4d.Polygon(option);
1731
+ a.current = theMap;
1732
+ console.log(a.current);
1687
1733
  (_polygonRef$current = polygonRef.current) === null || _polygonRef$current === void 0 ? void 0 : _polygonRef$current.setMap(theMap);
1688
1734
  polygonRef.current.onHover = props.onHover;
1689
1735
  polygonRef.current.onClick = onClick;
@@ -1768,8 +1814,8 @@ var MFPolygon = function MFPolygon(props) {
1768
1814
  React.useEffect(function () {
1769
1815
  var _polygonRef$current14;
1770
1816
 
1771
- userInteractionEnabled != undefined && ((_polygonRef$current14 = polygonRef.current) === null || _polygonRef$current14 === void 0 ? void 0 : _polygonRef$current14.setUserInteraction(userInteractionEnabled));
1772
- }, [userInteractionEnabled]);
1817
+ clickable != undefined && ((_polygonRef$current14 = polygonRef.current) === null || _polygonRef$current14 === void 0 ? void 0 : _polygonRef$current14.setClickable(clickable));
1818
+ }, [clickable]);
1773
1819
  return null;
1774
1820
  };
1775
1821
 
@@ -1785,7 +1831,7 @@ var MFPolyline = function MFPolyline(props) {
1785
1831
  zIndex = props.zIndex,
1786
1832
  elevation = props.elevation,
1787
1833
  strokePattern = props.strokePattern,
1788
- userInteractionEnabled = props.userInteractionEnabled,
1834
+ clickable = props.clickable,
1789
1835
  map = props.map,
1790
1836
  onClick = props.onClick,
1791
1837
  onHover = props.onHover,
@@ -1814,7 +1860,7 @@ var MFPolyline = function MFPolyline(props) {
1814
1860
  zIndex: zIndex,
1815
1861
  elevation: elevation,
1816
1862
  strokePattern: strokePattern,
1817
- userInteractionEnabled: userInteractionEnabled
1863
+ clickable: clickable
1818
1864
  };
1819
1865
  Object.keys(option).forEach(function (key) {
1820
1866
  if (option[key] == undefined || option[key] == null) {
@@ -1929,8 +1975,8 @@ var MFPolyline = function MFPolyline(props) {
1929
1975
  React.useEffect(function () {
1930
1976
  var _polylineRef$current15;
1931
1977
 
1932
- userInteractionEnabled != undefined && ((_polylineRef$current15 = polylineRef.current) === null || _polylineRef$current15 === void 0 ? void 0 : _polylineRef$current15.setUserInteraction(userInteractionEnabled));
1933
- }, [userInteractionEnabled]);
1978
+ clickable != undefined && ((_polylineRef$current15 = polylineRef.current) === null || _polylineRef$current15 === void 0 ? void 0 : _polylineRef$current15.setClickable(clickable));
1979
+ }, [clickable]);
1934
1980
  return null;
1935
1981
  };
1936
1982