@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.
Files changed (42) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/common.d.ts +56 -26
  3. package/common.js +44 -28
  4. package/expression/expression-parser.android.d.ts +2 -2
  5. package/expression/expression-parser.android.js +4 -3
  6. package/expression/expression-parser.ios.d.ts +2 -2
  7. package/expression/expression-parser.ios.js +28 -13
  8. package/index.android.d.ts +59 -66
  9. package/index.android.js +1388 -1244
  10. package/index.d.ts +36 -5
  11. package/index.ios.d.ts +72 -243
  12. package/index.ios.js +1161 -1999
  13. package/layers/layer-factory.android.d.ts +7 -5
  14. package/layers/layer-factory.android.js +71 -41
  15. package/layers/layer-factory.d.ts +2 -1
  16. package/layers/layer-factory.ios.d.ts +8 -8
  17. package/layers/layer-factory.ios.js +46 -100
  18. package/layers/parser/property-parser.android.d.ts +3 -1
  19. package/layers/parser/property-parser.android.js +25 -24
  20. package/layers/parser/property-parser.d.ts +1 -1
  21. package/layers/parser/property-parser.ios.d.ts +0 -2
  22. package/layers/parser/property-parser.ios.js +0 -149
  23. package/markers/Marker.android.d.ts +28 -0
  24. package/markers/Marker.android.js +54 -0
  25. package/markers/Marker.common.d.ts +2 -0
  26. package/markers/Marker.common.js +31 -0
  27. package/markers/MarkerManager.android.d.ts +35 -0
  28. package/markers/MarkerManager.android.js +220 -0
  29. package/package.json +7 -6
  30. package/platforms/android/include.gradle +31 -27
  31. package/platforms/android/ui_mapbox.aar +0 -0
  32. package/platforms/ios/Podfile +3 -1
  33. package/platforms/ios/Resources/default_pin.png +0 -0
  34. package/platforms/ios/src/MapboxBridge.swift +1479 -0
  35. package/platforms/ios/src/NativeExpressionParser.swift +33 -0
  36. package/platforms/ios/src/NativeLayerFactory.swift +108 -0
  37. package/tsconfig.tsbuildinfo +1 -0
  38. package/typings/Mapbox.ios.d.ts +2 -3242
  39. package/typings/geojson.android.d.ts +689 -0
  40. package/typings/index.android.d.ts +46 -0
  41. package/typings/mapbox.android.d.ts +39968 -12560
  42. package/typings/mapbox.bridge.ios.d.ts +129 -0
