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.
@@ -14,18 +14,27 @@ var MarkerClusterContext = createContext(markerClusterDefaultContext);
14
14
  var MFBuilding = function MFBuilding(props) {
15
15
  var position = props.position,
16
16
  name = props.name,
17
- scale = props.scale,
18
- bearing = props.bearing,
19
- elevation = props.elevation,
20
- height = props.height,
17
+ _props$scale = props.scale,
18
+ scale = _props$scale === void 0 ? 1 : _props$scale,
19
+ _props$bearing = props.bearing,
20
+ bearing = _props$bearing === void 0 ? 0 : _props$bearing,
21
+ _props$elevation = props.elevation,
22
+ elevation = _props$elevation === void 0 ? 0 : _props$elevation,
23
+ _props$height = props.height,
24
+ height = _props$height === void 0 ? 1 : _props$height,
21
25
  model = props.model,
22
26
  texture = props.texture,
23
27
  coordinates = props.coordinates,
24
- visible = props.visible,
25
- draggable = props.draggable,
26
- userInteractionEnabled = props.userInteractionEnabled,
27
- selected = props.selected,
28
- growUp = props.growUp,
28
+ _props$visible = props.visible,
29
+ visible = _props$visible === void 0 ? true : _props$visible,
30
+ _props$draggable = props.draggable,
31
+ draggable = _props$draggable === void 0 ? false : _props$draggable,
32
+ _props$clickable = props.clickable,
33
+ clickable = _props$clickable === void 0 ? true : _props$clickable,
34
+ _props$selected = props.selected,
35
+ selected = _props$selected === void 0 ? false : _props$selected,
36
+ _props$growUp = props.growUp,
37
+ growUp = _props$growUp === void 0 ? true : _props$growUp,
29
38
  map = props.map,
30
39
  onCreated = props.onCreated;
31
40
  var map4dContext = useContext(Map4dContext);
@@ -50,7 +59,7 @@ var MFBuilding = function MFBuilding(props) {
50
59
  coordinates: coordinates,
51
60
  visible: visible,
52
61
  draggable: draggable,
53
- userInteractionEnabled: userInteractionEnabled,
62
+ clickable: clickable,
54
63
  selected: selected,
55
64
  growUp: growUp
56
65
  };
@@ -92,69 +101,67 @@ var MFBuilding = function MFBuilding(props) {
92
101
  useEffect(function () {
93
102
  var _buildingRef$current6;
94
103
 
95
- name != undefined && ((_buildingRef$current6 = buildingRef.current) === null || _buildingRef$current6 === void 0 ? void 0 : _buildingRef$current6.setName(name));
104
+ (_buildingRef$current6 = buildingRef.current) === null || _buildingRef$current6 === void 0 ? void 0 : _buildingRef$current6.setName(name);
96
105
  }, [name]);
97
106
  useEffect(function () {
98
107
  var _buildingRef$current7;
99
108
 
100
- scale != undefined && ((_buildingRef$current7 = buildingRef.current) === null || _buildingRef$current7 === void 0 ? void 0 : _buildingRef$current7.setScale(scale));
109
+ (_buildingRef$current7 = buildingRef.current) === null || _buildingRef$current7 === void 0 ? void 0 : _buildingRef$current7.setScale(scale);
101
110
  }, [scale]);
102
111
  useEffect(function () {
103
- if (bearing != undefined) {
104
- var _buildingRef$current8;
112
+ var _buildingRef$current8;
105
113
 
106
- (_buildingRef$current8 = buildingRef.current) === null || _buildingRef$current8 === void 0 ? void 0 : _buildingRef$current8.setBearing(bearing);
107
- }
114
+ (_buildingRef$current8 = buildingRef.current) === null || _buildingRef$current8 === void 0 ? void 0 : _buildingRef$current8.setBearing(bearing);
108
115
  }, [bearing]);
109
116
  useEffect(function () {
110
117
  var _buildingRef$current9;
111
118
 
112
- elevation != undefined && ((_buildingRef$current9 = buildingRef.current) === null || _buildingRef$current9 === void 0 ? void 0 : _buildingRef$current9.setElevation(elevation));
119
+ (_buildingRef$current9 = buildingRef.current) === null || _buildingRef$current9 === void 0 ? void 0 : _buildingRef$current9.setElevation(elevation);
113
120
  }, [elevation]);
114
121
  useEffect(function () {
115
122
  var _buildingRef$current10;
116
123
 
117
- height != undefined && ((_buildingRef$current10 = buildingRef.current) === null || _buildingRef$current10 === void 0 ? void 0 : _buildingRef$current10.setHeight(height));
124
+ (_buildingRef$current10 = buildingRef.current) === null || _buildingRef$current10 === void 0 ? void 0 : _buildingRef$current10.setHeight(height);
118
125
  }, [height]);
119
126
  useEffect(function () {
120
127
  var _buildingRef$current11;
121
128
 
122
- model != undefined && ((_buildingRef$current11 = buildingRef.current) === null || _buildingRef$current11 === void 0 ? void 0 : _buildingRef$current11.setModel(model));
129
+ (_buildingRef$current11 = buildingRef.current) === null || _buildingRef$current11 === void 0 ? void 0 : _buildingRef$current11.setModel(model);
123
130
  }, [model]);
124
131
  useEffect(function () {
125
132
  var _buildingRef$current12;
126
133
 
127
- texture != undefined && ((_buildingRef$current12 = buildingRef.current) === null || _buildingRef$current12 === void 0 ? void 0 : _buildingRef$current12.setTexture(texture));
134
+ (_buildingRef$current12 = buildingRef.current) === null || _buildingRef$current12 === void 0 ? void 0 : _buildingRef$current12.setTexture(texture);
128
135
  }, [texture]);
129
136
  useEffect(function () {
130
137
  var _buildingRef$current13;
131
138
 
132
- coordinates != undefined && ((_buildingRef$current13 = buildingRef.current) === null || _buildingRef$current13 === void 0 ? void 0 : _buildingRef$current13.setCoordinates(coordinates));
139
+ (_buildingRef$current13 = buildingRef.current) === null || _buildingRef$current13 === void 0 ? void 0 : _buildingRef$current13.setCoordinates(coordinates);
133
140
  }, [coordinates]);
134
141
  useEffect(function () {
135
142
  var _buildingRef$current14;
136
143
 
137
- visible != undefined && ((_buildingRef$current14 = buildingRef.current) === null || _buildingRef$current14 === void 0 ? void 0 : _buildingRef$current14.setVisible(visible));
144
+ (_buildingRef$current14 = buildingRef.current) === null || _buildingRef$current14 === void 0 ? void 0 : _buildingRef$current14.setVisible(visible);
138
145
  }, [visible]);
139
146
  useEffect(function () {
140
147
  var _buildingRef$current15;
141
148
 
142
- draggable != undefined && ((_buildingRef$current15 = buildingRef.current) === null || _buildingRef$current15 === void 0 ? void 0 : _buildingRef$current15.setDraggable(draggable));
149
+ (_buildingRef$current15 = buildingRef.current) === null || _buildingRef$current15 === void 0 ? void 0 : _buildingRef$current15.setDraggable(draggable);
143
150
  }, [draggable]);
144
151
  useEffect(function () {
145
152
  var _buildingRef$current16;
146
153
 
147
- userInteractionEnabled != undefined && ((_buildingRef$current16 = buildingRef.current) === null || _buildingRef$current16 === void 0 ? void 0 : _buildingRef$current16.setUserInteraction(userInteractionEnabled));
148
- }, [userInteractionEnabled]);
154
+ (_buildingRef$current16 = buildingRef.current) === null || _buildingRef$current16 === void 0 ? void 0 : _buildingRef$current16.setClickable(clickable);
155
+ }, [clickable]);
149
156
  useEffect(function () {
150
157
  var _buildingRef$current17;
151
158
 
152
- selected != undefined && ((_buildingRef$current17 = buildingRef.current) === null || _buildingRef$current17 === void 0 ? void 0 : _buildingRef$current17.setSelected(selected));
159
+ (_buildingRef$current17 = buildingRef.current) === null || _buildingRef$current17 === void 0 ? void 0 : _buildingRef$current17.setSelected(selected);
153
160
  }, [selected]);
