react-map4d-map 1.2.7 → 1.2.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.
@@ -17,5 +17,5 @@ interface BuildingProps {
17
17
  map?: map4d.Map;
18
18
  onCreated?: (building: map4d.Building) => void;
19
19
  }
20
- declare const MFBuilding: (props: BuildingProps) => null;
20
+ declare const MFBuilding: (props: BuildingProps) => any;
21
21
  export default MFBuilding;
@@ -6,5 +6,5 @@ interface BuildingOverlayProps {
6
6
  map?: map4d.Map;
7
7
  onCreated?: (buildingOverlay: map4d.BuildingOverlay) => void;
8
8
  }
9
- declare const MFBuildingOverlay: (props: BuildingOverlayProps) => null;
9
+ declare const MFBuildingOverlay: (props: BuildingOverlayProps) => any;
10
10
  export default MFBuildingOverlay;
@@ -13,5 +13,5 @@ interface CircleProps {
13
13
  map?: map4d.Map;
14
14
  onCreated?: (circle: map4d.Circle) => void;
15
15
  }
16
- declare const MFCircle: (props: CircleProps) => null;
16
+ declare const MFCircle: (props: CircleProps) => any;
17
17
  export default MFCircle;
@@ -3,5 +3,5 @@ interface DataLayerProps {
3
3
  map?: map4d.Map;
4
4
  onCreated?: (dataLeyer?: map4d.Data.Feature[]) => void;
5
5
  }
6
- declare const MFDataLayer: (props: DataLayerProps) => null;
6
+ declare const MFDataLayer: (props: DataLayerProps) => any;
7
7
  export default MFDataLayer;
@@ -27,5 +27,5 @@ interface DirectionsRendererProps {
27
27
  onMouseOver?: (args: any) => void;
28
28
  onMouseMove?: (args: any) => void;
29
29
  }
30
- declare const MFDirectionsRenderer: (props: DirectionsRendererProps) => null;
30
+ declare const MFDirectionsRenderer: (props: DirectionsRendererProps) => any;
31
31
  export default MFDirectionsRenderer;
@@ -2,5 +2,5 @@ interface GroundOverlayProps extends map4d.GroundOverlayOptions {
2
2
  map?: map4d.Map;
3
3
  onCreated?: (groundOverlay: map4d.GroundOverlay) => void;
4
4
  }
5
- declare const MFGroundOverlay: (props: GroundOverlayProps) => null;
5
+ declare const MFGroundOverlay: (props: GroundOverlayProps) => any;
6
6
  export default MFGroundOverlay;
@@ -2,5 +2,5 @@ interface ImageOverlayProps extends map4d.ImageOverlayOptions {
2
2
  map?: map4d.Map;
3
3
  onCreated?: (imageOverlay: map4d.ImageOverlay) => void;
4
4
  }
5
- declare const MFImageOverlay: (props: ImageOverlayProps) => null;
5
+ declare const MFImageOverlay: (props: ImageOverlayProps) => any;
6
6
  export default MFImageOverlay;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare function addLibrary(url: string, id: string): HTMLScriptElement | null;
