@nativescript-community/ui-massifmaps 3.0.1 → 4.0.1
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 +41 -0
- package/README.md +237 -0
- package/api/bridge.android.d.ts +2 -0
- package/api/bridge.android.js +156 -0
- package/api/bridge.android.js.map +1 -0
- package/api/bridge.d.ts +91 -0
- package/api/bridge.ios.d.ts +2 -0
- package/api/bridge.ios.js +168 -0
- package/api/bridge.ios.js.map +1 -0
- package/api/index.common.d.ts +495 -0
- package/api/index.common.js +1448 -0
- package/api/index.common.js.map +1 -0
- package/api/index.d.ts +2 -0
- package/api/index.js +3 -0
- package/api/index.js.map +1 -0
- package/api/massif-api.d.ts +12471 -0
- package/api/resolve.d.ts +52 -0
- package/api/resolve.js +214 -0
- package/api/resolve.js.map +1 -0
- package/api/schema.d.ts +67 -0
- package/api/schema.js +539 -0
- package/api/schema.js.map +1 -0
- package/bindings/components/Options.d.ts +14 -13
- package/bindings/components/Options.js.map +1 -1
- package/bindings/core/Variant.d.ts +2 -1
- package/bindings/core/Variant.js.map +1 -1
- package/bindings/enums.d.ts +138 -0
- package/bindings/enums.js +153 -0
- package/bindings/enums.js.map +1 -0
- package/bindings/graphics/Bitmap.d.ts +2 -1
- package/bindings/graphics/Bitmap.js.map +1 -1
- package/bindings/layers/ClusterElementBuilder.d.ts +2 -1
- package/bindings/layers/ClusterElementBuilder.js.map +1 -1
- package/bindings/layers/CompositeVectorTileLayer.d.ts +3 -7
- package/bindings/layers/CompositeVectorTileLayer.js +3 -6
- package/bindings/layers/CompositeVectorTileLayer.js.map +1 -1
- package/bindings/layers/HillshadeRasterTileLayer.d.ts +3 -2
- package/bindings/layers/HillshadeRasterTileLayer.js.map +1 -1
- package/bindings/layers/Layer.d.ts +2 -1
- package/bindings/layers/Layer.js.map +1 -1
- package/bindings/layers/RasterTileLayer.d.ts +3 -2
- package/bindings/layers/RasterTileLayer.js.map +1 -1
- package/bindings/layers/TileLayer.d.ts +5 -3
- package/bindings/layers/TileLayer.js +1 -1
- package/bindings/layers/TileLayer.js.map +1 -1
- package/bindings/layers/VectorEditEventListener.d.ts +2 -1
- package/bindings/layers/VectorEditEventListener.js.map +1 -1
- package/bindings/layers/VectorTileLayer.d.ts +5 -4
- package/bindings/layers/VectorTileLayer.js.map +1 -1
- package/bindings/packagemanager/PackageInfo.d.ts +2 -1
- package/bindings/packagemanager/PackageInfo.js.map +1 -1
- package/bindings/packagemanager/PackageManagerListener.d.ts +2 -1
- package/bindings/packagemanager/PackageManagerListener.js.map +1 -1
- package/bindings/packagemanager/PackageStatus.d.ts +2 -1
- package/bindings/packagemanager/PackageStatus.js.map +1 -1
- package/bindings/packagemanager/PackageTileMask.d.ts +2 -1
- package/bindings/packagemanager/PackageTileMask.js.map +1 -1
- package/bindings/routing/RouteMatchingPoint.d.ts +2 -1
- package/bindings/routing/RouteMatchingPoint.js.map +1 -1
- package/bindings/routing/RoutingInstruction.js.map +1 -1
- package/bindings/styles/AnimationStyle.d.ts +3 -2
- package/bindings/styles/AnimationStyle.js.map +1 -1
- package/bindings/styles/AnimationStyleBuilder.d.ts +7 -6
- package/bindings/styles/AnimationStyleBuilder.js.map +1 -1
- package/bindings/styles/LabelStyle.js.map +1 -1
- package/bindings/styles/LabelStyleBuilder.d.ts +5 -4
- package/bindings/styles/LabelStyleBuilder.js.map +1 -1
- package/bindings/styles/LineStyle.d.ts +2 -1
- package/bindings/styles/LineStyle.js.map +1 -1
- package/bindings/styles/LineStyleBuilder.d.ts +6 -5
- package/bindings/styles/LineStyleBuilder.js.map +1 -1
- package/bindings/styles/MarkerStyle.js.map +1 -1
- package/bindings/styles/MarkerStyleBuilder.d.ts +5 -4
- package/bindings/styles/MarkerStyleBuilder.js.map +1 -1
- package/bindings/styles/NMLModelStyle.js.map +1 -1
- package/bindings/styles/NMLModelStyleBuilder.d.ts +5 -4
- package/bindings/styles/NMLModelStyleBuilder.js.map +1 -1
- package/bindings/ui/BalloonPopupButtonClickInfo.js.map +1 -1
- package/bindings/ui/ClickInfo.js.map +1 -1
- package/bindings/ui/MapClickInfo.js.map +1 -1
- package/bindings/ui/PopupClickInfo.js.map +1 -1
- package/bindings/ui/RasterTileClickInfo.js.map +1 -1
- package/bindings/ui/UTFGridClickInfo.js.map +1 -1
- package/bindings/ui/VectorElementClickInfo.js.map +1 -1
- package/bindings/ui/VectorElementDragInfo.d.ts +2 -1
- package/bindings/ui/VectorElementDragInfo.js.map +1 -1
- package/bindings/ui/VectorTileClickInfo.d.ts +3 -1
- package/bindings/ui/VectorTileClickInfo.js +5 -2
- package/bindings/ui/VectorTileClickInfo.js.map +1 -1
- package/bindings/utils/BundleAssetPackage.d.ts +15 -0
- package/bindings/utils/BundleAssetPackage.js +8 -0
- package/bindings/utils/BundleAssetPackage.js.map +1 -0
- package/bindings/utils/index.d.ts +1 -0
- package/bindings/utils/index.js +1 -0
- package/bindings/utils/index.js.map +1 -1
- package/bindings/vectortiles/MBVectorTileDecoder.d.ts +4 -3
- package/bindings/vectortiles/MBVectorTileDecoder.js.map +1 -1
- package/celestial/CelestialArc.android.d.ts +0 -1
- package/celestial/CelestialArc.android.js +0 -3
- package/celestial/CelestialArc.android.js.map +1 -1
- package/celestial/CelestialArc.d.ts +1 -3
- package/celestial/CelestialArc.ios.d.ts +0 -1
- package/celestial/CelestialArc.ios.js +0 -1
- package/celestial/CelestialArc.ios.js.map +1 -1
- package/celestial/CelestialObject.android.d.ts +0 -1
- package/celestial/CelestialObject.android.js +0 -1
- package/celestial/CelestialObject.android.js.map +1 -1
- package/celestial/CelestialObject.d.ts +0 -2
- package/celestial/CelestialObject.ios.d.ts +0 -1
- package/celestial/CelestialObject.ios.js +0 -1
- package/celestial/CelestialObject.ios.js.map +1 -1
- package/celestial/CelestialObjectVector.android.d.ts +0 -1
- package/celestial/CelestialObjectVector.android.js +0 -4
- package/celestial/CelestialObjectVector.android.js.map +1 -1
- package/celestial/CelestialObjectVector.d.ts +0 -2
- package/celestial/CelestialObjectVector.ios.d.ts +0 -1
- package/celestial/CelestialObjectVector.ios.js +0 -1
- package/celestial/CelestialObjectVector.ios.js.map +1 -1
- package/celestial/CelestialSprite.android.d.ts +0 -1
- package/celestial/CelestialSprite.android.js +0 -3
- package/celestial/CelestialSprite.android.js.map +1 -1
- package/celestial/CelestialSprite.d.ts +1 -3
- package/celestial/CelestialSprite.ios.d.ts +0 -1
- package/celestial/CelestialSprite.ios.js +0 -1
- package/celestial/CelestialSprite.ios.js.map +1 -1
- package/components/index.android.d.ts +9 -27
- package/components/index.android.js +3 -21
- package/components/index.android.js.map +1 -1
- package/components/index.d.ts +4 -26
- package/components/index.ios.d.ts +3 -21
- package/components/index.ios.js +3 -21
- package/components/index.ios.js.map +1 -1
- package/core/index.android.js +3 -3
- package/core/index.android.js.map +1 -1
- package/core/index.ios.js +3 -4
- package/core/index.ios.js.map +1 -1
- package/datasources/mbtiles.android.d.ts +2 -2
- package/index.android.d.ts +1 -6
- package/index.android.js +4 -8
- package/index.android.js.map +1 -1
- package/index.common.d.ts +3 -6
- package/index.common.js +3 -6
- package/index.common.js.map +1 -1
- package/index.d.ts +6 -0
- package/index.ios.d.ts +1 -6
- package/index.ios.js +1 -6
- package/index.ios.js.map +1 -1
- package/layers/CelestialLayer.android.d.ts +0 -1
- package/layers/CelestialLayer.android.js +0 -3
- package/layers/CelestialLayer.android.js.map +1 -1
- package/layers/CelestialLayer.d.ts +1 -4
- package/layers/CelestialLayer.ios.d.ts +0 -1
- package/layers/CelestialLayer.ios.js +1 -4
- package/layers/CelestialLayer.ios.js.map +1 -1
- package/layers/composite.android.d.ts +3 -5
- package/layers/composite.android.js +0 -6
- package/layers/composite.android.js.map +1 -1
- package/layers/composite.d.ts +6 -25
- package/layers/composite.ios.d.ts +2 -6
- package/layers/composite.ios.js +2 -10
- package/layers/composite.ios.js.map +1 -1
- package/layers/index.android.d.ts +3 -3
- package/layers/index.d.ts +4 -22
- package/layers/raster.android.d.ts +8 -8
- package/layers/raster.android.js +1 -1
- package/layers/raster.android.js.map +1 -1
- package/layers/raster.d.ts +2 -11
- package/layers/vector.android.d.ts +10 -10
- package/layers/vector.android.js +2 -2
- package/layers/vector.android.js.map +1 -1
- package/layers/vector.d.ts +15 -71
- package/nativeclass.common.d.ts +6 -31
- package/nativeclass.common.js +4 -21
- package/nativeclass.common.js.map +1 -1
- package/nativescript.config.ts +9 -6
- package/package.json +2 -2
- package/platforms/android/include-settings.gradle +18 -4
- package/platforms/android/include.gradle +10 -2
- package/platforms/android/java/com/nativescript/massifmaps/additions/CelestialEventListener.java +1 -1
- package/platforms/android/java/com/nativescript/massifmaps/additions/ClusterElementBuilder.java +1 -1
- package/platforms/android/java/com/nativescript/massifmaps/additions/HillshadeRasterTileLayer.java +4 -4
- package/platforms/android/java/com/nativescript/massifmaps/additions/RasterTileEventListener.java +1 -1
- package/platforms/android/java/com/nativescript/massifmaps/additions/RendererCaptureListener.java +1 -1
- package/platforms/android/java/com/nativescript/massifmaps/additions/SynchronousHandler.java +28 -0
- package/platforms/android/java/com/nativescript/massifmaps/additions/TileDownloadListener.java +4 -4
- package/platforms/android/java/com/nativescript/massifmaps/additions/VectorElementEventListener.java +1 -1
- package/platforms/android/java/com/nativescript/massifmaps/additions/VectorTileEventListener.java +1 -1
- package/platforms/android/java/com/nativescript/massifmaps/additions2/FeatureCollectionSearchService.java +1 -2
- package/platforms/android/java/com/nativescript/massifmaps/additions2/VectorEditEventListener.java +21 -20
- package/platforms/android/java/com/nativescript/massifmaps/additions2/VectorTileSearchService.java +1 -2
- package/platforms/android/java/com/nativescript/massifmaps/api/EventListener.java +60 -0
- package/platforms/android/java/com/nativescript/massifmaps/geocoding/GeocodingServiceAdditions.java +5 -5
- package/platforms/android/java/com/nativescript/massifmaps/packagemanager/PackageManagerListener.java +11 -11
- package/platforms/android/java/com/nativescript/massifmaps/routing/RoutingServiceAdditions.java +19 -36
- package/platforms/android/native-api-usage.json +8 -0
- package/platforms/ios/build.xcconfig +4 -1
- package/platforms/ios/native-api-usage.json +1 -0
- package/platforms/ios/src/MassifMapsAdditions.h +1 -0
- package/platforms/ios/src/NSMSFApiEventListener.h +23 -0
- package/platforms/ios/src/NSMSFApiEventListener.mm +33 -0
- package/platforms/ios/src/NSMSFFeatureCollectionSearchService.swift +1 -1
- package/platforms/ios/src/NSMSFGeocodingServiceAdditions.swift +1 -1
- package/platforms/ios/src/NSMSFHillshadeRasterTileLayer.swift +1 -1
- package/platforms/ios/src/NSMSFMainThread.swift +21 -0
- package/platforms/ios/src/NSMSFRoutingServiceAdditions.swift +1 -1
- package/platforms/ios/src/NSMSFVectorTileSearchService.swift +1 -1
- package/projections/index.ios.js.map +1 -1
- package/renderers/index.d.ts +3 -10
- package/routing/index.android.d.ts +17 -17
- package/tsconfig.tsbuildinfo +1 -1
- package/typings/massifmaps.android.d.ts +1913 -410
- package/typings/massifmaps.ios.d.ts +21 -4
- package/typings/ns.massifmaps.android.d.ts +44 -175
- package/typings/ns.massifmaps.ios.d.ts +10 -63
- package/ui/index.android.d.ts +10 -14
- package/ui/index.android.js +6 -66
- package/ui/index.android.js.map +1 -1
- package/ui/index.common.d.ts +31 -0
- package/ui/index.common.js +130 -2
- package/ui/index.common.js.map +1 -1
- package/ui/index.d.ts +60 -21
- package/ui/index.ios.d.ts +4 -6
- package/ui/index.ios.js +5 -92
- package/ui/index.ios.js.map +1 -1
- package/utils/index.android.d.ts +9 -22
- package/utils/index.android.js +20 -129
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +9 -7
- package/utils/index.ios.d.ts +10 -18
- package/utils/index.ios.js +20 -109
- package/utils/index.ios.js.map +1 -1
- package/vectorelements/index.android.d.ts +6 -6
- package/vectorelements/line.android.d.ts +8 -11
- package/vectorelements/line.android.js +1 -4
- package/vectorelements/line.android.js.map +1 -1
- package/vectorelements/line.ios.d.ts +1 -4
- package/vectorelements/line.ios.js +1 -4
- package/vectorelements/line.ios.js.map +1 -1
- package/vectortiles/index.android.d.ts +0 -2
- package/vectortiles/index.android.js +0 -9
- package/vectortiles/index.android.js.map +1 -1
- package/platforms/android/java/com/nativescript/massifmaps/additions/AssetPackage.java +0 -59
- package/platforms/android/java/com/nativescript/massifmaps/additions/DirAssetPackage.java +0 -53
- package/platforms/android/java/com/nativescript/massifmaps/additions/MapEventListener.java +0 -17
- package/platforms/android/java/com/nativescript/massifmaps/additions/MapView.java +0 -167
- package/platforms/android/java/com/nativescript/massifmaps/additions/TextureMapView.java +0 -166
- package/platforms/ios/src/NSMSFMapEventListener.swift +0 -43
- package/platforms/ios/src/NSMSFMapView.swift +0 -106
|
@@ -1392,15 +1392,11 @@ declare class MSFCompositeVectorTileLayer extends MSFVectorTileLayer {
|
|
|
1392
1392
|
|
|
1393
1393
|
getExternalDataSourceZoomLevelBias(name: string): number;
|
|
1394
1394
|
|
|
1395
|
-
isSinglePassRenderingEnabled(): boolean;
|
|
1396
|
-
|
|
1397
1395
|
removeExternalDataSource(name: string): boolean;
|
|
1398
1396
|
|
|
1399
1397
|
setExternalDataSourceMaxOverzoomLevelLevel(name: string, level: number): void;
|
|
1400
1398
|
|
|
1401
1399
|
setExternalDataSourceZoomLevelBiasBias(name: string, bias: number): void;
|
|
1402
|
-
|
|
1403
|
-
setSinglePassRenderingEnabled(enabled: boolean): void;
|
|
1404
1400
|
}
|
|
1405
1401
|
|
|
1406
1402
|
declare class MSFContourTileDataSource extends MSFTileDataSource {
|
|
@@ -1536,6 +1532,27 @@ declare class MSFCustomRasterTileLayer extends MSFRasterTileLayer {
|
|
|
1536
1532
|
setShaderSource(shaderSource: string): void;
|
|
1537
1533
|
}
|
|
1538
1534
|
|
|
1535
|
+
declare class MSFBundleAssetPackage extends MSFAssetPackage {
|
|
1536
|
+
|
|
1537
|
+
static alloc(): MSFBundleAssetPackage; // inherited from NSObject
|
|
1538
|
+
|
|
1539
|
+
static new(): MSFBundleAssetPackage; // inherited from NSObject
|
|
1540
|
+
|
|
1541
|
+
constructor(o: { basePath: string; });
|
|
1542
|
+
|
|
1543
|
+
constructor(o: { basePath: string; baseAssetPackage: MSFAssetPackage; });
|
|
1544
|
+
|
|
1545
|
+
getBasePath(): string;
|
|
1546
|
+
|
|
1547
|
+
getLocalAssetNames(): MSFStringVector;
|
|
1548
|
+
|
|
1549
|
+
initWithBasePath(basePath: string): this;
|
|
1550
|
+
|
|
1551
|
+
initWithBasePathBaseAssetPackage(basePath: string, baseAssetPackage: MSFAssetPackage): this;
|
|
1552
|
+
|
|
1553
|
+
reload(): void;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1539
1556
|
declare class MSFDirAssetPackage extends MSFAssetPackage {
|
|
1540
1557
|
|
|
1541
1558
|
static alloc(): MSFDirAssetPackage; // inherited from NSObject
|
|
@@ -5,36 +5,6 @@
|
|
|
5
5
|
// GENERATED FILE - do not edit by hand.
|
|
6
6
|
// Regenerate with `npm run typings.android` / `npm run typings.ios`.
|
|
7
7
|
|
|
8
|
-
declare namespace com {
|
|
9
|
-
export namespace nativescript {
|
|
10
|
-
export namespace massifmaps {
|
|
11
|
-
export namespace additions {
|
|
12
|
-
export class AssetPackage extends com.massifmaps.utils.AssetPackage {
|
|
13
|
-
public static class: java.lang.Class<com.nativescript.massifmaps.additions.AssetPackage>;
|
|
14
|
-
public constructor();
|
|
15
|
-
public setInterface(inter: com.nativescript.massifmaps.additions.AssetPackage.Interface): void;
|
|
16
|
-
public constructor(inter: com.nativescript.massifmaps.additions.AssetPackage.Interface);
|
|
17
|
-
public loadAsset(name: string): com.massifmaps.core.BinaryData;
|
|
18
|
-
public constructor(inter: com.nativescript.massifmaps.additions.AssetPackage.Interface, bPackage: com.massifmaps.utils.AssetPackage);
|
|
19
|
-
public getAssetNames(): com.massifmaps.core.StringVector;
|
|
20
|
-
}
|
|
21
|
-
export namespace AssetPackage {
|
|
22
|
-
export class Interface extends java.lang.Object {
|
|
23
|
-
public static class: java.lang.Class<com.nativescript.massifmaps.additions.AssetPackage.Interface>;
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a new instance of the com.nativescript.massifmaps.additions.AssetPackage$Interface interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
|
|
26
|
-
*/
|
|
27
|
-
public constructor(implementation: { loadAsset(param0: string): com.massifmaps.core.BinaryData; getAssetNames(): com.massifmaps.core.StringVector; });
|
|
28
|
-
public constructor();
|
|
29
|
-
public loadAsset(param0: string): com.massifmaps.core.BinaryData;
|
|
30
|
-
public getAssetNames(): com.massifmaps.core.StringVector;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
8
|
declare namespace com {
|
|
39
9
|
export namespace nativescript {
|
|
40
10
|
export namespace massifmaps {
|
|
@@ -101,22 +71,6 @@ declare namespace com {
|
|
|
101
71
|
}
|
|
102
72
|
}
|
|
103
73
|
|
|
104
|
-
declare namespace com {
|
|
105
|
-
export namespace nativescript {
|
|
106
|
-
export namespace massifmaps {
|
|
107
|
-
export namespace additions {
|
|
108
|
-
export class DirAssetPackage extends com.massifmaps.utils.AssetPackage {
|
|
109
|
-
public static class: java.lang.Class<com.nativescript.massifmaps.additions.DirAssetPackage>;
|
|
110
|
-
public constructor();
|
|
111
|
-
public loadAsset(name: string): com.massifmaps.core.BinaryData;
|
|
112
|
-
public constructor(context: globalAndroid.content.Context, path: string);
|
|
113
|
-
public getAssetNames(): com.massifmaps.core.StringVector;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
74
|
declare namespace com {
|
|
121
75
|
export namespace nativescript {
|
|
122
76
|
export namespace massifmaps {
|
|
@@ -176,19 +130,6 @@ declare namespace com {
|
|
|
176
130
|
export namespace nativescript {
|
|
177
131
|
export namespace massifmaps {
|
|
178
132
|
export namespace additions {
|
|
179
|
-
export class MapEventListener extends java.lang.Object {
|
|
180
|
-
public static class: java.lang.Class<com.nativescript.massifmaps.additions.MapEventListener>;
|
|
181
|
-
/**
|
|
182
|
-
* Constructs a new instance of the com.nativescript.massifmaps.additions.MapEventListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
|
|
183
|
-
*/
|
|
184
|
-
public constructor(implementation: { onMapInteraction(param0: com.massifmaps.ui.MapInteractionInfo, param1: boolean): void; onMapMoved(param0: boolean): void; onMapIdle(): void; onMapStable(param0: boolean): void; onMapClicked(param0: com.massifmaps.ui.MapClickInfo): void; });
|
|
185
|
-
public constructor();
|
|
186
|
-
public onMapInteraction(param0: com.massifmaps.ui.MapInteractionInfo, param1: boolean): void;
|
|
187
|
-
public onMapMoved(param0: boolean): void;
|
|
188
|
-
public onMapIdle(): void;
|
|
189
|
-
public onMapStable(param0: boolean): void;
|
|
190
|
-
public onMapClicked(param0: com.massifmaps.ui.MapClickInfo): void;
|
|
191
|
-
}
|
|
192
133
|
}
|
|
193
134
|
}
|
|
194
135
|
}
|
|
@@ -199,15 +140,13 @@ declare namespace com {
|
|
|
199
140
|
export namespace massifmaps {
|
|
200
141
|
export namespace additions {
|
|
201
142
|
export class MapView extends com.massifmaps.ui.MapView {
|
|
202
|
-
public static class: java.lang.Class<com.
|
|
203
|
-
public userAction: boolean;
|
|
143
|
+
public static class: java.lang.Class<com.massifmaps.ui.MapView>;
|
|
204
144
|
public static RUN_ON_MAIN_THREAD: boolean;
|
|
205
145
|
public tilt(param0: number, param1: number): void;
|
|
206
146
|
public setZoom(param0: number, param1: number): void;
|
|
207
147
|
public surfaceRedrawNeededAsync(holder: globalAndroid.view.SurfaceHolder, drawingFinished: java.lang.Runnable): void;
|
|
208
148
|
public getLayers(): com.massifmaps.components.Layers;
|
|
209
149
|
public mapToScreen(param0: com.massifmaps.core.MapPos): com.massifmaps.core.ScreenPos;
|
|
210
|
-
public setMapEventListener(mapEventListener: com.massifmaps.ui.MapEventListener): void;
|
|
211
150
|
public getFocusPos(): com.massifmaps.core.MapPos;
|
|
212
151
|
public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, defStyleRes: number);
|
|
213
152
|
public rotate(deltaAngle: number, targetPos: com.massifmaps.core.MapPos, durationSeconds: number): void;
|
|
@@ -241,7 +180,6 @@ declare namespace com {
|
|
|
241
180
|
public getMapEventListener(): com.massifmaps.ui.MapEventListener;
|
|
242
181
|
public onSurfaceCreated(param0: javax.microedition.khronos.opengles.GL10, param1: javax.microedition.khronos.egl.EGLConfig): void;
|
|
243
182
|
public constructor(e: globalAndroid.content.Context, m: globalAndroid.util.AttributeSet);
|
|
244
|
-
public setMapEventListener(listener: com.nativescript.massifmaps.additions.MapEventListener): void;
|
|
245
183
|
public onDrawFrame(param0: javax.microedition.khronos.opengles.GL10): void;
|
|
246
184
|
public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number);
|
|
247
185
|
public getMapRotation(): number;
|
|
@@ -330,6 +268,9 @@ declare namespace com {
|
|
|
330
268
|
public static class: java.lang.Class<com.nativescript.massifmaps.additions.SynchronousHandler>;
|
|
331
269
|
public constructor();
|
|
332
270
|
public static postAndWait(is: globalAndroid.os.Handler, runnable: java.lang.Runnable): void;
|
|
271
|
+
public static run(is: globalAndroid.os.Handler, runnable: java.lang.Runnable): void;
|
|
272
|
+
public static setRunOnMainThread(value: boolean): void;
|
|
273
|
+
public static RUN_ON_MAIN_THREAD: boolean;
|
|
333
274
|
}
|
|
334
275
|
export namespace SynchronousHandler {
|
|
335
276
|
export class NotifyRunnable extends java.lang.Object implements java.lang.Runnable {
|
|
@@ -344,81 +285,6 @@ declare namespace com {
|
|
|
344
285
|
}
|
|
345
286
|
}
|
|
346
287
|
|
|
347
|
-
declare namespace com {
|
|
348
|
-
export namespace nativescript {
|
|
349
|
-
export namespace massifmaps {
|
|
350
|
-
export namespace additions {
|
|
351
|
-
export class TextureMapView extends com.massifmaps.ui.TextureMapView {
|
|
352
|
-
public static class: java.lang.Class<com.nativescript.massifmaps.additions.TextureMapView>;
|
|
353
|
-
public userAction: boolean;
|
|
354
|
-
public static RUN_ON_MAIN_THREAD: boolean;
|
|
355
|
-
public tilt(param0: number, param1: number): void;
|
|
356
|
-
public setZoom(param0: number, param1: number): void;
|
|
357
|
-
public getLayers(): com.massifmaps.components.Layers;
|
|
358
|
-
public mapToScreen(param0: com.massifmaps.core.MapPos): com.massifmaps.core.ScreenPos;
|
|
359
|
-
public setMapEventListener(mapEventListener: com.massifmaps.ui.MapEventListener): void;
|
|
360
|
-
public getFocusPos(): com.massifmaps.core.MapPos;
|
|
361
|
-
public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number, defStyleRes: number);
|
|
362
|
-
public onSurfaceTextureAvailable(param0: globalAndroid.graphics.SurfaceTexture, param1: number, param2: number): void;
|
|
363
|
-
public rotate(deltaAngle: number, targetPos: com.massifmaps.core.MapPos, durationSeconds: number): void;
|
|
364
|
-
public setMapRotation(param0: number, param1: number): void;
|
|
365
|
-
public onKeyUp(param0: number, param1: globalAndroid.view.KeyEvent): boolean;
|
|
366
|
-
public zoom(deltaZoom: number, targetPos: com.massifmaps.core.MapPos, durationSeconds: number): void;
|
|
367
|
-
public setMapRotation(angle: number, targetPos: com.massifmaps.core.MapPos, durationSeconds: number): void;
|
|
368
|
-
public unscheduleDrawable(who: globalAndroid.graphics.drawable.Drawable): void;
|
|
369
|
-
public onSurfaceChanged(param0: javax.microedition.khronos.opengles.GL10, param1: number, param2: number): void;
|
|
370
|
-
public getMapRenderer(): com.massifmaps.renderers.MapRenderer;
|
|
371
|
-
public rotate(param0: number, param1: com.massifmaps.core.MapPos, param2: number): void;
|
|
372
|
-
public screenToMap(param0: com.massifmaps.core.ScreenPos): com.massifmaps.core.MapPos;
|
|
373
|
-
public moveToFitBounds(mapBounds: com.massifmaps.core.MapBounds, screenBounds: com.massifmaps.core.ScreenBounds, integerZoom: boolean, resetRotation: boolean, resetTilt: boolean, durationSeconds: number): void;
|
|
374
|
-
public moveToFitBounds(param0: com.massifmaps.core.MapBounds, param1: com.massifmaps.core.ScreenBounds, param2: boolean, param3: number): void;
|
|
375
|
-
public pan(param0: com.massifmaps.core.MapVec, param1: number): void;
|
|
376
|
-
public onSurfaceTextureUpdated(param0: globalAndroid.graphics.SurfaceTexture): void;
|
|
377
|
-
public setZoom(zoom: number, targetPos: com.massifmaps.core.MapPos, durationSeconds: number): void;
|
|
378
|
-
public static setRunOnMainThread(value: boolean): void;
|
|
379
|
-
public onResume(): void;
|
|
380
|
-
public getTilt(): number;
|
|
381
|
-
public clearAllCaches(): void;
|
|
382
|
-
public unscheduleDrawable(param0: globalAndroid.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
|
|
383
|
-
public setTilt(param0: number, param1: number): void;
|
|
384
|
-
public onKeyLongPress(param0: number, param1: globalAndroid.view.KeyEvent): boolean;
|
|
385
|
-
public constructor(context: globalAndroid.content.Context);
|
|
386
|
-
public scheduleDrawable(param0: globalAndroid.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
|
|
387
|
-
public onSurfaceTextureSizeChanged(param0: globalAndroid.graphics.SurfaceTexture, param1: number, param2: number): void;
|
|
388
|
-
public setFocusPos(param0: com.massifmaps.core.MapPos, param1: number): void;
|
|
389
|
-
public setMapRotation(param0: number, param1: com.massifmaps.core.MapPos, param2: number): void;
|
|
390
|
-
public setZoom(param0: number, param1: com.massifmaps.core.MapPos, param2: number): void;
|
|
391
|
-
public setMapEventListener(param0: com.massifmaps.ui.MapEventListener): void;
|
|
392
|
-
public getMapEventListener(): com.massifmaps.ui.MapEventListener;
|
|
393
|
-
public onSurfaceCreated(param0: javax.microedition.khronos.opengles.GL10, param1: javax.microedition.khronos.egl.EGLConfig): void;
|
|
394
|
-
public constructor(e: globalAndroid.content.Context, this_: globalAndroid.util.AttributeSet);
|
|
395
|
-
public setMapEventListener(listener: com.nativescript.massifmaps.additions.MapEventListener): void;
|
|
396
|
-
public onDrawFrame(param0: javax.microedition.khronos.opengles.GL10): void;
|
|
397
|
-
public constructor(context: globalAndroid.content.Context, attrs: globalAndroid.util.AttributeSet, defStyleAttr: number);
|
|
398
|
-
public onLayoutChange(param0: globalAndroid.view.View, param1: number, param2: number, param3: number, param4: number, param5: number, param6: number, param7: number, param8: number): void;
|
|
399
|
-
public getMapRotation(): number;
|
|
400
|
-
public sendAccessibilityEvent(param0: number): void;
|
|
401
|
-
public getZoom(): number;
|
|
402
|
-
public onKeyDown(param0: number, param1: globalAndroid.view.KeyEvent): boolean;
|
|
403
|
-
public moveToFitBounds(param0: com.massifmaps.core.MapBounds, param1: com.massifmaps.core.ScreenBounds, param2: boolean, param3: boolean, param4: boolean, param5: number): void;
|
|
404
|
-
public cancelAllTasks(): void;
|
|
405
|
-
public getOptions(): com.massifmaps.components.Options;
|
|
406
|
-
public onSurfaceTextureDestroyed(param0: globalAndroid.graphics.SurfaceTexture): boolean;
|
|
407
|
-
public onTouchEvent(event: globalAndroid.view.MotionEvent): boolean;
|
|
408
|
-
public sendAccessibilityEventUnchecked(param0: globalAndroid.view.accessibility.AccessibilityEvent): void;
|
|
409
|
-
public onKeyMultiple(param0: number, param1: number, param2: globalAndroid.view.KeyEvent): boolean;
|
|
410
|
-
public zoom(param0: number, param1: com.massifmaps.core.MapPos, param2: number): void;
|
|
411
|
-
public rotate(param0: number, param1: number): void;
|
|
412
|
-
public onPause(): void;
|
|
413
|
-
public invalidateDrawable(param0: globalAndroid.graphics.drawable.Drawable): void;
|
|
414
|
-
public zoom(param0: number, param1: number): void;
|
|
415
|
-
public clearPreloadingCaches(): void;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
288
|
declare namespace com {
|
|
423
289
|
export namespace nativescript {
|
|
424
290
|
export namespace massifmaps {
|
|
@@ -569,14 +435,14 @@ declare namespace com {
|
|
|
569
435
|
export class VectorEditEventListener extends com.massifmaps.layers.VectorEditEventListener {
|
|
570
436
|
public static class: java.lang.Class<com.nativescript.massifmaps.additions2.VectorEditEventListener>;
|
|
571
437
|
public listener: com.nativescript.massifmaps.additions2.VectorEditEventListener.Listener;
|
|
572
|
-
public
|
|
438
|
+
public onSelectDragPointStyle(this_: com.massifmaps.vectorelements.VectorElement, element: number): com.massifmaps.styles.PointStyle;
|
|
439
|
+
public onDragMove(this_: com.massifmaps.ui.VectorElementDragInfo): number;
|
|
440
|
+
public onDragEnd(this_: com.massifmaps.ui.VectorElementDragInfo): number;
|
|
573
441
|
public constructor();
|
|
574
442
|
public onElementDelete(element: com.massifmaps.vectorelements.VectorElement): void;
|
|
575
|
-
public
|
|
576
|
-
public onDragStart(this_: com.massifmaps.ui.VectorElementDragInfo): com.massifmaps.layers.VectorElementDragResult;
|
|
443
|
+
public onDragStart(this_: com.massifmaps.ui.VectorElementDragInfo): number;
|
|
577
444
|
public onElementModify(element: com.massifmaps.vectorelements.VectorElement, geometry: com.massifmaps.geometry.Geometry): void;
|
|
578
445
|
public onElementDeselected(element: com.massifmaps.vectorelements.VectorElement): void;
|
|
579
|
-
public onDragMove(this_: com.massifmaps.ui.VectorElementDragInfo): com.massifmaps.layers.VectorElementDragResult;
|
|
580
446
|
public constructor(listener: com.nativescript.massifmaps.additions2.VectorEditEventListener.Listener);
|
|
581
447
|
public setListener(listener: com.nativescript.massifmaps.additions2.VectorEditEventListener.Listener): void;
|
|
582
448
|
public onElementSelect(this_: com.massifmaps.vectorelements.VectorElement): boolean;
|
|
@@ -587,15 +453,15 @@ declare namespace com {
|
|
|
587
453
|
/**
|
|
588
454
|
* Constructs a new instance of the com.nativescript.massifmaps.additions2.VectorEditEventListener$Listener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
|
|
589
455
|
*/
|
|
590
|
-
public constructor(implementation: { onElementSelect(param0: com.massifmaps.vectorelements.VectorElement): boolean; onSelectDragPointStyle(param0: com.massifmaps.vectorelements.VectorElement, param1:
|
|
456
|
+
public constructor(implementation: { onElementSelect(param0: com.massifmaps.vectorelements.VectorElement): boolean; onSelectDragPointStyle(param0: com.massifmaps.vectorelements.VectorElement, param1: number): com.massifmaps.styles.PointStyle; onDragEnd(param0: com.massifmaps.ui.VectorElementDragInfo): number; onDragMove(param0: com.massifmaps.ui.VectorElementDragInfo): number; onDragStart(param0: com.massifmaps.ui.VectorElementDragInfo): number; onElementDelete(param0: com.massifmaps.vectorelements.VectorElement): void; onElementDeselected(param0: com.massifmaps.vectorelements.VectorElement): void; onElementModify(param0: com.massifmaps.vectorelements.VectorElement, param1: com.massifmaps.geometry.Geometry): void; });
|
|
591
457
|
public constructor();
|
|
592
|
-
public onDragEnd(param0: com.massifmaps.ui.VectorElementDragInfo): com.massifmaps.layers.VectorElementDragResult;
|
|
593
458
|
public onElementDeselected(param0: com.massifmaps.vectorelements.VectorElement): void;
|
|
594
459
|
public onElementDelete(param0: com.massifmaps.vectorelements.VectorElement): void;
|
|
595
460
|
public onElementSelect(param0: com.massifmaps.vectorelements.VectorElement): boolean;
|
|
596
|
-
public
|
|
597
|
-
public
|
|
598
|
-
public
|
|
461
|
+
public onDragEnd(param0: com.massifmaps.ui.VectorElementDragInfo): number;
|
|
462
|
+
public onDragMove(param0: com.massifmaps.ui.VectorElementDragInfo): number;
|
|
463
|
+
public onSelectDragPointStyle(param0: com.massifmaps.vectorelements.VectorElement, param1: number): com.massifmaps.styles.PointStyle;
|
|
464
|
+
public onDragStart(param0: com.massifmaps.ui.VectorElementDragInfo): number;
|
|
599
465
|
public onElementModify(param0: com.massifmaps.vectorelements.VectorElement, param1: com.massifmaps.geometry.Geometry): void;
|
|
600
466
|
}
|
|
601
467
|
}
|
|
@@ -636,6 +502,34 @@ declare namespace com {
|
|
|
636
502
|
}
|
|
637
503
|
}
|
|
638
504
|
|
|
505
|
+
declare namespace com {
|
|
506
|
+
export namespace nativescript {
|
|
507
|
+
export namespace massifmaps {
|
|
508
|
+
export namespace api {
|
|
509
|
+
export class EventListener extends com.massifmaps.api.EventListener {
|
|
510
|
+
public static class: java.lang.Class<com.nativescript.massifmaps.api.EventListener>;
|
|
511
|
+
public listener: com.nativescript.massifmaps.api.EventListener.Listener;
|
|
512
|
+
public constructor(listener: com.nativescript.massifmaps.api.EventListener.Listener);
|
|
513
|
+
public setListener(listener: com.nativescript.massifmaps.api.EventListener.Listener): void;
|
|
514
|
+
public constructor();
|
|
515
|
+
public onEvent(target: number, event: string, payload: number): boolean;
|
|
516
|
+
}
|
|
517
|
+
export namespace EventListener {
|
|
518
|
+
export class Listener extends java.lang.Object {
|
|
519
|
+
public static class: java.lang.Class<com.nativescript.massifmaps.api.EventListener.Listener>;
|
|
520
|
+
/**
|
|
521
|
+
* Constructs a new instance of the com.nativescript.massifmaps.api.EventListener$Listener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
|
|
522
|
+
*/
|
|
523
|
+
public constructor(implementation: { onEvent(param0: number, param1: string, param2: number): boolean; });
|
|
524
|
+
public constructor();
|
|
525
|
+
public onEvent(param0: number, param1: string, param2: number): boolean;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
639
533
|
declare namespace com {
|
|
640
534
|
export namespace nativescript {
|
|
641
535
|
export namespace massifmaps {
|
|
@@ -694,6 +588,7 @@ declare namespace com {
|
|
|
694
588
|
public constructor(listener: com.nativescript.massifmaps.packagemanager.PackageManagerListener.Listener);
|
|
695
589
|
public onStyleUpdated(this_: string): void;
|
|
696
590
|
public onPackageCancelled(this_: string, id: number): void;
|
|
591
|
+
public onPackageFailed(this_: string, id: number, version: number): void;
|
|
697
592
|
public onPackageListUpdated(): void;
|
|
698
593
|
public onStyleFailed(this_: string): void;
|
|
699
594
|
public constructor();
|
|
@@ -701,7 +596,6 @@ declare namespace com {
|
|
|
701
596
|
public setListener(listener: com.nativescript.massifmaps.packagemanager.PackageManagerListener.Listener): void;
|
|
702
597
|
public onPackageListFailed(): void;
|
|
703
598
|
public onPackageStatusChanged(this_: string, id: number, version: com.massifmaps.packagemanager.PackageStatus): void;
|
|
704
|
-
public onPackageFailed(this_: string, id: number, version: com.massifmaps.packagemanager.PackageErrorType): void;
|
|
705
599
|
}
|
|
706
600
|
export namespace PackageManagerListener {
|
|
707
601
|
export class Listener extends java.lang.Object {
|
|
@@ -709,11 +603,11 @@ declare namespace com {
|
|
|
709
603
|
/**
|
|
710
604
|
* Constructs a new instance of the com.nativescript.massifmaps.packagemanager.PackageManagerListener$Listener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
|
|
711
605
|
*/
|
|
712
|
-
public constructor(implementation: { onPackageCancelled(param0: string, param1: number): void; onPackageFailed(param0: string, param1: number, param2:
|
|
606
|
+
public constructor(implementation: { onPackageCancelled(param0: string, param1: number): void; onPackageFailed(param0: string, param1: number, param2: number): void; onPackageListFailed(): void; onPackageListUpdated(): void; onPackageStatusChanged(param0: string, param1: number, param2: com.massifmaps.packagemanager.PackageStatus): void; onPackageUpdated(param0: string, param1: number): void; onStyleFailed(param0: string): void; onStyleUpdated(param0: string): void; });
|
|
713
607
|
public constructor();
|
|
608
|
+
public onPackageFailed(param0: string, param1: number, param2: number): void;
|
|
714
609
|
public onPackageUpdated(param0: string, param1: number): void;
|
|
715
610
|
public onStyleFailed(param0: string): void;
|
|
716
|
-
public onPackageFailed(param0: string, param1: number, param2: com.massifmaps.packagemanager.PackageErrorType): void;
|
|
717
611
|
public onPackageListFailed(): void;
|
|
718
612
|
public onPackageCancelled(param0: string, param1: number): void;
|
|
719
613
|
public onStyleUpdated(param0: string): void;
|
|
@@ -777,31 +671,6 @@ declare namespace com {
|
|
|
777
671
|
public static matchRoute(service: com.massifmaps.routing.PackageManagerValhallaRoutingService, request: com.massifmaps.routing.RouteMatchingRequest, profile: string, callback: com.nativescript.massifmaps.routing.RoutingServiceRouteMatchingCallback): void;
|
|
778
672
|
public static routingResultToJSON(routingResult: com.massifmaps.routing.RoutingResult, callback: com.nativescript.massifmaps.routing.RoutingResultToJSONCallback): void;
|
|
779
673
|
}
|
|
780
|
-
export namespace RoutingServiceAdditions {
|
|
781
|
-
export class RoutingAction {
|
|
782
|
-
public static class: java.lang.Class<com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction>;
|
|
783
|
-
public static HEAD_ON: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
784
|
-
public static FINISH: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
785
|
-
public static NO_TURN: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
786
|
-
public static GO_STRAIGHT: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
787
|
-
public static TURN_RIGHT: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
788
|
-
public static UTURN: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
789
|
-
public static TURN_LEFT: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
790
|
-
public static REACH_VIA_LOCATION: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
791
|
-
public static ENTER_ROUNDABOUT: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
792
|
-
public static LEAVE_ROUNDABOUT: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
793
|
-
public static STAY_ON_ROUNDABOUT: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
794
|
-
public static START_AT_END_OF_STREET: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
795
|
-
public static ENTER_AGAINST_ALLOWED_DIRECTION: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
796
|
-
public static LEAVE_AGAINST_ALLOWED_DIRECTION: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
797
|
-
public static GO_UP: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
798
|
-
public static GO_DOWN: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
799
|
-
public static WAIT: com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
800
|
-
public static values(): androidNative.Array<com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction>;
|
|
801
|
-
public static valueOf(name: string): com.nativescript.massifmaps.routing.RoutingServiceAdditions.RoutingAction;
|
|
802
|
-
public static valueOf(enumClass: java.lang.Class<any>, name: string): java.lang.Enum<any>;
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
674
|
}
|
|
806
675
|
}
|
|
807
676
|
}
|
|
@@ -182,69 +182,6 @@ declare class NSMSFHillshadeRasterTileLayer extends MSFHillshadeRasterTileLayer
|
|
|
182
182
|
getElevationsCallback(pos: MSFMapPosVector, callback: (p1: MSFDoubleVector) => void): void;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
interface NSMSFMapEventListener {
|
|
186
|
-
|
|
187
|
-
onMapClicked(mapClickInfo: MSFMapClickInfo): void;
|
|
188
|
-
|
|
189
|
-
onMapIdle(): void;
|
|
190
|
-
|
|
191
|
-
onMapInteraction(mapInteractionInfo: MSFMapInteractionInfo, userAction: boolean): void;
|
|
192
|
-
|
|
193
|
-
onMapMoved(userAction: boolean): void;
|
|
194
|
-
|
|
195
|
-
onMapStable(userAction: boolean): void;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
declare var NSMSFMapEventListener: { prototype: NSMSFMapEventListener; };
|
|
199
|
-
|
|
200
|
-
declare class NSMSFMapView extends MSFMapView {
|
|
201
|
-
|
|
202
|
-
static alloc(): NSMSFMapView; // inherited from NSObject
|
|
203
|
-
|
|
204
|
-
static appearance(): NSMSFMapView; // inherited from UIAppearance
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* @since 8.0
|
|
208
|
-
*/
|
|
209
|
-
static appearanceForTraitCollection(trait: UITraitCollection): NSMSFMapView; // inherited from UIAppearance
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @since 8.0
|
|
213
|
-
* @deprecated 9.0
|
|
214
|
-
*/
|
|
215
|
-
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): NSMSFMapView; // inherited from UIAppearance
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* @since 9.0
|
|
219
|
-
*/
|
|
220
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): NSMSFMapView; // inherited from UIAppearance
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* @since 5.0
|
|
224
|
-
* @deprecated 9.0
|
|
225
|
-
*/
|
|
226
|
-
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): NSMSFMapView; // inherited from UIAppearance
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* @since 9.0
|
|
230
|
-
*/
|
|
231
|
-
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): NSMSFMapView; // inherited from UIAppearance
|
|
232
|
-
|
|
233
|
-
static new(): NSMSFMapView; // inherited from NSObject
|
|
234
|
-
|
|
235
|
-
static setRUN_ON_MAIN_THREAD(value: boolean): void;
|
|
236
|
-
|
|
237
|
-
static setRunOnMainThreadWithValue(value: boolean): void;
|
|
238
|
-
|
|
239
|
-
listener: NSMSFMapEventListener;
|
|
240
|
-
|
|
241
|
-
userAction: boolean;
|
|
242
|
-
|
|
243
|
-
static RUN_ON_MAIN_THREAD: boolean;
|
|
244
|
-
|
|
245
|
-
setAKMapEventListener(listener: NSMSFMapEventListener): void;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
185
|
declare class NSMSFRoutingServiceAdditions extends NSObject {
|
|
249
186
|
|
|
250
187
|
static alloc(): NSMSFRoutingServiceAdditions; // inherited from NSObject
|
|
@@ -270,3 +207,13 @@ declare class NSMSFVectorTileSearchService extends MSFVectorTileSearchService {
|
|
|
270
207
|
|
|
271
208
|
findFeaturesCallback(request: MSFSearchRequest, callback: (p1: MSFVectorTileFeatureCollection, p2: NSException) => void): void;
|
|
272
209
|
}
|
|
210
|
+
|
|
211
|
+
declare class NSMSFMainThread extends NSObject {
|
|
212
|
+
static alloc(): NSMSFMainThread; // inherited from NSObject
|
|
213
|
+
|
|
214
|
+
static new(): NSMSFMainThread; // inherited from NSObject
|
|
215
|
+
|
|
216
|
+
static setRunOnMainThreadWithValue(value: boolean): void;
|
|
217
|
+
|
|
218
|
+
static RUN_ON_MAIN_THREAD: boolean;
|
|
219
|
+
}
|
package/ui/index.android.d.ts
CHANGED
|
@@ -9,23 +9,21 @@ import { FlyToOptions } from '.';
|
|
|
9
9
|
import { PostProcessEffect } from '../renderers';
|
|
10
10
|
export { MapClickedEvent, MapIdleEvent, MapMovedEvent, MapReadyEvent, MapStableEvent };
|
|
11
11
|
export declare const RenderProjectionMode: {
|
|
12
|
-
readonly RENDER_PROJECTION_MODE_PLANAR:
|
|
13
|
-
readonly RENDER_PROJECTION_MODE_SPHERICAL:
|
|
12
|
+
readonly RENDER_PROJECTION_MODE_PLANAR: number;
|
|
13
|
+
readonly RENDER_PROJECTION_MODE_SPHERICAL: number;
|
|
14
14
|
};
|
|
15
15
|
export declare const PanningMode: {
|
|
16
|
-
readonly PANNING_MODE_FREE:
|
|
17
|
-
readonly PANNING_MODE_STICKY:
|
|
18
|
-
readonly PANNING_MODE_STICKY_FINAL:
|
|
16
|
+
readonly PANNING_MODE_FREE: number;
|
|
17
|
+
readonly PANNING_MODE_STICKY: number;
|
|
18
|
+
readonly PANNING_MODE_STICKY_FINAL: number;
|
|
19
19
|
};
|
|
20
20
|
export declare class MassifMap<T = DefaultLatLonKeys> extends MassifMapViewBase {
|
|
21
21
|
[restrictedPanningProperty.setNative]: (value: boolean) => void;
|
|
22
|
-
useTextureView: boolean;
|
|
23
22
|
static setRunOnMainThread(value: boolean): void;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
23
|
+
useTextureView: boolean;
|
|
24
|
+
nativeViewProtected: com.massifmaps.ui.MapView;
|
|
27
25
|
mProjection: IProjection;
|
|
28
|
-
get mapView(): com.
|
|
26
|
+
get mapView(): com.massifmaps.ui.MapView;
|
|
29
27
|
get projection(): IProjection;
|
|
30
28
|
set projection(proj: IProjection);
|
|
31
29
|
createNativeView(): any;
|
|
@@ -33,13 +31,11 @@ export declare class MassifMap<T = DefaultLatLonKeys> extends MassifMapViewBase
|
|
|
33
31
|
onUnloaded(): void;
|
|
34
32
|
mOptions: MapOptions;
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* friends). Null until the map is ready.
|
|
34
|
+
* Wrapped once and cached: re-wrapping would drop the wrapper's own state (cached
|
|
35
|
+
* TerrainOptions...). Null until the map is ready.
|
|
39
36
|
*/
|
|
40
37
|
getOptions(): MapOptions;
|
|
41
38
|
getTerrainOptions(): TerrainOptions;
|
|
42
|
-
/** install terrain built with `new TerrainOptions({ dataSource })` */
|
|
43
39
|
setTerrainOptions(terrain: TerrainOptions): void;
|
|
44
40
|
getSkyOptions(): SkyOptions;
|
|
45
41
|
setSkyOptions(skyOptions: SkyOptions): void;
|
package/ui/index.android.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MapOptions } from '../components';
|
|
2
2
|
import { MapBounds, fromNativeMapBounds, fromNativeMapPos, fromNativeScreenPos, nativeVectorToArray, toNativeMapBounds, toNativeMapPos, toNativeScreenBounds, toNativeScreenPos } from '../core';
|
|
3
3
|
import { restrictedPanningProperty } from './cssproperties';
|
|
4
|
-
import { Layers as BaseLayers, MapClickedEvent, MapIdleEvent,
|
|
4
|
+
import { Layers as BaseLayers, MapClickedEvent, MapIdleEvent, MapMovedEvent, MapReadyEvent, MapStableEvent, MassifMapViewBase } from './index.common';
|
|
5
5
|
import { ImageSource, Property, booleanConverter } from '@nativescript/core';
|
|
6
6
|
import { PostProcessEffect } from '../renderers';
|
|
7
7
|
import { EPSG4326 } from '../projections/epsg4326';
|
|
@@ -27,7 +27,7 @@ export const PanningMode = {
|
|
|
27
27
|
};
|
|
28
28
|
export class MassifMap extends MassifMapViewBase {
|
|
29
29
|
static setRunOnMainThread(value) {
|
|
30
|
-
com.nativescript.massifmaps.additions.
|
|
30
|
+
com.nativescript.massifmaps.additions.SynchronousHandler.setRunOnMainThread(value);
|
|
31
31
|
}
|
|
32
32
|
get mapView() {
|
|
33
33
|
return super.mapView;
|
|
@@ -44,10 +44,10 @@ export class MassifMap extends MassifMapViewBase {
|
|
|
44
44
|
createNativeView() {
|
|
45
45
|
let view;
|
|
46
46
|
if (this.useTextureView) {
|
|
47
|
-
view = new com.
|
|
47
|
+
view = new com.massifmaps.ui.TextureMapView(this._context);
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
|
-
view = new com.
|
|
50
|
+
view = new com.massifmaps.ui.MapView(this._context);
|
|
51
51
|
}
|
|
52
52
|
return view;
|
|
53
53
|
}
|
|
@@ -64,9 +64,8 @@ export class MassifMap extends MassifMapViewBase {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* friends). Null until the map is ready.
|
|
67
|
+
* Wrapped once and cached: re-wrapping would drop the wrapper's own state (cached
|
|
68
|
+
* TerrainOptions...). Null until the map is ready.
|
|
70
69
|
*/
|
|
71
70
|
getOptions() {
|
|
72
71
|
if (!this.mapReady) {
|
|
@@ -81,7 +80,6 @@ export class MassifMap extends MassifMapViewBase {
|
|
|
81
80
|
getTerrainOptions() {
|
|
82
81
|
return this.getOptions()?.getTerrainOptions() ?? null;
|
|
83
82
|
}
|
|
84
|
-
/** install terrain built with `new TerrainOptions({ dataSource })` */
|
|
85
83
|
setTerrainOptions(terrain) {
|
|
86
84
|
this.getOptions()?.setTerrainOptions(terrain);
|
|
87
85
|
}
|
|
@@ -135,68 +133,10 @@ export class MassifMap extends MassifMapViewBase {
|
|
|
135
133
|
if (!this.projection) {
|
|
136
134
|
this.projection = new EPSG4326();
|
|
137
135
|
}
|
|
138
|
-
const listener = new com.nativescript.massifmaps.additions.MapEventListener({
|
|
139
|
-
onMapIdle: () => {
|
|
140
|
-
this.sendEvent(MapIdleEvent);
|
|
141
|
-
},
|
|
142
|
-
onMapMoved: (userAction) => {
|
|
143
|
-
this.sendEvent(MapMovedEvent, { userAction });
|
|
144
|
-
},
|
|
145
|
-
onMapInteraction: (interaction, userAction) => {
|
|
146
|
-
this.sendEvent(MapInteractionEvent, {
|
|
147
|
-
userAction,
|
|
148
|
-
interaction: {
|
|
149
|
-
get isAnimationStarted() {
|
|
150
|
-
return interaction.isAnimationStarted();
|
|
151
|
-
},
|
|
152
|
-
get isPanAction() {
|
|
153
|
-
return interaction.isPanAction();
|
|
154
|
-
},
|
|
155
|
-
get isRotateAction() {
|
|
156
|
-
return interaction.isRotateAction();
|
|
157
|
-
},
|
|
158
|
-
get isTiltAction() {
|
|
159
|
-
return interaction.isTiltAction();
|
|
160
|
-
},
|
|
161
|
-
get isZoomAction() {
|
|
162
|
-
return interaction.isZoomAction();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
},
|
|
167
|
-
onMapStable: (userAction) => {
|
|
168
|
-
this.sendEvent(MapStableEvent, { userAction });
|
|
169
|
-
},
|
|
170
|
-
onMapClicked: (mapClickInfo) => {
|
|
171
|
-
this.sendEvent(MapClickedEvent, {
|
|
172
|
-
android: mapClickInfo,
|
|
173
|
-
get clickInfo() {
|
|
174
|
-
return {
|
|
175
|
-
get duration() {
|
|
176
|
-
return mapClickInfo.getClickInfo().getDuration();
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
},
|
|
180
|
-
get clickType() {
|
|
181
|
-
// This will return an integer value that can be compared with the actual enum
|
|
182
|
-
return mapClickInfo.getClickType().swigValue();
|
|
183
|
-
},
|
|
184
|
-
get position() {
|
|
185
|
-
return fromNativeMapPos(mapClickInfo.getClickPos());
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
this.nativeViewProtected.listener = listener;
|
|
191
|
-
this.nativeViewProtected.setMapEventListener(listener);
|
|
192
136
|
}
|
|
193
137
|
disposeNativeView() {
|
|
194
138
|
this.mProjection = null;
|
|
195
139
|
this.nativeProjection = null;
|
|
196
|
-
if (this.nativeViewProtected.listener) {
|
|
197
|
-
this.nativeViewProtected.listener = null;
|
|
198
|
-
this.nativeViewProtected.setMapEventListener(null);
|
|
199
|
-
}
|
|
200
140
|
this.nativeView.owner = null;
|
|
201
141
|
super.disposeNativeView();
|
|
202
142
|
}
|