@massif-maps/typings 6.5.0 → 6.5.3
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/dist/massif-api.d.ts +40 -0
- package/dist/schema.js +4 -3
- package/package.json +1 -1
package/dist/massif-api.d.ts
CHANGED
|
@@ -362,6 +362,13 @@ export type CompositeSourceType =
|
|
|
362
362
|
| 'COMPOSITE_SOURCE_TYPE_VECTOR'
|
|
363
363
|
;
|
|
364
364
|
|
|
365
|
+
export type FarTileLOD =
|
|
366
|
+
/** Far tiles lose zoom from the first degree of tilt: fewer tiles and a lighter frame. For vector styles, where a far tile is mostly lines and labels. The default, and what the SDK always did. */
|
|
367
|
+
| 'FAR_TILE_LOD_COARSE'
|
|
368
|
+
/** A tile's zoom follows its distance from the eye, as in mapbox-gl-js: nothing is lost within 45 degrees of vertical and the horizon stretches by a bounded factor. For raster, hybrid and imagery layers, where far ground has to stay sharp. Asks for more tiles at a steep tilt. */
|
|
369
|
+
| 'FAR_TILE_LOD_DISTANCE'
|
|
370
|
+
;
|
|
371
|
+
|
|
365
372
|
export type FlightEasing =
|
|
366
373
|
/** cubic-bezier(0.25, 0.1, 0.25, 1), the CSS "ease". The default, and mapbox-gl's. */
|
|
367
374
|
| 'FLIGHT_EASING_EASE'
|
|
@@ -794,6 +801,8 @@ export interface PropertyTypes {
|
|
|
794
801
|
/** (read-only) Returns the bounds of this projection. */
|
|
795
802
|
readonly 'dataSource.projection.bounds': Bounds;
|
|
796
803
|
readonly 'dataSource.projection.name': string;
|
|
804
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
805
|
+
'farTileLOD': 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
797
806
|
/** Returns the current frame number. */
|
|
798
807
|
'frameNr': number;
|
|
799
808
|
/** Returns the timestamps of the time steps. */
|
|
@@ -2026,6 +2035,8 @@ export interface PropertyTypes {
|
|
|
2026
2035
|
/** (read-only) Returns the bounds of this projection. */
|
|
2027
2036
|
readonly 'dataSource.projection.bounds': Bounds;
|
|
2028
2037
|
readonly 'dataSource.projection.name': string;
|
|
2038
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
2039
|
+
'farTileLOD': 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
2029
2040
|
/** Returns the current frame number. */
|
|
2030
2041
|
'frameNr': number;
|
|
2031
2042
|
/** Returns the label blending speed, in full fades per second. */
|
|
@@ -2398,6 +2409,8 @@ export interface PropertyTypes {
|
|
|
2398
2409
|
/** (read-only) Returns the bounds of this projection. */
|
|
2399
2410
|
readonly 'dataSource.projection.bounds': Bounds;
|
|
2400
2411
|
readonly 'dataSource.projection.name': string;
|
|
2412
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
2413
|
+
'farTileLOD': 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
2401
2414
|
/** Returns the current frame number. */
|
|
2402
2415
|
'frameNr': number;
|
|
2403
2416
|
/** Gets the current maximum overzoom level for this layer. */
|
|
@@ -3020,6 +3033,8 @@ export interface PropertyTypes {
|
|
|
3020
3033
|
'exagerateHeightScaleEnabled': boolean;
|
|
3021
3034
|
/** Returns the per-frame relief exaggeration factor, i.e. the vertical exaggeration of the slope. Unlike height scale this is a shader uniform applied at render time (no tile re-decode), so it can be animated smoothly. */
|
|
3022
3035
|
'exaggeration': number;
|
|
3036
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
3037
|
+
'farTileLOD': 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
3023
3038
|
/** Returns the current frame number. */
|
|
3024
3039
|
'frameNr': number;
|
|
3025
3040
|
/** Returns the height scale of the hillshade overlay. */
|
|
@@ -4283,6 +4298,8 @@ export interface PropertyTypes {
|
|
|
4283
4298
|
'DPI': number;
|
|
4284
4299
|
/** Returns the color of the ambient light. */
|
|
4285
4300
|
'ambientLightColor': number;
|
|
4301
|
+
/** (read-only) Returns the scale the map is drawn at right now: the buffer's size over the view's. Read only. */
|
|
4302
|
+
readonly 'appliedRenderScale': number;
|
|
4286
4303
|
/** Returns the background bitmap. May be null. */
|
|
4287
4304
|
'background': Handle;
|
|
4288
4305
|
/** (read-only) Returns the bytes per pixel parameter of this bitmap. Valid values are 1, 2, 3 and 4. */
|
|
@@ -4513,6 +4530,10 @@ export interface PropertyTypes {
|
|
|
4513
4530
|
readonly 'projection.name': string;
|
|
4514
4531
|
/** Returns the render projection mode. */
|
|
4515
4532
|
'renderProjectionMode': 'RENDER_PROJECTION_MODE_PLANAR' | 'RENDER_PROJECTION_MODE_SPHERICAL' | number;
|
|
4533
|
+
/** Returns the render scale used while the map is flat, the fraction of the view's pixels the map is drawn at. */
|
|
4534
|
+
'renderScale': number;
|
|
4535
|
+
/** Returns the render scale used while the map is in 3D: terrain that is not flattened, or a tilted view. */
|
|
4536
|
+
'renderScale3D': number;
|
|
4516
4537
|
/** Returns the state of the restricted panning flag. */
|
|
4517
4538
|
'restrictedPanning': boolean;
|
|
4518
4539
|
/** Returns the state of the map rotatability flag. */
|
|
@@ -5714,6 +5735,8 @@ export interface PropertyTypes {
|
|
|
5714
5735
|
/** (read-only) Returns the bounds of this projection. */
|
|
5715
5736
|
readonly 'dataSource.projection.bounds': Bounds;
|
|
5716
5737
|
readonly 'dataSource.projection.name': string;
|
|
5738
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
5739
|
+
'farTileLOD': 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
5717
5740
|
/** Returns the current frame number. */
|
|
5718
5741
|
'frameNr': number;
|
|
5719
5742
|
/** Gets the current maximum overzoom level for this layer. */
|
|
@@ -6499,6 +6522,8 @@ export interface PropertyTypes {
|
|
|
6499
6522
|
/** (read-only) Returns the bounds of this projection. */
|
|
6500
6523
|
readonly 'dataSource.projection.bounds': Bounds;
|
|
6501
6524
|
readonly 'dataSource.projection.name': string;
|
|
6525
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
6526
|
+
'farTileLOD': 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
6502
6527
|
/** Returns the current frame number. */
|
|
6503
6528
|
'frameNr': number;
|
|
6504
6529
|
/** Gets the current maximum overzoom level for this layer. */
|
|
@@ -6965,6 +6990,8 @@ export interface PropertyTypes {
|
|
|
6965
6990
|
/** (read-only) Returns the bounds of this projection. */
|
|
6966
6991
|
readonly 'dataSource.projection.bounds': Bounds;
|
|
6967
6992
|
readonly 'dataSource.projection.name': string;
|
|
6993
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
6994
|
+
'farTileLOD': 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
6968
6995
|
/** Returns the current frame number. */
|
|
6969
6996
|
'frameNr': number;
|
|
6970
6997
|
/** Returns the label blending speed, in full fades per second. */
|
|
@@ -10445,6 +10472,8 @@ export interface LayerSpec_animated_raster {
|
|
|
10445
10472
|
billboardsUnderLabels?: boolean;
|
|
10446
10473
|
/** Returns the culling delay of the layer in milliseconds. */
|
|
10447
10474
|
cullDelay?: number;
|
|
10475
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
10476
|
+
farTileLOD?: 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
10448
10477
|
/** Returns the current frame number. */
|
|
10449
10478
|
frameNr?: number;
|
|
10450
10479
|
/** Returns the timestamps of the time steps. */
|
|
@@ -10534,6 +10563,8 @@ export interface LayerSpec_composite_vector {
|
|
|
10534
10563
|
clickRadius?: number;
|
|
10535
10564
|
/** Returns the culling delay of the layer in milliseconds. */
|
|
10536
10565
|
cullDelay?: number;
|
|
10566
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
10567
|
+
farTileLOD?: 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
10537
10568
|
/** Returns the current frame number. */
|
|
10538
10569
|
frameNr?: number;
|
|
10539
10570
|
/** Returns the label blending speed, in full fades per second. */
|
|
@@ -10592,6 +10623,8 @@ export interface LayerSpec_custom_raster {
|
|
|
10592
10623
|
billboardsUnderLabels?: boolean;
|
|
10593
10624
|
/** Returns the culling delay of the layer in milliseconds. */
|
|
10594
10625
|
cullDelay?: number;
|
|
10626
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
10627
|
+
farTileLOD?: 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
10595
10628
|
/** Returns the current frame number. */
|
|
10596
10629
|
frameNr?: number;
|
|
10597
10630
|
/** Gets the current maximum overzoom level for this layer. */
|
|
@@ -10690,6 +10723,8 @@ export interface LayerSpec_hillshade {
|
|
|
10690
10723
|
exagerateHeightScaleEnabled?: boolean;
|
|
10691
10724
|
/** Returns the per-frame relief exaggeration factor, i.e. the vertical exaggeration of the slope. Unlike height scale this is a shader uniform applied at render time (no tile re-decode), so it can be animated smoothly. */
|
|
10692
10725
|
exaggeration?: number;
|
|
10726
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
10727
|
+
farTileLOD?: 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
10693
10728
|
/** Returns the current frame number. */
|
|
10694
10729
|
frameNr?: number;
|
|
10695
10730
|
/** Returns the height scale of the hillshade overlay. */
|
|
@@ -10764,6 +10799,8 @@ export interface LayerSpec_raster {
|
|
|
10764
10799
|
billboardsUnderLabels?: boolean;
|
|
10765
10800
|
/** Returns the culling delay of the layer in milliseconds. */
|
|
10766
10801
|
cullDelay?: number;
|
|
10802
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
10803
|
+
farTileLOD?: 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
10767
10804
|
/** Returns the current frame number. */
|
|
10768
10805
|
frameNr?: number;
|
|
10769
10806
|
/** Gets the current maximum overzoom level for this layer. */
|
|
@@ -10847,6 +10884,8 @@ export interface LayerSpec_vector {
|
|
|
10847
10884
|
clickRadius?: number;
|
|
10848
10885
|
/** Returns the culling delay of the layer in milliseconds. */
|
|
10849
10886
|
cullDelay?: number;
|
|
10887
|
+
/** Gets how this layer's far tiles lose zoom when the map is tilted. */
|
|
10888
|
+
farTileLOD?: 'FAR_TILE_LOD_COARSE' | 'FAR_TILE_LOD_DISTANCE' | number;
|
|
10850
10889
|
/** Returns the current frame number. */
|
|
10851
10890
|
frameNr?: number;
|
|
10852
10891
|
/** Returns the label blending speed, in full fades per second. */
|
|
@@ -11947,6 +11986,7 @@ export interface MethodTypes {
|
|
|
11947
11986
|
add: { args: [database: string]; result: void };
|
|
11948
11987
|
addLocale: { args: [key: string, json: string]; result: void };
|
|
11949
11988
|
calculateRoute: { args: [request: Handle]; result: Handle<'massif::RoutingResult'>; resultClass: 'massif::RoutingResult' };
|
|
11989
|
+
lookAhead: { args: [lat: number, lon: number, bearing: number, lengthMeters: number, profile: string]; result: string };
|
|
11950
11990
|
matchRoute: { args: [request: Handle]; result: Handle<'massif::RouteMatchingResult'>; resultClass: 'massif::RouteMatchingResult' };
|
|
11951
11991
|
remove: { args: [database: string]; result: boolean };
|
|
11952
11992
|
setConfigurationParameter: { args: [param: string, value: Json]; result: void };
|
package/dist/schema.js
CHANGED
|
@@ -114,7 +114,7 @@ export const PROPS = {
|
|
|
114
114
|
'massif::NMLModel': 'rotationAngle,f;rotationAxis,t;scale,f;style,o,massif::NMLModelStyle',
|
|
115
115
|
'massif::NMLModelStyle': 'modelAsset,o,massif::BinaryData;orientationMode,e,BillboardOrientation;scalingMode,e,BillboardScaling',
|
|
116
116
|
'massif::NMLModelStyleBuilder': 'modelAsset,o,massif::BinaryData;orientationMode,e,BillboardOrientation;scalingMode,e,BillboardScaling',
|
|
117
|
-
'massif::Options': 'DPI,f;ambientLightColor,c;backgroundBitmap,o,massif::Bitmap;baseProjection,o,massif::Projection;clearColor,c;clickMovingTolerance,f;clickTypeDetection,b;debugTileBorders,b;doubleClickDetection,b;doubleClickMaxDuration,f;drawDistance,f;envelopeThreadPoolSize,i;fieldOfViewY,f;focusPointOffset,t;fogOptions,o,massif::FogOptions;freeRoamLookSensitivity,f;freeRoamMode,e,FreeRoamMode;freeRoamMoveSpeed,f;kineticPan,b;kineticRotation,b;kineticZoom,b;labelPadding,f;labelViewDistance,f;layersLabelsProcessedInReverseOrder,b;lightOptions,o,massif::LightOptions;longClickDuration,f;mainLightColor,c;mainLightDirection,t;modelAnimationsEnabled,b;modelShadowsEnabled,b;orbitAroundPivot,b;panBounds,p;panningMode,e,PanningMode;panningSpeedMode,e,PanningSpeedMode;pivotMode,e,PivotMode;renderProjectionMode,e,RenderProjectionMode;restrictedPanning,b;rotatable,b;rotationGestures,b;seamlessPanning,b;skyColor,c;skyOptions,o,massif::SkyOptions;terrainOptions,o,massif::TerrainOptions;tileDrawSize,i;tileLODFactor,f;tileLODMaxZoomLevelsOnScreen,f;tileLODProfile,e,TileLODProfile;tileLODTileCountRatio,f;tileStyleZoomLift,i;tileThreadPoolSize,i;tiltGestureReversed,b;tiltRange,t;userInput,b;zoomGestures,b;zoomOffset,f;zoomRange,t',
|
|
117
|
+
'massif::Options': 'DPI,f;ambientLightColor,c;appliedRenderScale,f;backgroundBitmap,o,massif::Bitmap;baseProjection,o,massif::Projection;clearColor,c;clickMovingTolerance,f;clickTypeDetection,b;debugTileBorders,b;doubleClickDetection,b;doubleClickMaxDuration,f;drawDistance,f;envelopeThreadPoolSize,i;fieldOfViewY,f;focusPointOffset,t;fogOptions,o,massif::FogOptions;freeRoamLookSensitivity,f;freeRoamMode,e,FreeRoamMode;freeRoamMoveSpeed,f;kineticPan,b;kineticRotation,b;kineticZoom,b;labelPadding,f;labelViewDistance,f;layersLabelsProcessedInReverseOrder,b;lightOptions,o,massif::LightOptions;longClickDuration,f;mainLightColor,c;mainLightDirection,t;modelAnimationsEnabled,b;modelShadowsEnabled,b;orbitAroundPivot,b;panBounds,p;panningMode,e,PanningMode;panningSpeedMode,e,PanningSpeedMode;pivotMode,e,PivotMode;renderProjectionMode,e,RenderProjectionMode;renderScale,f;renderScale3D,f;restrictedPanning,b;rotatable,b;rotationGestures,b;seamlessPanning,b;skyColor,c;skyOptions,o,massif::SkyOptions;terrainOptions,o,massif::TerrainOptions;tileDrawSize,i;tileLODFactor,f;tileLODMaxZoomLevelsOnScreen,f;tileLODProfile,e,TileLODProfile;tileLODTileCountRatio,f;tileStyleZoomLift,i;tileThreadPoolSize,i;tiltGestureReversed,b;tiltRange,t;userInput,b;zoomGestures,b;zoomOffset,f;zoomRange,t',
|
|
118
118
|
'massif::PackageInfo': 'metaInfo,o,massif::PackageMetaInfo;name,s;packageId,s;packageType,e,PackageType;size,i;tileMask,o,massif::PackageTileMask;version,i',
|
|
119
119
|
'massif::PackageManager': 'localPackages,t;packageManagerListener,o,massif::PackageManagerListener;serverPackageListAge,i;serverPackageListMetaInfo,o,massif::PackageMetaInfo;serverPackages,t',
|
|
120
120
|
'massif::PackageManagerTileDataSource': 'packageManager,o,massif::PackageManager',
|
|
@@ -168,7 +168,7 @@ export const PROPS = {
|
|
|
168
168
|
'massif::TileData': 'data,o,massif::BinaryData;height,i;maxAge,i;rawPixels,b;replaceWithParent,b;width,i',
|
|
169
169
|
'massif::TileDataSource': 'dataExtent,p;maxOverzoomLevel,i;maxZoom,i;metaData,g,v;minZoom,i;projection,o,massif::Projection',
|
|
170
170
|
'massif::TileDownloadInfo': 'progress,f;tile,t;tileCount,i',
|
|
171
|
-
'massif::TileLayer': 'UTFGridDataSource,o,massif::TileDataSource;UTFGridEventListener,o,massif::UTFGridEventListener;dataSource,o,massif::TileDataSource;frameNr,i;maxOverzoomLevel,i;maxStandInLevel,i;maxUnderzoomLevel,i;preloading,b;preloadingTileCount,i;projection,o,massif::Projection;synchronizedRefresh,b;tileLoadListener,o,massif::TileLoadListener;tileSubstitutionPolicy,e,TileSubstitutionPolicy;visibleTileCount,i;zoomLevelBias,f',
|
|
171
|
+
'massif::TileLayer': 'UTFGridDataSource,o,massif::TileDataSource;UTFGridEventListener,o,massif::UTFGridEventListener;dataSource,o,massif::TileDataSource;farTileLOD,e,FarTileLOD;frameNr,i;maxOverzoomLevel,i;maxStandInLevel,i;maxUnderzoomLevel,i;preloading,b;preloadingTileCount,i;projection,o,massif::Projection;synchronizedRefresh,b;tileLoadListener,o,massif::TileLoadListener;tileSubstitutionPolicy,e,TileSubstitutionPolicy;visibleTileCount,i;zoomLevelBias,f',
|
|
172
172
|
'massif::TomTomOnlineGeocodingService': 'customServiceURL,s',
|
|
173
173
|
'massif::TomTomOnlineReverseGeocodingService': 'customServiceURL,s',
|
|
174
174
|
'massif::UTFGridClickInfo': 'clickInfo,t;clickPos,p;clickType,e,ClickType;elementInfo,v;layer,o,massif::Layer',
|
|
@@ -325,6 +325,7 @@ export const ENUMS = {
|
|
|
325
325
|
ClusterBuilderMode: 'CLUSTER_BUILDER_MODE_ELEMENTS=0,CLUSTER_BUILDER_MODE_ELEMENT_COUNT=1',
|
|
326
326
|
ColorFormat: 'COLOR_FORMAT_UNSUPPORTED=0,COLOR_FORMAT_BGRA=1,COLOR_FORMAT_RGBA_4444=2,COLOR_FORMAT_RGB_565=3',
|
|
327
327
|
CompositeSourceType: 'COMPOSITE_SOURCE_TYPE_RASTER=0,COMPOSITE_SOURCE_TYPE_HILLSHADE=1,COMPOSITE_SOURCE_TYPE_VECTOR=2',
|
|
328
|
+
FarTileLOD: 'FAR_TILE_LOD_COARSE=0,FAR_TILE_LOD_DISTANCE=1',
|
|
328
329
|
FlightEasing: 'FLIGHT_EASING_EASE=0,FLIGHT_EASING_LINEAR=1,FLIGHT_EASING_EASE_IN=2,FLIGHT_EASING_EASE_OUT=3,FLIGHT_EASING_EASE_IN_OUT=4',
|
|
329
330
|
FreeRoamMode: 'FREE_ROAM_MODE_OFF=0,FREE_ROAM_MODE_LOOK=1,FREE_ROAM_MODE_FIRST_PERSON=2',
|
|
330
331
|
GeometryType: 'GEOMETRY_TYPE_POINT=0,GEOMETRY_TYPE_LINE=1,GEOMETRY_TYPE_POLYGON=2,GEOMETRY_TYPE_MULTIPOINT=3,GEOMETRY_TYPE_MULTILINE=4,GEOMETRY_TYPE_MULTIPOLYGON=5,GEOMETRY_TYPE_COLLECTION=6',
|
|
@@ -511,7 +512,7 @@ export const METHODS = {
|
|
|
511
512
|
'massif::MultiOSMOfflineGeocodingService': 'add,v;remove,b',
|
|
512
513
|
'massif::MultiOSMOfflineReverseGeocodingService': 'add,v;remove,b',
|
|
513
514
|
'massif::MultiTileDataSource': 'add,v;remove,b',
|
|
514
|
-
'massif::MultiValhallaOfflineRoutingService': 'add,v;addLocale,v;remove,b;setConfigurationParameter,v',
|
|
515
|
+
'massif::MultiValhallaOfflineRoutingService': 'add,v;addLocale,v;lookAhead,s;remove,b;setConfigurationParameter,v',
|
|
515
516
|
'massif::PersistentCacheTileDataSource': 'clear,v;startDownloadArea,v;stopAllDownloads,v',
|
|
516
517
|
'massif::ReverseGeocodingService': 'calculateAddresses,j',
|
|
517
518
|
'massif::RouteMatchingRequest': 'setCustomParameter,v',
|