2
+ export declare function addLibrary(url: string, id: string): HTMLScriptElement;
3
3
  interface MapOptions {
4
4
  center?: any;
5
5
  zoom?: number;
@@ -32,5 +32,5 @@ interface MarkerProps {
32
32
  onMouseOver?: (args: any) => void;
33
33
  onMouseMove?: (args: any) => void;
34
34
  }
35
- declare const MFMarker: (props: MarkerProps) => null;
35
+ declare const MFMarker: (props: MarkerProps) => any;
36
36
  export default MFMarker;
@@ -15,5 +15,5 @@ interface POIProps extends map4d.POIOptions {
15
15
  onClick?: (args: any) => void;
16
16
  onHover?: (args: any) => void;
17
17
  }
18
- declare const MFPOI: (props: POIProps) => null;
18
+ declare const MFPOI: (props: POIProps) => any;
19
19
  export default MFPOI;
@@ -2,5 +2,5 @@ interface POIOverlayProps extends map4d.POIOverlayOptions {
2
2
  map?: map4d.Map;
3
3
  onCreated?: (poiOverlay: map4d.POIOverlay) => void;
4
4
  }
5
- declare const MFPOIOverlay: (props: POIOverlayProps) => null;
5
+ declare const MFPOIOverlay: (props: POIOverlayProps) => any;
6
6
  export default MFPOIOverlay;
@@ -13,5 +13,5 @@ interface PolygonProps {
13
13
  onCreated?: (polygon: map4d.Polygon) => void;
14
14
  onHover?: (args: any) => void;
15
15
  }
16
- declare const MFPolygon: (props: PolygonProps) => null;
16
+ declare const MFPolygon: (props: PolygonProps) => any;
17
17
  export default MFPolygon;
@@ -18,5 +18,5 @@ interface PolylineProps {
18
18
  onMouseOver?: (args: any) => void;
19
19
  onMouseMove?: (args: any) => void;
20
20
  }
21
- declare const MFPolyline: (props: PolylineProps) => null;
21
+ declare const MFPolyline: (props: PolylineProps) => any;
22
22
  export default MFPolyline;
@@ -6,5 +6,5 @@ interface TileOverlayProps {
6
6
  map?: map4d.Map;
7
7
  onCreated?: (tileOverlay: map4d.TileOverlay) => void;
8
8
  }
9
- declare const MFTileOverlay: (props: TileOverlayProps) => null;
9
+ declare const MFTileOverlay: (props: TileOverlayProps) => any;
10
10
  export default MFTileOverlay;
package/dist/index.js CHANGED
@@ -764,6 +764,8 @@ var createId = function createId() {
764
764
  };
765
765
 
766
766
  var MFMap = function MFMap(props) {
767
+ var _props$options3, _props$options8;
768
+
767
769
  var callback = React.useRef("callback");
768
770
  var mapDomRef = React.useRef();
769
771
  var mapRef = React.useRef();
@@ -832,138 +834,156 @@ var MFMap = function MFMap(props) {
832
834
 
833
835
  destroy();
834
836
  };
835
- }, [props.environment, props.version, props.accessKey, props.options]);
837
+ }, [props.environment, props.version, props.accessKey]);
838
+ React.useEffect(function () {
839
+ var _props$options, _mapRef$current2, _props$options2;
840
+
841
+ ((_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));
842
+ }, [(_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.mapType]);
843
+ React.useEffect(function () {
844
+ var _props$options4, _props$options6, _mapRef$current4, _props$options7;
845
+
846
+ if (((_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.center) != undefined) {
847
+ var _props$options5, _mapRef$current3;
848
+
849
+ var camera = mapRef.current.getCamera();
850
+ camera.setTarget((_props$options5 = props.options) === null || _props$options5 === void 0 ? void 0 : _props$options5.center);
851
+ (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.moveCamera(camera);
852
+ }
853
+
854
+ ((_props$options6 = props.options) === null || _props$options6 === void 0 ? void 0 : _props$options6.mapType) != undefined && ((_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.setMapType((_props$options7 = props.options) === null || _props$options7 === void 0 ? void 0 : _props$options7.mapType));
855
+ }, [(_props$options8 = props.options) === null || _props$options8 === void 0 ? void 0 : _props$options8.center]);
836
856
 
837
857
  var registerEvent = function registerEvent() {
838
- 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;
858
+ var _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, _mapRef$current22, _mapRef$current23;
839
859
 
840
- var eventClickMarker = (_mapRef$current2 = mapRef.current) === null || _mapRef$current2 === void 0 ? void 0 : _mapRef$current2.addListener("click", function (args) {
860
+ var eventClickMarker = (_mapRef$current5 = mapRef.current) === null || _mapRef$current5 === void 0 ? void 0 : _mapRef$current5.addListener("click", function (args) {
841
861
  var _args$marker, _args$marker2;
842
862
 
843
863
  ((_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));
844
864
  }, {
845
865
  marker: true
846
866
  });
847
- var eventRightClickMarker = (_mapRef$current3 = mapRef.current) === null || _mapRef$current3 === void 0 ? void 0 : _mapRef$current3.addListener("rightClick", function (args) {
867
+ var eventRightClickMarker = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("rightClick", function (args) {
848
868
  var _args$marker3, _args$marker4;
849
869
 
850
870
  ((_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));
851
871
  }, {
852
872
  marker: true
853
873
  });
854
- var eventDragEndMarker = (_mapRef$current4 = mapRef.current) === null || _mapRef$current4 === void 0 ? void 0 : _mapRef$current4.addListener("dragEnd", function (args) {
874
+ var eventDragEndMarker = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("dragEnd", function (args) {
855
875
  var _args$marker5, _args$marker6;
856
876
 
857
877
  ((_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));
858
878
  }, {
859
879
  marker: true
860
880
  });
861
- var eventHoverMarker = (_mapRef$current5 = mapRef.current) === null || _mapRef$current5 === void 0 ? void 0 : _mapRef$current5.addListener("hover", function (args) {
881
+ var eventHoverMarker = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("hover", function (args) {
862
882
  var _args$marker7, _args$marker8;
863
883
 
864
884
  ((_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));
865
885
  }, {
866
886
  marker: true
867
887
  });
868
- var eventHoverPolygon = (_mapRef$current6 = mapRef.current) === null || _mapRef$current6 === void 0 ? void 0 : _mapRef$current6.addListener("hover", function (args) {
888
+ var eventHoverPolygon = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("hover", function (args) {
869
889
  var _args$polygon, _args$polygon2;
870
890
 
871
891
  ((_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));
872
892
  }, {
873
893
  polygon: true
874
894
  });
875
- var eventHoverPolyline = (_mapRef$current7 = mapRef.current) === null || _mapRef$current7 === void 0 ? void 0 : _mapRef$current7.addListener("hover", function (args) {
895
+ var eventHoverPolyline = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("hover", function (args) {
876
896
  var _args$polyline, _args$polyline2;
877
897
 
878
898
  ((_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));
879
899
  }, {
880
900
  polyline: true
881
901
  });
882
- var eventHoverDirection = (_mapRef$current8 = mapRef.current) === null || _mapRef$current8 === void 0 ? void 0 : _mapRef$current8.addListener("hover", function (args) {
902
+ var eventHoverDirection = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("hover", function (args) {
883
903
  var _args$renderer, _args$renderer2;
884
904
 
885
905
  ((_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));
886
906
  }, {
887
907
  directions: true
888
908
  });
889
- var eventClickPolyline = (_mapRef$current9 = mapRef.current) === null || _mapRef$current9 === void 0 ? void 0 : _mapRef$current9.addListener("click", function (args) {
909
+ var eventClickPolyline = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("click", function (args) {
890
910
  var _args$polyline3, _args$polyline4;
891
911
 
892
912
  ((_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));
893
913
  }, {
894
914
  polyline: true
895
915
  });
896
- var eventMouseOutDirection = (_mapRef$current10 = mapRef.current) === null || _mapRef$current10 === void 0 ? void 0 : _mapRef$current10.addListener("mouseOut", function (args) {
916
+ var eventMouseOutDirection = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("mouseOut", function (args) {
897
917
  var _args$renderer3, _args$renderer4;
898
918
 
899
919
  ((_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));
900
920
  }, {
901
921
  directions: true
902
922
  });
903
- var eventMouseOverDirection = (_mapRef$current11 = mapRef.current) === null || _mapRef$current11 === void 0 ? void 0 : _mapRef$current11.addListener("mouseOver", function (args) {
923
+ var eventMouseOverDirection = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOver", function (args) {
904
924
  var _args$renderer5, _args$renderer6;
905
925
 
906
926
  ((_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));
907
927
  }, {
908
928
  directions: true
909
929
  });
910
- var eventMouseMoveDirection = (_mapRef$current12 = mapRef.current) === null || _mapRef$current12 === void 0 ? void 0 : _mapRef$current12.addListener("mouseMove", function (args) {
930
+ var eventMouseMoveDirection = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseMove", function (args) {
911
931
  var _args$renderer7, _args$renderer8;
912
932
 
913
933
  ((_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));
914
934
  }, {
915
935
  directions: true
916
936
  });
917
- var eventMouseOutPolyline = (_mapRef$current13 = mapRef.current) === null || _mapRef$current13 === void 0 ? void 0 : _mapRef$current13.addListener("mouseOut", function (args) {
937
+ var eventMouseOutPolyline = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseOut", function (args) {
918
938
  var _args$polyline5, _args$polyline6;
919
939
 
920
940
  ((_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));
921
941
  }, {
922
942
  polyline: true
923
943
  });
924
- var eventMouseOverPolyline = (_mapRef$current14 = mapRef.current) === null || _mapRef$current14 === void 0 ? void 0 : _mapRef$current14.addListener("mouseOver", function (args) {
944
+ var eventMouseOverPolyline = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOver", function (args) {
925
945
  var _args$polyline7, _args$polyline8;
926
946
 
927
947
  ((_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));
928
948
  }, {
929
949
  polyline: true
930
950
  });
931
- var eventMouseMovePolyline = (_mapRef$current15 = mapRef.current) === null || _mapRef$current15 === void 0 ? void 0 : _mapRef$current15.addListener("mouseMove", function (args) {
951
+ var eventMouseMovePolyline = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseMove", function (args) {
932
952
  var _args$polyline9, _args$polyline10;
933
953
 
934
954
  ((_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));
935
955
  }, {
936
956
  polyline: true
937
957
  });
938
- var eventMouseOutMarker = (_mapRef$current16 = mapRef.current) === null || _mapRef$current16 === void 0 ? void 0 : _mapRef$current16.addListener("mouseOut", function (args) {
958
+ var eventMouseOutMarker = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("mouseOut", function (args) {
939
959
  var _args$marker9, _args$marker10;
940
960
 
941
961
  ((_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));
942
962
  }, {
943
963
  marker: true
944
964
  });
945
- var eventMouseOverMarker = (_mapRef$current17 = mapRef.current) === null || _mapRef$current17 === void 0 ? void 0 : _mapRef$current17.addListener("mouseOver", function (args) {
965
+ var eventMouseOverMarker = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("mouseOver", function (args) {
946
966
  var _args$marker11, _args$marker12;
947
967
 
948
968
  ((_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));
949
969
  }, {
950
970
  marker: true
951
971
  });
952
- var eventMouseMoveMarker = (_mapRef$current18 = mapRef.current) === null || _mapRef$current18 === void 0 ? void 0 : _mapRef$current18.addListener("mouseMove", function (args) {
972
+ var eventMouseMoveMarker = (_mapRef$current21 = mapRef.current) === null || _mapRef$current21 === void 0 ? void 0 : _mapRef$current21.addListener("mouseMove", function (args) {
953
973
  var _args$marker13, _args$marker14;
954
974
 
955
975
  ((_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));
956
976
  }, {
957
977
  marker: true
958
978
  });
959
- var eventClickPoi = (_mapRef$current19 = mapRef.current) === null || _mapRef$current19 === void 0 ? void 0 : _mapRef$current19.addListener("click", function (args) {
979
+ var eventClickPoi = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("click", function (args) {
960
980
  var _args$poi, _args$poi2;
961
981
 
962
982
  ((_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));
963
983
  }, {
964
984
  poi: true
965
985
  });
966
- var eventHoverPoi = (_mapRef$current20 = mapRef.current) === null || _mapRef$current20 === void 0 ? void 0 : _mapRef$current20.addListener("hover", function (args) {
986
+ var eventHoverPoi = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("hover", function (args) {
967
987
  var _args$poi3, _args$poi4;
968
988
 
969
989
  ((_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));
@@ -973,9 +993,9 @@ var MFMap = function MFMap(props) {
973
993
  events.current = events.current.concat([eventClickMarker, eventRightClickMarker, eventDragEndMarker, eventHoverMarker, eventHoverPolygon, eventHoverPolyline, eventHoverDirection, eventClickPolyline, eventMouseOutDirection, eventMouseOverDirection, eventMouseMoveDirection, eventMouseOutPolyline, eventMouseOverPolyline, eventMouseMovePolyline, eventMouseOutMarker, eventMouseOverMarker, eventMouseMoveMarker, eventClickPoi, eventHoverPoi]);
974
994
 
975
995
  if (props.onClickLocation) {
976
- var _mapRef$current21;
996
+ var _mapRef$current24;
977
997
 
978
- var onClickLocation = (_mapRef$current21 = mapRef.current) === null || _mapRef$current21 === void 0 ? void 0 : _mapRef$current21.addListener("click", function (args) {
998
+ var onClickLocation = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("click", function (args) {
979
999
  props.onClickLocation && props.onClickLocation(args);
980
1000
  }, {
981
1001
  location: true
@@ -984,9 +1004,9 @@ var MFMap = function MFMap(props) {
984
1004
  }
985
1005
 
986
1006
  if (props.onRightClickLocation) {
987
- var _mapRef$current22;
1007
+ var _mapRef$current25;
988
1008
 
989
- var onRightClickLocation = (_mapRef$current22 = mapRef.current) === null || _mapRef$current22 === void 0 ? void 0 : _mapRef$current22.addListener("rightClick", function (args) {
1009
+ var onRightClickLocation = (_mapRef$current25 = mapRef.current) === null || _mapRef$current25 === void 0 ? void 0 : _mapRef$current25.addListener("rightClick", function (args) {
990
1010
  props.onRightClickLocation && props.onRightClickLocation(args);
991
1011
  }, {
992
1012
  location: true
@@ -995,9 +1015,9 @@ var MFMap = function MFMap(props) {
995
1015
  }
996
1016
 
997
1017
  if (props.onTilesLoaded) {
998
- var _mapRef$current23;
1018
+ var _mapRef$current26;
999
1019
 
1000
- var onTilesLoaded = (_mapRef$current23 = mapRef.current) === null || _mapRef$current23 === void 0 ? void 0 : _mapRef$current23.addListener("tilesLoaded", function (args) {
1020
+ var onTilesLoaded = (_mapRef$current26 = mapRef.current) === null || _mapRef$current26 === void 0 ? void 0 : _mapRef$current26.addListener("tilesLoaded", function (args) {
1001
1021
  props.onTilesLoaded && props.onTilesLoaded(args);
1002
1022
  }, {
1003
1023
  location: true
@@ -1006,9 +1026,9 @@ var MFMap = function MFMap(props) {
1006
1026
  }
1007
1027
 
1008
1028
  if (props.onCameraChanging) {
1009
- var _mapRef$current24;
1029
+ var _mapRef$current27;
1010
1030
 
1011
- var onCameraChanging = (_mapRef$current24 = mapRef.current) === null || _mapRef$current24 === void 0 ? void 0 : _mapRef$current24.addListener("cameraChanging", function (args) {
1031
+ var onCameraChanging = (_mapRef$current27 = mapRef.current) === null || _mapRef$current27 === void 0 ? void 0 : _mapRef$current27.addListener("cameraChanging", function (args) {
1012
1032
  props.onCameraChanging && props.onCameraChanging(args);
1013
1033
  }, {
1014
1034
  location: true