-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathindex.d.ts
More file actions
762 lines (592 loc) · 21 KB
/
index.d.ts
File metadata and controls
762 lines (592 loc) · 21 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
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
import { Color, ImageSource, EventData, View } from '@nativescript/core';
import { JointType, MapType, MapViewBase } from './common';
export type FeatureTypeAdministrative = 'administrative' | 'administrative.country' | 'administrative.land_parcel' | 'administrative.locality' | 'administrative.neighborhood' | 'administrative.province';
export type FeatureTypeLandscape = 'landscape' | 'landscape.man_made' | 'landscape.natural' | 'landscape.natural.landcover' | 'landscape.natural.terrain';
export type FeatureTypePoi = 'poi' | 'poi.attraction' | 'poi.business' | 'poi.government' | 'poi.medical' | 'poi.park' | 'poi.place_of_worship' | 'poi.school' | 'poi.sports_complex';
export type FeatureTypeRoad = 'road' | 'road.arterial' | 'road.highway' | 'road.highway.controlled_access' | 'road.local';
export type FeatureTypeTransit = 'transit' | 'transit.line' | 'transit.station' | 'transit.station.airport' | 'transit.station.bus' | 'transit.station.rail';
export type FeatureTypeWater = 'water';
export type ElementTypeGeometry = 'geometry' | 'geometry.fill' | 'geometry.stroke';
export type ElementTypeLabels = 'labels' | 'labels.icon' | 'labels.text' | 'labels.text.fill' | 'labels.text.stroke';
export type StylersVisibility = 'on' | 'off' | 'simplified';
export interface Stylers {
hue?: string;
lightness?: number;
saturation?: number;
gamma?: number;
invert_lightness?: boolean;
visibility?: StylersVisibility;
color?: string;
weight?: number;
}
export interface Style {
featureType?: 'all' | FeatureTypeAdministrative | FeatureTypeLandscape | FeatureTypePoi | FeatureTypeRoad | FeatureTypeTransit | FeatureTypeWater;
elementType?: 'all' | ElementTypeGeometry | ElementTypeLabels;
stylers: Stylers[];
}
export interface LocationTapEvent extends EventData {
location: Location;
}
export interface MapTapEvent extends EventData {
coordinate: Coordinate;
}
export interface MarkerTapEvent extends EventData {
marker: Marker;
}
export interface MarkerDragEvent extends EventData {
marker: Marker;
}
export interface CameraPositionEvent extends EventData {
cameraPosition: CameraPosition;
state: 'idle' | 'start' | 'moving';
}
export interface CameraPositionStartEvent extends CameraPositionEvent {
isGesture: boolean;
}
export interface CircleTapEvent extends EventData {
circle: Circle;
}
export interface PolygonTapEvent extends EventData {
polygon: Polygon;
}
export interface PolylineTapEvent extends EventData {
polyline: Polyline;
}
export interface PoiTapEvent extends EventData {
poi: Poi;
}
export interface GroundOverlayTapEvent extends EventData {
groundOverlay: GroundOverlay;
}
export interface InfoWindowEvent extends EventData {
marker: Marker;
}
export interface MarkerInfoEvent extends EventData {
marker: Marker;
view?: any;
}
export interface NativeObject {
readonly native: any;
readonly ios: any;
readonly android: any;
}
export interface IUISettings {
mapToolbarEnabled: boolean;
zoomControlsEnabled: boolean;
zoomGesturesEnabled: boolean;
tiltGesturesEnabled: boolean;
setAllGesturesEnabled(param0: boolean): void;
compassEnabled: boolean;
scrollGesturesEnabledDuringRotateOrZoom: boolean;
rotateGesturesEnabled: boolean;
myLocationButtonEnabled: boolean;
indoorLevelPickerEnabled: boolean;
scrollGesturesEnabled: boolean;
}
export class UISettings implements IUISettings, NativeObject {
readonly android;
compassEnabled: boolean;
indoorLevelPickerEnabled: boolean;
readonly ios;
mapToolbarEnabled: boolean;
myLocationButtonEnabled: boolean;
readonly native;
rotateGesturesEnabled: boolean;
scrollGesturesEnabled: boolean;
scrollGesturesEnabledDuringRotateOrZoom: boolean;
tiltGesturesEnabled: boolean;
zoomControlsEnabled: boolean;
zoomGesturesEnabled: boolean;
setAllGesturesEnabled(param0: boolean): void;
}
export interface MapReadyEvent extends EventData {
map: GoogleMap;
}
export interface ActiveBuildingEvent extends EventData {
building: IndoorBuilding;
}
export interface ActiveLevelEvent extends EventData {
level: IndoorLevel;
}
export interface IIndoorLevel {
readonly name: string;
readonly shortName: string;
}
export class IndoorLevel implements IIndoorLevel {
readonly name: string;
readonly shortName: string;
}
export interface IIndoorBuilding {
readonly defaultLevelIndex: number;
readonly levels: IndoorLevel[];
readonly underground: boolean;
}
export class IndoorBuilding implements IIndoorBuilding {
readonly defaultLevelIndex: number;
readonly levels: IndoorLevel[];
readonly underground: boolean;
}
export interface ILocation {
readonly accuracy: number;
readonly altitudeAccuracy: number;
readonly coordinate: Coordinate;
readonly timestamp: Date;
readonly altitude: number;
readonly speed: number;
readonly heading: number;
}
export class Location extends NativeObject implements ILocation, NativeObject {
accuracy: number;
altitudeAccuracy: number;
coordinate: Coordinate;
timestamp: Date;
altitude: number;
speed: number;
heading: number;
}
export interface ICameraUpdate {}
export class CameraUpdate implements ICameraUpdate {
static fromCoordinate(coordinate: Coordinate, zoom: number): CameraUpdate;
static fromCoordinates(coordinates: Coordinate[], padding: number): CameraUpdate;
static fromCoordinates(coordinates: Coordinate[], width: number, height: number, padding: number): CameraUpdate;
static fromCameraPosition(position: CameraPosition): CameraUpdate;
static zoomIn(): CameraUpdate;
static zoomOut(): CameraUpdate;
static zoomTo(value: number): CameraUpdate;
static zoomBy(amount: number, point?: { x: number; y: number }): CameraUpdate;
static scrollBy(x: number, y: number): CameraUpdate;
}
export interface ICameraPosition {
target: Coordinate;
zoom: number;
tilt: number;
bearing: number;
}
export class CameraPosition implements ICameraPosition, Partial<NativeObject> {
constructor(target: Coordinate, zoom: number, bearing?: number, tilt?: number);
bearing: number;
target: Coordinate;
tilt: number;
zoom: number;
native?: any;
}
export class MapView extends MapViewBase {
on(event: 'ready', callback: (args: MapReadyEvent) => void, thisArg?: any);
on(event: 'mapTap', callback: (args: MapTapEvent) => void, thisArg?: any);
on(event: 'mapLongPress', callback: (args: MapTapEvent) => void, thisArg?: any);
on(event: 'markerTap', callback: (args: MarkerTapEvent) => void, thisArg?: any);
on(event: 'myLocationTap', callback: (args: MapTapEvent) => void, thisArg?: any);
on(event: 'myLocationButtonTap', callback: (args: MarkerTapEvent) => void, thisArg?: any);
on(event: 'markerDragStart', callback: (args: MarkerTapEvent) => void, thisArg?: any);
on(event: 'markerDragging', callback: (args: MarkerTapEvent) => void, thisArg?: any);
on(event: 'markerDragEnd', callback: (args: MarkerTapEvent) => void, thisArg?: any);
on(event: 'tileRenderingStart', callback: (args: EventData) => void, thisArg?: any);
on(event: 'tileRenderingEnd', callback: (args: EventData) => void, thisArg?: any);
on(event: 'cameraPosition', callback: (args: CameraPositionEvent) => void, thisArg?: any);
on(event: 'circle', callback: (args: CircleTapEvent) => void, thisArg?: any);
on(event: 'polygon', callback: (args: PolygonTapEvent) => void, thisArg?: any);
on(event: 'polyline', callback: (args: PolylineTapEvent) => void, thisArg?: any);
on(event: 'poi', callback: (args: PoiTapEvent) => void, thisArg?: any);
on(event: 'groundOverlay', callback: (args: GroundOverlayTapEvent) => void, thisArg?: any);
on(event: 'infoWindowTap', callback: (args: InfoWindowEvent) => void, thisArg?: any);
on(event: 'infoWindowLongPress', callback: (args: InfoWindowEvent) => void, thisArg?: any);
on(event: 'infoWindowClose', callback: (args: InfoWindowEvent) => void, thisArg?: any);
on(event: 'markerInfoContents', callback: (args: MarkerInfoEvent) => void, thisArg?: any);
on(event: 'markerInfoWindow', callback: (args: MarkerInfoEvent) => void, thisArg?: any);
on(event: 'activeBuilding', callback: (args: ActiveBuildingEvent) => void, thisArg?: any);
on(event: 'activeLevel', callback: (args: ActiveLevelEvent) => void, thisArg?: any);
}
export interface Coordinate {
lat: number;
lng: number;
}
export interface CoordinateBounds {
southwest: Coordinate;
northeast: Coordinate;
}
export interface IMarker {
draggable: boolean;
position: Coordinate;
title: string;
snippet: string;
icon: any /* ImageSource, UIImage & Bitmap */;
color: Color | string;
opacity: number;
rotation: number;
visible: boolean;
flat: boolean;
zIndex: number;
userData: { [key: string]: any };
}
export interface MarkerOptions extends Partial<IMarker> {
anchorU?: number;
anchorV?: number;
}
export class Marker implements IMarker, Partial<NativeObject> {
native?: any;
draggable: boolean;
position: Coordinate;
title: string;
snippet: string;
icon: any; /* Image, ImageSource, UIImage & Bitmap */
color: Color | string;
opacity: number;
rotation: number;
visible: boolean;
flat: boolean;
zIndex: number;
userData: { [key: string]: any };
hideInfoWindow(): void;
showInfoWindow(): void;
}
export interface ILocationSource {}
export class LocationSource implements ILocationSource {}
export interface IVisibleRegion {
nearLeft: Coordinate;
nearRight: Coordinate;
farLeft: Coordinate;
farRight: Coordinate;
}
export class VisibleRegion implements IVisibleRegion {
farLeft: Coordinate;
farRight: Coordinate;
nearLeft: Coordinate;
nearRight: Coordinate;
}
export interface IProjection {
coordinateForPoint(point: { x: number; y: number }): Coordinate;
pointForCoordinate(coordinate: Coordinate): { x: number; y: number };
visibleRegion(): VisibleRegion;
containsCoordinate(coordinate: Coordinate): boolean;
}
export class Projection implements IProjection, Partial<NativeObject> {
coordinateForPoint(point: { x: number; y: number }): Coordinate;
pointForCoordinate(coordinate: Coordinate): { x: number; y: number };
visibleRegion(): VisibleRegion;
containsCoordinate(coordinate: Coordinate): boolean;
native?: any;
}
export interface TileOverlayOptions extends ITileOverlay {}
export class TileOverlay implements Partial<ITileOverlay>, Partial<NativeObject> {}
export interface IGoogleMap {
readonly uiSettings: IUISettings;
readonly projection: Projection;
trafficEnabled: boolean;
minZoomLevel: number;
maxZoomLevel: number;
buildingsEnabled: boolean;
myLocationEnabled: boolean;
cameraPosition: CameraPosition;
mapStyle: Style[];
mapType: MapType;
snapshot(): Promise<ImageSource>;
animateCamera(update: CameraUpdate);
clear();
addTileOverlay(options: TileOverlayOptions): TileOverlay;
removeTileOverlay(overlay: TileOverlay);
addMarker(marker: MarkerOptions): Marker;
removeMarker(marker: Marker);
addCircle(options: CircleOptions): Circle;
removeCircle(circle: Circle);
addPolygon(options: PolygonOptions): Polygon;
removePolygon(polygon: Polygon);
addPolyline(options: PolylineOptions): Polyline;
removePolyline(polyline: Polyline);
addGroundOverlay(options: GroundOverlayOptions): GroundOverlay;
removeGroundOverlay(groundOverlay: GroundOverlay);
}
export class GoogleMap implements IGoogleMap {
mapStyle: Style[];
mapType: MapType;
addTileOverlay(options: TileOverlayOptions): TileOverlay;
removeTileOverlay(overlay: TileOverlay);
buildingsEnabled: boolean;
maxZoomLevel: number;
minZoomLevel: number;
myLocationEnabled: boolean;
trafficEnabled: boolean;
readonly uiSettings: IUISettings;
cameraPosition: CameraPosition;
readonly projection: Projection;
readonly native: any;
addCircle(circle: CircleOptions): Circle;
addMarker(marker: MarkerOptions): Marker;
clear();
removeCircle(circle: Circle);
removeMarker(marker: Marker);
addGroundOverlay(options: GroundOverlayOptions): GroundOverlay;
addPolygon(options: PolygonOptions): Polygon;
addPolyline(options: PolylineOptions): Polyline;
removeGroundOverlay(groundOverlay: GroundOverlay);
removePolygon(polygon: Polygon);
removePolyline(polyline: Polyline);
moveCamera(update: CameraUpdate);
animateCamera(update: CameraUpdate);
snapshot(): Promise<ImageSource>;
}
export interface ICircle {
radius: number;
strokeColor: Color | string;
fillColor: Color | string;
visible: boolean;
tappable: boolean;
strokeWidth: number;
center: Coordinate;
strokePattern: Array<PatternItem & Partial<NativeObject>>;
zIndex: number;
userData: { [key: string]: any };
}
export interface CircleOptions extends Partial<ICircle> {}
export class Circle implements ICircle {
center: Coordinate;
fillColor: Color | string;
radius: number;
strokeColor: Color | string;
strokePattern: Array<PatternItem & Partial<NativeObject>>;
strokeWidth: number;
tappable: boolean;
visible: boolean;
zIndex: number;
userData: { [key: string]: any };
}
export interface IPolygon {
points: Coordinate[];
holes: Coordinate[][];
tappable: boolean;
strokeWidth: number;
strokeColor: Color | string;
fillColor: Color | string;
strokePattern: Array<PatternItem & Partial<NativeObject>>;
zIndex: number;
geodesic: boolean;
strokeJointType: JointType;
visible: boolean;
userData: { [key: string]: any };
}
export interface PolygonOptions extends Partial<IPolygon> {}
export class Polygon implements IPolygon {
fillColor: Color | string;
geodesic: boolean;
holes: Coordinate[][];
points: Coordinate[];
strokeColor: Color | string;
strokeJointType: JointType;
strokePattern: Array<PatternItem & Partial<NativeObject>>;
strokeWidth: number;
tappable: boolean;
visible: boolean;
zIndex: number;
userData: { [key: string]: any };
}
export interface IPolyline {
width: number;
points: Coordinate[];
tappable: boolean;
geodesic: boolean;
visible: boolean;
zIndex: number;
jointType: JointType;
pattern: Array<PatternItem & Partial<NativeObject>>;
color: Color | string;
startCap: Cap & Partial<NativeObject>;
endCap: Cap & Partial<NativeObject>;
userData: { [key: string]: any };
}
export interface PolylineOptions extends Partial<IPolyline> {}
/** A polyline is a list of points, where line segments are drawn between consecutive points. */
export class Polyline extends NativeObject implements IPolyline {
/**
* Line segment width in screen pixels. The width is constant and independent of the camera's
* zoom level.
*/
width: number;
/**
* The vertices of the line. Line segments are drawn between consecutive points. A polyline is
* not closed by default; to form a closed polyline, the start and end points must be the same.
*/
points: Coordinate[];
/**
* If you want to handle events fired when the user clicks the polyline, set this property to
* `true`. You can change this value at any time. The default is `false`.
*/
tappable: boolean;
/**
* Indicates whether the segments of the polyline should be drawn as geodesics, as opposed to
* straight lines on the Mercator projection. A geodesic is the shortest path between two points
* on the Earth's surface. The geodesic curve is constructed assuming the Earth is a sphere.
*/
geodesic: boolean;
/**
* Indicates if the polyline is visible or invisible, i.e., whether it is drawn on the map.
* An invisible polyline is not drawn, but retains all of its other properties.
* The default is `true`, i.e., visible.
*/
visible: boolean;
/**
* The order in which this tile overlay is drawn with respect to other overlays (including
* {@link GroundOverlay}s, {@link TileOverlay}s, {@link Circle}s, and {@link Polygon}s but
* not {@link Marker}s). An overlay with a larger z-index is drawn over overlays with smaller
* z-indices. The order of overlays with the same z-index is arbitrary. The default zIndex is `0`.
*/
zIndex: number;
/**
* The joint type defines the shape to be used when joining adjacent line segments at all vertices
* of the polyline except the start and end vertices. See {@link JointType} for supported joint
* types. The default value is {@link JointType.Default}.
*/
jointType: JointType;
/**
* Solid (default) or a sequence of {@link PatternItem} objects to be repeated along the line.
* Available {@link PatternItem} types: {@link Gap} (defined by gap length in pixels),
* {@link Dash} (defined by line width and dash length in pixels) and {@link Dot} (circular,
* centered on the line, diameter defined by line width in pixels).
*/
pattern: Array<PatternItem & Partial<NativeObject>>;
/**
* Line segment color in ARGB format, the same format used by {@link Color}. The default value is
* black (0xff000000).
*/
color: string | Color;
/**
* Defines the shape to be used at the start of a polyline.
* Supported cap types: {@link ButtCap}, {@link SquareCap}, {@link RoundCap} (applicable for solid
* stroke pattern) and {@link CustomCap} (applicable for any stroke pattern).
* Default is {@link ButtCap}.
*/
startCap: Cap & Partial<NativeObject>;
/**
* Defines the shape to be used at the end of a polyline.
* Supported cap types: {@link ButtCap}, {@link SquareCap}, {@link RoundCap} (applicable for solid
* stroke pattern) and {@link CustomCap} (applicable for any stroke pattern).
* Default is {@link ButtCap}.
*/
endCap: Cap & Partial<NativeObject>;
userData: { [key: string]: any };
}
export interface IGroundOverlay {
zIndex: number;
visible: boolean;
transparency: number;
position: Coordinate;
bounds: CoordinateBounds;
tappable: boolean;
bearing: number;
image: ImageSource;
readonly width: number;
readonly height: number;
userData: { [key: string]: any };
}
export interface GroundOverlayOptions extends Partial<IGroundOverlay> {
width?: number;
height?: number;
anchorU?: number;
anchorV?: number;
}
export class GroundOverlay implements IGroundOverlay {
zIndex: number;
visible: boolean;
transparency: number;
position: Coordinate;
bounds: CoordinateBounds;
tappable: boolean;
bearing: number;
image: ImageSource;
width: number;
height: number;
userData: { [key: string]: any };
}
export interface IPoi {
coordinate: Coordinate;
placeId: string;
name: string;
}
export class Poi implements IPoi {
coordinate: Coordinate;
placeId: string;
name: string;
}
export interface ICap {}
/** Immutable cap that can be applied at the start or end vertex of a {@link Polyline}. */
export class Cap extends NativeObject implements ICap {}
/**
* Cap that is squared off exactly at the start or end vertex of a {@link Polyline} with solid
* stroke pattern, equivalent to having no additional cap beyond the start or end vertex. This is
* the default cap type at start and end vertices of {@link Polyline}s with solid stroke pattern.
*/
export class ButtCap extends Cap {}
/**
* Cap that is a semicircle with radius equal to half the stroke width, centered at the start or
* end vertex of a {@link Polyline} with solid stroke pattern.
*/
export class RoundCap extends Cap {}
/**
* Cap that is squared off after extending half the stroke width beyond the start or end vertex of
* a {@link Polyline} with solid stroke pattern.
*/
export class SquareCap extends Cap {}
/**
* Bitmap overlay centered at the start or end vertex of a {@link Polyline}, orientated according
* to the direction of the line's first or last edge and scaled with respect to the line's stroke
* width. CustomCap can be applied to {@link Polyline} with any stroke pattern.
*/
export class CustomCap extends Cap {
/**
* Creates an instance of CustomCap.
* @param image Cap image. Must not be null.
* @param refWidth Stroke width, in pixels, for which the cap bitmap at its native dimension is
* designed. Must be positive.
*/
constructor(image: ImageSource, refWidth?: number);
}
export interface IPatternItem {}
/**
* Immutable item used in the stroke pattern for a {@link Polyline} or the outline of a
* {@link Polygon} or {@link Circle}.
*/
export class PatternItem extends NativeObject implements IPatternItem {}
/**
* An immutable class representing a dash used in the stroke pattern for a {@link Polyline} or the
* outline of a {@link Polygon} or {@link Circle}.
*/
export class Dash extends PatternItem {
/**
* Creates an instance of Dash.
* @param length Length in pixels. Negative value will be clamped to zero.
*/
constructor(length: number);
}
/**
* An immutable class representing a gap used in the stroke pattern for a {@link Polyline} or the
* outline of a {@link Polygon} or {@link Circle}.
*/
export class Gap extends PatternItem {
/**
* Creates an instance of Gap.
* @param length Length in pixels. Negative value will be clamped to zero.
*/
constructor(length: number);
}
/**
* An immutable class representing a dot used in the stroke pattern for a {@link Polyline} or the
* outline of a {@link Polygon} or {@link Circle}.
*/
export class Dot extends PatternItem {}
export interface ITileOverlay {
fadeIn: boolean;
transparency: number;
visible: boolean;
tileProvider: TileProvider & Partial<NativeObject>;
zIndex: number;
clearTileCache(): void;
}
export class Tile {
static fromImageSource(source: ImageSource): Tile | null;
}
export interface ITileProvider {}
export class TileProvider implements ITileProvider {
constructor(callback: (x: number, y: number, zoom: number) => Tile);
}
export class UrlTileProvider extends TileProvider {
constructor(callback: (x: number, y: number, zoom: number) => string, size?: number);
}
export { MapType, JointType };