react-map4d-map 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -441,7 +441,10 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
441
441
  onMarkerDragEnd = props.onMarkerDragEnd,
442
442
  map = props.map,
443
443
  onHover = props.onHover,
444
- onCreated = props.onCreated;
444
+ onCreated = props.onCreated,
445
+ onMouseOut = props.onMouseOut,
446
+ onMouseOver = props.onMouseOver,
447
+ onMouseMove = props.onMouseMove;
445
448
  var map4dContext = useContext(Map4dContext);
446
449
  var theMap = map || map4dContext.map;
447
450
  var directionRef = useRef();
@@ -475,6 +478,9 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
475
478
  directionRef.current = new map4d.DirectionsRenderer(option);
476
479
  (_directionRef$current = directionRef.current) === null || _directionRef$current === void 0 ? void 0 : _directionRef$current.setMap(theMap);
477
480
  directionRef.current.onHover = props.onHover;
481
+ directionRef.current.onMouseOut = onMouseOut;
482
+ directionRef.current.onMouseOver = onMouseOver;
483
+ directionRef.current.onMouseMove = onMouseMove;
478
484
  onCreated && onCreated(directionRef.current);
479
485
  }
480
486
  }, [theMap]);
@@ -483,6 +489,21 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
483
489
  directionRef.current.onHover = onHover;
484
490
  }
485
491
  }, [onHover]);
