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.
@@ -22,7 +22,10 @@ interface DirectionsRendererProps {
22
22
  onMarkerDragEnd?: Function;
23
23
  map?: map4d.Map;
24
24
  onCreated?: (directionsRenderer?: map4d.DirectionsRenderer) => void;
25
- onHover?: (directions: any) => void;
25
+ onHover?: (args: any) => void;
26
+ onMouseOut?: (args: any) => void;
27
+ onMouseOver?: (args: any) => void;
28
+ onMouseMove?: (args: any) => void;
26
29
  }
27
30
  declare const MFDirectionsRenderer: (props: DirectionsRendererProps) => null;
28
31
  export default MFDirectionsRenderer;
@@ -23,11 +23,14 @@ interface MarkerProps {
23
23
  infoWindow?: string | Node;
24
24
  infoContents?: string | Node;
25
25
  showInfoWindow?: boolean;
26
- onClick?: (marker: any) => void;
26
+ onClick?: (args: any) => void;
27
27
  onCreated?: (marker: any) => void;
28
- onRightClick?: (marker: any) => void;
29
- onDragEnd?: (marker: any) => void;
30
- onHover?: (marker: any) => void;
28
+ onRightClick?: (args: any) => void;
29
+ onDragEnd?: (args: any) => void;
30
+ onHover?: (args: any) => void;
31
+ onMouseOut?: (args: any) => void;
32
+ onMouseOver?: (args: any) => void;
33
+ onMouseMove?: (args: any) => void;
31
34
  }
32
35
  declare const MFMarker: (props: MarkerProps) => null;
33
36
  export default MFMarker;
@@ -1,6 +1,19 @@
1
1
  interface POIProps extends map4d.POIOptions {
2
+ position: any;
3
+ title?: string;
4
+ subtitle?: string;
5
+ color?: string;
6
+ type?: string;
7
+ icon?: string;
8
+ elevation?: number;
9
+ zIndex?: number;
10
+ visible?: boolean;
11
+ draggable?: boolean;
12
+ userInteractionEnabled?: boolean;
2
13
  map?: map4d.Map;
3
14
  onCreated?: (poi: map4d.POI) => void;
15
+ onClick?: (args: any) => void;
16
+ onHover?: (args: any) => void;
4
17
  }
5
18
  declare const MFPOI: (props: POIProps) => null;
6
19
  export default MFPOI;
@@ -11,7 +11,7 @@ interface PolygonProps {
11
11
  userInteractionEnabled?: boolean;
12
12
  map?: map4d.Map;
13
13
  onCreated?: (polygon: map4d.Polygon) => void;
14
- onHover?: (polygon: any) => void;
14
+ onHover?: (args: any) => void;
15
15
  }
16
16
  declare const MFPolygon: (props: PolygonProps) => null;
17
17
  export default MFPolygon;
@@ -12,8 +12,11 @@ interface PolylineProps {
12
12
  userInteractionEnabled?: boolean;
13
13
  map?: map4d.Map;
14
14
  onCreated?: (polyline: map4d.Polyline) => void;
15
- onHover?: (polyline: any) => void;
16
- onClick?: (polyline: any) => void;
15
+ onHover?: (args: any) => void;
16
+ onClick?: (args: any) => void;
17
+ onMouseOut?: (args: any) => void;
18
+ onMouseOver?: (args: any) => void;
19
+ onMouseMove?: (args: any) => void;
17
20
  }
18
21
  declare const MFPolyline: (props: PolylineProps) => null;
19
22
  export default MFPolyline;
@@ -4,5 +4,8 @@ export declare const enum MapEventEnum {
4
4
  dragEnd = "dragEnd",
5
5
  cameraChanging = "cameraChanging",
6
6
  tilesLoaded = "tilesLoaded",
7
- hover = "hover"
7
+ hover = "hover",
8
+ mouseOut = "mouseOut",
9
+ mouseMove = "mouseMove",
10
+ mouseOver = "mouseOver"
8
11
  }
package/dist/index.js CHANGED
@@ -444,7 +444,10 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
444
444
  onMarkerDragEnd = props.onMarkerDragEnd,
445
445
  map = props.map,
446
446
  onHover = props.onHover,
