-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ios.d.ts
261 lines (260 loc) · 7 KB
/
index.ios.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
import { BoundsBase, CircleBase, MarkerBase, PolygonBase, PolylineBase, ProjectionBase, PositionBase, ShapeBase, VisibleRegionBase, StyleBase, UISettingsBase, GoogleMapsCommon } from "./common";
import { Image, Color } from "@nativescript/core";
import { Point } from "@nativescript/core/ui/core/view";
export declare class GoogleMaps extends GoogleMapsCommon {
protected _markers: Array<Marker>;
private _delegate;
private _indoorDelegate;
constructor();
onLoaded(): void;
onUnloaded(): void;
disposeNativeView(): void;
private _createCameraPosition;
updateCamera(): void;
setViewport(bounds: Bounds, padding?: number): void;
updatePadding(): void;
// @ts-ignore
get ios(): never;
// @ts-ignore
get gMap(): any;
// @ts-ignore
get projection(): Projection;
// @ts-ignore
get settings(): UISettings;
// @ts-ignore
get myLocationEnabled(): boolean;
set myLocationEnabled(value: boolean);
setMinZoomMaxZoom(): void;
addMarker(...markers: Marker[]): any;
removeMarker(...markers: Marker[]): any;
removeAllMarkers(): any;
findMarker(callback: (marker: Marker) => boolean): Marker;
addPolyline(shape: Polyline): any;
addPolygon(shape: Polygon): any;
addCircle(shape: Circle): any;
removeShape(shape: ShapeBase): any;
removeAllShapes(): any;
findShape(callback: (shape: ShapeBase) => boolean): ShapeBase;
clear(): void;
setStyle(style: StyleBase): boolean;
}
export declare class UISettings extends UISettingsBase {
private _ios;
// @ts-ignore
get ios(): any;
constructor(ios: any);
// @ts-ignore
get compassEnabled(): boolean;
set compassEnabled(value: boolean);
// @ts-ignore
get indoorLevelPickerEnabled(): boolean;
set indoorLevelPickerEnabled(value: boolean);
// @ts-ignore
get mapToolbarEnabled(): boolean;
set mapToolbarEnabled(value: boolean);
// @ts-ignore
get myLocationButtonEnabled(): boolean;
set myLocationButtonEnabled(value: boolean);
// @ts-ignore
get rotateGesturesEnabled(): boolean;
set rotateGesturesEnabled(value: boolean);
// @ts-ignore
get scrollGesturesEnabled(): boolean;
set scrollGesturesEnabled(value: boolean);
// @ts-ignore
get tiltGesturesEnabled(): boolean;
set tiltGesturesEnabled(value: boolean);
// @ts-ignore
get zoomControlsEnabled(): boolean;
set zoomControlsEnabled(value: boolean);
// @ts-ignore
get zoomGesturesEnabled(): boolean;
set zoomGesturesEnabled(value: boolean);
}
export declare class Projection extends ProjectionBase {
private _ios;
// @ts-ignore
get ios(): any;
// @ts-ignore
get visibleRegion(): VisibleRegion;
fromScreenLocation(point: Point): Position;
toScreenLocation(position: Position): {
x: any;
y: any;
};
constructor(ios: any);
}
export declare class VisibleRegion extends VisibleRegionBase {
private _ios;
// @ts-ignore
get ios(): any;
// @ts-ignore
get nearLeft(): Position;
// @ts-ignore
get nearRight(): Position;
// @ts-ignore
get farLeft(): Position;
// @ts-ignore
get farRight(): Position;
// @ts-ignore
get bounds(): Bounds;
constructor(ios: any);
}
export declare class Bounds extends BoundsBase {
private _ios;
// @ts-ignore
get ios(): GMSCoordinateBounds;
// @ts-ignore
get southwest(): Position;
// @ts-ignore
get northeast(): Position;
// @ts-ignore
constructor(ios: GMSCoordinateBounds);
static fromCoordinates(southwest: Position, northeast: Position): Bounds;
}
export declare class Position extends PositionBase {
private _ios;
// @ts-ignore
get ios(): any;
// @ts-ignore
get latitude(): any;
set latitude(latitude: any);
// @ts-ignore
get longitude(): any;
set longitude(longitude: any);
// @ts-ignore
constructor(ios?: CLLocationCoordinate2D);
static positionFromLatLng(latitude: number, longitude: number): Position;
}
export declare class Marker extends MarkerBase {
private _ios;
private _color;
private _icon;
private _alpha;
private _visible;
private static cachedColorIcons;
private static getIconForColor;
constructor();
// @ts-ignore
get position(): Position;
set position(position: Position);
// @ts-ignore
get rotation(): number;
set rotation(value: number);
// @ts-ignore
get zIndex(): number;
set zIndex(value: number);
// @ts-ignore
get title(): any;
set title(title: any);
// @ts-ignore
get snippet(): any;
set snippet(snippet: any);
showInfoWindow(): void;
isInfoWindowShown(): boolean;
hideInfoWindow(): void;
// @ts-ignore
get color(): Color | string | number;
set color(value: Color | string | number);
// @ts-ignore
get icon(): Image | string;
set icon(value: Image | string);
// @ts-ignore
get alpha(): number;
set alpha(value: number);
// @ts-ignore
get visible(): boolean;
set visible(value: boolean);
// @ts-ignore
get flat(): boolean;
set flat(value: boolean);
// @ts-ignore
get anchor(): Array<number>;
set anchor(value: Array<number>);
// @ts-ignore
get draggable(): boolean;
set draggable(value: boolean);
// @ts-ignore
get ios(): any;
}
export declare class Polyline extends PolylineBase {
private _ios;
private _color;
constructor();
// @ts-ignore
get clickable(): boolean;
set clickable(value: boolean);
// @ts-ignore
get zIndex(): number;
set zIndex(value: number);
loadPoints(): void;
reloadPoints(): void;
// @ts-ignore
get width(): number;
set width(value: number);
// @ts-ignore
get color(): Color;
set color(value: Color);
// @ts-ignore
get geodesic(): boolean;
set geodesic(value: boolean);
// @ts-ignore
get ios(): any;
}
export declare class Polygon extends PolygonBase {
private _ios;
private _strokeColor;
private _fillColor;
constructor();
// @ts-ignore
get clickable(): boolean;
set clickable(value: boolean);
// @ts-ignore
get zIndex(): number;
set zIndex(value: number);
loadPoints(): void;
loadHoles(): void;
reloadPoints(): void;
reloadHoles(): void;
// @ts-ignore
get strokeWidth(): number;
set strokeWidth(value: number);
// @ts-ignore
get strokeColor(): Color;
set strokeColor(value: Color);
// @ts-ignore
get fillColor(): Color;
set fillColor(value: Color);
// @ts-ignore
get ios(): any;
}
export declare class Circle extends CircleBase {
private _ios;
private _center;
private _strokeColor;
private _fillColor;
constructor();
// @ts-ignore
get clickable(): boolean;
set clickable(value: boolean);
// @ts-ignore
get zIndex(): number;
set zIndex(value: number);
// @ts-ignore
get center(): Position;
set center(value: Position);
// @ts-ignore
get radius(): number;
set radius(value: number);
// @ts-ignore
get strokeWidth(): number;
set strokeWidth(value: number);
// @ts-ignore
get strokeColor(): Color;
set strokeColor(value: Color);
// @ts-ignore
get fillColor(): Color;
set fillColor(value: Color);
// @ts-ignore
get ios(): any;
}