154
161
  useEffect(function () {
155
162
  var _buildingRef$current18;
156
163
 
157
- growUp != undefined && ((_buildingRef$current18 = buildingRef.current) === null || _buildingRef$current18 === void 0 ? void 0 : _buildingRef$current18.setGrowUp(growUp));
164
+ (_buildingRef$current18 = buildingRef.current) === null || _buildingRef$current18 === void 0 ? void 0 : _buildingRef$current18.setGrowUp(growUp);
158
165
  }, [growUp]);
159
166
  return null;
160
167
  };
@@ -239,15 +246,19 @@ VariableTool.hasValue = function (variable) {
239
246
  var MFCircle = function MFCircle(props) {
240
247
  var center = props.center,
241
248
  radius = props.radius,
242
- fillColor = props.fillColor,
243
- fillOpacity = props.fillOpacity,
244
- visible = props.visible,
245
- strokeColor = props.strokeColor,
249
+ _props$fillColor = props.fillColor,
250
+ fillColor = _props$fillColor === void 0 ? "#0000FF" : _props$fillColor,
251
+ _props$fillOpacity = props.fillOpacity,
252
+ fillOpacity = _props$fillOpacity === void 0 ? 1 : _props$fillOpacity,
253
+ _props$visible = props.visible,
254
+ visible = _props$visible === void 0 ? true : _props$visible,
255
+ _props$strokeColor = props.strokeColor,
256
+ strokeColor = _props$strokeColor === void 0 ? "#00FF00" : _props$strokeColor,
246
257
  strokeWidth = props.strokeWidth,
247
258
  draggable = props.draggable,
248
259
  zIndex = props.zIndex,
249
260
  elevation = props.elevation,
250
- userInteractionEnabled = props.userInteractionEnabled,
261
+ clickable = props.clickable,
251
262
  map = props.map,
252
263
  onCreated = props.onCreated,
253
264
  onClick = props.onClick;
@@ -272,7 +283,7 @@ var MFCircle = function MFCircle(props) {
272
283
  draggable: draggable,
273
284
  zIndex: zIndex,
274
285
  elevation: elevation,
275
- userInteractionEnabled: userInteractionEnabled
286
+ clickable: clickable
276
287
  };
277
288
  Object.keys(option).forEach(function (key) {
278
289
  if (option[key] == undefined || option[key] == null) {
@@ -381,12 +392,12 @@ var MFCircle = function MFCircle(props) {
381
392
  }
382
393
  }, [elevation]);
383
394
  useEffect(function () {
384
- if (VariableTool.hasValue(userInteractionEnabled)) {
395
+ if (VariableTool.hasValue(clickable)) {
385
396
  var _circleRef$current15;
386
397
 
387
- (_circleRef$current15 = circleRef.current) === null || _circleRef$current15 === void 0 ? void 0 : _circleRef$current15.setUserInteraction(userInteractionEnabled);
398
+ (_circleRef$current15 = circleRef.current) === null || _circleRef$current15 === void 0 ? void 0 : _circleRef$current15.setClickable(clickable);
388
399
  }
389
- }, [userInteractionEnabled]);
400
+ }, [clickable]);
390
401
  return null;
391
402
  };
392
403
 
@@ -490,6 +501,12 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
490
501
  directionRef.current.onMouseMove = onMouseMove;
491
502
  onCreated && onCreated(directionRef.current);
492
503
  }