492
+ useEffect(function () {
493
+ if (directionRef.current) {
494
+ directionRef.current.onMouseOut = onMouseOut;
495
+ }
496
+ }, [onMouseOut]);
497
+ useEffect(function () {
498
+ if (directionRef.current) {
499
+ directionRef.current.onMouseOver = onMouseOver;
500
+ }
501
+ }, [onMouseOver]);
502
+ useEffect(function () {
503
+ if (directionRef.current) {
504
+ directionRef.current.onMouseMove = onMouseMove;
505
+ }
506
+ }, [onMouseMove]);
486
507
  useEffect(function () {
487
508
  if (theMap) {
488
509
  var _directionRef$current2;
@@ -815,70 +836,147 @@ var MFMap = function MFMap(props) {
815
836
  }, [props.environment, props.version, props.accessKey]);
816
837
 
817
838
  var registerEvent = function registerEvent() {
818
- var _mapRef$current2, _mapRef$current3, _mapRef$current4, _mapRef$current5, _mapRef$current6, _mapRef$current7, _mapRef$current8, _mapRef$current9;
839
+ 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;
819
840
 
820
841
  var eventClickMarker = (_mapRef$current2 = mapRef.current) === null || _mapRef$current2 === void 0 ? void 0 : _mapRef$current2.addListener("click", function (args) {
821
842
  var _args$marker, _args$marker2;
822
843
 
823
- ((_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());
844
+ ((_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));
824
845
  }, {
825
846
  marker: true
826
847
  });
827
848
  var eventRightClickMarker = (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.addListener("rightClick", function (args) {
828
849
  var _args$marker3, _args$marker4;
829
850
 
830
- ((_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());
851
+ ((_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));
831
852
  }, {
832
853
  marker: true
833
854
  });
834
855
  var eventDragEndMarker = (_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.addListener("dragEnd", function (args) {
835
856
  var _args$marker5, _args$marker6;
836
857
 
837
- ((_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());
858
+ ((_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));
838
859
  }, {
839
860
  marker: true
840
861
  });
841
862
  var eventHoverMarker = (_mapRef$current5 = mapRef.current) === null || _mapRef$current5 === void 0 ? void 0 : _mapRef$current5.addListener("hover", function (args) {
842
863
  var _args$marker7, _args$marker8;
843
864
 
844
- ((_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());
865
+ ((_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));
845
866
  }, {
846
867
  marker: true
847
868
  });
848
869
  var eventHoverPolygon = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("hover", function (args) {
849
870
  var _args$polygon, _args$polygon2;
850
871
 
851
- ((_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());
872
+ ((_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));
852
873
  }, {
853
874
  polygon: true
854
875
  });
855
876
  var eventHoverPolyline = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("hover", function (args) {
856
877
  var _args$polyline, _args$polyline2;
857
878
 
858
- ((_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());
879
+ ((_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));
859
880
  }, {
860
881
  polyline: true
861
882
  });
862
883
  var eventHoverDirection = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("hover", function (args) {
863
884
  var _args$renderer, _args$renderer2;
864
885
 
865
- ((_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());
886
+ ((_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));
866
887
  }, {
867
888
  directions: true
868
889
  });
869
890
  var eventClickPolyline = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("click", function (args) {
870
891
  var _args$polyline3, _args$polyline4;
871
892
 
872
- ((_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());
893
+ ((_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));
873
894
  }, {
874
895
  polyline: true
875
896
  });
876
- events.current = events.current.concat([eventClickMarker, eventRightClickMarker, eventDragEndMarker, eventHoverMarker, eventHoverPolygon, eventHoverPolyline, eventHoverDirection, eventClickPolyline]);
897
+ var eventMouseOutDirection = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("mouseOut", function (args) {
898
+ var _args$renderer3, _args$renderer4;
899
+
900
+ ((_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));
901
+ }, {
902
+ directions: true
903
+ });
904
+ var eventMouseOverDirection = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("mouseOver", function (args) {
905
+ var _args$renderer5, _args$renderer6;
906
+
907
+ ((_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));
908
+ }, {
909
+ directions: true
910
+ });
911
+ var eventMouseMoveDirection = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("mouseMove", function (args) {
912
+ var _args$renderer7, _args$renderer8;
913
+
914
+ ((_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));
915
+ }, {
916
+ directions: true
917
+ });
918
+ var eventMouseOutPolyline = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("mouseOut", function (args) {
919
+ var _args$polyline5, _args$polyline6;
920
+
921
+ ((_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));
922
+ }, {
923
+ polyline: true
924
+ });
925
+ var eventMouseOverPolyline = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOver", function (args) {
926
+ var _args$polyline7, _args$polyline8;
927
+
928
+ ((_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));
929
+ }, {
930
+ polyline: true
931
+ });
932
+ var eventMouseMovePolyline = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseMove", function (args) {
933
+ var _args$polyline9, _args$polyline10;
934
+
935
+ ((_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));
936
+ }, {
937
+ polyline: true
938
+ });
939
+ var eventMouseOutMarker = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseOut", function (args) {
940
+ var _args$marker9, _args$marker10;
941
+
942
+ ((_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));
943
+ }, {
944
+ marker: true
945
+ });
946
+ var eventMouseOverMarker = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOver", function (args) {
947
+ var _args$marker11, _args$marker12;
948
+
949
+ ((_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));
950
+ }, {
951
+ marker: true
952
+ });
953
+ var eventMouseMoveMarker = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseMove", function (args) {
954
+ var _args$marker13, _args$marker14;
955
+
956
+ ((_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));
957
+ }, {
958
+ marker: true
959
+ });
960
+ var eventClickPoi = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("click", function (args) {
961
+ var _args$poi, _args$poi2;
962
+
963
+ ((_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));
964
+ }, {
965
+ poi: true
966
+ });
967
+ var eventHoverPoi = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("hover", function (args) {
968
+ var _args$poi3, _args$poi4;
969
+
970
+ ((_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));
971
+ }, {
972
+ poi: true
973
+ });
974
+ events.current = events.current.concat([eventClickMarker, eventRightClickMarker, eventDragEndMarker, eventHoverMarker, eventHoverPolygon, eventHoverPolyline, eventHoverDirection, eventClickPolyline, eventMouseOutDirection, eventMouseOverDirection, eventMouseMoveDirection, eventMouseOutPolyline, eventMouseOverPolyline, eventMouseMovePolyline, eventMouseOutMarker, eventMouseOverMarker, eventMouseMoveMarker, eventClickPoi, eventHoverPoi]);
877
975
 
878
976
  if (props.onClickLocation) {
879
- var _mapRef$current10;
977
+ var _mapRef$current21;
880
978
 
881
- var onClickLocation = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("click", function (args) {
979
+ var onClickLocation = (_mapRef$current21 = mapRef.current) === null || _mapRef$current21 === void 0 ? void 0 : _mapRef$current21.addListener("click", function (args) {
882
980
  props.onClickLocation && props.onClickLocation(args);
883
981
  }, {
884
982
  location: true
@@ -887,9 +985,9 @@ var MFMap = function MFMap(props) {
887
985
  }
888
986
 
889
987
  if (props.onRightClickLocation) {
890
- var _mapRef$current11;
988
+ var _mapRef$current22;
891
989
 
892
- var onRightClickLocation = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("rightClick", function (args) {
990
+ var onRightClickLocation = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("rightClick", function (args) {
893
991
  props.onRightClickLocation && props.onRightClickLocation(args);
894
992
  }, {
895
993
  location: true
@@ -898,9 +996,9 @@ var MFMap = function MFMap(props) {
898
996
  }
899
997
 
900
998
  if (props.onTilesLoaded) {
901
- var _mapRef$current12;
999
+ var _mapRef$current23;
902
1000
 
903
- var onTilesLoaded = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("tilesLoaded", function (args) {
1001
+ var onTilesLoaded = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("tilesLoaded", function (args) {
904
1002
  props.onTilesLoaded && props.onTilesLoaded(args);
905
1003
  }, {
906
1004
  location: true
@@ -909,9 +1007,9 @@ var MFMap = function MFMap(props) {
909
1007
  }
910
1008
 
911
1009
  if (props.onCameraChanging) {
912
- var _mapRef$current13;
1010
+ var _mapRef$current24;
913
1011
 
914
- var onCameraChanging = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("cameraChanging", function (args) {
1012
+ var onCameraChanging = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("cameraChanging", function (args) {
915
1013
  props.onCameraChanging && props.onCameraChanging(args);
916
1014
  }, {
917
1015
  location: true
@@ -962,7 +1060,10 @@ var MFMarker = function MFMarker(props) {
962
1060
  onClick = props.onClick,
963
1061
  onRightClick = props.onRightClick,
964
1062
  onDragEnd = props.onDragEnd,
965
- onHover = props.onHover;
1063
+ onHover = props.onHover,
1064
+ onMouseOut = props.onMouseOut,
1065
+ onMouseOver = props.onMouseOver,
1066
+ onMouseMove = props.onMouseMove;
966
1067
  var map4dContext = useContext(Map4dContext);
967
1068
  var markerClusterContext = useContext(MarkerClusterContext);
968
1069
  var theMap = map || map4dContext.map;
@@ -1023,6 +1124,9 @@ var MFMarker = function MFMarker(props) {
1023
1124
  markerRef.current.onRightClick = props.onRightClick;
1024
1125
  markerRef.current.onDragEnd = props.onDragEnd;
1025
1126
  markerRef.current.onHover = props.onHover;
1127
+ markerRef.current.onMouseOut = onMouseOut;
1128
+ markerRef.current.onMouseOver = onMouseOver;
1129
+ markerRef.current.onMouseMove = onMouseMove;
1026
1130
  onCreated && onCreated(markerRef.current);
1027
1131
  (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.addMarker) && (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.addMarker(markerRef.current));
1028
1132
  }
@@ -1060,6 +1164,21 @@ var MFMarker = function MFMarker(props) {
1060
1164
  markerRef.current.onHover = onHover;
1061
1165
  }
1062
1166
  }, [onHover]);
1167
+ useEffect(function () {
1168
+ if (markerRef.current) {
1169
+ markerRef.current.onMouseOut = onMouseOut;
1170
+ }
1171
+ }, [onMouseOut]);
1172
+ useEffect(function () {
1173
+ if (markerRef.current) {
1174
+ markerRef.current.onMouseOver = onMouseOver;
1175
+ }
1176
+ }, [onMouseOver]);
1177
+ useEffect(function () {
1178
+ if (markerRef.current) {
1179
+ markerRef.current.onMouseMove = onMouseMove;
1180
+ }
1181
+ }, [onMouseMove]);
1063
1182
  useEffect(function () {
1064
1183
  if (markerRef.current) {
1065
1184
  markerRef.current.onClick = onClick;
@@ -1281,7 +1400,9 @@ var MFPOI = function MFPOI(props) {
1281
1400
  draggable = props.draggable,
1282
1401
  userInteractionEnabled = props.userInteractionEnabled,
1283
1402
  map = props.map,
1284
- onCreated = props.onCreated;
1403
+ onCreated = props.onCreated,
1404
+ onClick = props.onClick,
1405
+ onHover = props.onHover;
1285
1406
  var map4dContext = useContext(Map4dContext);
1286
1407
  var theMap = map || map4dContext.map;
1287
1408
  var poiRef = useRef();
@@ -1311,6 +1432,8 @@ var MFPOI = function MFPOI(props) {
1311
1432
  }
1312
1433
  });
1313
1434
  poiRef.current = new map4d.POI(option);
1435
+ poiRef.current.onClick = onClick;
1436
+ poiRef.current.onHover = onHover;
1314
1437
  (_poiRef$current = poiRef.current) === null || _poiRef$current === void 0 ? void 0 : _poiRef$current.setMap(theMap);
1315
1438
  onCreated && onCreated(poiRef.current);
1316
1439
  }
@@ -1390,6 +1513,16 @@ var MFPOI = function MFPOI(props) {
1390
1513
 
1391
1514
  userInteractionEnabled != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setUserInteraction(userInteractionEnabled));
1392
1515
  }, [userInteractionEnabled]);
1516
+ useEffect(function () {
1517
+ if (poiRef.current) {
1518
+ poiRef.current.onClick = onClick;
1519
+ }
1520
+ }, [onClick]);
1521
+ useEffect(function () {
1522
+ if (poiRef.current) {
1523
+ poiRef.current.onHover = onHover;
1524
+ }
1525
+ }, [onHover]);
1393
1526
  return null;
1394
1527
  };
1395
1528
 
@@ -1600,7 +1733,10 @@ var MFPolyline = function MFPolyline(props) {
1600
1733
  map = props.map,
1601
1734
  onClick = props.onClick,
1602
1735
  onHover = props.onHover,
1603
- onCreated = props.onCreated;
1736
+ onCreated = props.onCreated,
1737
+ onMouseOut = props.onMouseOut,
1738
+ onMouseOver = props.onMouseOver,
1739
+ onMouseMove = props.onMouseMove;
1604
1740
  var map4dContext = useContext(Map4dContext);
1605
1741
  var theMap = map || map4dContext.map;
1606
1742
  var polylineRef = useRef();
@@ -1633,6 +1769,9 @@ var MFPolyline = function MFPolyline(props) {
1633
1769
  (_polylineRef$current = polylineRef.current) === null || _polylineRef$current === void 0 ? void 0 : _polylineRef$current.setMap(theMap);
1634
1770
  polylineRef.current.onHover = props.onHover;
1635
1771
  polylineRef.current.onClick = props.onClick;
1772
+ polylineRef.current.onMouseOut = onMouseOut;
1773
+ polylineRef.current.onMouseOver = onMouseOver;
1774
+ polylineRef.current.onMouseMove = onMouseMove;
1636
1775
  onCreated && onCreated(polylineRef.current);
1637
1776
  }
1638
1777
  }, [theMap]);
@@ -1661,6 +1800,21 @@ var MFPolyline = function MFPolyline(props) {
1661
1800
  polylineRef.current.onHover = onHover;
1662
1801
  }
1663
1802
  }, [onHover]);
1803
+ useEffect(function () {
1804
+ if (polylineRef.current) {
1805
+ polylineRef.current.onMouseOut = onMouseOut;
1806
+ }
1807
+ }, [onMouseOut]);
1808
+ useEffect(function () {
1809
+ if (polylineRef.current) {
1810
+ polylineRef.current.onMouseOver = onMouseOver;
1811
+ }
1812
+ }, [onMouseOver]);
1813
+ useEffect(function () {
1814
+ if (polylineRef.current) {
1815
+ polylineRef.current.onMouseMove = onMouseMove;
1816
+ }
1817
+ }, [onMouseMove]);
1664
1818
  useEffect(function () {
1665
1819
  if (polylineRef.current) {
1666
1820
  polylineRef.current.onClick = onClick;