-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRNGoogleMapsPlusView.nitro.ts
More file actions
96 lines (88 loc) · 2.32 KB
/
RNGoogleMapsPlusView.nitro.ts
File metadata and controls
96 lines (88 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import type {
HybridView,
HybridViewMethods,
HybridViewProps,
} from 'react-native-nitro-modules';
import type {
RNCamera,
RNLatLng,
RNMapPadding,
RNPolygon,
RNPolyline,
RNUserInterfaceStyle,
RNLocationErrorCode,
RNMarker,
RNLocationPermissionResult,
RNRegion,
RNLocation,
RNMapErrorCode,
RNMapType,
RNInitialProps,
RNCircle,
RNMapUiSettings,
RNLocationConfig,
RNMapZoomConfig,
RNHeatmap,
RNKMLayer,
} from './types';
export interface RNGoogleMapsPlusViewProps extends HybridViewProps {
initialProps?: RNInitialProps;
uiSettings?: RNMapUiSettings;
myLocationEnabled?: boolean;
buildingEnabled?: boolean;
trafficEnabled?: boolean;
indoorEnabled?: boolean;
customMapStyle?: string;
userInterfaceStyle?: RNUserInterfaceStyle;
mapZoomConfig?: RNMapZoomConfig;
mapPadding?: RNMapPadding;
mapType?: RNMapType;
markers?: RNMarker[];
polygons?: RNPolygon[];
polylines?: RNPolyline[];
circles?: RNCircle[];
heatmaps?: RNHeatmap[];
kmlLayers?: RNKMLayer[];
locationConfig?: RNLocationConfig;
onMapError?: (error: RNMapErrorCode) => void;
onMapReady?: (ready: boolean) => void;
onLocationUpdate?: (location: RNLocation) => void;
onLocationError?: (error: RNLocationErrorCode) => void;
onMapPress?: (coordinate: RNLatLng) => void;
onMarkerPress?: (id: string) => void;
onPolylinePress?: (id: string) => void;
onPolygonPress?: (id: string) => void;
onCirclePress?: (id: string) => void;
onCameraChangeStart?: (
region: RNRegion,
camera: RNCamera,
isGesture: boolean
) => void;
onCameraChange?: (
region: RNRegion,
camera: RNCamera,
isGesture: boolean
) => void;
onCameraChangeComplete?: (
region: RNRegion,
camera: RNCamera,
isGesture: boolean
) => void;
}
export interface RNGoogleMapsPlusViewMethods extends HybridViewMethods {
setCamera(camera: RNCamera, animated?: boolean, durationMS?: number): void;
setCameraToCoordinates(
coordinates: RNLatLng[],
padding?: RNMapPadding,
animated?: boolean,
durationMS?: number
): void;
showLocationDialog(): void;
openLocationSettings(): void;
requestLocationPermission(): Promise<RNLocationPermissionResult>;
isGooglePlayServicesAvailable(): boolean;
}
export type RNGoogleMapsPlusView = HybridView<
RNGoogleMapsPlusViewProps,
RNGoogleMapsPlusViewMethods
>;