447
- onCreated = props.onCreated;
447
+ onCreated = props.onCreated,
448
+ onMouseOut = props.onMouseOut,
449
+ onMouseOver = props.onMouseOver,
450
+ onMouseMove = props.onMouseMove;
448
451
  var map4dContext = React.useContext(Map4dContext);
449
452
  var theMap = map || map4dContext.map;
450
453
  var directionRef = React.useRef();
@@ -478,6 +481,9 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
478
481
  directionRef.current = new map4d.DirectionsRenderer(option);
479
482
  (_directionRef$current = directionRef.current) === null || _directionRef$current === void 0 ? void 0 : _directionRef$current.setMap(theMap);
480
483
  directionRef.current.onHover = props.onHover;
484
+ directionRef.current.onMouseOut = onMouseOut;
485
+ directionRef.current.onMouseOver = onMouseOver;
486
+ directionRef.current.onMouseMove = onMouseMove;
481
487
  onCreated && onCreated(directionRef.current);
482
488
  }
483
489
  }, [theMap]);
@@ -486,6 +492,21 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
486
492
  directionRef.current.onHover = onHover;
487
493
  }
488
494
  }, [onHover]);
495
+ React.useEffect(function () {
496
+ if (directionRef.current) {
497
+ directionRef.current.onMouseOut = onMouseOut;
498
+ }
499
+ }, [onMouseOut]);
500
+ React.useEffect(function () {
501
+ if (directionRef.current) {
502
+ directionRef.current.onMouseOver = onMouseOver;
503
+ }
504
+ }, [onMouseOver]);
505
+ React.useEffect(function () {
506
+ if (directionRef.current) {
507
+ directionRef.current.onMouseMove = onMouseMove;
508
+ }
509
+ }, [onMouseMove]);
489
510
  React.useEffect(function () {
490
511
  if (theMap) {
491
512
  var _directionRef$current2;
@@ -818,70 +839,147 @@ var MFMap = function MFMap(props) {
818
839
  }, [props.environment, props.version, props.accessKey]);
819
840
 
820
841
  var registerEvent = function registerEvent() {
821
- var _mapRef$current2, _mapRef$current3, _mapRef$current4, _mapRef$current5, _mapRef$current6, _mapRef$current7, _mapRef$current8, _mapRef$current9;
842
+ 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;
822
843
 
823
844
  var eventClickMarker = (_mapRef$current2 = mapRef.current) === null || _mapRef$current2 === void 0 ? void 0 : _mapRef$current2.addListener("click", function (args) {
824
845
  var _args$marker, _args$marker2;
825
846
 
826
- ((_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());
847
+ ((_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));
827
848
  }, {
828
849
  marker: true
829
850
  });
830
851
  var eventRightClickMarker = (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.addListener("rightClick", function (args) {
831
852
  var _args$marker3, _args$marker4;
832
853
 
833
- ((_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());
854
+ ((_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));
834
855
  }, {
835
856
  marker: true
836
857
  });
837
858
  var eventDragEndMarker = (_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.addListener("dragEnd", function (args) {
838
859
  var _args$marker5, _args$marker6;
839
860
 
840
- ((_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());
861
+ ((_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));
841
862
  }, {
842
863
  marker: true
843
864
  });
844
865
  var eventHoverMarker = (_mapRef$current5 = mapRef.current) === null || _mapRef$current5 === void 0 ? void 0 : _mapRef$current5.addListener("hover", function (args) {
845
866
  var _args$marker7, _args$marker8;
846
867
 
847
- ((_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());
868
+ ((_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));
848
869
  }, {
849
870
  marker: true
850
871
  });
851
872
  var eventHoverPolygon = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("hover", function (args) {
852
873
  var _args$polygon, _args$polygon2;
853
874
 
854
- ((_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());
875
+ ((_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));
855
876
  }, {
856
877
  polygon: true
857
878
  });
858
879
  var eventHoverPolyline = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("hover", function (args) {
859
880
  var _args$polyline, _args$polyline2;
860
881
 
861
- ((_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());
882
+ ((_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));
862
883
  }, {
863
884
  polyline: true
864
885
  });
865
886
  var eventHoverDirection = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("hover", function (args) {
866
887
  var _args$renderer, _args$renderer2;
867
888
 
868
- ((_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());
889
+ ((_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));
869
890
  }, {
870
891
  directions: true
871
892
  });
872
893
  var eventClickPolyline = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("click", function (args) {
873
894
  var _args$polyline3, _args$polyline4;
874
895
 
875
- ((_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());
896
+ ((_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));
876
897
  }, {
877
898
  polyline: true
878
899
  });
879
- events.current = events.current.concat([eventClickMarker, eventRightClickMarker, eventDragEndMarker, eventHoverMarker, eventHoverPolygon, eventHoverPolyline, eventHoverDirection, eventClickPolyline]);
900
+ var eventMouseOutDirection = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("mouseOut", function (args) {
901
+ var _args$renderer3, _args$renderer4;
902
+
903
+ ((_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));
904
+ }, {
905
+ directions: true
906
+ });
907
+ var eventMouseOverDirection = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("mouseOver", function (args) {
908
+ var _args$renderer5, _args$renderer6;
909
+
910
+ ((_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));
911
+ }, {
912
+ directions: true
913
+ });
914
+ var eventMouseMoveDirection = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("mouseMove", function (args) {
915
+ var _args$renderer7, _args$renderer8;
916
+
917
+ ((_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));
918
+ }, {
919
+ directions: true
920
+ });
921
+ var eventMouseOutPolyline = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("mouseOut", function (args) {
922
+ var _args$polyline5, _args$polyline6;
923
+
924
+ ((_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));
925
+ }, {
926
+ polyline: true
927
+ });
928
+ var eventMouseOverPolyline = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOver", function (args) {
929
+ var _args$polyline7, _args$polyline8;
930
+
931
+ ((_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));
932
+ }, {
933
+ polyline: true
934
+ });
935
+ var eventMouseMovePolyline = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseMove", function (args) {
936
+ var _args$polyline9, _args$polyline10;
937
+
938
+ ((_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));
939
+ }, {
940
+ polyline: true
941
+ });
942
+ var eventMouseOutMarker = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseOut", function (args) {
943
+ var _args$marker9, _args$marker10;
944
+
945
+ ((_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));
946
+ }, {
947
+ marker: true
948
+ });
949
+ var eventMouseOverMarker = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOver", function (args) {
950
+ var _args$marker11, _args$marker12;
951
+
952
+ ((_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));
953
+ }, {
954
+ marker: true
955
+ });
956
+ var eventMouseMoveMarker = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseMove", function (args) {
957
+ var _args$marker13, _args$marker14;
958
+
959
+ ((_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));
960
+ }, {
961
+ marker: true
962
+ });
963
+ var eventClickPoi = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("click", function (args) {
964
+ var _args$poi, _args$poi2;
965
+
966
+ ((_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));
967
+ }, {
968
+ poi: true
969
+ });
970
+ var eventHoverPoi = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("hover", function (args) {
971
+ var _args$poi3, _args$poi4;
972
+
973
+ ((_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));
974
+ }, {
975
+ poi: true
976
+ });
977
+ events.current = events.current.concat([eventClickMarker, eventRightClickMarker, eventDragEndMarker, eventHoverMarker, eventHoverPolygon, eventHoverPolyline, eventHoverDirection, eventClickPolyline, eventMouseOutDirection, eventMouseOverDirection, eventMouseMoveDirection, eventMouseOutPolyline, eventMouseOverPolyline, eventMouseMovePolyline, eventMouseOutMarker, eventMouseOverMarker, eventMouseMoveMarker, eventClickPoi, eventHoverPoi]);
880
978
 
881
979
  if (props.onClickLocation) {
882
- var _mapRef$current10;
980
+ var _mapRef$current21;
883
981
 
884
- var onClickLocation = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("click", function (args) {
982
+ var onClickLocation = (_mapRef$current21 = mapRef.current) === null || _mapRef$current21 === void 0 ? void 0 : _mapRef$current21.addListener("click", function (args) {
885
983
  props.onClickLocation && props.onClickLocation(args);
886
984
  }, {
887
985
  location: true
@@ -890,9 +988,9 @@ var MFMap = function MFMap(props) {
890
988
  }
891
989
 
892
990
  if (props.onRightClickLocation) {
893
- var _mapRef$current11;
991
+ var _mapRef$current22;
894
992
 
895
- var onRightClickLocation = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("rightClick", function (args) {
993
+ var onRightClickLocation = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("rightClick", function (args) {
896
994
  props.onRightClickLocation && props.onRightClickLocation(args);
897
995
  }, {
898
996
  location: true
@@ -901,9 +999,9 @@ var MFMap = function MFMap(props) {
901
999
  }
902
1000
 
903
1001
  if (props.onTilesLoaded) {
904
- var _mapRef$current12;
1002
+ var _mapRef$current23;
905
1003
 
906
- var onTilesLoaded = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("tilesLoaded", function (args) {
1004
+ var onTilesLoaded = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("tilesLoaded", function (args) {
907
1005
  props.onTilesLoaded && props.onTilesLoaded(args);
908
1006
  }, {
909
1007
  location: true
@@ -912,9 +1010,9 @@ var MFMap = function MFMap(props) {
912
1010
  }
913
1011
 
914
1012
  if (props.onCameraChanging) {
915
- var _mapRef$current13;
1013
+ var _mapRef$current24;
916
1014
 
917
- var onCameraChanging = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("cameraChanging", function (args) {
1015
+ var onCameraChanging = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("cameraChanging", function (args) {
918
1016
  props.onCameraChanging && props.onCameraChanging(args);
919
1017
  }, {
920
1018
  location: true
@@ -965,7 +1063,10 @@ var MFMarker = function MFMarker(props) {
965
1063
  onClick = props.onClick,
966
1064
  onRightClick = props.onRightClick,
967
1065
  onDragEnd = props.onDragEnd,
968
- onHover = props.onHover;
1066
+ onHover = props.onHover,
1067
+ onMouseOut = props.onMouseOut,
1068
+ onMouseOver = props.onMouseOver,
1069
+ onMouseMove = props.onMouseMove;
969
1070
  var map4dContext = React.useContext(Map4dContext);
970
1071
  var markerClusterContext = React.useContext(MarkerClusterContext);
971
1072
  var theMap = map || map4dContext.map;
@@ -1026,6 +1127,9 @@ var MFMarker = function MFMarker(props) {
1026
1127
  markerRef.current.onRightClick = props.onRightClick;
1027
1128
  markerRef.current.onDragEnd = props.onDragEnd;
1028
1129
  markerRef.current.onHover = props.onHover;
1130
+ markerRef.current.onMouseOut = onMouseOut;
1131
+ markerRef.current.onMouseOver = onMouseOver;
1132
+ markerRef.current.onMouseMove = onMouseMove;
1029
1133
  onCreated && onCreated(markerRef.current);
1030
1134
  (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.addMarker) && (markerClusterContext === null || markerClusterContext === void 0 ? void 0 : markerClusterContext.addMarker(markerRef.current));
1031
1135
  }
@@ -1063,6 +1167,21 @@ var MFMarker = function MFMarker(props) {
1063
1167
  markerRef.current.onHover = onHover;
1064
1168
  }
1065
1169
  }, [onHover]);
1170
+ React.useEffect(function () {
1171
+ if (markerRef.current) {
1172
+ markerRef.current.onMouseOut = onMouseOut;
1173
+ }
1174
+ }, [onMouseOut]);
1175
+ React.useEffect(function () {
1176
+ if (markerRef.current) {
1177
+ markerRef.current.onMouseOver = onMouseOver;
1178
+ }
1179
+ }, [onMouseOver]);
1180
+ React.useEffect(function () {
1181
+ if (markerRef.current) {
1182
+ markerRef.current.onMouseMove = onMouseMove;
1183
+ }
1184
+ }, [onMouseMove]);
1066
1185
  React.useEffect(function () {
1067
1186
  if (markerRef.current) {
1068
1187
  markerRef.current.onClick = onClick;
@@ -1284,7 +1403,9 @@ var MFPOI = function MFPOI(props) {
1284
1403
  draggable = props.draggable,
1285
1404
  userInteractionEnabled = props.userInteractionEnabled,
1286
1405
  map = props.map,
1287
- onCreated = props.onCreated;
1406
+ onCreated = props.onCreated,
1407
+ onClick = props.onClick,
1408
+ onHover = props.onHover;
1288
1409
  var map4dContext = React.useContext(Map4dContext);
1289
1410
  var theMap = map || map4dContext.map;
1290
1411
  var poiRef = React.useRef();
@@ -1314,6 +1435,8 @@ var MFPOI = function MFPOI(props) {
1314
1435
  }
1315
1436
  });
1316
1437
  poiRef.current = new map4d.POI(option);
1438
+ poiRef.current.onClick = onClick;
1439
+ poiRef.current.onHover = onHover;
1317
1440
  (_poiRef$current = poiRef.current) === null || _poiRef$current === void 0 ? void 0 : _poiRef$current.setMap(theMap);
1318
1441
  onCreated && onCreated(poiRef.current);
1319
1442
  }
@@ -1393,6 +1516,16 @@ var MFPOI = function MFPOI(props) {
1393
1516
 
1394
1517
  userInteractionEnabled != undefined && ((_poiRef$current15 = poiRef.current) === null || _poiRef$current15 === void 0 ? void 0 : _poiRef$current15.setUserInteraction(userInteractionEnabled));
1395
1518
  }, [userInteractionEnabled]);
1519
+ React.useEffect(function () {
1520
+ if (poiRef.current) {
1521
+ poiRef.current.onClick = onClick;
1522
+ }
1523
+ }, [onClick]);
1524
+ React.useEffect(function () {
1525
+ if (poiRef.current) {
1526
+ poiRef.current.onHover = onHover;
1527
+ }
1528
+ }, [onHover]);
1396
1529
  return null;
1397
1530
  };
1398
1531
 
@@ -1603,7 +1736,10 @@ var MFPolyline = function MFPolyline(props) {
1603
1736
  map = props.map,
1604
1737
  onClick = props.onClick,
1605
1738
  onHover = props.onHover,
1606
- onCreated = props.onCreated;
1739
+ onCreated = props.onCreated,
1740
+ onMouseOut = props.onMouseOut,
1741
+ onMouseOver = props.onMouseOver,
1742
+ onMouseMove = props.onMouseMove;
1607
1743
  var map4dContext = React.useContext(Map4dContext);
1608
1744
  var theMap = map || map4dContext.map;
1609
1745
  var polylineRef = React.useRef();
@@ -1636,6 +1772,9 @@ var MFPolyline = function MFPolyline(props) {
1636
1772
  (_polylineRef$current = polylineRef.current) === null || _polylineRef$current === void 0 ? void 0 : _polylineRef$current.setMap(theMap);
1637
1773
  polylineRef.current.onHover = props.onHover;
1638
1774
  polylineRef.current.onClick = props.onClick;
1775
+ polylineRef.current.onMouseOut = onMouseOut;
1776
+ polylineRef.current.onMouseOver = onMouseOver;
1777
+ polylineRef.current.onMouseMove = onMouseMove;
1639
1778
  onCreated && onCreated(polylineRef.current);
1640
1779
  }
1641
1780
  }, [theMap]);
@@ -1664,6 +1803,21 @@ var MFPolyline = function MFPolyline(props) {
1664
1803
  polylineRef.current.onHover = onHover;
1665
1804
  }
1666
1805
  }, [onHover]);
1806
+ React.useEffect(function () {
1807
+ if (polylineRef.current) {
1808
+ polylineRef.current.onMouseOut = onMouseOut;
1809
+ }
1810
+ }, [onMouseOut]);
1811
+ React.useEffect(function () {
1812
+ if (polylineRef.current) {
1813
+ polylineRef.current.onMouseOver = onMouseOver;
1814
+ }
1815
+ }, [onMouseOver]);
1816
+ React.useEffect(function () {
1817
+ if (polylineRef.current) {
1818
+ polylineRef.current.onMouseMove = onMouseMove;
1819
+ }
1820
+ }, [onMouseMove]);
1667
1821
  React.useEffect(function () {
1668
1822
  if (polylineRef.current) {
1669
1823
  polylineRef.current.onClick = onClick;