504
+
505
+ return function () {
506
+ var _directionRef$current2;
507
+
508
+ (_directionRef$current2 = directionRef.current) === null || _directionRef$current2 === void 0 ? void 0 : _directionRef$current2.setMap(null);
509
+ };
493
510
  }, [theMap]);
494
511
  useEffect(function () {
495
512
  if (directionRef.current) {
@@ -513,46 +530,46 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
513
530
  }, [onMouseMove]);
514
531
  useEffect(function () {
515
532
  if (theMap) {
516
- var _directionRef$current2;
533
+ var _directionRef$current3;
517
534
 
518
- (_directionRef$current2 = directionRef.current) === null || _directionRef$current2 === void 0 ? void 0 : _directionRef$current2.setMap(theMap);
535
+ (_directionRef$current3 = directionRef.current) === null || _directionRef$current3 === void 0 ? void 0 : _directionRef$current3.setMap(theMap);
519
536
  }
520
537
 
521
538
  return function () {
522
- var _directionRef$current3;
539
+ var _directionRef$current4;
523
540
 
524
- (_directionRef$current3 = directionRef.current) === null || _directionRef$current3 === void 0 ? void 0 : _directionRef$current3.setMap(null);
541
+ (_directionRef$current4 = directionRef.current) === null || _directionRef$current4 === void 0 ? void 0 : _directionRef$current4.setMap(null);
525
542
  };
526
543
  }, [theMap]);
527
544
  useEffect(function () {
528
545
  return function () {
529
- var _directionRef$current4;
546
+ var _directionRef$current5;
530
547
 
531
- (_directionRef$current4 = directionRef.current) === null || _directionRef$current4 === void 0 ? void 0 : _directionRef$current4.setMap(null);
548
+ (_directionRef$current5 = directionRef.current) === null || _directionRef$current5 === void 0 ? void 0 : _directionRef$current5.setMap(null);
532
549
  };
533
550
  }, []);
534
551
  useEffect(function () {
535
- var _directionRef$current5;
552
+ var _directionRef$current6;
536
553
 
537
- routes != undefined && ((_directionRef$current5 = directionRef.current) === null || _directionRef$current5 === void 0 ? void 0 : _directionRef$current5.setRoutes(routes));
554
+ routes != undefined && ((_directionRef$current6 = directionRef.current) === null || _directionRef$current6 === void 0 ? void 0 : _directionRef$current6.setRoutes(routes));
538
555
  }, [routes]);
539
556
  useEffect(function () {
540
- var _directionRef$current6;
557
+ var _directionRef$current7;
541
558
 
542
- activedIndex != undefined && ((_directionRef$current6 = directionRef.current) === null || _directionRef$current6 === void 0 ? void 0 : _directionRef$current6.setActivedIndex(activedIndex));
559
+ activedIndex != undefined && ((_directionRef$current7 = directionRef.current) === null || _directionRef$current7 === void 0 ? void 0 : _directionRef$current7.setActivedIndex(activedIndex));
543
560
  }, [activedIndex]);
544
561
  useEffect(function () {
545
- var _directionRef$current7;
562
+ var _directionRef$current8;
546
563
 
547
- activeStrokePattern != undefined && ((_directionRef$current7 = directionRef.current) === null || _directionRef$current7 === void 0 ? void 0 : _directionRef$current7.setActiveStrokePattern(activeStrokePattern));
564
+ activeStrokePattern != undefined && ((_directionRef$current8 = directionRef.current) === null || _directionRef$current8 === void 0 ? void 0 : _directionRef$current8.setActiveStrokePattern(activeStrokePattern));
548
565
  }, [activeStrokePattern]);
549
566
  useEffect(function () {
550
- var _directionRef$current8;
567
+ var _directionRef$current9;
551
568
 
552
- inactiveStrokePattern != undefined && ((_directionRef$current8 = directionRef.current) === null || _directionRef$current8 === void 0 ? void 0 : _directionRef$current8.setInactiveStrokePattern(inactiveStrokePattern));
569
+ inactiveStrokePattern != undefined && ((_directionRef$current9 = directionRef.current) === null || _directionRef$current9 === void 0 ? void 0 : _directionRef$current9.setInactiveStrokePattern(inactiveStrokePattern));
553
570
  }, [inactiveStrokePattern]);
554
571
  useEffect(function () {
555
- var _directionRef$current9;
572
+ var _directionRef$current10;
556
573
 
557
574
  var option = {
558
575
  routes: routes,
@@ -577,7 +594,7 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
577
594
  delete option[key];
578
595
  }
579
596
  });
580
- (_directionRef$current9 = directionRef.current) === null || _directionRef$current9 === void 0 ? void 0 : _directionRef$current9.setOptions(option);
597
+ (_directionRef$current10 = directionRef.current) === null || _directionRef$current10 === void 0 ? void 0 : _directionRef$current10.setOptions(option);
581
598
  }, [activeStrokeWidth, activeStrokeColor, activeOutlineWidth, activeOutlineColor, inactiveStrokeColor, inactiveOutlineWidth, inactiveOutlineColor, originMarkerOptions, destinationMarkerOptions, waypointMarkerOptions, onMarkerDragEnd]);