@@ -0,0 +1,689 @@
1
+ declare module com {
2
+ export module mapbox {
3
+ export module geojson {
4
+ export abstract class BaseCoordinatesTypeAdapter<T> extends com.google.gson.TypeAdapter<any> {
5
+ public static class: java.lang.Class<com.mapbox.geojson.BaseCoordinatesTypeAdapter<any>>;
6
+ public writePointList(out: com.google.gson.stream.JsonWriter, value: java.util.List<java.lang.Double>): void;
7
+ public writePoint(out: com.google.gson.stream.JsonWriter, point: com.mapbox.geojson.Point): void;
8
+ public readPoint(in_: com.google.gson.stream.JsonReader): com.mapbox.geojson.Point;
9
+ public readPointList(in_: com.google.gson.stream.JsonReader): java.util.List<java.lang.Double>;
10
+ }
11
+ }
12
+ }
13
+ }
14
+
15
+ declare module com {
16
+ export module mapbox {
17
+ export module geojson {
18
+ export abstract class BaseGeometryTypeAdapter<G, T> extends com.google.gson.TypeAdapter<any> {
19
+ public static class: java.lang.Class<com.mapbox.geojson.BaseGeometryTypeAdapter<any,any>>;
20
+ public writeCoordinateContainer(boundingBoxAdapter: com.google.gson.stream.JsonWriter, coordinatesAdapter: com.mapbox.geojson.CoordinateContainer<any>): void;
21
+ public readCoordinateContainer(boundingBoxAdapter: com.google.gson.stream.JsonReader): com.mapbox.geojson.CoordinateContainer<any>;
22
+ }
23
+ }
24
+ }
25
+ }
26
+
27
+ declare module com {
28
+ export module mapbox {
29
+ export module geojson {
30
+ export class BoundingBox {
31
+ public static class: java.lang.Class<com.mapbox.geojson.BoundingBox>;
32
+ public static fromJson(json: string): com.mapbox.geojson.BoundingBox;
33
+ public northeast(): com.mapbox.geojson.Point;
34
+ public west(): number;
35
+ /** @deprecated */
36
+ public static fromCoordinates(west: number, south: number, east: number, north: number): com.mapbox.geojson.BoundingBox;
37
+ public static fromPoints(southwest: com.mapbox.geojson.Point, northeast: com.mapbox.geojson.Point): com.mapbox.geojson.BoundingBox;
38
+ public southwest(): com.mapbox.geojson.Point;
39
+ public toString(): string;
40
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.BoundingBox>;
41
+ public toJson(): string;
42
+ public north(): number;
43
+ public south(): number;
44
+ public equals(this_: any): boolean;
45
+ public east(): number;
46
+ public hashCode(): number;
47
+ public static fromLngLats(west: number, south: number, east: number, north: number): com.mapbox.geojson.BoundingBox;
48
+ public static fromLngLats(west: number, south: number, southwestAltitude: number, east: number, north: number, northEastAltitude: number): com.mapbox.geojson.BoundingBox;
49
+ /** @deprecated */
50
+ public static fromCoordinates(west: number, south: number, southwestAltitude: number, east: number, north: number, northEastAltitude: number): com.mapbox.geojson.BoundingBox;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ declare module com {
57
+ export module mapbox {
58
+ export module geojson {
59
+ export class CoordinateContainer<T> extends com.mapbox.geojson.Geometry {
60
+ public static class: java.lang.Class<com.mapbox.geojson.CoordinateContainer<any>>;
61
+ /**
62
+ * Constructs a new instance of the com.mapbox.geojson.CoordinateContainer<any> interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
63
+ */
64
+ public constructor(implementation: {
65
+ coordinates(): any;
66
+ type(): string;
67
+ toJson(): string;
68
+ bbox(): com.mapbox.geojson.BoundingBox;
69
+ });
70
+ public constructor();
71
+ public type(): string;
72
+ public coordinates(): any;
73
+ public toJson(): string;
74
+ public bbox(): com.mapbox.geojson.BoundingBox;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ declare module com {
81
+ export module mapbox {
82
+ export module geojson {
83
+ export class Feature extends com.mapbox.geojson.GeoJson {
84
+ public static class: java.lang.Class<com.mapbox.geojson.Feature>;
85
+ public id(): string;
86
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.Feature>;
87
+ public getProperty(key: string): com.google.gson.JsonElement;
88
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry, properties: com.google.gson.JsonObject, id: string): com.mapbox.geojson.Feature;
89
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry): com.mapbox.geojson.Feature;
90
+ public properties(): com.google.gson.JsonObject;
91
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry, properties: com.google.gson.JsonObject, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.Feature;
92
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry, properties: com.google.gson.JsonObject): com.mapbox.geojson.Feature;
93
+ public hasNonNullValueForProperty(key: string): boolean;
94
+ public addNumberProperty(key: string, value: java.lang.Number): void;
95
+ public hashCode(): number;
96
+ public type(): string;
97
+ public addStringProperty(key: string, value: string): void;
98
+ public removeProperty(key: string): com.google.gson.JsonElement;
99
+ public geometry(): com.mapbox.geojson.Geometry;
100
+ public getNumberProperty(key: string): java.lang.Number;
101
+ public getBooleanProperty(key: string): java.lang.Boolean;
102
+ public addBooleanProperty(key: string, value: java.lang.Boolean): void;
103
+ public getCharacterProperty(key: string): java.lang.Character;
104
+ public toString(): string;
105
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry, properties: com.google.gson.JsonObject, id: string, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.Feature;
106
+ public toJson(): string;
107
+ public getStringProperty(key: string): string;
108
+ public hasProperty(key: string): boolean;
109
+ public addProperty(key: string, value: com.google.gson.JsonElement): void;
110
+ public equals(this_: any): boolean;
111
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.Feature;
112
+ public static fromJson(json: string): com.mapbox.geojson.Feature;
113
+ public addCharacterProperty(key: string, value: java.lang.Character): void;
114
+ public bbox(): com.mapbox.geojson.BoundingBox;
115
+ }
116
+ export module Feature {
117
+ export class GsonTypeAdapter extends com.google.gson.TypeAdapter<com.mapbox.geojson.Feature> {
118
+ public static class: java.lang.Class<com.mapbox.geojson.Feature.GsonTypeAdapter>;
119
+ public write(boundingBoxTypeAdapter: com.google.gson.stream.JsonWriter, stringTypeAdapter: com.mapbox.geojson.Feature): void;
120
+ public read(boundingBoxTypeAdapter: com.google.gson.stream.JsonReader): com.mapbox.geojson.Feature;
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+
127
+ declare module com {
128
+ export module mapbox {
129
+ export module geojson {
130
+ export class FeatureCollection extends com.mapbox.geojson.GeoJson {
131
+ public static class: java.lang.Class<com.mapbox.geojson.FeatureCollection>;
132
+ public static fromFeatures(features: androidNative.Array<com.mapbox.geojson.Feature>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.FeatureCollection;
133
+ public static fromFeatures(features: androidNative.Array<com.mapbox.geojson.Feature>): com.mapbox.geojson.FeatureCollection;
134
+ public static fromFeatures(features: java.util.List<com.mapbox.geojson.Feature>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.FeatureCollection;
135
+ public static fromFeatures(features: java.util.List<com.mapbox.geojson.Feature>): com.mapbox.geojson.FeatureCollection;
136
+ public static fromFeature(feature: com.mapbox.geojson.Feature): com.mapbox.geojson.FeatureCollection;
137
+ public toString(): string;
138
+ public toJson(): string;
139
+ public static fromFeature(feature: com.mapbox.geojson.Feature, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.FeatureCollection;
140
+ public equals(this_: any): boolean;
141
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.FeatureCollection>;
142
+ public hashCode(): number;
143
+ public type(): string;
144
+ public static fromJson(json: string): com.mapbox.geojson.FeatureCollection;
145
+ public features(): java.util.List<com.mapbox.geojson.Feature>;
146
+ public bbox(): com.mapbox.geojson.BoundingBox;
147
+ }
148
+ export module FeatureCollection {
149
+ export class GsonTypeAdapter extends com.google.gson.TypeAdapter<com.mapbox.geojson.FeatureCollection> {
150
+ public static class: java.lang.Class<com.mapbox.geojson.FeatureCollection.GsonTypeAdapter>;
151
+ public write(boundingBoxTypeAdapter: com.google.gson.stream.JsonWriter, typeToken: com.mapbox.geojson.FeatureCollection): void;
152
+ public read(boundingBoxAdapter: com.google.gson.stream.JsonReader): com.mapbox.geojson.FeatureCollection;
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+
159
+ declare module com {
160
+ export module mapbox {
161
+ export module geojson {
162
+ export class GeoJson {
163
+ public static class: java.lang.Class<com.mapbox.geojson.GeoJson>;
164
+ /**
165
+ * Constructs a new instance of the com.mapbox.geojson.GeoJson interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
166
+ */
167
+ public constructor(implementation: {
168
+ type(): string;
169
+ toJson(): string;
170
+ bbox(): com.mapbox.geojson.BoundingBox;
171
+ });
172
+ public constructor();
173
+ public type(): string;
174
+ public toJson(): string;
175
+ public bbox(): com.mapbox.geojson.BoundingBox;
176
+ }
177
+ }
178
+ }
179
+ }
180
+
181
+ declare module com {
182
+ export module mapbox {
183
+ export module geojson {
184
+ export class Geometry extends com.mapbox.geojson.GeoJson {
185
+ public static class: java.lang.Class<com.mapbox.geojson.Geometry>;
186
+ /**
187
+ * Constructs a new instance of the com.mapbox.geojson.Geometry interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
188
+ */
189
+ public constructor(implementation: {
190
+ type(): string;
191
+ toJson(): string;
192
+ bbox(): com.mapbox.geojson.BoundingBox;
193
+ });
194
+ public constructor();
195
+ public type(): string;
196
+ public toJson(): string;
197
+ public bbox(): com.mapbox.geojson.BoundingBox;
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ declare module com {
204
+ export module mapbox {
205
+ export module geojson {
206
+ export abstract class GeometryAdapterFactory {
207
+ public static class: java.lang.Class<com.mapbox.geojson.GeometryAdapterFactory>;
208
+ public static create(): com.google.gson.TypeAdapterFactory;
209
+ public constructor();
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ declare module com {
216
+ export module mapbox {
217
+ export module geojson {
218
+ export class GeometryCollection extends com.mapbox.geojson.Geometry {
219
+ public static class: java.lang.Class<com.mapbox.geojson.GeometryCollection>;
220
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.GeometryCollection>;
221
+ public geometries(): java.util.List<com.mapbox.geojson.Geometry>;
222
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.GeometryCollection;
223
+ public static fromGeometries(geometries: java.util.List<com.mapbox.geojson.Geometry>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.GeometryCollection;
224
+ public toString(): string;
225
+ public toJson(): string;
226
+ public static fromJson(json: string): com.mapbox.geojson.GeometryCollection;
227
+ public equals(this_: any): boolean;
228
+ public static fromGeometry(geometry: com.mapbox.geojson.Geometry): com.mapbox.geojson.GeometryCollection;
229
+ public static fromGeometries(geometries: java.util.List<com.mapbox.geojson.Geometry>): com.mapbox.geojson.GeometryCollection;
230
+ public hashCode(): number;
231
+ public type(): string;
232
+ public bbox(): com.mapbox.geojson.BoundingBox;
233
+ }
234
+ export module GeometryCollection {
235
+ export class GsonTypeAdapter extends com.google.gson.TypeAdapter<com.mapbox.geojson.GeometryCollection> {
236
+ public static class: java.lang.Class<com.mapbox.geojson.GeometryCollection.GsonTypeAdapter>;
237
+ public write(boundingBoxTypeAdapter: com.google.gson.stream.JsonWriter, typeToken: com.mapbox.geojson.GeometryCollection): void;
238
+ public read(boundingBoxTypeAdapter: com.google.gson.stream.JsonReader): com.mapbox.geojson.GeometryCollection;
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }
244
+
245
+ declare module com {
246
+ export module mapbox {
247
+ export module geojson {
248
+ export class LineString extends com.mapbox.geojson.CoordinateContainer<java.util.List<com.mapbox.geojson.Point>> {
249
+ public static class: java.lang.Class<com.mapbox.geojson.LineString>;
250
+ public toPolyline(precision: number): string;
251
+ public toString(): string;
252
+ public static fromJson(json: string): com.mapbox.geojson.LineString;
253
+ public toJson(): string;
254
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.LineString>;
255
+ public coordinates(): any;
256
+ public static fromPolyline(polyline: string, precision: number): com.mapbox.geojson.LineString;
257
+ public static fromLngLats(points: java.util.List<com.mapbox.geojson.Point>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.LineString;
258
+ public equals(this_: any): boolean;
259
+ public static fromLngLats(points: java.util.List<com.mapbox.geojson.Point>): com.mapbox.geojson.LineString;
260
+ public hashCode(): number;
261
+ public type(): string;
262
+ public static fromLngLats(multiPoint: com.mapbox.geojson.MultiPoint): com.mapbox.geojson.LineString;
263
+ public static fromLngLats(multiPoint: com.mapbox.geojson.MultiPoint, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.LineString;
264
+ public bbox(): com.mapbox.geojson.BoundingBox;
265
+ public coordinates(): java.util.List<com.mapbox.geojson.Point>;
266
+ }
267
+ export module LineString {
268
+ export class GsonTypeAdapter extends com.mapbox.geojson.BaseGeometryTypeAdapter<com.mapbox.geojson.LineString,java.util.List<com.mapbox.geojson.Point>> {
269
+ public static class: java.lang.Class<com.mapbox.geojson.LineString.GsonTypeAdapter>;
270
+ public read(jsonReader: com.google.gson.stream.JsonReader): com.mapbox.geojson.LineString;
271
+ public write(jsonWriter: com.google.gson.stream.JsonWriter, object: com.mapbox.geojson.LineString): void;
272
+ }
273
+ }
274
+ }
275
+ }
276
+ }
277
+
278
+ declare module com {
279
+ export module mapbox {
280
+ export module geojson {
281
+ export class ListOfDoublesCoordinatesTypeAdapter extends com.mapbox.geojson.BaseCoordinatesTypeAdapter<java.util.List<java.lang.Double>> {
282
+ public static class: java.lang.Class<com.mapbox.geojson.ListOfDoublesCoordinatesTypeAdapter>;
283
+ public read(in_: com.google.gson.stream.JsonReader): java.util.List<java.lang.Double>;
284
+ public write(out: com.google.gson.stream.JsonWriter, value: java.util.List<java.lang.Double>): void;
285
+ }
286
+ }
287
+ }
288
+ }
289
+
290
+ declare module com {
291
+ export module mapbox {
292
+ export module geojson {
293
+ export class ListOfListOfPointCoordinatesTypeAdapter extends com.mapbox.geojson.BaseCoordinatesTypeAdapter<java.util.List<java.util.List<com.mapbox.geojson.Point>>> {
294
+ public static class: java.lang.Class<com.mapbox.geojson.ListOfListOfPointCoordinatesTypeAdapter>;
295
+ public write(listOfPoints: com.google.gson.stream.JsonWriter, this_: java.util.List<java.util.List<com.mapbox.geojson.Point>>): void;
296
+ public read(points: com.google.gson.stream.JsonReader): java.util.List<java.util.List<com.mapbox.geojson.Point>>;
297
+ }
298
+ }
299
+ }
300
+ }
301
+
302
+ declare module com {
303
+ export module mapbox {
304
+ export module geojson {
305
+ export class ListOfPointCoordinatesTypeAdapter extends com.mapbox.geojson.BaseCoordinatesTypeAdapter<java.util.List<com.mapbox.geojson.Point>> {
306
+ public static class: java.lang.Class<com.mapbox.geojson.ListOfPointCoordinatesTypeAdapter>;
307
+ public write(this_: com.google.gson.stream.JsonWriter, out: java.util.List<com.mapbox.geojson.Point>): void;
308
+ public read(this_: com.google.gson.stream.JsonReader): java.util.List<com.mapbox.geojson.Point>;
309
+ }
310
+ }
311
+ }
312
+ }
313
+
314
+ declare module com {
315
+ export module mapbox {
316
+ export module geojson {
317
+ export class ListofListofListOfPointCoordinatesTypeAdapter extends com.mapbox.geojson.BaseCoordinatesTypeAdapter<java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>> {
318
+ public static class: java.lang.Class<com.mapbox.geojson.ListofListofListOfPointCoordinatesTypeAdapter>;
319
+ public read(listOfListOfPoints: com.google.gson.stream.JsonReader): java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>;
320
+ public write(listOfPoints: com.google.gson.stream.JsonWriter, listOfListOfPoints: java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>): void;
321
+ }
322
+ }
323
+ }
324
+ }
325
+
326
+ declare module com {
327
+ export module mapbox {
328
+ export module geojson {
329
+ export class MultiLineString extends com.mapbox.geojson.CoordinateContainer<java.util.List<java.util.List<com.mapbox.geojson.Point>>> {
330
+ public static class: java.lang.Class<com.mapbox.geojson.MultiLineString>;
331
+ public lineStrings(): java.util.List<com.mapbox.geojson.LineString>;
332
+ public static fromLineString(lineString: com.mapbox.geojson.LineString, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.MultiLineString;
333
+ public static fromLngLats(points: java.util.List<java.util.List<com.mapbox.geojson.Point>>): com.mapbox.geojson.MultiLineString;
334
+ public toString(): string;
335
+ public static fromJson(json: string): com.mapbox.geojson.MultiLineString;
336
+ public static fromLineString(lineString: com.mapbox.geojson.LineString): com.mapbox.geojson.MultiLineString;
337
+ public toJson(): string;
338
+ public coordinates(): any;
339
+ public static fromLngLats(points: java.util.List<java.util.List<com.mapbox.geojson.Point>>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.MultiLineString;
340
+ public equals(this_: any): boolean;
341
+ public static fromLineStrings(lineString: java.util.List<com.mapbox.geojson.LineString>): com.mapbox.geojson.MultiLineString;
342
+ public hashCode(): number;
343
+ public type(): string;
344
+ public coordinates(): java.util.List<java.util.List<com.mapbox.geojson.Point>>;
345
+ public static fromLineStrings(lineString: java.util.List<com.mapbox.geojson.LineString>, lineStrings: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.MultiLineString;
346
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.MultiLineString>;
347
+ public bbox(): com.mapbox.geojson.BoundingBox;
348
+ }
349
+ export module MultiLineString {
350
+ export class GsonTypeAdapter extends com.mapbox.geojson.BaseGeometryTypeAdapter<com.mapbox.geojson.MultiLineString,java.util.List<java.util.List<com.mapbox.geojson.Point>>> {
351
+ public static class: java.lang.Class<com.mapbox.geojson.MultiLineString.GsonTypeAdapter>;
352
+ public read(jsonReader: com.google.gson.stream.JsonReader): com.mapbox.geojson.MultiLineString;
353
+ public write(jsonWriter: com.google.gson.stream.JsonWriter, object: com.mapbox.geojson.MultiLineString): void;
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+
360
+ declare module com {
361
+ export module mapbox {
362
+ export module geojson {
363
+ export class MultiPoint extends com.mapbox.geojson.CoordinateContainer<java.util.List<com.mapbox.geojson.Point>> {
364
+ public static class: java.lang.Class<com.mapbox.geojson.MultiPoint>;
365
+ public static fromLngLats(points: java.util.List<com.mapbox.geojson.Point>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.MultiPoint;
366
+ public equals(this_: any): boolean;
367
+ public static fromLngLats(points: java.util.List<com.mapbox.geojson.Point>): com.mapbox.geojson.MultiPoint;
368
+ public hashCode(): number;
369
+ public type(): string;
370
+ public static fromJson(json: string): com.mapbox.geojson.MultiPoint;
371
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.MultiPoint>;
372
+ public toString(): string;
373
+ public toJson(): string;
374
+ public coordinates(): any;
375
+ public bbox(): com.mapbox.geojson.BoundingBox;
376
+ public coordinates(): java.util.List<com.mapbox.geojson.Point>;
377
+ }
378
+ export module MultiPoint {
379
+ export class GsonTypeAdapter extends com.mapbox.geojson.BaseGeometryTypeAdapter<com.mapbox.geojson.MultiPoint,java.util.List<com.mapbox.geojson.Point>> {
380
+ public static class: java.lang.Class<com.mapbox.geojson.MultiPoint.GsonTypeAdapter>;
381
+ public read(jsonReader: com.google.gson.stream.JsonReader): com.mapbox.geojson.MultiPoint;
382
+ public write(jsonWriter: com.google.gson.stream.JsonWriter, object: com.mapbox.geojson.MultiPoint): void;
383
+ }
384
+ }
385
+ }
386
+ }
387
+ }
388
+
389
+ declare module com {
390
+ export module mapbox {
391
+ export module geojson {
392
+ export class MultiPolygon extends com.mapbox.geojson.CoordinateContainer<java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>> {
393
+ public static class: java.lang.Class<com.mapbox.geojson.MultiPolygon>;
394
+ public coordinates(): java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>;
395
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.MultiPolygon>;
396
+ public static fromLngLats(points: java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.MultiPolygon;
397
+ public toString(): string;
398
+ public toJson(): string;
399
+ public coordinates(): any;
400
+ public static fromJson(json: string): com.mapbox.geojson.MultiPolygon;
401
+ public static fromPolygon(polygon: com.mapbox.geojson.Polygon): com.mapbox.geojson.MultiPolygon;
402
+ public equals(this_: any): boolean;
403
+ public hashCode(): number;
404
+ public static fromPolygon(polygon: com.mapbox.geojson.Polygon, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.MultiPolygon;
405
+ public polygons(): java.util.List<com.mapbox.geojson.Polygon>;
406
+ public type(): string;
407
+ public static fromPolygons(polygon: java.util.List<com.mapbox.geojson.Polygon>): com.mapbox.geojson.MultiPolygon;
408
+ public static fromLngLats(points: java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>): com.mapbox.geojson.MultiPolygon;
409
+ public bbox(): com.mapbox.geojson.BoundingBox;
410
+ public static fromPolygons(polygon: java.util.List<com.mapbox.geojson.Polygon>, polygons: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.MultiPolygon;
411
+ }
412
+ export module MultiPolygon {
413
+ export class GsonTypeAdapter extends com.mapbox.geojson.BaseGeometryTypeAdapter<com.mapbox.geojson.MultiPolygon,java.util.List<java.util.List<java.util.List<com.mapbox.geojson.Point>>>> {
414
+ public static class: java.lang.Class<com.mapbox.geojson.MultiPolygon.GsonTypeAdapter>;
415
+ public read(jsonReader: com.google.gson.stream.JsonReader): com.mapbox.geojson.MultiPolygon;
416
+ public write(jsonWriter: com.google.gson.stream.JsonWriter, object: com.mapbox.geojson.MultiPolygon): void;
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+
423
+ declare module com {
424
+ export module mapbox {
425
+ export module geojson {
426
+ export class Point extends com.mapbox.geojson.CoordinateContainer<java.util.List<java.lang.Double>> {
427
+ public static class: java.lang.Class<com.mapbox.geojson.Point>;
428
+ public hasAltitude(): boolean;
429
+ public static fromJson(json: string): com.mapbox.geojson.Point;
430
+ public static fromLngLat(longitude: number, latitude: number, altitude: number): com.mapbox.geojson.Point;
431
+ public altitude(): number;
432
+ public coordinates(): java.util.List<java.lang.Double>;
433
+ public longitude(): number;
434
+ public toString(): string;
435
+ public toJson(): string;
436
+ public coordinates(): any;
437
+ public latitude(): number;
438
+ public static fromLngLat(longitude: number, latitude: number): com.mapbox.geojson.Point;
439
+ public equals(this_: any): boolean;
440
+ public hashCode(): number;
441
+ public static fromLngLat(longitude: number, latitude: number, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.Point;
442
+ public static fromLngLat(longitude: number, latitude: number, altitude: number, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.Point;
443
+ public type(): string;
444
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.Point>;
445
+ public bbox(): com.mapbox.geojson.BoundingBox;
446
+ }
447
+ export module Point {
448
+ export class GsonTypeAdapter extends com.mapbox.geojson.BaseGeometryTypeAdapter<com.mapbox.geojson.Point,java.util.List<java.lang.Double>> {
449
+ public static class: java.lang.Class<com.mapbox.geojson.Point.GsonTypeAdapter>;
450
+ public write(jsonWriter: com.google.gson.stream.JsonWriter, object: com.mapbox.geojson.Point): void;
451
+ public read(jsonReader: com.google.gson.stream.JsonReader): com.mapbox.geojson.Point;
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+
458
+ declare module com {
459
+ export module mapbox {
460
+ export module geojson {
461
+ export class PointAsCoordinatesTypeAdapter extends com.mapbox.geojson.BaseCoordinatesTypeAdapter<com.mapbox.geojson.Point> {
462
+ public static class: java.lang.Class<com.mapbox.geojson.PointAsCoordinatesTypeAdapter>;
463
+ public write(out: com.google.gson.stream.JsonWriter, value: com.mapbox.geojson.Point): void;
464
+ public read(in_: com.google.gson.stream.JsonReader): com.mapbox.geojson.Point;
465
+ public constructor();
466
+ }
467
+ }
468
+ }
469
+ }
470
+
471
+ declare module com {
472
+ export module mapbox {
473
+ export module geojson {
474
+ export class Polygon extends com.mapbox.geojson.CoordinateContainer<java.util.List<java.util.List<com.mapbox.geojson.Point>>> {
475
+ public static class: java.lang.Class<com.mapbox.geojson.Polygon>;
476
+ public static fromOuterInner(lineString: com.mapbox.geojson.LineString, outer: com.mapbox.geojson.BoundingBox, bbox: androidNative.Array<com.mapbox.geojson.LineString>): com.mapbox.geojson.Polygon;
477
+ public static fromJson(json: string): com.mapbox.geojson.Polygon;
478
+ public static fromOuterInner(lineString: com.mapbox.geojson.LineString, outer: java.util.List<com.mapbox.geojson.LineString>): com.mapbox.geojson.Polygon;
479
+ public static typeAdapter(gson: com.google.gson.Gson): com.google.gson.TypeAdapter<com.mapbox.geojson.Polygon>;
480
+ public toString(): string;
481
+ public toJson(): string;
482
+ public coordinates(): any;
483
+ public outer(): com.mapbox.geojson.LineString;
484
+ public inner(): java.util.List<com.mapbox.geojson.LineString>;
485
+ public equals(this_: any): boolean;
486
+ public hashCode(): number;
487
+ public static fromLngLats(coordinates: java.util.List<java.util.List<com.mapbox.geojson.Point>>, bbox: com.mapbox.geojson.BoundingBox): com.mapbox.geojson.Polygon;
488
+ public static fromOuterInner(lineString: com.mapbox.geojson.LineString, outer: androidNative.Array<com.mapbox.geojson.LineString>): com.mapbox.geojson.Polygon;
489
+ public type(): string;
490
+ public static fromOuterInner(lineString: com.mapbox.geojson.LineString, outer: com.mapbox.geojson.BoundingBox, bbox: java.util.List<com.mapbox.geojson.LineString>): com.mapbox.geojson.Polygon;
491
+ public coordinates(): java.util.List<java.util.List<com.mapbox.geojson.Point>>;
492
+ public static fromLngLats(coordinates: java.util.List<java.util.List<com.mapbox.geojson.Point>>): com.mapbox.geojson.Polygon;
493
+ public bbox(): com.mapbox.geojson.BoundingBox;
494
+ }
495
+ export module Polygon {
496
+ export class GsonTypeAdapter extends com.mapbox.geojson.BaseGeometryTypeAdapter<com.mapbox.geojson.Polygon,java.util.List<java.util.List<com.mapbox.geojson.Point>>> {
497
+ public static class: java.lang.Class<com.mapbox.geojson.Polygon.GsonTypeAdapter>;
498
+ public read(jsonReader: com.google.gson.stream.JsonReader): com.mapbox.geojson.Polygon;
499
+ public write(jsonWriter: com.google.gson.stream.JsonWriter, object: com.mapbox.geojson.Polygon): void;
500
+ }
501
+ }
502
+ }
503
+ }
504
+ }
505
+
506
+ declare module com {
507
+ export module mapbox {
508
+ export module geojson {
509
+ export module constants {
510
+ export class GeoJsonConstants {
511
+ public static class: java.lang.Class<com.mapbox.geojson.constants.GeoJsonConstants>;
512
+ public static MIN_LONGITUDE: number = -180.0;
513
+ public static MAX_LONGITUDE: number = 180.0;
514
+ public static MIN_LATITUDE: number = -90.0;
515
+ public static MAX_LATITUDE: number = 90.0;
516
+ }
517
+ }
518
+ }
519
+ }
520
+ }
521
+
522
+ declare module com {
523
+ export module mapbox {
524
+ export module geojson {
525
+ export module exception {
526
+ export class GeoJsonException {
527
+ public static class: java.lang.Class<com.mapbox.geojson.exception.GeoJsonException>;
528
+ public constructor(message: string);
529
+ }
530
+ }
531
+ }
532
+ }
533
+ }
534
+
535
+ declare module com {
536
+ export module mapbox {
537
+ export module geojson {
538
+ export module gson {
539
+ export class BoundingBoxTypeAdapter extends com.google.gson.TypeAdapter<com.mapbox.geojson.BoundingBox> {
540
+ public static class: java.lang.Class<com.mapbox.geojson.gson.BoundingBoxTypeAdapter>;
541
+ public read(in_: com.google.gson.stream.JsonReader): com.mapbox.geojson.BoundingBox;
542
+ public constructor();
543
+ public write(out: com.google.gson.stream.JsonWriter, value: com.mapbox.geojson.BoundingBox): void;
544
+ }
545
+ }
546
+ }
547
+ }
548
+ }
549
+
550
+ declare module com {
551
+ export module mapbox {
552
+ export module geojson {
553
+ export module gson {
554
+ export abstract class GeoJsonAdapterFactory {
555
+ public static class: java.lang.Class<com.mapbox.geojson.gson.GeoJsonAdapterFactory>;
556
+ public static create(): com.google.gson.TypeAdapterFactory;
557
+ public constructor();
558
+ }
559
+ export module GeoJsonAdapterFactory {
560
+ export class GeoJsonAdapterFactoryIml extends com.mapbox.geojson.gson.GeoJsonAdapterFactory {
561
+ public static class: java.lang.Class<com.mapbox.geojson.gson.GeoJsonAdapterFactory.GeoJsonAdapterFactoryIml>;
562
+ public constructor();
563
+ public create(gson: com.google.gson.Gson, type: com.google.gson.reflect.TypeToken): com.google.gson.TypeAdapter;
564
+ public static create(): com.google.gson.TypeAdapterFactory;
565
+ }
566
+ }
567
+ }
568
+ }
569
+ }
570
+ }
571
+
572
+ declare module com {
573
+ export module mapbox {
574
+ export module geojson {
575
+ export module gson {
576
+ export class GeometryGeoJson {
577
+ public static class: java.lang.Class<com.mapbox.geojson.gson.GeometryGeoJson>;
578
+ public constructor();
579
+ public static fromJson(json: string): com.mapbox.geojson.Geometry;
580
+ }
581
+ }
582
+ }
583
+ }
584
+ }
585
+
586
+ declare module com {
587
+ export module mapbox {
588
+ export module geojson {
589
+ export module internal {
590
+ export module typeadapters {
591
+ export class RuntimeTypeAdapterFactory<T> extends com.google.gson.TypeAdapterFactory {
592
+ public static class: java.lang.Class<com.mapbox.geojson.internal.typeadapters.RuntimeTypeAdapterFactory<any>>;
593
+ public static of(baseType: java.lang.Class<any>, typeFieldName: string): com.mapbox.geojson.internal.typeadapters.RuntimeTypeAdapterFactory<any>;
594
+ public static of(baseType: java.lang.Class<any>): com.mapbox.geojson.internal.typeadapters.RuntimeTypeAdapterFactory<any>;
595
+ public create(entry: com.google.gson.Gson, this_: com.google.gson.reflect.TypeToken): com.google.gson.TypeAdapter;
596
+ public registerSubtype(type: java.lang.Class<any>): com.mapbox.geojson.internal.typeadapters.RuntimeTypeAdapterFactory<any>;
597
+ public registerSubtype(type: java.lang.Class<any>, label: string): com.mapbox.geojson.internal.typeadapters.RuntimeTypeAdapterFactory<any>;
598
+ public static of(baseType: java.lang.Class<any>, typeFieldName: string, maintainType: boolean): com.mapbox.geojson.internal.typeadapters.RuntimeTypeAdapterFactory<any>;
599
+ }
600
+ }
601
+ }
602
+ }
603
+ }
604
+ }
605
+
606
+ declare module com {
607
+ export module mapbox {
608
+ export module geojson {
609
+ export module shifter {
610
+ export class CoordinateShifter {
611
+ public static class: java.lang.Class<com.mapbox.geojson.shifter.CoordinateShifter>;
612
+ /**
613
+ * Constructs a new instance of the com.mapbox.geojson.shifter.CoordinateShifter interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
614
+ */
615
+ public constructor(implementation: {
616
+ shiftLonLat(param0: number, param1: number): java.util.List<java.lang.Double>;
617
+ shiftLonLatAlt(param0: number, param1: number, param2: number): java.util.List<java.lang.Double>;
618
+ unshiftPoint(param0: com.mapbox.geojson.Point): java.util.List<java.lang.Double>;
619
+ unshiftPoint(param0: java.util.List<java.lang.Double>): java.util.List<java.lang.Double>;
620
+ });
621
+ public constructor();
622
+ public shiftLonLatAlt(param0: number, param1: number, param2: number): java.util.List<java.lang.Double>;
623
+ public unshiftPoint(param0: com.mapbox.geojson.Point): java.util.List<java.lang.Double>;
624
+ public shiftLonLat(param0: number, param1: number): java.util.List<java.lang.Double>;
625
+ public unshiftPoint(param0: java.util.List<java.lang.Double>): java.util.List<java.lang.Double>;
626
+ }
627
+ }
628
+ }
629
+ }
630
+ }
631
+
632
+ declare module com {
633
+ export module mapbox {
634
+ export module geojson {
635
+ export module shifter {
636
+ export class CoordinateShifterManager {
637
+ public static class: java.lang.Class<com.mapbox.geojson.shifter.CoordinateShifterManager>;
638
+ public static setCoordinateShifter(coordinateShifter: com.mapbox.geojson.shifter.CoordinateShifter): void;
639
+ public constructor();
640
+ public static isUsingDefaultShifter(): boolean;
641
+ public static getCoordinateShifter(): com.mapbox.geojson.shifter.CoordinateShifter;
642
+ }
643
+ }
644
+ }
645
+ }
646
+ }
647
+
648
+ declare module com {
649
+ export module mapbox {
650
+ export module geojson {
651
+ export module utils {
652
+ export class GeoJsonUtils {
653
+ public static class: java.lang.Class<com.mapbox.geojson.utils.GeoJsonUtils>;
654
+ public constructor();
655
+ public static trim(value: number): number;
656
+ }
657
+ }
658
+ }
659
+ }
660
+ }
661
+
662
+ declare module com {
663
+ export module mapbox {
664
+ export module geojson {
665
+ export module utils {
666
+ export class PolylineUtils {
667
+ public static class: java.lang.Class<com.mapbox.geojson.utils.PolylineUtils>;
668
+ /** @deprecated */
669
+ public static simplify(points: java.util.List<com.mapbox.geojson.Point>, tolerance: number): java.util.List<com.mapbox.geojson.Point>;
670
+ /** @deprecated */
671
+ public static simplify(points: java.util.List<com.mapbox.geojson.Point>, highestQuality: boolean): java.util.List<com.mapbox.geojson.Point>;
672
+ public static encode(lat: java.util.List<com.mapbox.geojson.Point>, lng: number): string;
673
+ /** @deprecated */
674
+ public static simplify(points: java.util.List<com.mapbox.geojson.Point>, tolerance: number, highestQuality: boolean): java.util.List<com.mapbox.geojson.Point>;
675
+ /** @deprecated */
676
+ public static simplify(points: java.util.List<com.mapbox.geojson.Point>): java.util.List<com.mapbox.geojson.Point>;
677
+ public static decode(result: string, shift: number): java.util.List<com.mapbox.geojson.Point>;
678
+ }
679
+ }
680
+ }
681
+ }
682
+ }
683
+
684
+ //Generics information:
685
+ //com.mapbox.geojson.BaseCoordinatesTypeAdapter:1
686
+ //com.mapbox.geojson.BaseGeometryTypeAdapter:2
687
+ //com.mapbox.geojson.CoordinateContainer:1
688
+ //com.mapbox.geojson.internal.typeadapters.RuntimeTypeAdapterFactory:1
689
+