@nativescript-community/ui-mapbox 6.2.31 → 7.0.0
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.
- package/CHANGELOG.md +7 -0
- package/common.d.ts +56 -26
- package/common.js +44 -28
- package/expression/expression-parser.android.d.ts +2 -2
- package/expression/expression-parser.android.js +4 -3
- package/expression/expression-parser.ios.d.ts +2 -2
- package/expression/expression-parser.ios.js +28 -13
- package/index.android.d.ts +59 -66
- package/index.android.js +1388 -1244
- package/index.d.ts +36 -5
- package/index.ios.d.ts +72 -243
- package/index.ios.js +1161 -1999
- package/layers/layer-factory.android.d.ts +7 -5
- package/layers/layer-factory.android.js +71 -41
- package/layers/layer-factory.d.ts +2 -1
- package/layers/layer-factory.ios.d.ts +8 -8
- package/layers/layer-factory.ios.js +46 -100
- package/layers/parser/property-parser.android.d.ts +3 -1
- package/layers/parser/property-parser.android.js +25 -24
- package/layers/parser/property-parser.d.ts +1 -1
- package/layers/parser/property-parser.ios.d.ts +0 -2
- package/layers/parser/property-parser.ios.js +0 -149
- package/markers/Marker.android.d.ts +28 -0
- package/markers/Marker.android.js +54 -0
- package/markers/Marker.common.d.ts +2 -0
- package/markers/Marker.common.js +31 -0
- package/markers/MarkerManager.android.d.ts +35 -0
- package/markers/MarkerManager.android.js +220 -0
- package/package.json +7 -6
- package/platforms/android/include.gradle +31 -27
- package/platforms/android/ui_mapbox.aar +0 -0
- package/platforms/ios/Podfile +3 -1
- package/platforms/ios/Resources/default_pin.png +0 -0
- package/platforms/ios/src/MapboxBridge.swift +1479 -0
- package/platforms/ios/src/NativeExpressionParser.swift +33 -0
- package/platforms/ios/src/NativeLayerFactory.swift +108 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/typings/Mapbox.ios.d.ts +2 -3242
- package/typings/geojson.android.d.ts +689 -0
- package/typings/index.android.d.ts +46 -0
- package/typings/mapbox.android.d.ts +39968 -12560
- package/typings/mapbox.bridge.ios.d.ts +129 -0
package/typings/Mapbox.ios.d.ts
CHANGED
|
@@ -1,3246 +1,6 @@
|
|
|
1
|
-
declare var MGLAbstractClassException: string;
|
|
2
1
|
|
|
3
|
-
declare class
|
|
4
|
-
static alloc(): MGLAccountManager; // inherited from NSObject
|
|
5
|
-
|
|
6
|
-
static new(): MGLAccountManager; // inherited from NSObject
|
|
7
|
-
|
|
8
|
-
static accessToken: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare function MGLAltitudeForZoomLevel(zoomLevel: number, pitch: number, latitude: number, size: CGSize): number;
|
|
12
|
-
|
|
13
|
-
interface MGLAnnotation extends NSObjectProtocol {
|
|
14
|
-
coordinate: CLLocationCoordinate2D;
|
|
15
|
-
|
|
16
|
-
subtitle?: string;
|
|
17
|
-
|
|
18
|
-
title?: string;
|
|
19
|
-
}
|
|
20
|
-
declare var MGLAnnotation: {
|
|
21
|
-
prototype: MGLAnnotation;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
declare class MGLAnnotationImage extends NSObject implements NSSecureCoding {
|
|
25
|
-
static alloc(): MGLAnnotationImage; // inherited from NSObject
|
|
26
|
-
|
|
27
|
-
static annotationImageWithImageReuseIdentifier(image: UIImage, reuseIdentifier: string): MGLAnnotationImage;
|
|
28
|
-
|
|
29
|
-
static new(): MGLAnnotationImage; // inherited from NSObject
|
|
30
|
-
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
|
|
33
|
-
image: UIImage;
|
|
34
|
-
|
|
35
|
-
readonly reuseIdentifier: string;
|
|
36
|
-
|
|
37
|
-
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
38
|
-
|
|
39
|
-
constructor(o: { coder: NSCoder }); // inherited from NSCoding
|
|
40
|
-
|
|
41
|
-
encodeWithCoder(aCoder: NSCoder): void;
|
|
42
|
-
|
|
43
|
-
initWithCoder(aDecoder: NSCoder): this;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare const enum MGLAnnotationVerticalAlignment {
|
|
47
|
-
Center = 0,
|
|
48
|
-
|
|
49
|
-
Top = 1,
|
|
50
|
-
|
|
51
|
-
Bottom = 2,
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare class MGLAnnotationView extends UIView implements NSSecureCoding {
|
|
55
|
-
static alloc(): MGLAnnotationView; // inherited from NSObject
|
|
56
|
-
|
|
57
|
-
static appearance(): MGLAnnotationView; // inherited from UIAppearance
|
|
58
|
-
|
|
59
|
-
static appearanceForTraitCollection(trait: UITraitCollection): MGLAnnotationView; // inherited from UIAppearance
|
|
60
|
-
|
|
61
|
-
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MGLAnnotationView; // inherited from UIAppearance
|
|
62
|
-
|
|
63
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MGLAnnotationView; // inherited from UIAppearance
|
|
64
|
-
|
|
65
|
-
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MGLAnnotationView; // inherited from UIAppearance
|
|
66
|
-
|
|
67
|
-
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MGLAnnotationView; // inherited from UIAppearance
|
|
68
|
-
|
|
69
|
-
static new(): MGLAnnotationView; // inherited from NSObject
|
|
70
|
-
|
|
71
|
-
annotation: MGLAnnotation;
|
|
72
|
-
|
|
73
|
-
centerOffset: CGVector;
|
|
74
|
-
|
|
75
|
-
readonly dragState: MGLAnnotationViewDragState;
|
|
76
|
-
|
|
77
|
-
draggable: boolean;
|
|
78
|
-
|
|
79
|
-
enabled: boolean;
|
|
80
|
-
|
|
81
|
-
readonly reuseIdentifier: string;
|
|
82
|
-
|
|
83
|
-
rotatesToMatchCamera: boolean;
|
|
84
|
-
|
|
85
|
-
scalesWithViewingDistance: boolean;
|
|
86
|
-
|
|
87
|
-
selected: boolean;
|
|
88
|
-
|
|
89
|
-
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
90
|
-
|
|
91
|
-
constructor(o: { annotation: MGLAnnotation; reuseIdentifier: string });
|
|
92
|
-
|
|
93
|
-
constructor(o: { coder: NSCoder }); // inherited from NSCoding
|
|
94
|
-
|
|
95
|
-
constructor(o: { reuseIdentifier: string });
|
|
96
|
-
|
|
97
|
-
encodeWithCoder(aCoder: NSCoder): void;
|
|
98
|
-
|
|
99
|
-
initWithAnnotationReuseIdentifier(annotation: MGLAnnotation, reuseIdentifier: string): this;
|
|
100
|
-
|
|
101
|
-
initWithCoder(aDecoder: NSCoder): this;
|
|
102
|
-
|
|
103
|
-
initWithReuseIdentifier(reuseIdentifier: string): this;
|
|
104
|
-
|
|
105
|
-
prepareForReuse(): void;
|
|
106
|
-
|
|
107
|
-
setDragStateAnimated(dragState: MGLAnnotationViewDragState, animated: boolean): void;
|
|
108
|
-
|
|
109
|
-
setSelectedAnimated(selected: boolean, animated: boolean): void;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare const enum MGLAnnotationViewDragState {
|
|
113
|
-
None = 0,
|
|
114
|
-
|
|
115
|
-
Starting = 1,
|
|
116
|
-
|
|
117
|
-
Dragging = 2,
|
|
118
|
-
|
|
119
|
-
Canceling = 3,
|
|
120
|
-
|
|
121
|
-
Ending = 4,
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
declare class MGLAttributedExpression extends NSObject {
|
|
125
|
-
static alloc(): MGLAttributedExpression; // inherited from NSObject
|
|
126
|
-
|
|
127
|
-
static attributedExpressionAttributes(expression: NSExpression, attrs: NSDictionary<string, NSExpression>): MGLAttributedExpression;
|
|
128
|
-
|
|
129
|
-
static attributedExpressionFontNamesFontScale(expression: NSExpression, fontNames: NSArray<string> | string[], fontScale: number): MGLAttributedExpression;
|
|
130
|
-
|
|
131
|
-
static new(): MGLAttributedExpression; // inherited from NSObject
|
|
132
|
-
|
|
133
|
-
readonly attributes: NSDictionary<string, NSExpression>;
|
|
134
|
-
|
|
135
|
-
expression: NSExpression;
|
|
136
|
-
|
|
137
|
-
constructor(o: { expression: NSExpression });
|
|
138
|
-
|
|
139
|
-
constructor(o: { expression: NSExpression; attributes: NSDictionary<string, NSExpression> });
|
|
140
|
-
|
|
141
|
-
initWithExpression(expression: NSExpression): this;
|
|
142
|
-
|
|
143
|
-
initWithExpressionAttributes(expression: NSExpression, attrs: NSDictionary<string, NSExpression>): this;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
declare class MGLAttributionInfo extends NSObject {
|
|
147
|
-
static alloc(): MGLAttributionInfo; // inherited from NSObject
|
|
148
|
-
|
|
149
|
-
static new(): MGLAttributionInfo; // inherited from NSObject
|
|
150
|
-
|
|
151
|
-
URL: NSURL;
|
|
152
|
-
|
|
153
|
-
feedbackLink: boolean;
|
|
154
|
-
|
|
155
|
-
title: NSAttributedString;
|
|
156
|
-
|
|
157
|
-
constructor(o: { title: NSAttributedString; URL: NSURL });
|
|
158
|
-
|
|
159
|
-
feedbackURLAtCenterCoordinateZoomLevel(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number): NSURL;
|
|
160
|
-
|
|
161
|
-
initWithTitleURL(title: NSAttributedString, URL: NSURL): this;
|
|
162
|
-
|
|
163
|
-
titleWithStyle(style: MGLAttributionInfoStyle): NSAttributedString;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
declare const enum MGLAttributionInfoStyle {
|
|
167
|
-
Short = 1,
|
|
168
|
-
|
|
169
|
-
Medium = 2,
|
|
170
|
-
|
|
171
|
-
Long = 3,
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
declare class MGLBackgroundStyleLayer extends MGLStyleLayer {
|
|
175
|
-
static alloc(): MGLBackgroundStyleLayer; // inherited from NSObject
|
|
176
|
-
|
|
177
|
-
static new(): MGLBackgroundStyleLayer; // inherited from NSObject
|
|
178
|
-
|
|
179
|
-
backgroundColor: NSExpression;
|
|
180
|
-
|
|
181
|
-
backgroundColorTransition: MGLTransition;
|
|
182
|
-
|
|
183
|
-
backgroundOpacity: NSExpression;
|
|
184
|
-
|
|
185
|
-
backgroundOpacityTransition: MGLTransition;
|
|
186
|
-
|
|
187
|
-
backgroundPattern: NSExpression;
|
|
188
|
-
|
|
189
|
-
backgroundPatternTransition: MGLTransition;
|
|
190
|
-
|
|
191
|
-
constructor(o: { identifier: string });
|
|
192
|
-
|
|
193
|
-
initWithIdentifier(identifier: string): this;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
interface MGLCalloutView extends NSObjectProtocol {
|
|
197
|
-
anchoredToAnnotation?: boolean;
|
|
198
|
-
|
|
199
|
-
delegate: MGLCalloutViewDelegate;
|
|
200
|
-
|
|
201
|
-
dismissesAutomatically?: boolean;
|
|
202
|
-
|
|
203
|
-
leftAccessoryView: UIView;
|
|
204
|
-
|
|
205
|
-
representedObject: MGLAnnotation;
|
|
206
|
-
|
|
207
|
-
rightAccessoryView: UIView;
|
|
208
|
-
|
|
209
|
-
dismissCalloutAnimated(animated: boolean): void;
|
|
210
|
-
|
|
211
|
-
marginInsetsHintForPresentationFromRect?(rect: CGRect): UIEdgeInsets;
|
|
212
|
-
|
|
213
|
-
presentCalloutFromRectInViewConstrainedToRectAnimated(rect: CGRect, view: UIView, constrainedRect: CGRect, animated: boolean): void;
|
|
214
|
-
}
|
|
215
|
-
declare var MGLCalloutView: {
|
|
216
|
-
prototype: MGLCalloutView;
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
interface MGLCalloutViewDelegate extends NSObjectProtocol {
|
|
220
|
-
calloutViewDidAppear?(calloutView: UIView): void;
|
|
221
|
-
|
|
222
|
-
calloutViewShouldHighlight?(calloutView: UIView): boolean;
|
|
223
|
-
|
|
224
|
-
calloutViewTapped?(calloutView: UIView): void;
|
|
225
|
-
|
|
226
|
-
calloutViewWillAppear?(calloutView: UIView): void;
|
|
227
|
-
}
|
|
228
|
-
declare var MGLCalloutViewDelegate: {
|
|
229
|
-
prototype: MGLCalloutViewDelegate;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
declare const enum MGLCameraChangeReason {
|
|
233
|
-
None = 0,
|
|
234
|
-
|
|
235
|
-
Programmatic = 1,
|
|
236
|
-
|
|
237
|
-
ResetNorth = 2,
|
|
238
|
-
|
|
239
|
-
GesturePan = 4,
|
|
240
|
-
|
|
241
|
-
GesturePinch = 8,
|
|
242
|
-
|
|
243
|
-
GestureRotate = 16,
|
|
244
|
-
|
|
245
|
-
GestureZoomIn = 32,
|
|
246
|
-
|
|
247
|
-
GestureZoomOut = 64,
|
|
248
|
-
|
|
249
|
-
GestureOneFingerZoom = 128,
|
|
250
|
-
|
|
251
|
-
GestureTilt = 256,
|
|
252
|
-
|
|
253
|
-
TransitionCancelled = 65536,
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
declare const enum MGLCirclePitchAlignment {
|
|
257
|
-
Map = 0,
|
|
258
|
-
|
|
259
|
-
Viewport = 1,
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
declare const enum MGLCircleScaleAlignment {
|
|
263
|
-
Map = 0,
|
|
264
|
-
|
|
265
|
-
Viewport = 1,
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
declare class MGLCircleStyleLayer extends MGLVectorStyleLayer {
|
|
269
|
-
static alloc(): MGLCircleStyleLayer; // inherited from NSObject
|
|
270
|
-
|
|
271
|
-
static new(): MGLCircleStyleLayer; // inherited from NSObject
|
|
272
|
-
|
|
273
|
-
circleBlur: NSExpression;
|
|
274
|
-
|
|
275
|
-
circleBlurTransition: MGLTransition;
|
|
276
|
-
|
|
277
|
-
circleColor: NSExpression;
|
|
278
|
-
|
|
279
|
-
circleColorTransition: MGLTransition;
|
|
280
|
-
|
|
281
|
-
circleOpacity: NSExpression;
|
|
282
|
-
|
|
283
|
-
circleOpacityTransition: MGLTransition;
|
|
284
|
-
|
|
285
|
-
circlePitchAlignment: NSExpression;
|
|
286
|
-
|
|
287
|
-
circleRadius: NSExpression;
|
|
288
|
-
|
|
289
|
-
circleRadiusTransition: MGLTransition;
|
|
290
|
-
|
|
291
|
-
circleScaleAlignment: NSExpression;
|
|
292
|
-
|
|
293
|
-
circleStrokeColor: NSExpression;
|
|
294
|
-
|
|
295
|
-
circleStrokeColorTransition: MGLTransition;
|
|
296
|
-
|
|
297
|
-
circleStrokeOpacity: NSExpression;
|
|
298
|
-
|
|
299
|
-
circleStrokeOpacityTransition: MGLTransition;
|
|
300
|
-
|
|
301
|
-
circleStrokeWidth: NSExpression;
|
|
302
|
-
|
|
303
|
-
circleStrokeWidthTransition: MGLTransition;
|
|
304
|
-
|
|
305
|
-
circleTranslation: NSExpression;
|
|
306
|
-
|
|
307
|
-
circleTranslationAnchor: NSExpression;
|
|
308
|
-
|
|
309
|
-
circleTranslationTransition: MGLTransition;
|
|
310
|
-
|
|
311
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
312
|
-
|
|
313
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
declare const enum MGLCircleTranslationAnchor {
|
|
317
|
-
Map = 0,
|
|
318
|
-
|
|
319
|
-
Viewport = 1,
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
declare class MGLClockDirectionFormatter extends NSFormatter {
|
|
323
|
-
static alloc(): MGLClockDirectionFormatter; // inherited from NSObject
|
|
324
|
-
|
|
325
|
-
static new(): MGLClockDirectionFormatter; // inherited from NSObject
|
|
326
|
-
|
|
327
|
-
unitStyle: NSFormattingUnitStyle;
|
|
328
|
-
|
|
329
|
-
stringFromDirection(direction: number): string;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
interface MGLCluster extends MGLFeature {
|
|
333
|
-
clusterIdentifier: number;
|
|
334
|
-
|
|
335
|
-
clusterPointCount: number;
|
|
336
|
-
}
|
|
337
|
-
declare var MGLCluster: {
|
|
338
|
-
prototype: MGLCluster;
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
declare var MGLClusterIdentifierInvalid: number;
|
|
342
|
-
|
|
343
|
-
declare class MGLCompassDirectionFormatter extends NSFormatter {
|
|
344
|
-
static alloc(): MGLCompassDirectionFormatter; // inherited from NSObject
|
|
345
|
-
|
|
346
|
-
static new(): MGLCompassDirectionFormatter; // inherited from NSObject
|
|
347
|
-
|
|
348
|
-
unitStyle: NSFormattingUnitStyle;
|
|
349
|
-
|
|
350
|
-
stringFromDirection(direction: number): string;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
declare class MGLComputedShapeSource extends MGLSource {
|
|
354
|
-
static alloc(): MGLComputedShapeSource; // inherited from NSObject
|
|
355
|
-
|
|
356
|
-
static new(): MGLComputedShapeSource; // inherited from NSObject
|
|
357
|
-
|
|
358
|
-
dataSource: MGLComputedShapeSourceDataSource;
|
|
359
|
-
|
|
360
|
-
readonly requestQueue: NSOperationQueue;
|
|
361
|
-
|
|
362
|
-
constructor(o: { identifier: string; dataSource: MGLComputedShapeSourceDataSource; options: NSDictionary<string, any> });
|
|
363
|
-
|
|
364
|
-
constructor(o: { identifier: string; options: NSDictionary<string, any> });
|
|
365
|
-
|
|
366
|
-
initWithIdentifierDataSourceOptions(identifier: string, dataSource: MGLComputedShapeSourceDataSource, options: NSDictionary<string, any>): this;
|
|
367
|
-
|
|
368
|
-
initWithIdentifierOptions(identifier: string, options: NSDictionary<string, any>): this;
|
|
369
|
-
|
|
370
|
-
invalidateBounds(bounds: MGLCoordinateBounds): void;
|
|
371
|
-
|
|
372
|
-
invalidateTileAtXYZoomLevel(x: number, y: number, zoomLevel: number): void;
|
|
373
|
-
|
|
374
|
-
setFeaturesInTileAtXYZoomLevel(features: NSArray<MGLShape> | MGLShape[], x: number, y: number, zoomLevel: number): void;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
interface MGLComputedShapeSourceDataSource extends NSObjectProtocol {
|
|
378
|
-
featuresInCoordinateBoundsZoomLevel?(bounds: MGLCoordinateBounds, zoomLevel: number): NSArray<MGLShape>;
|
|
379
|
-
|
|
380
|
-
featuresInTileAtXYZoomLevel?(x: number, y: number, zoomLevel: number): NSArray<MGLShape>;
|
|
381
|
-
}
|
|
382
|
-
declare var MGLComputedShapeSourceDataSource: {
|
|
383
|
-
prototype: MGLComputedShapeSourceDataSource;
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
interface MGLCoordinateBounds {
|
|
387
|
-
sw: CLLocationCoordinate2D;
|
|
388
|
-
ne: CLLocationCoordinate2D;
|
|
389
|
-
}
|
|
390
|
-
declare var MGLCoordinateBounds: interop.StructType<MGLCoordinateBounds>;
|
|
391
|
-
declare function MGLCoordinateBoundsMake(arg1, arg2);
|
|
392
|
-
|
|
393
|
-
declare class MGLCoordinateFormatter extends NSFormatter {
|
|
394
|
-
static alloc(): MGLCoordinateFormatter; // inherited from NSObject
|
|
395
|
-
|
|
396
|
-
static new(): MGLCoordinateFormatter; // inherited from NSObject
|
|
397
|
-
|
|
398
|
-
allowsMinutes: boolean;
|
|
399
|
-
|
|
400
|
-
allowsSeconds: boolean;
|
|
401
|
-
|
|
402
|
-
unitStyle: NSFormattingUnitStyle;
|
|
403
|
-
|
|
404
|
-
stringFromCoordinate(coordinate: CLLocationCoordinate2D): string;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
interface MGLCoordinateQuad {
|
|
408
|
-
topLeft: CLLocationCoordinate2D;
|
|
409
|
-
bottomLeft: CLLocationCoordinate2D;
|
|
410
|
-
bottomRight: CLLocationCoordinate2D;
|
|
411
|
-
topRight: CLLocationCoordinate2D;
|
|
412
|
-
}
|
|
413
|
-
declare var MGLCoordinateQuad: interop.StructType<MGLCoordinateQuad>;
|
|
414
|
-
|
|
415
|
-
interface MGLCoordinateSpan {
|
|
416
|
-
latitudeDelta: number;
|
|
417
|
-
longitudeDelta: number;
|
|
418
|
-
}
|
|
419
|
-
declare var MGLCoordinateSpan: interop.StructType<MGLCoordinateSpan>;
|
|
420
|
-
|
|
421
|
-
declare var MGLCoordinateSpanZero: MGLCoordinateSpan;
|
|
422
|
-
|
|
423
|
-
declare const enum MGLDEMEncoding {
|
|
424
|
-
Mapbox = 0,
|
|
425
|
-
|
|
426
|
-
Terrarium = 1,
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
declare class MGLDistanceFormatter extends NSLengthFormatter {
|
|
430
|
-
static alloc(): MGLDistanceFormatter; // inherited from NSObject
|
|
431
|
-
|
|
432
|
-
static new(): MGLDistanceFormatter; // inherited from NSObject
|
|
433
|
-
|
|
434
|
-
stringFromDistance(distance: number): string;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
declare class MGLEmptyFeature extends MGLShape implements MGLFeature {
|
|
438
|
-
static alloc(): MGLEmptyFeature; // inherited from NSObject
|
|
439
|
-
|
|
440
|
-
static new(): MGLEmptyFeature; // inherited from NSObject
|
|
441
|
-
|
|
442
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
443
|
-
|
|
444
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
445
|
-
|
|
446
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
447
|
-
|
|
448
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
449
|
-
|
|
450
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
451
|
-
|
|
452
|
-
identifier: any; // inherited from MGLFeature
|
|
453
|
-
|
|
454
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
455
|
-
|
|
456
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
457
|
-
|
|
458
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
459
|
-
|
|
460
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
461
|
-
|
|
462
|
-
readonly; // inherited from NSObjectProtocol
|
|
463
|
-
|
|
464
|
-
attributeForKey(key: string): any;
|
|
465
|
-
|
|
466
|
-
class(): typeof NSObject;
|
|
467
|
-
|
|
468
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
469
|
-
|
|
470
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
471
|
-
|
|
472
|
-
isEqual(object: any): boolean;
|
|
473
|
-
|
|
474
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
475
|
-
|
|
476
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
477
|
-
|
|
478
|
-
performSelector(aSelector: string): any;
|
|
479
|
-
|
|
480
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
481
|
-
|
|
482
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
483
|
-
|
|
484
|
-
respondsToSelector(aSelector: string): boolean;
|
|
485
|
-
|
|
486
|
-
retainCount(): number;
|
|
487
|
-
|
|
488
|
-
self(): this;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
declare const enum MGLErrorCode {
|
|
492
|
-
Unknown = -1,
|
|
493
|
-
|
|
494
|
-
NotFound = 1,
|
|
495
|
-
|
|
496
|
-
BadServerResponse = 2,
|
|
497
|
-
|
|
498
|
-
ConnectionFailed = 3,
|
|
499
|
-
|
|
500
|
-
ParseStyleFailed = 4,
|
|
501
|
-
|
|
502
|
-
LoadStyleFailed = 5,
|
|
503
|
-
|
|
504
|
-
SnapshotFailed = 6,
|
|
505
|
-
|
|
506
|
-
SourceIsInUseCannotRemove = 7,
|
|
507
|
-
|
|
508
|
-
SourceIdentifierMismatch = 8,
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
declare var MGLErrorDomain: string;
|
|
512
|
-
|
|
513
|
-
declare var MGLExpressionInterpolationModeCubicBezier: string;
|
|
514
|
-
|
|
515
|
-
declare var MGLExpressionInterpolationModeExponential: string;
|
|
516
|
-
|
|
517
|
-
declare var MGLExpressionInterpolationModeLinear: string;
|
|
518
|
-
|
|
519
|
-
interface MGLFeature extends MGLAnnotation {
|
|
520
|
-
attributes: NSDictionary<string, any>;
|
|
521
|
-
|
|
522
|
-
identifier: any;
|
|
523
|
-
|
|
524
|
-
attributeForKey(key: string): any;
|
|
525
|
-
|
|
526
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
527
|
-
}
|
|
528
|
-
declare var MGLFeature: {
|
|
529
|
-
prototype: MGLFeature;
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
declare class MGLFillExtrusionStyleLayer extends MGLVectorStyleLayer {
|
|
533
|
-
static alloc(): MGLFillExtrusionStyleLayer; // inherited from NSObject
|
|
534
|
-
|
|
535
|
-
static new(): MGLFillExtrusionStyleLayer; // inherited from NSObject
|
|
536
|
-
|
|
537
|
-
fillExtrusionBase: NSExpression;
|
|
538
|
-
|
|
539
|
-
fillExtrusionBaseTransition: MGLTransition;
|
|
540
|
-
|
|
541
|
-
fillExtrusionColor: NSExpression;
|
|
542
|
-
|
|
543
|
-
fillExtrusionColorTransition: MGLTransition;
|
|
544
|
-
|
|
545
|
-
fillExtrusionHasVerticalGradient: NSExpression;
|
|
546
|
-
|
|
547
|
-
fillExtrusionHeight: NSExpression;
|
|
548
|
-
|
|
549
|
-
fillExtrusionHeightTransition: MGLTransition;
|
|
550
|
-
|
|
551
|
-
fillExtrusionOpacity: NSExpression;
|
|
552
|
-
|
|
553
|
-
fillExtrusionOpacityTransition: MGLTransition;
|
|
554
|
-
|
|
555
|
-
fillExtrusionPattern: NSExpression;
|
|
556
|
-
|
|
557
|
-
fillExtrusionPatternTransition: MGLTransition;
|
|
558
|
-
|
|
559
|
-
fillExtrusionTranslation: NSExpression;
|
|
560
|
-
|
|
561
|
-
fillExtrusionTranslationAnchor: NSExpression;
|
|
562
|
-
|
|
563
|
-
fillExtrusionTranslationTransition: MGLTransition;
|
|
564
|
-
|
|
565
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
566
|
-
|
|
567
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
declare const enum MGLFillExtrusionTranslationAnchor {
|
|
571
|
-
Map = 0,
|
|
572
|
-
|
|
573
|
-
Viewport = 1,
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
declare class MGLFillStyleLayer extends MGLVectorStyleLayer {
|
|
577
|
-
static alloc(): MGLFillStyleLayer; // inherited from NSObject
|
|
578
|
-
|
|
579
|
-
static new(): MGLFillStyleLayer; // inherited from NSObject
|
|
580
|
-
|
|
581
|
-
fillAntialiased: NSExpression;
|
|
582
|
-
|
|
583
|
-
fillColor: NSExpression;
|
|
584
|
-
|
|
585
|
-
fillColorTransition: MGLTransition;
|
|
586
|
-
|
|
587
|
-
fillOpacity: NSExpression;
|
|
588
|
-
|
|
589
|
-
fillOpacityTransition: MGLTransition;
|
|
590
|
-
|
|
591
|
-
fillOutlineColor: NSExpression;
|
|
592
|
-
|
|
593
|
-
fillOutlineColorTransition: MGLTransition;
|
|
594
|
-
|
|
595
|
-
fillPattern: NSExpression;
|
|
596
|
-
|
|
597
|
-
fillPatternTransition: MGLTransition;
|
|
598
|
-
|
|
599
|
-
fillTranslation: NSExpression;
|
|
600
|
-
|
|
601
|
-
fillTranslationAnchor: NSExpression;
|
|
602
|
-
|
|
603
|
-
fillTranslationTransition: MGLTransition;
|
|
604
|
-
|
|
605
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
606
|
-
|
|
607
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
declare const enum MGLFillTranslationAnchor {
|
|
611
|
-
Map = 0,
|
|
612
|
-
|
|
613
|
-
Viewport = 1,
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
declare var MGLFontColorAttribute: string;
|
|
617
|
-
|
|
618
|
-
declare var MGLFontNamesAttribute: string;
|
|
619
|
-
|
|
620
|
-
declare var MGLFontScaleAttribute: string;
|
|
621
|
-
|
|
622
|
-
declare class MGLForegroundStyleLayer extends MGLStyleLayer {
|
|
623
|
-
static alloc(): MGLForegroundStyleLayer; // inherited from NSObject
|
|
624
|
-
|
|
625
|
-
static new(): MGLForegroundStyleLayer; // inherited from NSObject
|
|
626
|
-
|
|
627
|
-
readonly sourceIdentifier: string;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
declare class MGLHeatmapStyleLayer extends MGLVectorStyleLayer {
|
|
631
|
-
static alloc(): MGLHeatmapStyleLayer; // inherited from NSObject
|
|
632
|
-
|
|
633
|
-
static new(): MGLHeatmapStyleLayer; // inherited from NSObject
|
|
634
|
-
|
|
635
|
-
heatmapColor: NSExpression;
|
|
636
|
-
|
|
637
|
-
heatmapIntensity: NSExpression;
|
|
638
|
-
|
|
639
|
-
heatmapIntensityTransition: MGLTransition;
|
|
640
|
-
|
|
641
|
-
heatmapOpacity: NSExpression;
|
|
642
|
-
|
|
643
|
-
heatmapOpacityTransition: MGLTransition;
|
|
644
|
-
|
|
645
|
-
heatmapRadius: NSExpression;
|
|
646
|
-
|
|
647
|
-
heatmapRadiusTransition: MGLTransition;
|
|
648
|
-
|
|
649
|
-
heatmapWeight: NSExpression;
|
|
650
|
-
|
|
651
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
652
|
-
|
|
653
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
declare const enum MGLHillshadeIlluminationAnchor {
|
|
657
|
-
Map = 0,
|
|
658
|
-
|
|
659
|
-
Viewport = 1,
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
declare class MGLHillshadeStyleLayer extends MGLForegroundStyleLayer {
|
|
663
|
-
static alloc(): MGLHillshadeStyleLayer; // inherited from NSObject
|
|
664
|
-
|
|
665
|
-
static new(): MGLHillshadeStyleLayer; // inherited from NSObject
|
|
666
|
-
|
|
667
|
-
hillshadeAccentColor: NSExpression;
|
|
668
|
-
|
|
669
|
-
hillshadeAccentColorTransition: MGLTransition;
|
|
670
|
-
|
|
671
|
-
hillshadeExaggeration: NSExpression;
|
|
672
|
-
|
|
673
|
-
hillshadeExaggerationTransition: MGLTransition;
|
|
674
|
-
|
|
675
|
-
hillshadeHighlightColor: NSExpression;
|
|
676
|
-
|
|
677
|
-
hillshadeHighlightColorTransition: MGLTransition;
|
|
678
|
-
|
|
679
|
-
hillshadeIlluminationAnchor: NSExpression;
|
|
680
|
-
|
|
681
|
-
hillshadeIlluminationDirection: NSExpression;
|
|
682
|
-
|
|
683
|
-
hillshadeShadowColor: NSExpression;
|
|
684
|
-
|
|
685
|
-
hillshadeShadowColorTransition: MGLTransition;
|
|
686
|
-
|
|
687
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
688
|
-
|
|
689
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
declare const enum MGLIconAnchor {
|
|
693
|
-
Center = 0,
|
|
694
|
-
|
|
695
|
-
Left = 1,
|
|
696
|
-
|
|
697
|
-
Right = 2,
|
|
698
|
-
|
|
699
|
-
Top = 3,
|
|
700
|
-
|
|
701
|
-
Bottom = 4,
|
|
702
|
-
|
|
703
|
-
TopLeft = 5,
|
|
704
|
-
|
|
705
|
-
TopRight = 6,
|
|
706
|
-
|
|
707
|
-
BottomLeft = 7,
|
|
708
|
-
|
|
709
|
-
BottomRight = 8,
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
declare const enum MGLIconPitchAlignment {
|
|
713
|
-
Map = 0,
|
|
714
|
-
|
|
715
|
-
Viewport = 1,
|
|
716
|
-
|
|
717
|
-
Auto = 2,
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
declare const enum MGLIconRotationAlignment {
|
|
721
|
-
Map = 0,
|
|
722
|
-
|
|
723
|
-
Viewport = 1,
|
|
724
|
-
|
|
725
|
-
Auto = 2,
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
declare const enum MGLIconTextFit {
|
|
729
|
-
None = 0,
|
|
730
|
-
|
|
731
|
-
Width = 1,
|
|
732
|
-
|
|
733
|
-
Height = 2,
|
|
734
|
-
|
|
735
|
-
Both = 3,
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
declare const enum MGLIconTranslationAnchor {
|
|
739
|
-
Map = 0,
|
|
740
|
-
|
|
741
|
-
Viewport = 1,
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
declare class MGLImageSource extends MGLSource {
|
|
745
|
-
static alloc(): MGLImageSource; // inherited from NSObject
|
|
746
|
-
|
|
747
|
-
static new(): MGLImageSource; // inherited from NSObject
|
|
748
|
-
|
|
749
|
-
URL: NSURL;
|
|
750
|
-
|
|
751
|
-
coordinates: MGLCoordinateQuad;
|
|
752
|
-
|
|
753
|
-
image: UIImage;
|
|
754
|
-
|
|
755
|
-
constructor(o: { identifier: string; coordinateQuad: MGLCoordinateQuad; image: UIImage });
|
|
756
|
-
|
|
757
|
-
constructor(o: { identifier: string; coordinateQuad: MGLCoordinateQuad; URL: NSURL });
|
|
758
|
-
|
|
759
|
-
initWithIdentifierCoordinateQuadImage(identifier: string, coordinateQuad: MGLCoordinateQuad, image: UIImage): this;
|
|
760
|
-
|
|
761
|
-
initWithIdentifierCoordinateQuadURL(identifier: string, coordinateQuad: MGLCoordinateQuad, url: NSURL): this;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
declare var MGLInvalidDatasourceException: string;
|
|
765
|
-
|
|
766
|
-
declare var MGLInvalidOfflinePackException: string;
|
|
767
|
-
|
|
768
|
-
declare var MGLInvalidStyleLayerException: string;
|
|
769
|
-
|
|
770
|
-
declare var MGLInvalidStyleURLException: string;
|
|
771
|
-
|
|
772
|
-
declare class MGLLight extends NSObject {
|
|
773
|
-
static alloc(): MGLLight; // inherited from NSObject
|
|
774
|
-
|
|
775
|
-
static new(): MGLLight; // inherited from NSObject
|
|
776
|
-
|
|
777
|
-
anchor: NSExpression;
|
|
778
|
-
|
|
779
|
-
color: NSExpression;
|
|
780
|
-
|
|
781
|
-
colorTransition: MGLTransition;
|
|
782
|
-
|
|
783
|
-
intensity: NSExpression;
|
|
784
|
-
|
|
785
|
-
intensityTransition: MGLTransition;
|
|
786
|
-
|
|
787
|
-
position: NSExpression;
|
|
788
|
-
|
|
789
|
-
positionTransition: MGLTransition;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
declare const enum MGLLightAnchor {
|
|
793
|
-
Map = 0,
|
|
794
|
-
|
|
795
|
-
Viewport = 1,
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
declare const enum MGLLineCap {
|
|
799
|
-
Butt = 0,
|
|
800
|
-
|
|
801
|
-
Round = 1,
|
|
802
|
-
|
|
803
|
-
Square = 2,
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
declare const enum MGLLineJoin {
|
|
807
|
-
Bevel = 0,
|
|
808
|
-
|
|
809
|
-
Round = 1,
|
|
810
|
-
|
|
811
|
-
Miter = 2,
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
declare class MGLLineStyleLayer extends MGLVectorStyleLayer {
|
|
815
|
-
static alloc(): MGLLineStyleLayer; // inherited from NSObject
|
|
816
|
-
|
|
817
|
-
static new(): MGLLineStyleLayer; // inherited from NSObject
|
|
818
|
-
|
|
819
|
-
lineBlur: NSExpression;
|
|
820
|
-
|
|
821
|
-
lineBlurTransition: MGLTransition;
|
|
822
|
-
|
|
823
|
-
lineCap: NSExpression;
|
|
824
|
-
|
|
825
|
-
lineColor: NSExpression;
|
|
826
|
-
|
|
827
|
-
lineColorTransition: MGLTransition;
|
|
828
|
-
|
|
829
|
-
lineDashPattern: NSExpression;
|
|
830
|
-
|
|
831
|
-
lineDashPatternTransition: MGLTransition;
|
|
832
|
-
|
|
833
|
-
lineGapWidth: NSExpression;
|
|
834
|
-
|
|
835
|
-
lineGapWidthTransition: MGLTransition;
|
|
836
|
-
|
|
837
|
-
lineGradient: NSExpression;
|
|
838
|
-
|
|
839
|
-
lineJoin: NSExpression;
|
|
840
|
-
|
|
841
|
-
lineMiterLimit: NSExpression;
|
|
842
|
-
|
|
843
|
-
lineOffset: NSExpression;
|
|
844
|
-
|
|
845
|
-
lineOffsetTransition: MGLTransition;
|
|
846
|
-
|
|
847
|
-
lineOpacity: NSExpression;
|
|
848
|
-
|
|
849
|
-
lineOpacityTransition: MGLTransition;
|
|
850
|
-
|
|
851
|
-
linePattern: NSExpression;
|
|
852
|
-
|
|
853
|
-
linePatternTransition: MGLTransition;
|
|
854
|
-
|
|
855
|
-
lineRoundLimit: NSExpression;
|
|
856
|
-
|
|
857
|
-
lineTranslation: NSExpression;
|
|
858
|
-
|
|
859
|
-
lineTranslationAnchor: NSExpression;
|
|
860
|
-
|
|
861
|
-
lineTranslationTransition: MGLTransition;
|
|
862
|
-
|
|
863
|
-
lineWidth: NSExpression;
|
|
864
|
-
|
|
865
|
-
lineWidthTransition: MGLTransition;
|
|
866
|
-
|
|
867
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
868
|
-
|
|
869
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
declare const enum MGLLineTranslationAnchor {
|
|
873
|
-
Map = 0,
|
|
874
|
-
|
|
875
|
-
Viewport = 1,
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
interface MGLLocationManager extends NSObjectProtocol {
|
|
879
|
-
authorizationStatus: CLAuthorizationStatus;
|
|
880
|
-
|
|
881
|
-
delegate: MGLLocationManagerDelegate;
|
|
882
|
-
|
|
883
|
-
headingOrientation: CLDeviceOrientation;
|
|
884
|
-
|
|
885
|
-
activityType?(): CLActivityType;
|
|
886
|
-
|
|
887
|
-
desiredAccuracy?(): number;
|
|
888
|
-
|
|
889
|
-
dismissHeadingCalibrationDisplay(): void;
|
|
890
|
-
|
|
891
|
-
distanceFilter?(): number;
|
|
892
|
-
|
|
893
|
-
requestAlwaysAuthorization(): void;
|
|
894
|
-
|
|
895
|
-
requestWhenInUseAuthorization(): void;
|
|
896
|
-
|
|
897
|
-
setActivityType?(activityType: CLActivityType): void;
|
|
898
|
-
|
|
899
|
-
setDesiredAccuracy?(desiredAccuracy: number): void;
|
|
900
|
-
|
|
901
|
-
setDistanceFilter?(distanceFilter: number): void;
|
|
902
|
-
|
|
903
|
-
startUpdatingHeading(): void;
|
|
904
|
-
|
|
905
|
-
startUpdatingLocation(): void;
|
|
906
|
-
|
|
907
|
-
stopUpdatingHeading(): void;
|
|
908
|
-
|
|
909
|
-
stopUpdatingLocation(): void;
|
|
910
|
-
}
|
|
911
|
-
declare var MGLLocationManager: {
|
|
912
|
-
prototype: MGLLocationManager;
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
interface MGLLocationManagerDelegate extends NSObjectProtocol {
|
|
916
|
-
locationManagerDidFailWithError(manager: MGLLocationManager, error: NSError): void;
|
|
917
|
-
|
|
918
|
-
locationManagerDidUpdateHeading(manager: MGLLocationManager, newHeading: CLHeading): void;
|
|
919
|
-
|
|
920
|
-
locationManagerDidUpdateLocations(manager: MGLLocationManager, locations: NSArray<CLLocation> | CLLocation[]): void;
|
|
921
|
-
|
|
922
|
-
locationManagerShouldDisplayHeadingCalibration(manager: MGLLocationManager): boolean;
|
|
923
|
-
}
|
|
924
|
-
declare var MGLLocationManagerDelegate: {
|
|
925
|
-
prototype: MGLLocationManagerDelegate;
|
|
926
|
-
};
|
|
927
|
-
|
|
928
|
-
declare class MGLLoggingConfiguration extends NSObject {
|
|
929
|
-
static alloc(): MGLLoggingConfiguration; // inherited from NSObject
|
|
930
|
-
|
|
931
|
-
static new(): MGLLoggingConfiguration; // inherited from NSObject
|
|
932
|
-
|
|
933
|
-
loggingLevel: MGLLoggingLevel;
|
|
934
|
-
|
|
935
|
-
static readonly sharedConfiguration: MGLLoggingConfiguration;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
declare const enum MGLLoggingLevel {
|
|
939
|
-
None = 0,
|
|
940
|
-
|
|
941
|
-
Info = 1,
|
|
942
|
-
|
|
943
|
-
Debug = 2,
|
|
944
|
-
|
|
945
|
-
Error = 3,
|
|
946
|
-
|
|
947
|
-
Fault = 4,
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
declare class MGLMapCamera extends NSObject implements NSCopying, NSSecureCoding {
|
|
951
|
-
static alloc(): MGLMapCamera; // inherited from NSObject
|
|
952
|
-
|
|
953
|
-
static camera(): MGLMapCamera;
|
|
954
|
-
|
|
955
|
-
static cameraLookingAtCenterCoordinateAcrossDistancePitchHeading(centerCoordinate: CLLocationCoordinate2D, distance: number, pitch: number, heading: number): MGLMapCamera;
|
|
956
|
-
|
|
957
|
-
static cameraLookingAtCenterCoordinateAltitudePitchHeading(centerCoordinate: CLLocationCoordinate2D, altitude: number, pitch: number, heading: number): MGLMapCamera;
|
|
958
|
-
|
|
959
|
-
static cameraLookingAtCenterCoordinateFromDistancePitchHeading(centerCoordinate: CLLocationCoordinate2D, distance: number, pitch: number, heading: number): MGLMapCamera;
|
|
960
|
-
|
|
961
|
-
static cameraLookingAtCenterCoordinateFromEyeCoordinateEyeAltitude(centerCoordinate: CLLocationCoordinate2D, eyeCoordinate: CLLocationCoordinate2D, eyeAltitude: number): MGLMapCamera;
|
|
962
|
-
|
|
963
|
-
static new(): MGLMapCamera; // inherited from NSObject
|
|
964
|
-
|
|
965
|
-
altitude: number;
|
|
966
|
-
|
|
967
|
-
centerCoordinate: CLLocationCoordinate2D;
|
|
968
|
-
|
|
969
|
-
heading: number;
|
|
970
|
-
|
|
971
|
-
pitch: number;
|
|
972
|
-
|
|
973
|
-
viewingDistance: number;
|
|
974
|
-
|
|
975
|
-
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
976
|
-
|
|
977
|
-
constructor(o: { coder: NSCoder }); // inherited from NSCoding
|
|
978
|
-
|
|
979
|
-
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
980
|
-
|
|
981
|
-
encodeWithCoder(aCoder: NSCoder): void;
|
|
982
|
-
|
|
983
|
-
initWithCoder(aDecoder: NSCoder): this;
|
|
984
|
-
|
|
985
|
-
isEqualToMapCamera(otherCamera: MGLMapCamera): boolean;
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
declare const enum MGLMapDebugMaskOptions {
|
|
989
|
-
TileBoundariesMask = 2,
|
|
990
|
-
|
|
991
|
-
TileInfoMask = 4,
|
|
992
|
-
|
|
993
|
-
TimestampsMask = 8,
|
|
994
|
-
|
|
995
|
-
CollisionBoxesMask = 16,
|
|
996
|
-
|
|
997
|
-
OverdrawVisualizationMask = 32,
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
interface MGLMapPoint {
|
|
1001
|
-
x: number;
|
|
1002
|
-
y: number;
|
|
1003
|
-
zoomLevel: number;
|
|
1004
|
-
}
|
|
1005
|
-
declare var MGLMapPoint: interop.StructType<MGLMapPoint>;
|
|
1006
|
-
|
|
1007
|
-
declare function MGLMapPointForCoordinate(coordinate: CLLocationCoordinate2D, zoomLevel: number): MGLMapPoint;
|
|
1008
|
-
|
|
1009
|
-
declare class MGLMapSnapshot extends NSObject {
|
|
1010
|
-
static alloc(): MGLMapSnapshot; // inherited from NSObject
|
|
1011
|
-
|
|
1012
|
-
static new(): MGLMapSnapshot; // inherited from NSObject
|
|
1013
|
-
|
|
1014
|
-
readonly image: UIImage;
|
|
1015
|
-
|
|
1016
|
-
coordinateForPoint(point: CGPoint): CLLocationCoordinate2D;
|
|
1017
|
-
|
|
1018
|
-
pointForCoordinate(coordinate: CLLocationCoordinate2D): CGPoint;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
declare class MGLMapSnapshotOptions extends NSObject {
|
|
1022
|
-
static alloc(): MGLMapSnapshotOptions; // inherited from NSObject
|
|
1023
|
-
|
|
1024
|
-
static new(): MGLMapSnapshotOptions; // inherited from NSObject
|
|
1025
|
-
|
|
1026
|
-
camera: MGLMapCamera;
|
|
1027
|
-
|
|
1028
|
-
coordinateBounds: MGLCoordinateBounds;
|
|
1029
|
-
|
|
1030
|
-
scale: number;
|
|
1031
|
-
|
|
1032
|
-
readonly size: CGSize;
|
|
1033
|
-
|
|
1034
|
-
readonly styleURL: NSURL;
|
|
1035
|
-
|
|
1036
|
-
zoomLevel: number;
|
|
1037
|
-
|
|
1038
|
-
constructor(o: { styleURL: NSURL; camera: MGLMapCamera; size: CGSize });
|
|
1039
|
-
|
|
1040
|
-
initWithStyleURLCameraSize(styleURL: NSURL, camera: MGLMapCamera, size: CGSize): this;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
declare class MGLMapSnapshotter extends NSObject {
|
|
1044
|
-
static alloc(): MGLMapSnapshotter; // inherited from NSObject
|
|
1045
|
-
|
|
1046
|
-
static new(): MGLMapSnapshotter; // inherited from NSObject
|
|
1047
|
-
|
|
1048
|
-
readonly loading: boolean;
|
|
1049
|
-
|
|
1050
|
-
options: MGLMapSnapshotOptions;
|
|
1051
|
-
|
|
1052
|
-
constructor(o: { options: MGLMapSnapshotOptions });
|
|
1053
|
-
|
|
1054
|
-
cancel(): void;
|
|
1055
|
-
|
|
1056
|
-
initWithOptions(options: MGLMapSnapshotOptions): this;
|
|
1057
|
-
|
|
1058
|
-
startWithCompletionHandler(completionHandler: (p1: MGLMapSnapshot, p2: NSError) => void): void;
|
|
1059
|
-
|
|
1060
|
-
startWithQueueCompletionHandler(queue: NSObject, completionHandler: (p1: MGLMapSnapshot, p2: NSError) => void): void;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
declare class MGLMapView extends UIView {
|
|
1064
|
-
static alloc(): MGLMapView; // inherited from NSObject
|
|
1065
|
-
|
|
1066
|
-
static appearance(): MGLMapView; // inherited from UIAppearance
|
|
1067
|
-
|
|
1068
|
-
static appearanceForTraitCollection(trait: UITraitCollection): MGLMapView; // inherited from UIAppearance
|
|
1069
|
-
|
|
1070
|
-
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MGLMapView; // inherited from UIAppearance
|
|
1071
|
-
|
|
1072
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MGLMapView; // inherited from UIAppearance
|
|
1073
|
-
|
|
1074
|
-
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MGLMapView; // inherited from UIAppearance
|
|
1075
|
-
|
|
1076
|
-
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MGLMapView; // inherited from UIAppearance
|
|
1077
|
-
|
|
1078
|
-
static new(): MGLMapView; // inherited from NSObject
|
|
1079
|
-
|
|
1080
|
-
allowsRotating: boolean;
|
|
1081
|
-
|
|
1082
|
-
allowsScrolling: boolean;
|
|
1083
|
-
|
|
1084
|
-
allowsTilting: boolean;
|
|
1085
|
-
|
|
1086
|
-
allowsZooming: boolean;
|
|
1087
|
-
|
|
1088
|
-
readonly annotations: NSArray<MGLAnnotation>;
|
|
1089
|
-
|
|
1090
|
-
readonly attributionButton: UIButton;
|
|
1091
|
-
|
|
1092
|
-
attributionButtonMargins: CGPoint;
|
|
1093
|
-
|
|
1094
|
-
attributionButtonPosition: MGLOrnamentPosition;
|
|
1095
|
-
|
|
1096
|
-
camera: MGLMapCamera;
|
|
1097
|
-
|
|
1098
|
-
centerCoordinate: CLLocationCoordinate2D;
|
|
1099
|
-
|
|
1100
|
-
readonly compassView: UIImageView;
|
|
1101
|
-
|
|
1102
|
-
compassViewMargins: CGPoint;
|
|
1103
|
-
|
|
1104
|
-
compassViewPosition: MGLOrnamentPosition;
|
|
1105
|
-
|
|
1106
|
-
contentInset: UIEdgeInsets;
|
|
1107
|
-
|
|
1108
|
-
debugMask: MGLMapDebugMaskOptions;
|
|
1109
|
-
|
|
1110
|
-
decelerationRate: number;
|
|
1111
|
-
|
|
1112
|
-
delegate: MGLMapViewDelegate;
|
|
1113
|
-
|
|
1114
|
-
direction: number;
|
|
1115
|
-
|
|
1116
|
-
displayHeadingCalibration: boolean;
|
|
1117
|
-
|
|
1118
|
-
hapticFeedbackEnabled: boolean;
|
|
1119
|
-
|
|
1120
|
-
latitude: number;
|
|
1121
|
-
|
|
1122
|
-
locationManager: MGLLocationManager;
|
|
1123
|
-
|
|
1124
|
-
readonly logoView: UIImageView;
|
|
1125
|
-
|
|
1126
|
-
logoViewMargins: CGPoint;
|
|
1127
|
-
|
|
1128
|
-
logoViewPosition: MGLOrnamentPosition;
|
|
1129
|
-
|
|
1130
|
-
longitude: number;
|
|
1131
|
-
|
|
1132
|
-
maximumZoomLevel: number;
|
|
1133
|
-
|
|
1134
|
-
minimumZoomLevel: number;
|
|
1135
|
-
|
|
1136
|
-
readonly overlays: NSArray<MGLOverlay>;
|
|
1137
|
-
|
|
1138
|
-
pitchEnabled: boolean;
|
|
1139
|
-
|
|
1140
|
-
preferredFramesPerSecond: number;
|
|
1141
|
-
|
|
1142
|
-
prefetchesTiles: boolean;
|
|
1143
|
-
|
|
1144
|
-
rotateEnabled: boolean;
|
|
1145
|
-
|
|
1146
|
-
readonly scaleBar: UIView;
|
|
1147
|
-
|
|
1148
|
-
scaleBarMargins: CGPoint;
|
|
1149
|
-
|
|
1150
|
-
scaleBarPosition: MGLOrnamentPosition;
|
|
1151
|
-
|
|
1152
|
-
scrollEnabled: boolean;
|
|
1153
|
-
|
|
1154
|
-
selectedAnnotations: NSArray<MGLAnnotation>;
|
|
1155
|
-
|
|
1156
|
-
showsHeading: boolean;
|
|
1157
|
-
|
|
1158
|
-
showsScale: boolean;
|
|
1159
|
-
|
|
1160
|
-
showsUserHeadingIndicator: boolean;
|
|
1161
|
-
|
|
1162
|
-
showsUserLocation: boolean;
|
|
1163
|
-
|
|
1164
|
-
readonly style: MGLStyle;
|
|
1165
|
-
|
|
1166
|
-
styleURL: NSURL;
|
|
1167
|
-
|
|
1168
|
-
targetCoordinate: CLLocationCoordinate2D;
|
|
1169
|
-
|
|
1170
|
-
readonly userLocation: MGLUserLocation;
|
|
1171
|
-
|
|
1172
|
-
userLocationVerticalAlignment: MGLAnnotationVerticalAlignment;
|
|
1173
|
-
|
|
1174
|
-
readonly userLocationVisible: boolean;
|
|
1175
|
-
|
|
1176
|
-
userTrackingMode: MGLUserTrackingMode;
|
|
1177
|
-
|
|
1178
|
-
readonly visibleAnnotations: NSArray<MGLAnnotation>;
|
|
1179
|
-
|
|
1180
|
-
visibleCoordinateBounds: MGLCoordinateBounds;
|
|
1181
|
-
|
|
1182
|
-
zoomEnabled: boolean;
|
|
1183
|
-
|
|
1184
|
-
zoomLevel: number;
|
|
1185
|
-
|
|
1186
|
-
constructor(o: { frame: CGRect; styleURL: NSURL });
|
|
1187
|
-
|
|
1188
|
-
addAnnotation(annotation: MGLAnnotation): void;
|
|
1189
|
-
|
|
1190
|
-
addAnnotations(annotations: NSArray<MGLAnnotation> | MGLAnnotation[]): void;
|
|
1191
|
-
|
|
1192
|
-
addOverlay(overlay: MGLOverlay): void;
|
|
1193
|
-
|
|
1194
|
-
addOverlays(overlays: NSArray<MGLOverlay> | MGLOverlay[]): void;
|
|
1195
|
-
|
|
1196
|
-
anchorPointForGesture(gesture: UIGestureRecognizer): CGPoint;
|
|
1197
|
-
|
|
1198
|
-
cameraFittingCoordinateBoundsEdgePadding(camera: MGLMapCamera, bounds: MGLCoordinateBounds, insets: UIEdgeInsets): MGLMapCamera;
|
|
1199
|
-
|
|
1200
|
-
cameraFittingShapeEdgePadding(camera: MGLMapCamera, shape: MGLShape, insets: UIEdgeInsets): MGLMapCamera;
|
|
1201
|
-
|
|
1202
|
-
cameraThatFitsCoordinateBounds(bounds: MGLCoordinateBounds): MGLMapCamera;
|
|
1203
|
-
|
|
1204
|
-
cameraThatFitsCoordinateBoundsEdgePadding(bounds: MGLCoordinateBounds, insets: UIEdgeInsets): MGLMapCamera;
|
|
1205
|
-
|
|
1206
|
-
cameraThatFitsShapeDirectionEdgePadding(shape: MGLShape, direction: number, insets: UIEdgeInsets): MGLMapCamera;
|
|
1207
|
-
|
|
1208
|
-
convertCoordinateBoundsToRectToView(bounds: MGLCoordinateBounds, view: UIView): CGRect;
|
|
1209
|
-
|
|
1210
|
-
convertCoordinateToPointToView(coordinate: CLLocationCoordinate2D, view: UIView): CGPoint;
|
|
1211
|
-
|
|
1212
|
-
convertPointToCoordinateFromView(point: CGPoint, view: UIView): CLLocationCoordinate2D;
|
|
1213
|
-
|
|
1214
|
-
convertRectToCoordinateBoundsFromView(rect: CGRect, view: UIView): MGLCoordinateBounds;
|
|
1215
|
-
|
|
1216
|
-
dequeueReusableAnnotationImageWithIdentifier(identifier: string): MGLAnnotationImage;
|
|
1217
|
-
|
|
1218
|
-
dequeueReusableAnnotationViewWithIdentifier(identifier: string): MGLAnnotationView;
|
|
1219
|
-
|
|
1220
|
-
deselectAnnotationAnimated(annotation: MGLAnnotation, animated: boolean): void;
|
|
1221
|
-
|
|
1222
|
-
flyToCameraCompletionHandler(camera: MGLMapCamera, completion: () => void): void;
|
|
1223
|
-
|
|
1224
|
-
flyToCameraWithDurationCompletionHandler(camera: MGLMapCamera, duration: number, completion: () => void): void;
|
|
1225
|
-
|
|
1226
|
-
flyToCameraWithDurationPeakAltitudeCompletionHandler(camera: MGLMapCamera, duration: number, peakAltitude: number, completion: () => void): void;
|
|
1227
|
-
|
|
1228
|
-
initWithFrameStyleURL(frame: CGRect, styleURL: NSURL): this;
|
|
1229
|
-
|
|
1230
|
-
metersPerPointAtLatitude(latitude: number): number;
|
|
1231
|
-
|
|
1232
|
-
reloadStyle(sender: any): void;
|
|
1233
|
-
|
|
1234
|
-
removeAnnotation(annotation: MGLAnnotation): void;
|
|
1235
|
-
|
|
1236
|
-
removeAnnotations(annotations: NSArray<MGLAnnotation> | MGLAnnotation[]): void;
|
|
1237
|
-
|
|
1238
|
-
removeOverlay(overlay: MGLOverlay): void;
|
|
1239
|
-
|
|
1240
|
-
removeOverlays(overlays: NSArray<MGLOverlay> | MGLOverlay[]): void;
|
|
1241
|
-
|
|
1242
|
-
resetNorth(): void;
|
|
1243
|
-
|
|
1244
|
-
resetPosition(): void;
|
|
1245
|
-
|
|
1246
|
-
selectAnnotationAnimated(annotation: MGLAnnotation, animated: boolean): void;
|
|
1247
|
-
|
|
1248
|
-
selectAnnotationMoveIntoViewAnimateSelection(annotation: MGLAnnotation, moveIntoView: boolean, animateSelection: boolean): void;
|
|
1249
|
-
|
|
1250
|
-
setCameraAnimated(camera: MGLMapCamera, animated: boolean): void;
|
|
1251
|
-
|
|
1252
|
-
setCameraWithDurationAnimationTimingFunction(camera: MGLMapCamera, duration: number, _function: CAMediaTimingFunction): void;
|
|
1253
|
-
|
|
1254
|
-
setCameraWithDurationAnimationTimingFunctionCompletionHandler(camera: MGLMapCamera, duration: number, _function: CAMediaTimingFunction, completion: () => void): void;
|
|
1255
|
-
|
|
1256
|
-
setCameraWithDurationAnimationTimingFunctionEdgePaddingCompletionHandler(
|
|
1257
|
-
camera: MGLMapCamera,
|
|
1258
|
-
duration: number,
|
|
1259
|
-
_function: CAMediaTimingFunction,
|
|
1260
|
-
edgePadding: UIEdgeInsets,
|
|
1261
|
-
completion: () => void
|
|
1262
|
-
): void;
|
|
1263
|
-
|
|
1264
|
-
setCenterCoordinateAnimated(coordinate: CLLocationCoordinate2D, animated: boolean): void;
|
|
1265
|
-
|
|
1266
|
-
setCenterCoordinateZoomLevelAnimated(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number, animated: boolean): void;
|
|
1267
|
-
|
|
1268
|
-
setCenterCoordinateZoomLevelDirectionAnimated(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number, direction: number, animated: boolean): void;
|
|
1269
|
-
|
|
1270
|
-
setCenterCoordinateZoomLevelDirectionAnimatedCompletionHandler(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number, direction: number, animated: boolean, completion: () => void): void;
|
|
1271
|
-
|
|
1272
|
-
setContentInsetAnimated(contentInset: UIEdgeInsets, animated: boolean): void;
|
|
1273
|
-
|
|
1274
|
-
setDirectionAnimated(direction: number, animated: boolean): void;
|
|
1275
|
-
|
|
1276
|
-
setTargetCoordinateAnimated(targetCoordinate: CLLocationCoordinate2D, animated: boolean): void;
|
|
1277
|
-
|
|
1278
|
-
setUserLocationVerticalAlignmentAnimated(alignment: MGLAnnotationVerticalAlignment, animated: boolean): void;
|
|
1279
|
-
|
|
1280
|
-
setUserTrackingModeAnimated(mode: MGLUserTrackingMode, animated: boolean): void;
|
|
1281
|
-
|
|
1282
|
-
setVisibleCoordinateBoundsAnimated(bounds: MGLCoordinateBounds, animated: boolean): void;
|
|
1283
|
-
|
|
1284
|
-
setVisibleCoordinateBoundsEdgePaddingAnimated(bounds: MGLCoordinateBounds, insets: UIEdgeInsets, animated: boolean): void;
|
|
1285
|
-
|
|
1286
|
-
setVisibleCoordinatesCountEdgePaddingAnimated(coordinates: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number, insets: UIEdgeInsets, animated: boolean): void;
|
|
1287
|
-
|
|
1288
|
-
setVisibleCoordinatesCountEdgePaddingDirectionDurationAnimationTimingFunctionCompletionHandler(
|
|
1289
|
-
coordinates: interop.Pointer | interop.Reference<CLLocationCoordinate2D>,
|
|
1290
|
-
count: number,
|
|
1291
|
-
insets: UIEdgeInsets,
|
|
1292
|
-
direction: number,
|
|
1293
|
-
duration: number,
|
|
1294
|
-
_function: CAMediaTimingFunction,
|
|
1295
|
-
completion: () => void
|
|
1296
|
-
): void;
|
|
1297
|
-
|
|
1298
|
-
setZoomLevelAnimated(zoomLevel: number, animated: boolean): void;
|
|
1299
|
-
|
|
1300
|
-
showAnnotationsAnimated(annotations: NSArray<MGLAnnotation> | MGLAnnotation[], animated: boolean): void;
|
|
1301
|
-
|
|
1302
|
-
showAnnotationsEdgePaddingAnimated(annotations: NSArray<MGLAnnotation> | MGLAnnotation[], insets: UIEdgeInsets, animated: boolean): void;
|
|
1303
|
-
|
|
1304
|
-
showAttribution(sender: any): void;
|
|
1305
|
-
|
|
1306
|
-
updateUserLocationAnnotationView(): void;
|
|
1307
|
-
|
|
1308
|
-
updateUserLocationAnnotationViewAnimatedWithDuration(duration: number): void;
|
|
1309
|
-
|
|
1310
|
-
viewForAnnotation(annotation: MGLAnnotation): MGLAnnotationView;
|
|
1311
|
-
|
|
1312
|
-
visibleAnnotationsInRect(rect: CGRect): NSArray<MGLAnnotation>;
|
|
1313
|
-
|
|
1314
|
-
visibleFeaturesAtPoint(point: CGPoint): NSArray<MGLFeature>;
|
|
1315
|
-
|
|
1316
|
-
visibleFeaturesAtPointInStyleLayersWithIdentifiers(point: CGPoint, styleLayerIdentifiers: NSSet<string>): NSArray<MGLFeature>;
|
|
1317
|
-
|
|
1318
|
-
visibleFeaturesAtPointInStyleLayersWithIdentifiersPredicate(point: CGPoint, styleLayerIdentifiers: NSSet<string>, predicate: NSPredicate): NSArray<MGLFeature>;
|
|
1319
|
-
|
|
1320
|
-
visibleFeaturesInRect(rect: CGRect): NSArray<MGLFeature>;
|
|
1321
|
-
|
|
1322
|
-
visibleFeaturesInRectInStyleLayersWithIdentifiers(rect: CGRect, styleLayerIdentifiers: NSSet<string>): NSArray<MGLFeature>;
|
|
1323
|
-
|
|
1324
|
-
visibleFeaturesInRectInStyleLayersWithIdentifiersPredicate(rect: CGRect, styleLayerIdentifiers: NSSet<string>, predicate: NSPredicate): NSArray<MGLFeature>;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
declare var MGLMapViewDecelerationRateFast: number;
|
|
1328
|
-
|
|
1329
|
-
declare var MGLMapViewDecelerationRateImmediate: number;
|
|
1330
|
-
|
|
1331
|
-
declare var MGLMapViewDecelerationRateNormal: number;
|
|
1332
|
-
|
|
1333
|
-
interface MGLMapViewDelegate extends NSObjectProtocol {
|
|
1334
|
-
mapViewAlphaForShapeAnnotation?(mapView: MGLMapView, annotation: MGLShape): number;
|
|
1335
|
-
|
|
1336
|
-
mapViewAnnotationCalloutAccessoryControlTapped?(mapView: MGLMapView, annotation: MGLAnnotation, control: UIControl): void;
|
|
1337
|
-
|
|
1338
|
-
mapViewAnnotationCanShowCallout?(mapView: MGLMapView, annotation: MGLAnnotation): boolean;
|
|
1339
|
-
|
|
1340
|
-
mapViewCalloutViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): MGLCalloutView;
|
|
1341
|
-
|
|
1342
|
-
mapViewDidAddAnnotationViews?(mapView: MGLMapView, annotationViews: NSArray<MGLAnnotationView> | MGLAnnotationView[]): void;
|
|
1343
|
-
|
|
1344
|
-
mapViewDidBecomeIdle?(mapView: MGLMapView): void;
|
|
1345
|
-
|
|
1346
|
-
mapViewDidChangeUserTrackingModeAnimated?(mapView: MGLMapView, mode: MGLUserTrackingMode, animated: boolean): void;
|
|
1347
|
-
|
|
1348
|
-
mapViewDidDeselectAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): void;
|
|
1349
|
-
|
|
1350
|
-
mapViewDidDeselectAnnotationView?(mapView: MGLMapView, annotationView: MGLAnnotationView): void;
|
|
1351
|
-
|
|
1352
|
-
mapViewDidFailLoadingMapWithError?(mapView: MGLMapView, error: NSError): void;
|
|
1353
|
-
|
|
1354
|
-
mapViewDidFailToLoadImage?(mapView: MGLMapView, imageName: string): UIImage;
|
|
1355
|
-
|
|
1356
|
-
mapViewDidFailToLocateUserWithError?(mapView: MGLMapView, error: NSError): void;
|
|
1357
|
-
|
|
1358
|
-
mapViewDidFinishLoadingMap?(mapView: MGLMapView): void;
|
|
1359
|
-
|
|
1360
|
-
mapViewDidFinishLoadingStyle?(mapView: MGLMapView, style: MGLStyle): void;
|
|
1361
|
-
|
|
1362
|
-
mapViewDidFinishRenderingFrameFullyRendered?(mapView: MGLMapView, fullyRendered: boolean): void;
|
|
1363
|
-
|
|
1364
|
-
mapViewDidFinishRenderingMapFullyRendered?(mapView: MGLMapView, fullyRendered: boolean): void;
|
|
1365
|
-
|
|
1366
|
-
mapViewDidSelectAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): void;
|
|
1367
|
-
|
|
1368
|
-
mapViewDidSelectAnnotationView?(mapView: MGLMapView, annotationView: MGLAnnotationView): void;
|
|
1369
|
-
|
|
1370
|
-
mapViewDidStopLocatingUser?(mapView: MGLMapView): void;
|
|
1371
|
-
|
|
1372
|
-
mapViewDidUpdateUserLocation?(mapView: MGLMapView, userLocation: MGLUserLocation): void;
|
|
1373
|
-
|
|
1374
|
-
mapViewFillColorForPolygonAnnotation?(mapView: MGLMapView, annotation: MGLPolygon): UIColor;
|
|
1375
|
-
|
|
1376
|
-
mapViewImageForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): MGLAnnotationImage;
|
|
1377
|
-
|
|
1378
|
-
mapViewLeftCalloutAccessoryViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): UIView;
|
|
1379
|
-
|
|
1380
|
-
mapViewLineWidthForPolylineAnnotation?(mapView: MGLMapView, annotation: MGLPolyline): number;
|
|
1381
|
-
|
|
1382
|
-
mapViewRegionDidChangeAnimated?(mapView: MGLMapView, animated: boolean): void;
|
|
1383
|
-
|
|
1384
|
-
mapViewRegionDidChangeWithReasonAnimated?(mapView: MGLMapView, reason: MGLCameraChangeReason, animated: boolean): void;
|
|
1385
|
-
|
|
1386
|
-
mapViewRegionIsChanging?(mapView: MGLMapView): void;
|
|
1387
|
-
|
|
1388
|
-
mapViewRegionIsChangingWithReason?(mapView: MGLMapView, reason: MGLCameraChangeReason): void;
|
|
1389
|
-
|
|
1390
|
-
mapViewRegionWillChangeAnimated?(mapView: MGLMapView, animated: boolean): void;
|
|
1391
|
-
|
|
1392
|
-
mapViewRegionWillChangeWithReasonAnimated?(mapView: MGLMapView, reason: MGLCameraChangeReason, animated: boolean): void;
|
|
1393
|
-
|
|
1394
|
-
mapViewRightCalloutAccessoryViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): UIView;
|
|
1395
|
-
|
|
1396
|
-
mapViewShapeAnnotationIsEnabled?(mapView: MGLMapView, annotation: MGLShape): boolean;
|
|
1397
|
-
|
|
1398
|
-
mapViewShouldChangeFromCameraToCamera?(mapView: MGLMapView, oldCamera: MGLMapCamera, newCamera: MGLMapCamera): boolean;
|
|
1399
|
-
|
|
1400
|
-
mapViewShouldChangeFromCameraToCameraReason?(mapView: MGLMapView, oldCamera: MGLMapCamera, newCamera: MGLMapCamera, reason: MGLCameraChangeReason): boolean;
|
|
1401
|
-
|
|
1402
|
-
mapViewStrokeColorForShapeAnnotation?(mapView: MGLMapView, annotation: MGLShape): UIColor;
|
|
1403
|
-
|
|
1404
|
-
mapViewTapOnCalloutForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): void;
|
|
1405
|
-
|
|
1406
|
-
mapViewUserLocationAnchorPoint?(mapView: MGLMapView): CGPoint;
|
|
1407
|
-
|
|
1408
|
-
mapViewViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): MGLAnnotationView;
|
|
1409
|
-
|
|
1410
|
-
mapViewWillStartLoadingMap?(mapView: MGLMapView): void;
|
|
1411
|
-
|
|
1412
|
-
mapViewWillStartLocatingUser?(mapView: MGLMapView): void;
|
|
1413
|
-
|
|
1414
|
-
mapViewWillStartRenderingFrame?(mapView: MGLMapView): void;
|
|
1415
|
-
|
|
1416
|
-
mapViewWillStartRenderingMap?(mapView: MGLMapView): void;
|
|
1417
|
-
}
|
|
1418
|
-
declare var MGLMapViewDelegate: {
|
|
1419
|
-
prototype: MGLMapViewDelegate;
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
|
-
declare var MGLMapViewPreferredFramesPerSecondDefault: number;
|
|
1423
|
-
|
|
1424
|
-
declare var MGLMapViewPreferredFramesPerSecondLowPower: number;
|
|
1425
|
-
|
|
1426
|
-
declare var MGLMapViewPreferredFramesPerSecondMaximum: number;
|
|
1427
|
-
|
|
1428
|
-
interface MGLMatrix4 {
|
|
1429
|
-
m00: number;
|
|
1430
|
-
m01: number;
|
|
1431
|
-
m02: number;
|
|
1432
|
-
m03: number;
|
|
1433
|
-
m10: number;
|
|
1434
|
-
m11: number;
|
|
1435
|
-
m12: number;
|
|
1436
|
-
m13: number;
|
|
1437
|
-
m20: number;
|
|
1438
|
-
m21: number;
|
|
1439
|
-
m22: number;
|
|
1440
|
-
m23: number;
|
|
1441
|
-
m30: number;
|
|
1442
|
-
m31: number;
|
|
1443
|
-
m32: number;
|
|
1444
|
-
m33: number;
|
|
1445
|
-
}
|
|
1446
|
-
declare var MGLMatrix4: interop.StructType<MGLMatrix4>;
|
|
1447
|
-
|
|
1448
|
-
declare const enum MGLMetricType {
|
|
1449
|
-
Performance = 0,
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
declare class MGLMetricsManager extends NSObject {
|
|
1453
|
-
static alloc(): MGLMetricsManager; // inherited from NSObject
|
|
1454
|
-
|
|
1455
|
-
static new(): MGLMetricsManager; // inherited from NSObject
|
|
1456
|
-
|
|
1457
|
-
delegate: MGLMetricsManagerDelegate;
|
|
1458
|
-
|
|
1459
|
-
static readonly sharedManager: MGLMetricsManager;
|
|
1460
|
-
|
|
1461
|
-
pushMetricWithAttributes(metricType: MGLMetricType, attributes: NSDictionary<any, any>): void;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
interface MGLMetricsManagerDelegate extends NSObjectProtocol {
|
|
1465
|
-
metricsManagerDidCollectMetricWithAttributes(metricsManager: MGLMetricsManager, metricType: MGLMetricType, attributes: NSDictionary<any, any>): void;
|
|
1466
|
-
|
|
1467
|
-
metricsManagerShouldHandleMetric(metricsManager: MGLMetricsManager, metricType: MGLMetricType): boolean;
|
|
1468
|
-
}
|
|
1469
|
-
declare var MGLMetricsManagerDelegate: {
|
|
1470
|
-
prototype: MGLMetricsManagerDelegate;
|
|
1471
|
-
};
|
|
1472
|
-
|
|
1473
|
-
declare var MGLMissingLocationServicesUsageDescriptionException: string;
|
|
1474
|
-
|
|
1475
|
-
declare class MGLMultiPoint extends MGLShape {
|
|
1476
|
-
static alloc(): MGLMultiPoint; // inherited from NSObject
|
|
1477
|
-
|
|
1478
|
-
static new(): MGLMultiPoint; // inherited from NSObject
|
|
1479
|
-
|
|
1480
|
-
readonly coordinates: interop.Pointer | interop.Reference<CLLocationCoordinate2D>;
|
|
1481
|
-
|
|
1482
|
-
readonly pointCount: number;
|
|
1483
|
-
|
|
1484
|
-
appendCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): void;
|
|
1485
|
-
|
|
1486
|
-
getCoordinatesRange(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, range: NSRange): void;
|
|
1487
|
-
|
|
1488
|
-
insertCoordinatesCountAtIndex(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number, index: number): void;
|
|
1489
|
-
|
|
1490
|
-
removeCoordinatesInRange(range: NSRange): void;
|
|
1491
|
-
|
|
1492
|
-
replaceCoordinatesInRangeWithCoordinates(range: NSRange, coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>): void;
|
|
1493
|
-
|
|
1494
|
-
replaceCoordinatesInRangeWithCoordinatesCount(range: NSRange, coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): void;
|
|
1495
|
-
|
|
1496
|
-
setCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): void;
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
declare class MGLMultiPolygon extends MGLShape implements MGLOverlay {
|
|
1500
|
-
static alloc(): MGLMultiPolygon; // inherited from NSObject
|
|
1501
|
-
|
|
1502
|
-
static multiPolygonWithPolygons(polygons: NSArray<MGLPolygon> | MGLPolygon[]): MGLMultiPolygon;
|
|
1503
|
-
|
|
1504
|
-
static new(): MGLMultiPolygon; // inherited from NSObject
|
|
1505
|
-
|
|
1506
|
-
readonly polygons: NSArray<MGLPolygon>;
|
|
1507
|
-
|
|
1508
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
1509
|
-
|
|
1510
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1511
|
-
|
|
1512
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
1513
|
-
|
|
1514
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
1515
|
-
|
|
1516
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1517
|
-
|
|
1518
|
-
readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay
|
|
1519
|
-
|
|
1520
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
1521
|
-
|
|
1522
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1523
|
-
|
|
1524
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
1525
|
-
|
|
1526
|
-
readonly; // inherited from NSObjectProtocol
|
|
1527
|
-
|
|
1528
|
-
class(): typeof NSObject;
|
|
1529
|
-
|
|
1530
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1531
|
-
|
|
1532
|
-
intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean;
|
|
1533
|
-
|
|
1534
|
-
isEqual(object: any): boolean;
|
|
1535
|
-
|
|
1536
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1537
|
-
|
|
1538
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1539
|
-
|
|
1540
|
-
performSelector(aSelector: string): any;
|
|
1541
|
-
|
|
1542
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1543
|
-
|
|
1544
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1545
|
-
|
|
1546
|
-
respondsToSelector(aSelector: string): boolean;
|
|
1547
|
-
|
|
1548
|
-
retainCount(): number;
|
|
1549
|
-
|
|
1550
|
-
self(): this;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
declare class MGLMultiPolygonFeature extends MGLMultiPolygon implements MGLFeature {
|
|
1554
|
-
static alloc(): MGLMultiPolygonFeature; // inherited from NSObject
|
|
1555
|
-
|
|
1556
|
-
static multiPolygonWithPolygons(polygons: NSArray<MGLPolygon> | MGLPolygon[]): MGLMultiPolygonFeature; // inherited from MGLMultiPolygon
|
|
1557
|
-
|
|
1558
|
-
static new(): MGLMultiPolygonFeature; // inherited from NSObject
|
|
1559
|
-
|
|
1560
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
1561
|
-
|
|
1562
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
1563
|
-
|
|
1564
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1565
|
-
|
|
1566
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
1567
|
-
|
|
1568
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
1569
|
-
|
|
1570
|
-
identifier: any; // inherited from MGLFeature
|
|
1571
|
-
|
|
1572
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1573
|
-
|
|
1574
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
1575
|
-
|
|
1576
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1577
|
-
|
|
1578
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
1579
|
-
|
|
1580
|
-
readonly; // inherited from NSObjectProtocol
|
|
1581
|
-
|
|
1582
|
-
attributeForKey(key: string): any;
|
|
1583
|
-
|
|
1584
|
-
class(): typeof NSObject;
|
|
1585
|
-
|
|
1586
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1587
|
-
|
|
1588
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
1589
|
-
|
|
1590
|
-
isEqual(object: any): boolean;
|
|
1591
|
-
|
|
1592
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1593
|
-
|
|
1594
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1595
|
-
|
|
1596
|
-
performSelector(aSelector: string): any;
|
|
1597
|
-
|
|
1598
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1599
|
-
|
|
1600
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1601
|
-
|
|
1602
|
-
respondsToSelector(aSelector: string): boolean;
|
|
1603
|
-
|
|
1604
|
-
retainCount(): number;
|
|
1605
|
-
|
|
1606
|
-
self(): this;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
declare class MGLMultiPolyline extends MGLShape implements MGLOverlay {
|
|
1610
|
-
static alloc(): MGLMultiPolyline; // inherited from NSObject
|
|
1611
|
-
|
|
1612
|
-
static multiPolylineWithPolylines(polylines: NSArray<MGLPolyline> | MGLPolyline[]): MGLMultiPolyline;
|
|
1613
|
-
|
|
1614
|
-
static new(): MGLMultiPolyline; // inherited from NSObject
|
|
1615
|
-
|
|
1616
|
-
readonly polylines: NSArray<MGLPolyline>;
|
|
1617
|
-
|
|
1618
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
1619
|
-
|
|
1620
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1621
|
-
|
|
1622
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
1623
|
-
|
|
1624
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
1625
|
-
|
|
1626
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1627
|
-
|
|
1628
|
-
readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay
|
|
1629
|
-
|
|
1630
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
1631
|
-
|
|
1632
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1633
|
-
|
|
1634
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
1635
|
-
|
|
1636
|
-
readonly; // inherited from NSObjectProtocol
|
|
1637
|
-
|
|
1638
|
-
class(): typeof NSObject;
|
|
1639
|
-
|
|
1640
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1641
|
-
|
|
1642
|
-
intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean;
|
|
1643
|
-
|
|
1644
|
-
isEqual(object: any): boolean;
|
|
1645
|
-
|
|
1646
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1647
|
-
|
|
1648
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1649
|
-
|
|
1650
|
-
performSelector(aSelector: string): any;
|
|
1651
|
-
|
|
1652
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1653
|
-
|
|
1654
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1655
|
-
|
|
1656
|
-
respondsToSelector(aSelector: string): boolean;
|
|
1657
|
-
|
|
1658
|
-
retainCount(): number;
|
|
1659
|
-
|
|
1660
|
-
self(): this;
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
declare class MGLMultiPolylineFeature extends MGLMultiPolyline implements MGLFeature {
|
|
1664
|
-
static alloc(): MGLMultiPolylineFeature; // inherited from NSObject
|
|
1665
|
-
|
|
1666
|
-
static multiPolylineWithPolylines(polylines: NSArray<MGLPolyline> | MGLPolyline[]): MGLMultiPolylineFeature; // inherited from MGLMultiPolyline
|
|
1667
|
-
|
|
1668
|
-
static new(): MGLMultiPolylineFeature; // inherited from NSObject
|
|
1669
|
-
|
|
1670
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
1671
|
-
|
|
1672
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
1673
|
-
|
|
1674
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1675
|
-
|
|
1676
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
1677
|
-
|
|
1678
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
1679
|
-
|
|
1680
|
-
identifier: any; // inherited from MGLFeature
|
|
1681
|
-
|
|
1682
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1683
|
-
|
|
1684
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
1685
|
-
|
|
1686
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1687
|
-
|
|
1688
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
1689
|
-
|
|
1690
|
-
readonly; // inherited from NSObjectProtocol
|
|
1691
|
-
|
|
1692
|
-
attributeForKey(key: string): any;
|
|
1693
|
-
|
|
1694
|
-
class(): typeof NSObject;
|
|
1695
|
-
|
|
1696
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1697
|
-
|
|
1698
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
1699
|
-
|
|
1700
|
-
isEqual(object: any): boolean;
|
|
1701
|
-
|
|
1702
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1703
|
-
|
|
1704
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1705
|
-
|
|
1706
|
-
performSelector(aSelector: string): any;
|
|
1707
|
-
|
|
1708
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1709
|
-
|
|
1710
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1711
|
-
|
|
1712
|
-
respondsToSelector(aSelector: string): boolean;
|
|
1713
|
-
|
|
1714
|
-
retainCount(): number;
|
|
1715
|
-
|
|
1716
|
-
self(): this;
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
declare class MGLNetworkConfiguration extends NSObject {
|
|
1720
|
-
static alloc(): MGLNetworkConfiguration; // inherited from NSObject
|
|
1721
|
-
|
|
1722
|
-
static new(): MGLNetworkConfiguration; // inherited from NSObject
|
|
1723
|
-
|
|
1724
|
-
sessionConfiguration: NSURLSessionConfiguration;
|
|
1725
|
-
|
|
1726
|
-
static readonly sharedManager: MGLNetworkConfiguration;
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
declare class MGLOfflinePack extends NSObject {
|
|
1730
|
-
static alloc(): MGLOfflinePack; // inherited from NSObject
|
|
1731
|
-
|
|
1732
|
-
static new(): MGLOfflinePack; // inherited from NSObject
|
|
1733
|
-
|
|
1734
|
-
readonly context: NSData;
|
|
1735
|
-
|
|
1736
|
-
readonly progress: MGLOfflinePackProgress;
|
|
1737
|
-
|
|
1738
|
-
readonly region: MGLOfflineRegion;
|
|
1739
|
-
|
|
1740
|
-
readonly state: MGLOfflinePackState;
|
|
1741
|
-
|
|
1742
|
-
requestProgress(): void;
|
|
1743
|
-
|
|
1744
|
-
resume(): void;
|
|
1745
|
-
|
|
1746
|
-
suspend(): void;
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
declare var MGLOfflinePackErrorNotification: string;
|
|
1750
|
-
|
|
1751
|
-
declare var MGLOfflinePackMaximumMapboxTilesReachedNotification: string;
|
|
1752
|
-
|
|
1753
|
-
interface MGLOfflinePackProgress {
|
|
1754
|
-
countOfResourcesCompleted: number;
|
|
1755
|
-
countOfBytesCompleted: number;
|
|
1756
|
-
countOfTilesCompleted: number;
|
|
1757
|
-
countOfTileBytesCompleted: number;
|
|
1758
|
-
countOfResourcesExpected: number;
|
|
1759
|
-
maximumResourcesExpected: number;
|
|
1760
|
-
}
|
|
1761
|
-
declare var MGLOfflinePackProgress: interop.StructType<MGLOfflinePackProgress>;
|
|
1762
|
-
|
|
1763
|
-
declare var MGLOfflinePackProgressChangedNotification: string;
|
|
1764
|
-
|
|
1765
|
-
declare const enum MGLOfflinePackState {
|
|
1766
|
-
Unknown = 0,
|
|
1767
|
-
|
|
1768
|
-
Inactive = 1,
|
|
1769
|
-
|
|
1770
|
-
Active = 2,
|
|
1771
|
-
|
|
1772
|
-
Complete = 3,
|
|
1773
|
-
|
|
1774
|
-
Invalid = 4,
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
declare var MGLOfflinePackUserInfoKeyError: string;
|
|
1778
|
-
|
|
1779
|
-
declare var MGLOfflinePackUserInfoKeyMaximumCount: string;
|
|
1780
|
-
|
|
1781
|
-
declare var MGLOfflinePackUserInfoKeyProgress: string;
|
|
1782
|
-
|
|
1783
|
-
declare var MGLOfflinePackUserInfoKeyState: string;
|
|
1784
|
-
|
|
1785
|
-
interface MGLOfflineRegion extends NSObjectProtocol {
|
|
1786
|
-
includesIdeographicGlyphs: boolean;
|
|
1787
|
-
|
|
1788
|
-
styleURL: NSURL;
|
|
1789
|
-
}
|
|
1790
|
-
declare var MGLOfflineRegion: {
|
|
1791
|
-
prototype: MGLOfflineRegion;
|
|
1792
|
-
};
|
|
1793
|
-
|
|
1794
|
-
declare class MGLOfflineStorage extends NSObject {
|
|
1795
|
-
static alloc(): MGLOfflineStorage; // inherited from NSObject
|
|
1796
|
-
|
|
1797
|
-
static new(): MGLOfflineStorage; // inherited from NSObject
|
|
1798
|
-
|
|
1799
|
-
readonly countOfBytesCompleted: number;
|
|
1800
|
-
|
|
1801
|
-
delegate: MGLOfflineStorageDelegate;
|
|
1802
|
-
|
|
1803
|
-
readonly packs: NSArray<MGLOfflinePack>;
|
|
1804
|
-
|
|
1805
|
-
static readonly sharedOfflineStorage: MGLOfflineStorage;
|
|
1806
|
-
|
|
1807
|
-
addContentsOfFileWithCompletionHandler(filePath: string, completion: (p1: NSURL, p2: NSArray<MGLOfflinePack>, p3: NSError) => void): void;
|
|
1808
|
-
|
|
1809
|
-
addContentsOfURLWithCompletionHandler(fileURL: NSURL, completion: (p1: NSURL, p2: NSArray<MGLOfflinePack>, p3: NSError) => void): void;
|
|
1810
|
-
|
|
1811
|
-
addPackForRegionWithContextCompletionHandler(region: MGLOfflineRegion, context: NSData, completion: (p1: MGLOfflinePack, p2: NSError) => void): void;
|
|
1812
|
-
|
|
1813
|
-
preloadDataForURLModificationDateExpirationDateETagMustRevalidate(data: NSData, url: NSURL, modified: Date, expires: Date, eTag: string, mustRevalidate: boolean): void;
|
|
1814
|
-
|
|
1815
|
-
putResourceWithUrlDataModifiedExpiresEtagMustRevalidate(url: NSURL, data: NSData, modified: Date, expires: Date, etag: string, mustRevalidate: boolean): void;
|
|
1816
|
-
|
|
1817
|
-
reloadPacks(): void;
|
|
1818
|
-
|
|
1819
|
-
removePackWithCompletionHandler(pack: MGLOfflinePack, completion: (p1: NSError) => void): void;
|
|
1820
|
-
|
|
1821
|
-
setMaximumAllowedMapboxTiles(maximumCount: number): void;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
interface MGLOfflineStorageDelegate extends NSObjectProtocol {
|
|
1825
|
-
offlineStorageURLForResourceOfKindWithURL(storage: MGLOfflineStorage, kind: MGLResourceKind, url: NSURL): NSURL;
|
|
1826
|
-
}
|
|
1827
|
-
declare var MGLOfflineStorageDelegate: {
|
|
1828
|
-
prototype: MGLOfflineStorageDelegate;
|
|
1829
|
-
};
|
|
1830
|
-
|
|
1831
|
-
declare class MGLOpenGLStyleLayer extends MGLStyleLayer {
|
|
1832
|
-
static alloc(): MGLOpenGLStyleLayer; // inherited from NSObject
|
|
1833
|
-
|
|
1834
|
-
static new(): MGLOpenGLStyleLayer; // inherited from NSObject
|
|
1835
|
-
|
|
1836
|
-
readonly context: EAGLContext;
|
|
1837
|
-
|
|
1838
|
-
readonly style: MGLStyle;
|
|
1839
|
-
|
|
1840
|
-
constructor(o: { identifier: string });
|
|
1841
|
-
|
|
1842
|
-
didMoveToMapView(mapView: MGLMapView): void;
|
|
1843
|
-
|
|
1844
|
-
drawInMapViewWithContext(mapView: MGLMapView, context: MGLStyleLayerDrawingContext): void;
|
|
1845
|
-
|
|
1846
|
-
initWithIdentifier(identifier: string): this;
|
|
1847
|
-
|
|
1848
|
-
setNeedsDisplay(): void;
|
|
1849
|
-
|
|
1850
|
-
willMoveFromMapView(mapView: MGLMapView): void;
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
declare const enum MGLOrnamentPosition {
|
|
1854
|
-
TopLeft = 0,
|
|
1855
|
-
|
|
1856
|
-
TopRight = 1,
|
|
1857
|
-
|
|
1858
|
-
BottomLeft = 2,
|
|
1859
|
-
|
|
1860
|
-
BottomRight = 3,
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
interface MGLOverlay extends MGLAnnotation {
|
|
1864
|
-
overlayBounds: MGLCoordinateBounds;
|
|
1865
|
-
|
|
1866
|
-
intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean;
|
|
1867
|
-
}
|
|
1868
|
-
declare var MGLOverlay: {
|
|
1869
|
-
prototype: MGLOverlay;
|
|
1870
|
-
};
|
|
1871
|
-
|
|
1872
|
-
declare class MGLPointAnnotation extends MGLShape {
|
|
1873
|
-
static alloc(): MGLPointAnnotation; // inherited from NSObject
|
|
1874
|
-
|
|
1875
|
-
static new(): MGLPointAnnotation; // inherited from NSObject
|
|
1876
|
-
|
|
1877
|
-
coordinate: CLLocationCoordinate2D;
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
declare class MGLPointCollection extends MGLShape implements MGLOverlay {
|
|
1881
|
-
static alloc(): MGLPointCollection; // inherited from NSObject
|
|
1882
|
-
|
|
1883
|
-
static new(): MGLPointCollection; // inherited from NSObject
|
|
1884
|
-
|
|
1885
|
-
static pointCollectionWithCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): MGLPointCollection;
|
|
1886
|
-
|
|
1887
|
-
readonly coordinates: interop.Pointer | interop.Reference<CLLocationCoordinate2D>;
|
|
1888
|
-
|
|
1889
|
-
readonly pointCount: number;
|
|
1890
|
-
|
|
1891
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
1892
|
-
|
|
1893
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1894
|
-
|
|
1895
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
1896
|
-
|
|
1897
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
1898
|
-
|
|
1899
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1900
|
-
|
|
1901
|
-
readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay
|
|
1902
|
-
|
|
1903
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
1904
|
-
|
|
1905
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1906
|
-
|
|
1907
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
1908
|
-
|
|
1909
|
-
readonly; // inherited from NSObjectProtocol
|
|
1910
|
-
|
|
1911
|
-
class(): typeof NSObject;
|
|
1912
|
-
|
|
1913
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1914
|
-
|
|
1915
|
-
getCoordinatesRange(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, range: NSRange): void;
|
|
1916
|
-
|
|
1917
|
-
intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean;
|
|
1918
|
-
|
|
1919
|
-
isEqual(object: any): boolean;
|
|
1920
|
-
|
|
1921
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1922
|
-
|
|
1923
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1924
|
-
|
|
1925
|
-
performSelector(aSelector: string): any;
|
|
1926
|
-
|
|
1927
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1928
|
-
|
|
1929
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1930
|
-
|
|
1931
|
-
respondsToSelector(aSelector: string): boolean;
|
|
1932
|
-
|
|
1933
|
-
retainCount(): number;
|
|
1934
|
-
|
|
1935
|
-
self(): this;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
declare class MGLPointCollectionFeature extends MGLPointCollection implements MGLFeature {
|
|
1939
|
-
static alloc(): MGLPointCollectionFeature; // inherited from NSObject
|
|
1940
|
-
|
|
1941
|
-
static new(): MGLPointCollectionFeature; // inherited from NSObject
|
|
1942
|
-
|
|
1943
|
-
static pointCollectionWithCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): MGLPointCollectionFeature; // inherited from MGLPointCollection
|
|
1944
|
-
|
|
1945
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
1946
|
-
|
|
1947
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
1948
|
-
|
|
1949
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
1950
|
-
|
|
1951
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
1952
|
-
|
|
1953
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
1954
|
-
|
|
1955
|
-
identifier: any; // inherited from MGLFeature
|
|
1956
|
-
|
|
1957
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
1958
|
-
|
|
1959
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
1960
|
-
|
|
1961
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
1962
|
-
|
|
1963
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
1964
|
-
|
|
1965
|
-
readonly; // inherited from NSObjectProtocol
|
|
1966
|
-
|
|
1967
|
-
attributeForKey(key: string): any;
|
|
1968
|
-
|
|
1969
|
-
class(): typeof NSObject;
|
|
1970
|
-
|
|
1971
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
1972
|
-
|
|
1973
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
1974
|
-
|
|
1975
|
-
isEqual(object: any): boolean;
|
|
1976
|
-
|
|
1977
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
1978
|
-
|
|
1979
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
1980
|
-
|
|
1981
|
-
performSelector(aSelector: string): any;
|
|
1982
|
-
|
|
1983
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
1984
|
-
|
|
1985
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
1986
|
-
|
|
1987
|
-
respondsToSelector(aSelector: string): boolean;
|
|
1988
|
-
|
|
1989
|
-
retainCount(): number;
|
|
1990
|
-
|
|
1991
|
-
self(): this;
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
declare class MGLPointFeature extends MGLPointAnnotation implements MGLFeature {
|
|
1995
|
-
static alloc(): MGLPointFeature; // inherited from NSObject
|
|
1996
|
-
|
|
1997
|
-
static new(): MGLPointFeature; // inherited from NSObject
|
|
1998
|
-
|
|
1999
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
2000
|
-
|
|
2001
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2002
|
-
|
|
2003
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2004
|
-
|
|
2005
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2006
|
-
|
|
2007
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2008
|
-
|
|
2009
|
-
identifier: any; // inherited from MGLFeature
|
|
2010
|
-
|
|
2011
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2012
|
-
|
|
2013
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
2014
|
-
|
|
2015
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2016
|
-
|
|
2017
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
2018
|
-
|
|
2019
|
-
readonly; // inherited from NSObjectProtocol
|
|
2020
|
-
|
|
2021
|
-
attributeForKey(key: string): any;
|
|
2022
|
-
|
|
2023
|
-
class(): typeof NSObject;
|
|
2024
|
-
|
|
2025
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2026
|
-
|
|
2027
|
-
attributeForKey(key: string): any;
|
|
2028
|
-
|
|
2029
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
2030
|
-
|
|
2031
|
-
isEqual(object: any): boolean;
|
|
2032
|
-
|
|
2033
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2034
|
-
|
|
2035
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2036
|
-
|
|
2037
|
-
performSelector(aSelector: string): any;
|
|
2038
|
-
|
|
2039
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2040
|
-
|
|
2041
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2042
|
-
|
|
2043
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2044
|
-
|
|
2045
|
-
retainCount(): number;
|
|
2046
|
-
|
|
2047
|
-
self(): this;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
declare class MGLPointFeatureCluster extends MGLPointFeature implements MGLCluster {
|
|
2051
|
-
static alloc(): MGLPointFeatureCluster; // inherited from NSObject
|
|
2052
|
-
|
|
2053
|
-
static new(): MGLPointFeatureCluster; // inherited from NSObject
|
|
2054
|
-
|
|
2055
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
2056
|
-
|
|
2057
|
-
readonly clusterIdentifier: number; // inherited from MGLCluster
|
|
2058
|
-
|
|
2059
|
-
readonly clusterPointCount: number; // inherited from MGLCluster
|
|
2060
|
-
|
|
2061
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2062
|
-
|
|
2063
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2064
|
-
|
|
2065
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2066
|
-
|
|
2067
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2068
|
-
|
|
2069
|
-
identifier: any; // inherited from MGLFeature
|
|
2070
|
-
|
|
2071
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2072
|
-
|
|
2073
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
2074
|
-
|
|
2075
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2076
|
-
|
|
2077
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
2078
|
-
|
|
2079
|
-
readonly; // inherited from NSObjectProtocol
|
|
2080
|
-
|
|
2081
|
-
attributeForKey(key: string): any;
|
|
2082
|
-
|
|
2083
|
-
class(): typeof NSObject;
|
|
2084
|
-
|
|
2085
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2086
|
-
|
|
2087
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
2088
|
-
|
|
2089
|
-
isEqual(object: any): boolean;
|
|
2090
|
-
|
|
2091
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2092
|
-
|
|
2093
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2094
|
-
|
|
2095
|
-
performSelector(aSelector: string): any;
|
|
2096
|
-
|
|
2097
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2098
|
-
|
|
2099
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2100
|
-
|
|
2101
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2102
|
-
|
|
2103
|
-
retainCount(): number;
|
|
2104
|
-
|
|
2105
|
-
self(): this;
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
declare class MGLPolygon extends MGLMultiPoint implements MGLOverlay {
|
|
2109
|
-
static alloc(): MGLPolygon; // inherited from NSObject
|
|
2110
|
-
|
|
2111
|
-
static new(): MGLPolygon; // inherited from NSObject
|
|
2112
|
-
|
|
2113
|
-
static polygonWithCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): MGLPolygon;
|
|
2114
|
-
|
|
2115
|
-
static polygonWithCoordinatesCountInteriorPolygons(
|
|
2116
|
-
coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>,
|
|
2117
|
-
count: number,
|
|
2118
|
-
interiorPolygons: NSArray<MGLPolygon> | MGLPolygon[]
|
|
2119
|
-
): MGLPolygon;
|
|
2120
|
-
|
|
2121
|
-
readonly interiorPolygons: NSArray<MGLPolygon>;
|
|
2122
|
-
|
|
2123
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2124
|
-
|
|
2125
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2126
|
-
|
|
2127
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2128
|
-
|
|
2129
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2130
|
-
|
|
2131
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2132
|
-
|
|
2133
|
-
readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay
|
|
2134
|
-
|
|
2135
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
2136
|
-
|
|
2137
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2138
|
-
|
|
2139
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
2140
|
-
|
|
2141
|
-
readonly; // inherited from NSObjectProtocol
|
|
2142
|
-
|
|
2143
|
-
class(): typeof NSObject;
|
|
2144
|
-
|
|
2145
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2146
|
-
|
|
2147
|
-
intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean;
|
|
2148
|
-
|
|
2149
|
-
isEqual(object: any): boolean;
|
|
2150
|
-
|
|
2151
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2152
|
-
|
|
2153
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2154
|
-
|
|
2155
|
-
performSelector(aSelector: string): any;
|
|
2156
|
-
|
|
2157
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2158
|
-
|
|
2159
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2160
|
-
|
|
2161
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2162
|
-
|
|
2163
|
-
retainCount(): number;
|
|
2164
|
-
|
|
2165
|
-
self(): this;
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
declare class MGLPolygonFeature extends MGLPolygon implements MGLFeature {
|
|
2169
|
-
static alloc(): MGLPolygonFeature; // inherited from NSObject
|
|
2170
|
-
|
|
2171
|
-
static new(): MGLPolygonFeature; // inherited from NSObject
|
|
2172
|
-
|
|
2173
|
-
static polygonWithCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): MGLPolygonFeature; // inherited from MGLPolygon
|
|
2174
|
-
|
|
2175
|
-
static polygonWithCoordinatesCountInteriorPolygons(
|
|
2176
|
-
coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>,
|
|
2177
|
-
count: number,
|
|
2178
|
-
interiorPolygons: NSArray<MGLPolygon> | MGLPolygon[]
|
|
2179
|
-
): MGLPolygonFeature; // inherited from MGLPolygon
|
|
2180
|
-
|
|
2181
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
2182
|
-
|
|
2183
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2184
|
-
|
|
2185
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2186
|
-
|
|
2187
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2188
|
-
|
|
2189
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2190
|
-
|
|
2191
|
-
identifier: any; // inherited from MGLFeature
|
|
2192
|
-
|
|
2193
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2194
|
-
|
|
2195
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
2196
|
-
|
|
2197
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2198
|
-
|
|
2199
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
2200
|
-
|
|
2201
|
-
readonly; // inherited from NSObjectProtocol
|
|
2202
|
-
|
|
2203
|
-
attributeForKey(key: string): any;
|
|
2204
|
-
|
|
2205
|
-
class(): typeof NSObject;
|
|
2206
|
-
|
|
2207
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2208
|
-
|
|
2209
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
2210
|
-
|
|
2211
|
-
isEqual(object: any): boolean;
|
|
2212
|
-
|
|
2213
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2214
|
-
|
|
2215
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2216
|
-
|
|
2217
|
-
performSelector(aSelector: string): any;
|
|
2218
|
-
|
|
2219
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2220
|
-
|
|
2221
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2222
|
-
|
|
2223
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2224
|
-
|
|
2225
|
-
retainCount(): number;
|
|
2226
|
-
|
|
2227
|
-
self(): this;
|
|
2228
|
-
}
|
|
2229
|
-
|
|
2230
|
-
declare class MGLPolyline extends MGLMultiPoint implements MGLOverlay {
|
|
2231
|
-
static alloc(): MGLPolyline; // inherited from NSObject
|
|
2232
|
-
|
|
2233
|
-
static new(): MGLPolyline; // inherited from NSObject
|
|
2234
|
-
|
|
2235
|
-
static polylineWithCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): MGLPolyline;
|
|
2236
|
-
|
|
2237
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2238
|
-
|
|
2239
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2240
|
-
|
|
2241
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2242
|
-
|
|
2243
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2244
|
-
|
|
2245
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2246
|
-
|
|
2247
|
-
readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay
|
|
2248
|
-
|
|
2249
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
2250
|
-
|
|
2251
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2252
|
-
|
|
2253
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
2254
|
-
|
|
2255
|
-
readonly; // inherited from NSObjectProtocol
|
|
2256
|
-
|
|
2257
|
-
class(): typeof NSObject;
|
|
2258
|
-
|
|
2259
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2260
|
-
|
|
2261
|
-
intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean;
|
|
2262
|
-
|
|
2263
|
-
isEqual(object: any): boolean;
|
|
2264
|
-
|
|
2265
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2266
|
-
|
|
2267
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2268
|
-
|
|
2269
|
-
performSelector(aSelector: string): any;
|
|
2270
|
-
|
|
2271
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2272
|
-
|
|
2273
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2274
|
-
|
|
2275
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2276
|
-
|
|
2277
|
-
retainCount(): number;
|
|
2278
|
-
|
|
2279
|
-
self(): this;
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
|
-
declare class MGLPolylineFeature extends MGLPolyline implements MGLFeature {
|
|
2283
|
-
static alloc(): MGLPolylineFeature; // inherited from NSObject
|
|
2284
|
-
|
|
2285
|
-
static new(): MGLPolylineFeature; // inherited from NSObject
|
|
2286
|
-
|
|
2287
|
-
static polylineWithCoordinatesCount(coords: interop.Pointer | interop.Reference<CLLocationCoordinate2D>, count: number): MGLPolylineFeature; // inherited from MGLPolyline
|
|
2288
|
-
|
|
2289
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
2290
|
-
|
|
2291
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2292
|
-
|
|
2293
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2294
|
-
|
|
2295
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2296
|
-
|
|
2297
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2298
|
-
|
|
2299
|
-
identifier: any; // inherited from MGLFeature
|
|
2300
|
-
|
|
2301
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2302
|
-
|
|
2303
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
2304
|
-
|
|
2305
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2306
|
-
|
|
2307
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
2308
|
-
|
|
2309
|
-
readonly; // inherited from NSObjectProtocol
|
|
2310
|
-
|
|
2311
|
-
attributeForKey(key: string): any;
|
|
2312
|
-
|
|
2313
|
-
class(): typeof NSObject;
|
|
2314
|
-
|
|
2315
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2316
|
-
|
|
2317
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
2318
|
-
|
|
2319
|
-
isEqual(object: any): boolean;
|
|
2320
|
-
|
|
2321
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2322
|
-
|
|
2323
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2324
|
-
|
|
2325
|
-
performSelector(aSelector: string): any;
|
|
2326
|
-
|
|
2327
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2328
|
-
|
|
2329
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2330
|
-
|
|
2331
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2332
|
-
|
|
2333
|
-
retainCount(): number;
|
|
2334
|
-
|
|
2335
|
-
self(): this;
|
|
2336
|
-
}
|
|
2337
|
-
|
|
2338
|
-
declare class MGLRasterDEMSource extends MGLRasterTileSource {
|
|
2339
|
-
static alloc(): MGLRasterDEMSource; // inherited from NSObject
|
|
2340
|
-
|
|
2341
|
-
static new(): MGLRasterDEMSource; // inherited from NSObject
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
declare const enum MGLRasterResamplingMode {
|
|
2345
|
-
Linear = 0,
|
|
2346
|
-
|
|
2347
|
-
Nearest = 1,
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
declare class MGLRasterStyleLayer extends MGLForegroundStyleLayer {
|
|
2351
|
-
static alloc(): MGLRasterStyleLayer; // inherited from NSObject
|
|
2352
|
-
|
|
2353
|
-
static new(): MGLRasterStyleLayer; // inherited from NSObject
|
|
2354
|
-
|
|
2355
|
-
maximumRasterBrightness: NSExpression;
|
|
2356
|
-
|
|
2357
|
-
maximumRasterBrightnessTransition: MGLTransition;
|
|
2358
|
-
|
|
2359
|
-
minimumRasterBrightness: NSExpression;
|
|
2360
|
-
|
|
2361
|
-
minimumRasterBrightnessTransition: MGLTransition;
|
|
2362
|
-
|
|
2363
|
-
rasterContrast: NSExpression;
|
|
2364
|
-
|
|
2365
|
-
rasterContrastTransition: MGLTransition;
|
|
2366
|
-
|
|
2367
|
-
rasterFadeDuration: NSExpression;
|
|
2368
|
-
|
|
2369
|
-
rasterHueRotation: NSExpression;
|
|
2370
|
-
|
|
2371
|
-
rasterHueRotationTransition: MGLTransition;
|
|
2372
|
-
|
|
2373
|
-
rasterOpacity: NSExpression;
|
|
2374
|
-
|
|
2375
|
-
rasterOpacityTransition: MGLTransition;
|
|
2376
|
-
|
|
2377
|
-
rasterResamplingMode: NSExpression;
|
|
2378
|
-
|
|
2379
|
-
rasterSaturation: NSExpression;
|
|
2380
|
-
|
|
2381
|
-
rasterSaturationTransition: MGLTransition;
|
|
2382
|
-
|
|
2383
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
2384
|
-
|
|
2385
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
declare class MGLRasterTileSource extends MGLTileSource {
|
|
2389
|
-
static alloc(): MGLRasterTileSource; // inherited from NSObject
|
|
2390
|
-
|
|
2391
|
-
static new(): MGLRasterTileSource; // inherited from NSObject
|
|
2392
|
-
|
|
2393
|
-
constructor(o: { identifier: string; configurationURL: NSURL });
|
|
2394
|
-
|
|
2395
|
-
constructor(o: { identifier: string; configurationURL: NSURL; tileSize: number });
|
|
2396
|
-
|
|
2397
|
-
constructor(o: { identifier: string; tileURLTemplates: NSArray<string> | string[]; options: NSDictionary<string, any> });
|
|
2398
|
-
|
|
2399
|
-
initWithIdentifierConfigurationURL(identifier: string, configurationURL: NSURL): this;
|
|
2400
|
-
|
|
2401
|
-
initWithIdentifierConfigurationURLTileSize(identifier: string, configurationURL: NSURL, tileSize: number): this;
|
|
2402
|
-
|
|
2403
|
-
initWithIdentifierTileURLTemplatesOptions(identifier: string, tileURLTemplates: NSArray<string> | string[], options: NSDictionary<string, any>): this;
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
declare var MGLRedundantLayerException: string;
|
|
2407
|
-
|
|
2408
|
-
declare var MGLRedundantLayerIdentifierException: string;
|
|
2409
|
-
|
|
2410
|
-
declare var MGLRedundantSourceException: string;
|
|
2411
|
-
|
|
2412
|
-
declare var MGLRedundantSourceIdentifierException: string;
|
|
2413
|
-
|
|
2414
|
-
declare const enum MGLResourceKind {
|
|
2415
|
-
Unknown = 0,
|
|
2416
|
-
|
|
2417
|
-
Style = 1,
|
|
2418
|
-
|
|
2419
|
-
Source = 2,
|
|
2420
|
-
|
|
2421
|
-
Tile = 3,
|
|
2422
|
-
|
|
2423
|
-
Glyphs = 4,
|
|
2424
|
-
|
|
2425
|
-
SpriteImage = 5,
|
|
2426
|
-
|
|
2427
|
-
SpriteJSON = 6,
|
|
2428
|
-
|
|
2429
|
-
Image = 7,
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
declare var MGLResourceNotFoundException: string;
|
|
2433
|
-
|
|
2434
|
-
declare class MGLShape extends NSObject implements MGLAnnotation, NSSecureCoding {
|
|
2435
|
-
static alloc(): MGLShape; // inherited from NSObject
|
|
2436
|
-
|
|
2437
|
-
static new(): MGLShape; // inherited from NSObject
|
|
2438
|
-
|
|
2439
|
-
static shapeWithDataEncodingError(data: NSData, encoding: number): MGLShape;
|
|
2440
|
-
|
|
2441
|
-
subtitle: string;
|
|
2442
|
-
|
|
2443
|
-
title: string;
|
|
2444
|
-
|
|
2445
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2446
|
-
|
|
2447
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2448
|
-
|
|
2449
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2450
|
-
|
|
2451
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2452
|
-
|
|
2453
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2454
|
-
|
|
2455
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2456
|
-
|
|
2457
|
-
readonly; // inherited from NSObjectProtocol
|
|
2458
|
-
|
|
2459
|
-
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
2460
|
-
|
|
2461
|
-
constructor(o: { coder: NSCoder }); // inherited from NSCoding
|
|
2462
|
-
|
|
2463
|
-
class(): typeof NSObject;
|
|
2464
|
-
|
|
2465
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2466
|
-
|
|
2467
|
-
encodeWithCoder(aCoder: NSCoder): void;
|
|
2468
|
-
|
|
2469
|
-
geoJSONDataUsingEncoding(encoding: number): NSData;
|
|
2470
|
-
|
|
2471
|
-
initWithCoder(aDecoder: NSCoder): this;
|
|
2472
|
-
|
|
2473
|
-
isEqual(object: any): boolean;
|
|
2474
|
-
|
|
2475
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2476
|
-
|
|
2477
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2478
|
-
|
|
2479
|
-
performSelector(aSelector: string): any;
|
|
2480
|
-
|
|
2481
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2482
|
-
|
|
2483
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2484
|
-
|
|
2485
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2486
|
-
|
|
2487
|
-
retainCount(): number;
|
|
2488
|
-
|
|
2489
|
-
self(): this;
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
declare class MGLShapeCollection extends MGLShape {
|
|
2493
|
-
static alloc(): MGLShapeCollection; // inherited from NSObject
|
|
2494
|
-
|
|
2495
|
-
static new(): MGLShapeCollection; // inherited from NSObject
|
|
2496
|
-
|
|
2497
|
-
static shapeCollectionWithShapes(shapes: NSArray<MGLShape> | MGLShape[]): MGLShapeCollection;
|
|
2498
|
-
|
|
2499
|
-
readonly shapes: NSArray<MGLShape>;
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
declare class MGLShapeCollectionFeature extends MGLShapeCollection implements MGLFeature {
|
|
2503
|
-
static alloc(): MGLShapeCollectionFeature; // inherited from NSObject
|
|
2504
|
-
|
|
2505
|
-
static new(): MGLShapeCollectionFeature; // inherited from NSObject
|
|
2506
|
-
|
|
2507
|
-
static shapeCollectionWithShapes(shapes: NSArray<MGLShape> | MGLShape[]): MGLShapeCollectionFeature; // inherited from MGLShapeCollection
|
|
2508
|
-
|
|
2509
|
-
attributes: NSDictionary<string, any>; // inherited from MGLFeature
|
|
2510
|
-
|
|
2511
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
2512
|
-
|
|
2513
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2514
|
-
|
|
2515
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2516
|
-
|
|
2517
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2518
|
-
|
|
2519
|
-
identifier: any; // inherited from MGLFeature
|
|
2520
|
-
|
|
2521
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2522
|
-
|
|
2523
|
-
readonly subtitle: string; // inherited from MGLAnnotation
|
|
2524
|
-
|
|
2525
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2526
|
-
|
|
2527
|
-
readonly title: string; // inherited from MGLAnnotation
|
|
2528
|
-
|
|
2529
|
-
readonly; // inherited from NSObjectProtocol
|
|
2530
|
-
|
|
2531
|
-
attributeForKey(key: string): any;
|
|
2532
|
-
|
|
2533
|
-
class(): typeof NSObject;
|
|
2534
|
-
|
|
2535
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2536
|
-
|
|
2537
|
-
geoJSONDictionary(): NSDictionary<string, any>;
|
|
2538
|
-
|
|
2539
|
-
isEqual(object: any): boolean;
|
|
2540
|
-
|
|
2541
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2542
|
-
|
|
2543
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2544
|
-
|
|
2545
|
-
performSelector(aSelector: string): any;
|
|
2546
|
-
|
|
2547
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2548
|
-
|
|
2549
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2550
|
-
|
|
2551
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2552
|
-
|
|
2553
|
-
retainCount(): number;
|
|
2554
|
-
|
|
2555
|
-
self(): this;
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
declare class MGLShapeOfflineRegion extends NSObject implements MGLOfflineRegion, NSCopying, NSSecureCoding {
|
|
2559
|
-
static alloc(): MGLShapeOfflineRegion; // inherited from NSObject
|
|
2560
|
-
|
|
2561
|
-
static new(): MGLShapeOfflineRegion; // inherited from NSObject
|
|
2562
|
-
|
|
2563
|
-
readonly maximumZoomLevel: number;
|
|
2564
|
-
|
|
2565
|
-
readonly minimumZoomLevel: number;
|
|
2566
|
-
|
|
2567
|
-
readonly shape: MGLShape;
|
|
2568
|
-
|
|
2569
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
2570
|
-
|
|
2571
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
2572
|
-
|
|
2573
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
2574
|
-
|
|
2575
|
-
includesIdeographicGlyphs: boolean; // inherited from MGLOfflineRegion
|
|
2576
|
-
|
|
2577
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
2578
|
-
|
|
2579
|
-
readonly styleURL: NSURL; // inherited from MGLOfflineRegion
|
|
2580
|
-
|
|
2581
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
2582
|
-
|
|
2583
|
-
readonly; // inherited from NSObjectProtocol
|
|
2584
|
-
|
|
2585
|
-
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
2586
|
-
|
|
2587
|
-
constructor(o: { coder: NSCoder }); // inherited from NSCoding
|
|
2588
|
-
|
|
2589
|
-
constructor(o: { styleURL: NSURL; shape: MGLShape; fromZoomLevel: number; toZoomLevel: number });
|
|
2590
|
-
|
|
2591
|
-
class(): typeof NSObject;
|
|
2592
|
-
|
|
2593
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
2594
|
-
|
|
2595
|
-
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
2596
|
-
|
|
2597
|
-
encodeWithCoder(aCoder: NSCoder): void;
|
|
2598
|
-
|
|
2599
|
-
initWithCoder(aDecoder: NSCoder): this;
|
|
2600
|
-
|
|
2601
|
-
initWithStyleURLShapeFromZoomLevelToZoomLevel(styleURL: NSURL, shape: MGLShape, minimumZoomLevel: number, maximumZoomLevel: number): this;
|
|
2602
|
-
|
|
2603
|
-
isEqual(object: any): boolean;
|
|
2604
|
-
|
|
2605
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
2606
|
-
|
|
2607
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
2608
|
-
|
|
2609
|
-
performSelector(aSelector: string): any;
|
|
2610
|
-
|
|
2611
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
2612
|
-
|
|
2613
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
2614
|
-
|
|
2615
|
-
respondsToSelector(aSelector: string): boolean;
|
|
2616
|
-
|
|
2617
|
-
retainCount(): number;
|
|
2618
|
-
|
|
2619
|
-
self(): this;
|
|
2620
|
-
}
|
|
2621
|
-
|
|
2622
|
-
declare class MGLShapeSource extends MGLSource {
|
|
2623
|
-
static alloc(): MGLShapeSource; // inherited from NSObject
|
|
2624
|
-
|
|
2625
|
-
static new(): MGLShapeSource; // inherited from NSObject
|
|
2626
|
-
|
|
2627
|
-
URL: NSURL;
|
|
2628
|
-
|
|
2629
|
-
shape: MGLShape;
|
|
2630
|
-
|
|
2631
|
-
constructor(o: { identifier: string; features: NSArray<MGLShape> | MGLShape[]; options: NSDictionary<string, any> });
|
|
2632
|
-
|
|
2633
|
-
constructor(o: { identifier: string; shape: MGLShape; options: NSDictionary<string, any> });
|
|
2634
|
-
|
|
2635
|
-
constructor(o: { identifier: string; shapes: NSArray<MGLShape> | MGLShape[]; options: NSDictionary<string, any> });
|
|
2636
|
-
|
|
2637
|
-
constructor(o: { identifier: string; URL: NSURL; options: NSDictionary<string, any> });
|
|
2638
|
-
|
|
2639
|
-
childrenOfCluster(cluster: MGLPointFeatureCluster): NSArray<MGLFeature>;
|
|
2640
|
-
|
|
2641
|
-
featuresMatchingPredicate(predicate: NSPredicate): NSArray<MGLFeature>;
|
|
2642
|
-
|
|
2643
|
-
initWithIdentifierFeaturesOptions(identifier: string, features: NSArray<MGLShape> | MGLShape[], options: NSDictionary<string, any>): this;
|
|
2644
|
-
|
|
2645
|
-
initWithIdentifierShapeOptions(identifier: string, shape: MGLShape, options: NSDictionary<string, any>): this;
|
|
2646
|
-
|
|
2647
|
-
initWithIdentifierShapesOptions(identifier: string, shapes: NSArray<MGLShape> | MGLShape[], options: NSDictionary<string, any>): this;
|
|
2648
|
-
|
|
2649
|
-
initWithIdentifierURLOptions(identifier: string, url: NSURL, options: NSDictionary<string, any>): this;
|
|
2650
|
-
|
|
2651
|
-
leavesOfClusterOffsetLimit(cluster: MGLPointFeatureCluster, offset: number, limit: number): NSArray<MGLFeature>;
|
|
2652
|
-
|
|
2653
|
-
zoomLevelForExpandingCluster(cluster: MGLPointFeatureCluster): number;
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
declare var MGLShapeSourceOptionBuffer: string;
|
|
2657
|
-
|
|
2658
|
-
declare var MGLShapeSourceOptionClipsCoordinates: string;
|
|
2659
|
-
|
|
2660
|
-
declare var MGLShapeSourceOptionClusterRadius: string;
|
|
2661
|
-
|
|
2662
|
-
declare var MGLShapeSourceOptionClustered: string;
|
|
2663
|
-
|
|
2664
|
-
declare var MGLShapeSourceOptionClusterProperties: string;
|
|
2665
|
-
|
|
2666
|
-
declare var MGLShapeSourceOptionLineDistanceMetrics: string;
|
|
2667
|
-
|
|
2668
|
-
declare var MGLShapeSourceOptionMaximumZoomLevel: string;
|
|
2669
|
-
|
|
2670
|
-
declare var MGLShapeSourceOptionMaximumZoomLevelForClustering: string;
|
|
2671
|
-
|
|
2672
|
-
declare var MGLShapeSourceOptionMinimumZoomLevel: string;
|
|
2673
|
-
|
|
2674
|
-
declare var MGLShapeSourceOptionSimplificationTolerance: string;
|
|
2675
|
-
|
|
2676
|
-
declare var MGLShapeSourceOptionWrapsCoordinates: string;
|
|
2677
|
-
|
|
2678
|
-
declare class MGLSource extends NSObject {
|
|
2679
|
-
static alloc(): MGLSource; // inherited from NSObject
|
|
2680
|
-
|
|
2681
|
-
static new(): MGLSource; // inherited from NSObject
|
|
2682
|
-
|
|
2683
|
-
identifier: string;
|
|
2684
|
-
|
|
2685
|
-
constructor(o: { identifier: string });
|
|
2686
|
-
|
|
2687
|
-
initWithIdentifier(identifier: string): this;
|
|
2688
|
-
}
|
|
2689
|
-
|
|
2690
|
-
interface MGLSphericalPosition {
|
|
2691
|
-
radial: number;
|
|
2692
|
-
azimuthal: number;
|
|
2693
|
-
polar: number;
|
|
2694
|
-
}
|
|
2695
|
-
declare var MGLSphericalPosition: interop.StructType<MGLSphericalPosition>;
|
|
2696
|
-
|
|
2697
|
-
declare function MGLStringFromMetricType(metricType: MGLMetricType): string;
|
|
2698
|
-
|
|
2699
|
-
declare class MGLStyle extends NSObject {
|
|
2700
|
-
static alloc(): MGLStyle; // inherited from NSObject
|
|
2701
|
-
|
|
2702
|
-
static darkStyleURLWithVersion(version: number): NSURL;
|
|
2703
|
-
|
|
2704
|
-
static lightStyleURLWithVersion(version: number): NSURL;
|
|
2705
|
-
|
|
2706
|
-
static new(): MGLStyle; // inherited from NSObject
|
|
2707
|
-
|
|
2708
|
-
static outdoorsStyleURLWithVersion(version: number): NSURL;
|
|
2709
|
-
|
|
2710
|
-
static satelliteStreetsStyleURLWithVersion(version: number): NSURL;
|
|
2711
|
-
|
|
2712
|
-
static satelliteStyleURLWithVersion(version: number): NSURL;
|
|
2713
|
-
|
|
2714
|
-
static streetsStyleURLWithVersion(version: number): NSURL;
|
|
2715
|
-
|
|
2716
|
-
layers: NSArray<MGLStyleLayer>;
|
|
2717
|
-
|
|
2718
|
-
light: MGLLight;
|
|
2719
|
-
|
|
2720
|
-
readonly name: string;
|
|
2721
|
-
|
|
2722
|
-
performsPlacementTransitions: boolean;
|
|
2723
|
-
|
|
2724
|
-
sources: NSSet<MGLSource>;
|
|
2725
|
-
|
|
2726
|
-
transition: MGLTransition;
|
|
2727
|
-
|
|
2728
|
-
static readonly darkStyleURL: NSURL;
|
|
2729
|
-
|
|
2730
|
-
static readonly lightStyleURL: NSURL;
|
|
2731
|
-
|
|
2732
|
-
static readonly outdoorsStyleURL: NSURL;
|
|
2733
|
-
|
|
2734
|
-
static readonly satelliteStreetsStyleURL: NSURL;
|
|
2735
|
-
|
|
2736
|
-
static readonly satelliteStyleURL: NSURL;
|
|
2737
|
-
|
|
2738
|
-
static readonly streetsStyleURL: NSURL;
|
|
2739
|
-
|
|
2740
|
-
addLayer(layer: MGLStyleLayer): void;
|
|
2741
|
-
|
|
2742
|
-
addSource(source: MGLSource): void;
|
|
2743
|
-
|
|
2744
|
-
imageForName(name: string): UIImage;
|
|
2745
|
-
|
|
2746
|
-
insertLayerAboveLayer(layer: MGLStyleLayer, sibling: MGLStyleLayer): void;
|
|
2747
|
-
|
|
2748
|
-
insertLayerAtIndex(layer: MGLStyleLayer, index: number): void;
|
|
2749
|
-
|
|
2750
|
-
insertLayerBelowLayer(layer: MGLStyleLayer, sibling: MGLStyleLayer): void;
|
|
2751
|
-
|
|
2752
|
-
layerWithIdentifier(identifier: string): MGLStyleLayer;
|
|
2753
|
-
|
|
2754
|
-
localizeLabelsIntoLocale(locale: NSLocale): void;
|
|
2755
|
-
|
|
2756
|
-
removeImageForName(name: string): void;
|
|
2757
|
-
|
|
2758
|
-
removeLayer(layer: MGLStyleLayer): void;
|
|
2759
|
-
|
|
2760
|
-
removeSource(source: MGLSource): void;
|
|
2761
|
-
|
|
2762
|
-
removeSourceError(source: MGLSource): boolean;
|
|
2763
|
-
|
|
2764
|
-
setImageForName(image: UIImage, name: string): void;
|
|
2765
|
-
|
|
2766
|
-
sourceWithIdentifier(identifier: string): MGLSource;
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
declare var MGLStyleDefaultVersion: number;
|
|
2770
|
-
|
|
2771
|
-
declare class MGLStyleLayer extends NSObject {
|
|
2772
|
-
static alloc(): MGLStyleLayer; // inherited from NSObject
|
|
2773
|
-
|
|
2774
|
-
static new(): MGLStyleLayer; // inherited from NSObject
|
|
2775
|
-
|
|
2776
|
-
readonly identifier: string;
|
|
2777
|
-
|
|
2778
|
-
maximumZoomLevel: number;
|
|
2779
|
-
|
|
2780
|
-
minimumZoomLevel: number;
|
|
2781
|
-
|
|
2782
|
-
visible: boolean;
|
|
2783
|
-
}
|
|
2784
|
-
|
|
2785
|
-
interface MGLStyleLayerDrawingContext {
|
|
2786
|
-
size: CGSize;
|
|
2787
|
-
centerCoordinate: CLLocationCoordinate2D;
|
|
2788
|
-
zoomLevel: number;
|
|
2789
|
-
direction: number;
|
|
2790
|
-
pitch: number;
|
|
2791
|
-
fieldOfView: number;
|
|
2792
|
-
projectionMatrix: MGLMatrix4;
|
|
2793
|
-
}
|
|
2794
|
-
declare var MGLStyleLayerDrawingContext: interop.StructType<MGLStyleLayerDrawingContext>;
|
|
2795
|
-
|
|
2796
|
-
declare const enum MGLSymbolPlacement {
|
|
2797
|
-
Point = 0,
|
|
2798
|
-
|
|
2799
|
-
Line = 1,
|
|
2800
|
-
|
|
2801
|
-
LineCenter = 2,
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
declare class MGLSymbolStyleLayer extends MGLVectorStyleLayer {
|
|
2805
|
-
static alloc(): MGLSymbolStyleLayer; // inherited from NSObject
|
|
2806
|
-
|
|
2807
|
-
static new(): MGLSymbolStyleLayer; // inherited from NSObject
|
|
2808
|
-
|
|
2809
|
-
iconAllowsOverlap: NSExpression;
|
|
2810
|
-
|
|
2811
|
-
iconAnchor: NSExpression;
|
|
2812
|
-
|
|
2813
|
-
iconColor: NSExpression;
|
|
2814
|
-
|
|
2815
|
-
iconColorTransition: MGLTransition;
|
|
2816
|
-
|
|
2817
|
-
iconHaloBlur: NSExpression;
|
|
2818
|
-
|
|
2819
|
-
iconHaloBlurTransition: MGLTransition;
|
|
2820
|
-
|
|
2821
|
-
iconHaloColor: NSExpression;
|
|
2822
|
-
|
|
2823
|
-
iconHaloColorTransition: MGLTransition;
|
|
2824
|
-
|
|
2825
|
-
iconHaloWidth: NSExpression;
|
|
2826
|
-
|
|
2827
|
-
iconHaloWidthTransition: MGLTransition;
|
|
2828
|
-
|
|
2829
|
-
iconIgnoresPlacement: NSExpression;
|
|
2830
|
-
|
|
2831
|
-
iconImageName: NSExpression;
|
|
2832
|
-
|
|
2833
|
-
iconOffset: NSExpression;
|
|
2834
|
-
|
|
2835
|
-
iconOpacity: NSExpression;
|
|
2836
|
-
|
|
2837
|
-
iconOpacityTransition: MGLTransition;
|
|
2838
|
-
|
|
2839
|
-
iconOptional: NSExpression;
|
|
2840
|
-
|
|
2841
|
-
iconPadding: NSExpression;
|
|
2842
|
-
|
|
2843
|
-
iconPitchAlignment: NSExpression;
|
|
2844
|
-
|
|
2845
|
-
iconRotation: NSExpression;
|
|
2846
|
-
|
|
2847
|
-
iconRotationAlignment: NSExpression;
|
|
2848
|
-
|
|
2849
|
-
iconScale: NSExpression;
|
|
2850
|
-
|
|
2851
|
-
iconTextFit: NSExpression;
|
|
2852
|
-
|
|
2853
|
-
iconTextFitPadding: NSExpression;
|
|
2854
|
-
|
|
2855
|
-
iconTranslation: NSExpression;
|
|
2856
|
-
|
|
2857
|
-
iconTranslationAnchor: NSExpression;
|
|
2858
|
-
|
|
2859
|
-
iconTranslationTransition: MGLTransition;
|
|
2860
|
-
|
|
2861
|
-
keepsIconUpright: NSExpression;
|
|
2862
|
-
|
|
2863
|
-
keepsTextUpright: NSExpression;
|
|
2864
|
-
|
|
2865
|
-
maximumTextAngle: NSExpression;
|
|
2866
|
-
|
|
2867
|
-
maximumTextWidth: NSExpression;
|
|
2868
|
-
|
|
2869
|
-
symbolAvoidsEdges: NSExpression;
|
|
2870
|
-
|
|
2871
|
-
symbolPlacement: NSExpression;
|
|
2872
|
-
|
|
2873
|
-
symbolSortKey: NSExpression;
|
|
2874
|
-
|
|
2875
|
-
symbolSpacing: NSExpression;
|
|
2876
|
-
|
|
2877
|
-
symbolZOrder: NSExpression;
|
|
2878
|
-
|
|
2879
|
-
text: NSExpression;
|
|
2880
|
-
|
|
2881
|
-
textAllowsOverlap: NSExpression;
|
|
2882
|
-
|
|
2883
|
-
textAnchor: NSExpression;
|
|
2884
|
-
|
|
2885
|
-
textColor: NSExpression;
|
|
2886
|
-
|
|
2887
|
-
textColorTransition: MGLTransition;
|
|
2888
|
-
|
|
2889
|
-
textFontNames: NSExpression;
|
|
2890
|
-
|
|
2891
|
-
textFontSize: NSExpression;
|
|
2892
|
-
|
|
2893
|
-
textHaloBlur: NSExpression;
|
|
2894
|
-
|
|
2895
|
-
textHaloBlurTransition: MGLTransition;
|
|
2896
|
-
|
|
2897
|
-
textHaloColor: NSExpression;
|
|
2898
|
-
|
|
2899
|
-
textHaloColorTransition: MGLTransition;
|
|
2900
|
-
|
|
2901
|
-
textHaloWidth: NSExpression;
|
|
2902
|
-
|
|
2903
|
-
textHaloWidthTransition: MGLTransition;
|
|
2904
|
-
|
|
2905
|
-
textIgnoresPlacement: NSExpression;
|
|
2906
|
-
|
|
2907
|
-
textJustification: NSExpression;
|
|
2908
|
-
|
|
2909
|
-
textLetterSpacing: NSExpression;
|
|
2910
|
-
|
|
2911
|
-
textLineHeight: NSExpression;
|
|
2912
|
-
|
|
2913
|
-
textOffset: NSExpression;
|
|
2914
|
-
|
|
2915
|
-
textOpacity: NSExpression;
|
|
2916
|
-
|
|
2917
|
-
textOpacityTransition: MGLTransition;
|
|
2918
|
-
|
|
2919
|
-
textOptional: NSExpression;
|
|
2920
|
-
|
|
2921
|
-
textPadding: NSExpression;
|
|
2922
|
-
|
|
2923
|
-
textPitchAlignment: NSExpression;
|
|
2924
|
-
|
|
2925
|
-
textRadialOffset: NSExpression;
|
|
2926
|
-
|
|
2927
|
-
textRotation: NSExpression;
|
|
2928
|
-
|
|
2929
|
-
textRotationAlignment: NSExpression;
|
|
2930
|
-
|
|
2931
|
-
textTransform: NSExpression;
|
|
2932
|
-
|
|
2933
|
-
textTranslation: NSExpression;
|
|
2934
|
-
|
|
2935
|
-
textTranslationAnchor: NSExpression;
|
|
2936
|
-
|
|
2937
|
-
textTranslationTransition: MGLTransition;
|
|
2938
|
-
|
|
2939
|
-
textVariableAnchor: NSExpression;
|
|
2940
|
-
|
|
2941
|
-
constructor(o: { identifier: string; source: MGLSource });
|
|
2942
|
-
|
|
2943
|
-
initWithIdentifierSource(identifier: string, source: MGLSource): this;
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2946
|
-
declare const enum MGLSymbolZOrder {
|
|
2947
|
-
Auto = 0,
|
|
2948
|
-
|
|
2949
|
-
ViewportY = 1,
|
|
2950
|
-
|
|
2951
|
-
Source = 2,
|
|
2952
|
-
}
|
|
2953
|
-
|
|
2954
|
-
declare const enum MGLTextAnchor {
|
|
2955
|
-
Center = 0,
|
|
2956
|
-
|
|
2957
|
-
Left = 1,
|
|
2958
|
-
|
|
2959
|
-
Right = 2,
|
|
2960
|
-
|
|
2961
|
-
Top = 3,
|
|
2962
|
-
|
|
2963
|
-
Bottom = 4,
|
|
2964
|
-
|
|
2965
|
-
TopLeft = 5,
|
|
2966
|
-
|
|
2967
|
-
TopRight = 6,
|
|
2968
|
-
|
|
2969
|
-
BottomLeft = 7,
|
|
2970
|
-
|
|
2971
|
-
BottomRight = 8,
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
|
-
declare const enum MGLTextJustification {
|
|
2975
|
-
Auto = 0,
|
|
2976
|
-
|
|
2977
|
-
Left = 1,
|
|
2978
|
-
|
|
2979
|
-
Center = 2,
|
|
2980
|
-
|
|
2981
|
-
Right = 3,
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
declare const enum MGLTextPitchAlignment {
|
|
2985
|
-
Map = 0,
|
|
2986
|
-
|
|
2987
|
-
Viewport = 1,
|
|
2988
|
-
|
|
2989
|
-
Auto = 2,
|
|
2990
|
-
}
|
|
2991
|
-
|
|
2992
|
-
declare const enum MGLTextRotationAlignment {
|
|
2993
|
-
Map = 0,
|
|
2994
|
-
|
|
2995
|
-
Viewport = 1,
|
|
2996
|
-
|
|
2997
|
-
Auto = 2,
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
declare const enum MGLTextTransform {
|
|
3001
|
-
None = 0,
|
|
3002
|
-
|
|
3003
|
-
Uppercase = 1,
|
|
3004
|
-
|
|
3005
|
-
Lowercase = 2,
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
declare const enum MGLTextTranslationAnchor {
|
|
3009
|
-
Map = 0,
|
|
3010
|
-
|
|
3011
|
-
Viewport = 1,
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
declare const enum MGLTileCoordinateSystem {
|
|
3015
|
-
XYZ = 0,
|
|
3016
|
-
|
|
3017
|
-
TMS = 1,
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
declare class MGLTilePyramidOfflineRegion extends NSObject implements MGLOfflineRegion, NSCopying, NSSecureCoding {
|
|
3021
|
-
static alloc(): MGLTilePyramidOfflineRegion; // inherited from NSObject
|
|
3022
|
-
|
|
3023
|
-
static new(): MGLTilePyramidOfflineRegion; // inherited from NSObject
|
|
3024
|
-
|
|
3025
|
-
readonly bounds: MGLCoordinateBounds;
|
|
3026
|
-
|
|
3027
|
-
readonly maximumZoomLevel: number;
|
|
3028
|
-
|
|
3029
|
-
readonly minimumZoomLevel: number;
|
|
3030
|
-
|
|
3031
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
3032
|
-
|
|
3033
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
3034
|
-
|
|
3035
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
3036
|
-
|
|
3037
|
-
includesIdeographicGlyphs: boolean; // inherited from MGLOfflineRegion
|
|
3038
|
-
|
|
3039
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
3040
|
-
|
|
3041
|
-
readonly styleURL: NSURL; // inherited from MGLOfflineRegion
|
|
3042
|
-
|
|
3043
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
3044
|
-
|
|
3045
|
-
readonly; // inherited from NSObjectProtocol
|
|
3046
|
-
|
|
3047
|
-
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
3048
|
-
|
|
3049
|
-
constructor(o: { coder: NSCoder }); // inherited from NSCoding
|
|
3050
|
-
|
|
3051
|
-
constructor(o: { styleURL: NSURL; bounds: MGLCoordinateBounds; fromZoomLevel: number; toZoomLevel: number });
|
|
3052
|
-
|
|
3053
|
-
class(): typeof NSObject;
|
|
3054
|
-
|
|
3055
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
3056
|
-
|
|
3057
|
-
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
3058
|
-
|
|
3059
|
-
encodeWithCoder(aCoder: NSCoder): void;
|
|
3060
|
-
|
|
3061
|
-
initWithCoder(aDecoder: NSCoder): this;
|
|
3062
|
-
|
|
3063
|
-
initWithStyleURLBoundsFromZoomLevelToZoomLevel(styleURL: NSURL, bounds: MGLCoordinateBounds, minimumZoomLevel: number, maximumZoomLevel: number): this;
|
|
3064
|
-
|
|
3065
|
-
isEqual(object: any): boolean;
|
|
3066
|
-
|
|
3067
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
3068
|
-
|
|
3069
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
3070
|
-
|
|
3071
|
-
performSelector(aSelector: string): any;
|
|
3072
|
-
|
|
3073
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
3074
|
-
|
|
3075
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
3076
|
-
|
|
3077
|
-
respondsToSelector(aSelector: string): boolean;
|
|
3078
|
-
|
|
3079
|
-
retainCount(): number;
|
|
3080
|
-
|
|
3081
|
-
self(): this;
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
|
-
declare class MGLTileSource extends MGLSource {
|
|
3085
|
-
static alloc(): MGLTileSource; // inherited from NSObject
|
|
3086
|
-
|
|
3087
|
-
static new(): MGLTileSource; // inherited from NSObject
|
|
3088
|
-
|
|
3089
|
-
readonly attributionInfos: NSArray<MGLAttributionInfo>;
|
|
3090
|
-
|
|
3091
|
-
readonly configurationURL: NSURL;
|
|
3092
|
-
}
|
|
3093
|
-
|
|
3094
|
-
declare var MGLTileSourceOptionAttributionHTMLString: string;
|
|
3095
|
-
|
|
3096
|
-
declare var MGLTileSourceOptionAttributionInfos: string;
|
|
3097
|
-
|
|
3098
|
-
declare var MGLTileSourceOptionCoordinateBounds: string;
|
|
3099
|
-
|
|
3100
|
-
declare var MGLTileSourceOptionDEMEncoding: string;
|
|
3101
|
-
|
|
3102
|
-
declare var MGLTileSourceOptionMaximumZoomLevel: string;
|
|
3103
|
-
|
|
3104
|
-
declare var MGLTileSourceOptionMinimumZoomLevel: string;
|
|
3105
|
-
|
|
3106
|
-
declare var MGLTileSourceOptionTileCoordinateSystem: string;
|
|
3107
|
-
|
|
3108
|
-
declare var MGLTileSourceOptionTileSize: string;
|
|
3109
|
-
|
|
3110
|
-
interface MGLTransition {
|
|
3111
|
-
duration: number;
|
|
3112
|
-
delay: number;
|
|
2
|
+
declare class MapView extends UIView {
|
|
3113
3
|
}
|
|
3114
|
-
declare var MGLTransition: interop.StructType<MGLTransition>;
|
|
3115
4
|
|
|
3116
|
-
declare
|
|
3117
|
-
|
|
3118
|
-
declare class MGLUserLocation extends NSObject implements MGLAnnotation, NSSecureCoding {
|
|
3119
|
-
static alloc(): MGLUserLocation; // inherited from NSObject
|
|
3120
|
-
|
|
3121
|
-
static new(): MGLUserLocation; // inherited from NSObject
|
|
3122
|
-
|
|
3123
|
-
readonly heading: CLHeading;
|
|
3124
|
-
|
|
3125
|
-
readonly location: CLLocation;
|
|
3126
|
-
|
|
3127
|
-
subtitle: string;
|
|
3128
|
-
|
|
3129
|
-
title: string;
|
|
3130
|
-
|
|
3131
|
-
readonly updating: boolean;
|
|
3132
|
-
|
|
3133
|
-
readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation
|
|
3134
|
-
|
|
3135
|
-
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
3136
|
-
|
|
3137
|
-
readonly description: string; // inherited from NSObjectProtocol
|
|
3138
|
-
|
|
3139
|
-
readonly hash: number; // inherited from NSObjectProtocol
|
|
3140
|
-
|
|
3141
|
-
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
3142
|
-
|
|
3143
|
-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
3144
|
-
|
|
3145
|
-
readonly; // inherited from NSObjectProtocol
|
|
3146
|
-
|
|
3147
|
-
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
3148
|
-
|
|
3149
|
-
constructor(o: { coder: NSCoder }); // inherited from NSCoding
|
|
3150
|
-
|
|
3151
|
-
class(): typeof NSObject;
|
|
3152
|
-
|
|
3153
|
-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
3154
|
-
|
|
3155
|
-
encodeWithCoder(aCoder: NSCoder): void;
|
|
3156
|
-
|
|
3157
|
-
initWithCoder(aDecoder: NSCoder): this;
|
|
3158
|
-
|
|
3159
|
-
isEqual(object: any): boolean;
|
|
3160
|
-
|
|
3161
|
-
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
3162
|
-
|
|
3163
|
-
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
3164
|
-
|
|
3165
|
-
performSelector(aSelector: string): any;
|
|
3166
|
-
|
|
3167
|
-
performSelectorWithObject(aSelector: string, object: any): any;
|
|
3168
|
-
|
|
3169
|
-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
3170
|
-
|
|
3171
|
-
respondsToSelector(aSelector: string): boolean;
|
|
3172
|
-
|
|
3173
|
-
retainCount(): number;
|
|
3174
|
-
|
|
3175
|
-
self(): this;
|
|
3176
|
-
}
|
|
3177
|
-
|
|
3178
|
-
declare var MGLUserLocationAnnotationTypeException: string;
|
|
3179
|
-
|
|
3180
|
-
declare class MGLUserLocationAnnotationView extends MGLAnnotationView {
|
|
3181
|
-
static alloc(): MGLUserLocationAnnotationView; // inherited from NSObject
|
|
3182
|
-
|
|
3183
|
-
static appearance(): MGLUserLocationAnnotationView; // inherited from UIAppearance
|
|
3184
|
-
|
|
3185
|
-
static appearanceForTraitCollection(trait: UITraitCollection): MGLUserLocationAnnotationView; // inherited from UIAppearance
|
|
3186
|
-
|
|
3187
|
-
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MGLUserLocationAnnotationView; // inherited from UIAppearance
|
|
3188
|
-
|
|
3189
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MGLUserLocationAnnotationView; // inherited from UIAppearance
|
|
3190
|
-
|
|
3191
|
-
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MGLUserLocationAnnotationView; // inherited from UIAppearance
|
|
3192
|
-
|
|
3193
|
-
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MGLUserLocationAnnotationView; // inherited from UIAppearance
|
|
3194
|
-
|
|
3195
|
-
static new(): MGLUserLocationAnnotationView; // inherited from NSObject
|
|
3196
|
-
|
|
3197
|
-
readonly hitTestLayer: CALayer;
|
|
3198
|
-
|
|
3199
|
-
readonly mapView: MGLMapView;
|
|
3200
|
-
|
|
3201
|
-
readonly userLocation: MGLUserLocation;
|
|
3202
|
-
|
|
3203
|
-
update(): void;
|
|
3204
|
-
}
|
|
3205
|
-
|
|
3206
|
-
declare const enum MGLUserTrackingMode {
|
|
3207
|
-
None = 0,
|
|
3208
|
-
|
|
3209
|
-
Follow = 1,
|
|
3210
|
-
|
|
3211
|
-
FollowWithHeading = 2,
|
|
3212
|
-
|
|
3213
|
-
FollowWithCourse = 3,
|
|
5
|
+
declare class MapboxMap extends NSObject {
|
|
3214
6
|
}
|
|
3215
|
-
|
|
3216
|
-
declare class MGLVectorStyleLayer extends MGLForegroundStyleLayer {
|
|
3217
|
-
static alloc(): MGLVectorStyleLayer; // inherited from NSObject
|
|
3218
|
-
|
|
3219
|
-
static new(): MGLVectorStyleLayer; // inherited from NSObject
|
|
3220
|
-
|
|
3221
|
-
predicate: NSPredicate;
|
|
3222
|
-
|
|
3223
|
-
sourceLayerIdentifier: string;
|
|
3224
|
-
}
|
|
3225
|
-
|
|
3226
|
-
declare class MGLVectorTileSource extends MGLTileSource {
|
|
3227
|
-
static alloc(): MGLVectorTileSource; // inherited from NSObject
|
|
3228
|
-
|
|
3229
|
-
static new(): MGLVectorTileSource; // inherited from NSObject
|
|
3230
|
-
|
|
3231
|
-
constructor(o: { identifier: string; configurationURL: NSURL });
|
|
3232
|
-
|
|
3233
|
-
constructor(o: { identifier: string; tileURLTemplates: NSArray<string> | string[]; options: NSDictionary<string, any> });
|
|
3234
|
-
|
|
3235
|
-
featuresInSourceLayersWithIdentifiersPredicate(sourceLayerIdentifiers: NSSet<string>, predicate: NSPredicate): NSArray<MGLFeature>;
|
|
3236
|
-
|
|
3237
|
-
initWithIdentifierConfigurationURL(identifier: string, configurationURL: NSURL): this;
|
|
3238
|
-
|
|
3239
|
-
initWithIdentifierTileURLTemplatesOptions(identifier: string, tileURLTemplates: NSArray<string> | string[], options: NSDictionary<string, any>): this;
|
|
3240
|
-
}
|
|
3241
|
-
|
|
3242
|
-
declare function MGLZoomLevelForAltitude(altitude: number, pitch: number, latitude: number, size: CGSize): number;
|
|
3243
|
-
|
|
3244
|
-
declare var MapboxVersionNumber: number;
|
|
3245
|
-
|
|
3246
|
-
declare var MapboxVersionString: interop.Reference<number>;
|