forked from react-native-maps/react-native-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
159 lines (147 loc) · 5.11 KB
/
index.d.ts
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import * as React from 'react';
declare module "react-native-maps" {
export type ProviderType = 'google';
export type MapType = 'standard' | 'satellite' | 'hybrid' | 'terrain' | 'none';
export type LineCapType = 'butt' | 'round' | 'square';
export type LineJoinType = 'miter' | 'round' | 'bevel';
export interface MapViewProperties {
provider?: ProviderType;
style?: any;
customMapStyle?: any[];
customMapStyleString?: string;
showsUserLocation?: boolean;
userLocationAnnotationTitle?: string;
showsMyLocationButton?: boolean;
followsUserLocation?: boolean;
showsPointsOfInterest?: boolean;
showsCompass?: boolean;
zoomEnabled?: boolean;
rotateEnabled?: boolean;
cacheEnabled?: boolean;
loadingEnabled?: boolean;
loadingBackgroundColor?: any;
loadingIndicatorColor?: any;
scrollEnabled?: boolean;
pitchEnabled?: boolean;
toolbarEnabled?: boolean;
moveOnMarkerPress?: boolean;
showsScale?: boolean;
showsBuildings?: boolean;
showsTraffic?: boolean;
showsIndoors?: boolean;
showsIndoorLevelPicker?: boolean;
mapType?: MapType;
region?: { latitude: number; longitude: number; latitudeDelta: number; longitudeDelta: number; };
initialRegion?: { latitude: number; longitude: number; latitudeDelta: number; longitudeDelta: number; };
liteMode?: boolean;
maxDelta?: number;
minDelta?: number;
legalLabelInsets?: any;
onChange?: Function;
onMapReady?: Function;
onRegionChange?: Function;
onRegionChangeComplete?: Function;
onPress?: Function;
onLayout?: Function;
onLongPress?: Function;
onPanDrag?: Function;
onMarkerPress?: Function;
onMarkerSelect?: Function;
onMarkerDeselect?: Function;
onCalloutPress?: Function;
onMarkerDragStart?: Function;
onMarkerDrag?: Function;
onMarkerDragEnd?: Function;
minZoomLevel?: number;
maxZoomLevel?: number;
}
export interface MarkerProperties {
identifier?: string;
reuseIdentifier?: string;
title?: string;
description?: string;
image?: any;
opacity?: number;
pinColor?: string;
coordinate: { latitude: number; longitude: number };
centerOffset?: { x: number; y: number };
calloutOffset?: { x: number; y: number };
anchor?: { x: number; y: number };
calloutAnchor?: { x: number; y: number };
flat?: boolean;
draggable?: boolean;
onPress?: Function;
onSelect?: Function;
onDeselect?: Function;
onCalloutPress?: Function;
onDragStart?: Function;
onDrag?: Function;
onDragEnd?: Function;
}
export interface MapPolylineProperties {
coordinates?: { latitude: number; longitude: number; }[];
onPress?: Function;
tappable?: boolean;
fillColor?: string;
strokeWidth?: number;
strokeColor?: string;
zIndex?: number;
lineCap?: LineCapType;
lineJoin?: LineJoinType;
miterLimit?: number;
geodesic?: boolean;
lineDashPhase?: number;
lineDashPattern?: number[];
}
export interface MapPolygonProperties {
coordinates?: { latitude: number; longitude: number; }[];
holes?: { latitude: number; longitude: number; }[][];
onPress?: Function;
tappable?: boolean;
strokeWidth?: number;
strokeColor?: string;
fillColor?: string;
zIndex?: number;
lineCap?: LineCapType;
lineJoin?: LineJoinType;
miterLimit?: number;
geodesic?: boolean;
lineDashPhase?: number;
lineDashPattern?: number[];
}
export interface MapCircleProperties {
center: { latitude: number; longitude: number };
radius: number;
onPress?: Function;
strokeWidth?: number;
strokeColor?: string;
fillColor?: string;
zIndex?: number;
lineCap?: LineCapType;
lineJoin?: LineJoinType;
miterLimit?: number;
lineDashPhase?: number;
lineDashPattern?: number[];
}
export interface MapUrlTitleProperties {
urlTemplate: string;
zIndex?: number;
}
export interface MapCalloutProperties {
tooltip?: boolean;
onPress?: Function;
}
class MapView extends React.Component<MapViewProperties, any> {
static Animated: any;
static AnimatedRegion: any;
}
namespace MapView {
class Marker extends React.Component<MarkerProperties, any> {}
class Polyline extends React.Component<MapPolylineProperties, any> {}
class Polygon extends React.Component<MapPolygonProperties, any> {}
class Circle extends React.Component<MapCircleProperties, any> {}
class UrlTile extends React.Component<MapUrlTitleProperties, any> {}
class Callout extends React.Component<MapCalloutProperties, any> {}
}
export default MapView;
}