jmapcloud-ng-core-types 1.0.3 → 1.0.4
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/index.ts +5 -0
- package/package.json +1 -1
- package/public/core.d.ts +46 -0
package/index.ts
CHANGED
|
@@ -501,6 +501,8 @@ export interface JMapState {
|
|
|
501
501
|
scaleControlPosition: JMAP_POSITIONS
|
|
502
502
|
distanceUnit: JMAP_DISTANCE_UNITS
|
|
503
503
|
isNavigationHistoryControlVisible: boolean
|
|
504
|
+
isTerrainAvailable: boolean
|
|
505
|
+
isTerrainActive: boolean
|
|
504
506
|
isScaleControlVisible: boolean
|
|
505
507
|
isMapRotationControlVisible: boolean
|
|
506
508
|
isInfoControlVisible: boolean
|
|
@@ -691,6 +693,9 @@ export interface JMapService {
|
|
|
691
693
|
getZoom(): number
|
|
692
694
|
getMaplibreSourceIdByJMapLayerId(layerId: JId): string
|
|
693
695
|
isScaleControlVisible(): boolean
|
|
696
|
+
isTerrainAvailable(): boolean
|
|
697
|
+
isTerrainActive(): boolean
|
|
698
|
+
setTerrainActive(active: boolean): void
|
|
694
699
|
setScaleControlVisibility(isVisible: boolean, position?: JMAP_POSITIONS): void
|
|
695
700
|
setScaleControlUnits(units: "imperial" | "metric" | "nautical"): void
|
|
696
701
|
setScaleControlPosition(position: JMAP_POSITIONS): void
|
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -3101,6 +3101,52 @@ declare namespace JMap {
|
|
|
3101
3101
|
*/
|
|
3102
3102
|
function isScaleControlVisible(): boolean
|
|
3103
3103
|
|
|
3104
|
+
/**
|
|
3105
|
+
* ***JMap.Map.isTerrainAvailable***
|
|
3106
|
+
*
|
|
3107
|
+
* Returns true if the map is associated with a terrain.
|
|
3108
|
+
*
|
|
3109
|
+
* @example ```ts
|
|
3110
|
+
*
|
|
3111
|
+
* // returns true if the map is associated with a terrain
|
|
3112
|
+
* JMap.Map.isTerrainAvailable()
|
|
3113
|
+
* ```
|
|
3114
|
+
*/
|
|
3115
|
+
function isTerrainAvailable(): boolean
|
|
3116
|
+
|
|
3117
|
+
/**
|
|
3118
|
+
* ***JMap.Map.isTerrainActive***
|
|
3119
|
+
*
|
|
3120
|
+
* Returns true if the map is associated with an active terrain, false otherwise.
|
|
3121
|
+
*
|
|
3122
|
+
* @example ```ts
|
|
3123
|
+
*
|
|
3124
|
+
* // returns true if the map is associated with an active terrain, false otherwise
|
|
3125
|
+
* JMap.Map.isTerrainActive()
|
|
3126
|
+
* ```
|
|
3127
|
+
*/
|
|
3128
|
+
function isTerrainActive(): boolean
|
|
3129
|
+
|
|
3130
|
+
/**
|
|
3131
|
+
* ***JMap.Map.setTerrainActive***
|
|
3132
|
+
*
|
|
3133
|
+
* Returns true if the map is associated with a terrain.
|
|
3134
|
+
*
|
|
3135
|
+
* @param active whether to activate or deactivate the terrain
|
|
3136
|
+
* @throws Error is no terrain is available
|
|
3137
|
+
*
|
|
3138
|
+
* @example ```ts
|
|
3139
|
+
*
|
|
3140
|
+
* // returns true if the map is associated with a terrain
|
|
3141
|
+
* if(JMap.Map.isTerrainAvailable()){
|
|
3142
|
+
* JMap.Map.setTerrainActive(true)
|
|
3143
|
+
* }else{
|
|
3144
|
+
* console.log("no terrain available")
|
|
3145
|
+
* }
|
|
3146
|
+
* ```
|
|
3147
|
+
*/
|
|
3148
|
+
function setTerrainActive(active: boolean): void
|
|
3149
|
+
|
|
3104
3150
|
/**
|
|
3105
3151
|
* ***JMap.Map.setScaleControlVisibility***
|
|
3106
3152
|
*
|