582
599
  return null;
583
600
  };
@@ -768,6 +785,8 @@ var createId = function createId() {
768
785
  };
769
786
 
770
787
  var MFMap = function MFMap(props) {
788
+ var _props$options3, _props$options8;
789
+
771
790
  var _options = useRef({
772
791
  options: props.options,
773
792
  mapId: props.mapid,
@@ -871,145 +890,163 @@ var MFMap = function MFMap(props) {
871
890
 
872
891
  destroy();
873
892
  };
874
- }, []);
893
+ }, [props.environment, props.version, props.accessKey]);
894
+ useEffect(function () {
895
+ var _props$options, _mapRef$current2, _props$options2;
896
+
897
+ ((_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));
898
+ }, [(_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.mapType]);
899
+ useEffect(function () {
900
+ var _props$options4, _props$options6, _mapRef$current5, _props$options7;
901
+
902
+ if (((_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.center) != undefined) {
903
+ var _mapRef$current3, _props$options5, _mapRef$current4;
904
+
905
+ var camera = (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.getCamera();
906
+ camera === null || camera === void 0 ? void 0 : camera.setTarget((_props$options5 = props.options) === null || _props$options5 === void 0 ? void 0 : _props$options5.center);
907
+ (_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.moveCamera(camera);
908
+ }
909
+
910
+ ((_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));
911
+ }, [(_props$options8 = props.options) === null || _props$options8 === void 0 ? void 0 : _props$options8.center]);
875
912
 
876
913
  var registerEvent = function registerEvent() {
877
- 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;
914
+ 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;
878
915
 
879
- var eventClickMarker = (_mapRef$current2 = mapRef.current) === null || _mapRef$current2 === void 0 ? void 0 : _mapRef$current2.addListener("click", function (args) {
916
+ var eventClickMarker = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("click", function (args) {
880
917
  var _args$marker, _args$marker2;
881
918
 
882
919
  ((_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));
883
920
  }, {
884
921
  marker: true
885
922
  });
886
- var eventRightClickMarker = (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.addListener("rightClick", function (args) {
923
+ var eventRightClickMarker = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("rightClick", function (args) {
887
924
  var _args$marker3, _args$marker4;
888
925
 
889
926
  ((_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));
890
927
  }, {
891
928
  marker: true
892
929
  });
893
- var eventDragEndMarker = (_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.addListener("dragEnd", function (args) {
930
+ var eventDragEndMarker = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("dragEnd", function (args) {
894
931
  var _args$marker5, _args$marker6;
895
932
 
896
933
  ((_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));
897
934
  }, {
898
935
  marker: true
899
936
  });
900
- var eventHoverMarker = (_mapRef$current5 = mapRef.current) === null || _mapRef$current5 === void 0 ? void 0 : _mapRef$current5.addListener("hover", function (args) {
937
+ var eventHoverMarker = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("hover", function (args) {
901
938
  var _args$marker7, _args$marker8;
902
939
 
903
940
  ((_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));
904
941
  }, {
905
942
  marker: true
906
943
  });
907
- var eventHoverPolygon = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("hover", function (args) {
944
+ var eventHoverPolygon = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("hover", function (args) {
908
945
  var _args$polygon, _args$polygon2;
909
946
 
910
947
  ((_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));
911
948
  }, {
912
949
  polygon: true
913
950
  });
914
- var eventHoverPolyline = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("hover", function (args) {
951
+ var eventHoverPolyline = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("hover", function (args) {
915
952
  var _args$polyline, _args$polyline2;
916
953
 
917
954
  ((_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));
918
955
  }, {
919
956
  polyline: true
920
957
  });
921
- var eventHoverDirection = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("hover", function (args) {
958
+ var eventHoverDirection = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("hover", function (args) {
922
959
  var _args$renderer, _args$renderer2;
923
960
 
924
961
  ((_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));
925
962
  }, {
926
963
  directions: true
927
964
  });
928
- var eventClickPolyline = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("click", function (args) {
965
+ var eventClickPolyline = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("click", function (args) {
929
966
  var _args$polyline3, _args$polyline4;
930
967
 
931
968
  ((_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));
932
969
  }, {
933
970
  polyline: true
934
971
  });
935
- var eventMouseOutDirection = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("mouseOut", function (args) {
972
+ var eventMouseOutDirection = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOut", function (args) {
936
973
  var _args$renderer3, _args$renderer4;
937
974
 
938
975
  ((_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));
939
976
  }, {
940
977
  directions: true
941
978
  });
942
- var eventMouseOverDirection = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("mouseOver", function (args) {
979
+ var eventMouseOverDirection = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseOver", function (args) {
943
980
  var _args$renderer5, _args$renderer6;
944
981
 
945
982
  ((_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));
946
983
  }, {
947
984
  directions: true
948
985
  });
949
- var eventMouseMoveDirection = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("mouseMove", function (args) {
986
+ var eventMouseMoveDirection = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseMove", function (args) {
950
987
  var _args$renderer7, _args$renderer8;
951
988
 
952
989
  ((_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));
953
990
  }, {
954
991
  directions: true
955
992
  });
956
- var eventMouseOutPolyline = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("mouseOut", function (args) {
993
+ var eventMouseOutPolyline = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOut", function (args) {
957
994
  var _args$polyline5, _args$polyline6;
958
995
 
959
996
  ((_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));
960
997
  }, {
961
998
  polyline: true
962
999
  });
963
- var eventMouseOverPolyline = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOver", function (args) {
1000
+ var eventMouseOverPolyline = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseOver", function (args) {
964
1001
  var _args$polyline7, _args$polyline8;
965
1002
 
966
1003
  ((_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));
967
1004
  }, {
968
1005
  polyline: true
969
1006
  });
970
- var eventMouseMovePolyline = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseMove", function (args) {
1007
+ var eventMouseMovePolyline = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("mouseMove", function (args) {
971
1008
  var _args$polyline9, _args$polyline10;
972
1009
 
973
1010
  ((_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));
974
1011
  }, {
975
1012
  polyline: true
976
1013
  });
977
- var eventMouseOutMarker = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseOut", function (args) {
1014
+ var eventMouseOutMarker = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("mouseOut", function (args) {
978
1015
  var _args$marker9, _args$marker10;
979
1016
 
980
1017
  ((_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));
981
1018
  }, {
982
1019
  marker: true
983
1020
  });
984
- var eventMouseOverMarker = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOver", function (args) {
1021
+ var eventMouseOverMarker = (_mapRef$current21 = mapRef.current) === null || _mapRef$current21 === void 0 ? void 0 : _mapRef$current21.addListener("mouseOver", function (args) {
985
1022
  var _args$marker11, _args$marker12;
986
1023
 
987
1024
  ((_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));
988
1025
  }, {
989
1026
  marker: true
990
1027
  });
991
- var eventMouseMoveMarker = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseMove", function (args) {
1028
+ var eventMouseMoveMarker = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("mouseMove", function (args) {
992
1029
  var _args$marker13, _args$marker14;
993
1030
 
994
1031
  ((_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));
995
1032
  }, {
996
1033
  marker: true
997
1034
  });
998
- var eventClickPoi = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("click", function (args) {
1035
+ var eventClickPoi = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("click", function (args) {
999
1036
  var _args$poi, _args$poi2;
1000
1037
 
1001
1038
  ((_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));
1002
1039
  }, {
1003
1040
  poi: true
1004
1041
  });
1005
- var eventHoverPoi = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("hover", function (args) {
1042
+ var eventHoverPoi = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("hover", function (args) {
1006
1043
  var _args$poi3, _args$poi4;
1007
1044
 
1008
1045
  ((_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));
1009
1046
  }, {
1010
1047
  poi: true
1011
1048
  });
1012
- 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) {
1049
+ 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) {
1013
1050
  var _args$circle, _args$circle2, _args$polygon3, _args$polygon3$onClic;
1014
1051
 
1015
1052
  ((_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));
@@ -1020,9 +1057,9 @@ var MFMap = function MFMap(props) {
1020
1057
  })]);
1021
1058
 
1022
1059
  if (props.onClickLocation) {
1023
- var _mapRef$current22;
1060
+ var _mapRef$current26;
1024
1061
 
1025
- var onClickLocation = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("click", function (args) {
1062
+ var onClickLocation = (_mapRef$current26 = mapRef.current) === null || _mapRef$current26 === void 0 ? void 0 : _mapRef$current26.addListener("click", function (args) {
1026
1063
  props.onClickLocation && props.onClickLocation(args);
1027
1064
  }, {
1028
1065
  location: true
@@ -1031,9 +1068,9 @@ var MFMap = function MFMap(props) {
1031
1068
  }
1032
1069
 
1033
1070
  if (props.onRightClickLocation) {
1034
- var _mapRef$current23;
1071
+ var _mapRef$current27;
1035
1072
 
1036
- var onRightClickLocation = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("rightClick", function (args) {
1073
+ var onRightClickLocation = (_mapRef$current27 = mapRef.current) === null || _mapRef$current27 === void 0 ? void 0 : _mapRef$current27.addListener("rightClick", function (args) {
1037
1074
  props.onRightClickLocation && props.onRightClickLocation(args);
1038
1075
  }, {
1039
1076
  location: true
@@ -1042,9 +1079,9 @@ var MFMap = function MFMap(props) {
1042
1079
  }
1043
1080
 
1044
1081
  if (props.onTilesLoaded) {
1045
- var _mapRef$current24;
1082
+ var _mapRef$current28;
1046
1083
 
1047
- var onTilesLoaded = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("tilesLoaded", function (args) {
1084
+ var onTilesLoaded = (_mapRef$current28 = mapRef.current) === null || _mapRef$current28 === void 0 ? void 0 : _mapRef$current28.addListener("tilesLoaded", function (args) {
1048
1085
  props.onTilesLoaded && props.onTilesLoaded(args);
1049
1086
  }, {
1050
1087
  location: true
@@ -1053,9 +1090,9 @@ var MFMap = function MFMap(props) {
1053
1090
  }
1054
1091
 
1055
1092
  if (props.onCameraChanging) {
1056
- var _mapRef$current25;
1093
+ var _mapRef$current29;
1057
1094
 
1058
- var onCameraChanging = (_mapRef$current25 = mapRef.current) === null || _mapRef$current25 === void 0 ? void 0 : _mapRef$current25.addListener("cameraChanging", function (args) {
1095
+ var onCameraChanging = (_mapRef$current29 = mapRef.current) === null || _mapRef$current29 === void 0 ? void 0 : _mapRef$current29.addListener("cameraChanging", function (args) {
1059
1096
  props.onCameraChanging && props.onCameraChanging(args);
1060
1097
  }, {
1061
1098
  location: true
@@ -1095,7 +1132,7 @@ var MFMarker = function MFMarker(props) {
1095
1132
  label = props.label,
1096
1133
  draggable = props.draggable,
1097
1134
  iconView = props.iconView,
1098
- userInteractionEnabled = props.userInteractionEnabled,
1135
+ clickable = props.clickable,
1099
1136
  map = props.map,
1100
1137
  onCreated = props.onCreated,
1101
1138
  onClick = props.onClick,
@@ -1111,6 +1148,7 @@ var MFMarker = function MFMarker(props) {
1111
1148
  var markerRef = useRef();
1112
1149
  useEffect(function () {
1113
1150
  if (theMap && !markerRef.current) {
1151
+ var markerLabel = typeof label == "string" ? label : new map4d.MarkerLabel(label);
1114
1152
  var option = {
1115
1153
  position: position || {
1116
1154
  lat: 10.793113,
@@ -1125,10 +1163,10 @@ var MFMarker = function MFMarker(props) {
1125
1163
  snippet: snippet,
1126
1164
  windowAnchor: windowAnchor,
1127
1165
  zIndex: zIndex,
1128
- label: label,
1166
+ label: markerLabel,
1129
1167
  draggable: draggable,
1130
1168
  iconView: iconView,
1131
- userInteractionEnabled: userInteractionEnabled
1169
+ clickable: clickable
1132
1170
  };
1133
1171
  Object.keys(option).forEach(function (key) {
1134
1172
  if (option[key] == undefined || option[key] == null) {
@@ -1291,9 +1329,12 @@ var MFMarker = function MFMarker(props) {
1291
1329
  zIndex != undefined && ((_markerRef$current16 = markerRef.current) === null || _markerRef$current16 === void 0 ? void 0 : _markerRef$current16.setZIndex(zIndex));
1292
1330
  }, [zIndex]);
1293
1331
  useEffect(function () {
1294
- var _markerRef$current17;
1332
+ if (theMap && VariableTool.hasValue(label)) {
1333
+ var _markerRef$current17;
1295
1334
 
1296
- label != undefined && ((_markerRef$current17 = markerRef.current) === null || _markerRef$current17 === void 0 ? void 0 : _markerRef$current17.setLabel(label));
1335
+ var markerLabel = typeof label == "string" ? label : new map4d.MarkerLabel(label);
1336
+ (_markerRef$current17 = markerRef.current) === null || _markerRef$current17 === void 0 ? void 0 : _markerRef$current17.setLabel(markerLabel);
1337
+ }
1297
1338
  }, [label]);
1298
1339
  useEffect(function () {
1299
1340
  var _markerRef$current18;
@@ -1308,8 +1349,8 @@ var MFMarker = function MFMarker(props) {
1308
1349
  useEffect(function () {
1309
1350
  var _markerRef$current20;
1310
1351
 
1311
- userInteractionEnabled != undefined && ((_markerRef$current20 = markerRef.current) === null || _markerRef$current20 === void 0 ? void 0 : _markerRef$current20.setUserInteraction(userInteractionEnabled));
1312
- }, [userInteractionEnabled]);
1352
+ clickable != undefined && ((_markerRef$current20 = markerRef.current) === null || _markerRef$current20 === void 0 ? void 0 : _markerRef$current20.setClickable(clickable));
1353
+ }, [clickable]);
1313
1354
  useEffect(function () {
1314
1355
  var _markerRef$current21;
1315
1356
 
@@ -1343,6 +1384,7 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
1343
1384
  _props$radius = props.radius,
1344
1385
  radius = _props$radius === void 0 ? 100 : _props$radius,
1345
1386
  zoomOnClick = props.zoomOnClick,
1387
+ clusterIcon = props.clusterIcon,
1346
1388
  map = props.map,
1347
1389
  onCreated = props.onCreated;
1348
1390
  var map4dContext = useContext(Map4dContext);
@@ -1362,7 +1404,8 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
1362
1404
  minZoom: minZoom,
1363
1405
  maxZoom: maxZoom,
1364
1406
  radius: radius,
1365
- zoomOnClick: zoomOnClick
1407
+ zoomOnClick: zoomOnClick,
1408
+ clusterIcon: clusterIcon
1366
1409
  };
1367
1410
  Object.keys(option).forEach(function (key) {
1368
1411
  if (option[key] == undefined || option[key] == null) {
@@ -1422,7 +1465,7 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
1422
1465
  if (theMap) {
1423
1466
  drawCluster();
1424
1467
  }
1425
- }, [minZoom, maxZoom, radius]);
1468
+ }, [minZoom, maxZoom, radius, clusterIcon]);
1426
1469
  useEffect(function () {
1427
1470
  var _markerClusterRef$cur6;
1428
1471
 
@@ -1444,7 +1487,7 @@ var MFPOI = function MFPOI(props) {
1444
1487
  zIndex = props.zIndex,
1445
1488
  visible = props.visible,
1446
1489
  draggable = props.draggable,
1447
- userInteractionEnabled = props.userInteractionEnabled,
1490
+ clickable = props.clickable,
1448
1491
  map = props.map,
1449
1492
  onCreated = props.onCreated,
1450
1493
  onClick = props.onClick,
@@ -1470,7 +1513,7 @@ var MFPOI = function MFPOI(props) {
1470
1513
  zIndex: zIndex,
1471
1514
  visible: visible,
1472
1515
  draggable: draggable,
1473
- userInteractionEnabled: userInteractionEnabled
1516
+ clickable: clickable
1474
1517
  };
1475
1518
  Object.keys(option).forEach(function (key) {
1476
1519
  if (option[key] == undefined || option[key] == null) {
@@ -1557,8 +1600,8 @@ var MFPOI = function MFPOI(props) {
1557
1600
  useEffect(function () {
1558
1601
  var _poiRef$current15;
1559
1602
 
1560
- userInteractionEnabled != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setUserInteraction(userInteractionEnabled));
1561
- }, [userInteractionEnabled]);
1603
+ clickable != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setClickable(clickable));
1604
+ }, [clickable]);
1562
1605
  useEffect(function () {
1563
1606
  if (poiRef.current) {
1564
1607
  poiRef.current.onClick = onClick;
@@ -1651,7 +1694,7 @@ var MFPolygon = function MFPolygon(props) {
1651
1694
  draggable = props.draggable,
1652
1695
  elevation = props.elevation,
1653
1696
  zIndex = props.zIndex,
1654
- userInteractionEnabled = props.userInteractionEnabled,
1697
+ clickable = props.clickable,
1655
1698
  map = props.map,
1656
1699
  onHover = props.onHover,
1657
1700
  onClick = props.onClick,
@@ -1659,6 +1702,7 @@ var MFPolygon = function MFPolygon(props) {
1659
1702
  var map4dContext = useContext(Map4dContext);
1660
1703
  var theMap = map || map4dContext.map;
1661
1704
  var polygonRef = useRef();
1705
+ var a = useRef();
1662
1706
  useEffect(function () {
1663
1707
  if (theMap && !polygonRef.current) {
1664
1708
  var _polygonRef$current;
@@ -1673,7 +1717,7 @@ var MFPolygon = function MFPolygon(props) {
1673
1717
  draggable: draggable,
1674
1718
  elevation: elevation,
1675
1719
  zIndex: zIndex,
1676
- userInteractionEnabled: userInteractionEnabled
1720
+ clickable: clickable
1677
1721
  };
1678
1722
  Object.keys(option).forEach(function (key) {
1679
1723
  if (option[key] == undefined || option[key] == null) {
@@ -1681,6 +1725,8 @@ var MFPolygon = function MFPolygon(props) {
1681
1725
  }
1682
1726
  });
1683
1727
  polygonRef.current = new map4d.Polygon(option);
1728
+ a.current = theMap;
1729
+ console.log(a.current);
1684
1730
  (_polygonRef$current = polygonRef.current) === null || _polygonRef$current === void 0 ? void 0 : _polygonRef$current.setMap(theMap);
1685
1731
  polygonRef.current.onHover = props.onHover;
1686
1732
  polygonRef.current.onClick = onClick;
@@ -1765,8 +1811,8 @@ var MFPolygon = function MFPolygon(props) {
1765
1811
  useEffect(function () {
1766
1812
  var _polygonRef$current14;
1767
1813
 
1768
- userInteractionEnabled != undefined && ((_polygonRef$current14 = polygonRef.current) === null || _polygonRef$current14 === void 0 ? void 0 : _polygonRef$current14.setUserInteraction(userInteractionEnabled));
1769
- }, [userInteractionEnabled]);
1814
+ clickable != undefined && ((_polygonRef$current14 = polygonRef.current) === null || _polygonRef$current14 === void 0 ? void 0 : _polygonRef$current14.setClickable(clickable));
1815
+ }, [clickable]);
1770
1816
  return null;
1771
1817
  };
1772
1818
 
@@ -1782,7 +1828,7 @@ var MFPolyline = function MFPolyline(props) {
1782
1828
  zIndex = props.zIndex,
1783
1829
  elevation = props.elevation,
1784
1830
  strokePattern = props.strokePattern,
1785
- userInteractionEnabled = props.userInteractionEnabled,
1831
+ clickable = props.clickable,
1786
1832
  map = props.map,
1787
1833
  onClick = props.onClick,
1788
1834
  onHover = props.onHover,
@@ -1811,7 +1857,7 @@ var MFPolyline = function MFPolyline(props) {
1811
1857
  zIndex: zIndex,
1812
1858
  elevation: elevation,
1813
1859
  strokePattern: strokePattern,
1814
- userInteractionEnabled: userInteractionEnabled
1860
+ clickable: clickable
1815
1861
  };
1816
1862
  Object.keys(option).forEach(function (key) {
1817
1863
  if (option[key] == undefined || option[key] == null) {
@@ -1926,8 +1972,8 @@ var MFPolyline = function MFPolyline(props) {
1926
1972
  useEffect(function () {
1927
1973
  var _polylineRef$current15;
1928
1974
 
1929
- userInteractionEnabled != undefined && ((_polylineRef$current15 = polylineRef.current) === null || _polylineRef$current15 === void 0 ? void 0 : _polylineRef$current15.setUserInteraction(userInteractionEnabled));
1930
- }, [userInteractionEnabled]);
1975
+ clickable != undefined && ((_polylineRef$current15 = polylineRef.current) === null || _polylineRef$current15 === void 0 ? void 0 : _polylineRef$current15.setClickable(clickable));
1976
+ }, [clickable]);
1931
1977
  return null;
1932
1978
  };
1933
1979