jmapcloud-ng-core-types 1.0.12 → 1.0.14

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/all-enums.ts CHANGED
@@ -282,3 +282,8 @@ export const ALL_SERVER_STATUS: JSERVER_STATUS[] = [JSERVER_STATUS.STARTING, JSE
282
282
  export const ALL_JORGANIZATION_EXTERNAL_API_KEY_TYPES: JORGANIZATION_EXTERNAL_API_KEY_TYPES[] = [
283
283
  JORGANIZATION_EXTERNAL_API_KEY_TYPES.MAPBOX_ACCESS_TOKEN
284
284
  ]
285
+
286
+ export const ALL_TERRAIN_ILLUMINATION_ANCHOR_TYPES: JTERRAIN_ILLUMINATION_ANCHOR_TYPES[] = [
287
+ JTERRAIN_ILLUMINATION_ANCHOR_TYPES.MAP,
288
+ JTERRAIN_ILLUMINATION_ANCHOR_TYPES.VIEWPORT
289
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/public/core.d.ts CHANGED
@@ -806,10 +806,10 @@ declare namespace JMap {
806
806
  *
807
807
  * The {@link JLayerAddThematicParams} parameter that you must provide include those properties:
808
808
  * * the JMap Cloud layer id
809
- * * a {@link JLayerUserStyleRule} specification
809
+ * * a {@link JLayerStyleRule} specification
810
810
  * * an array of {@link JLayerSetStyleParams}
811
811
  *
812
- * The id of the thematic that will be created will be the same id than the {@link JLayerUserStyleRule} that you provided.
812
+ * The id of the thematic that will be created will be the same id than the {@link JLayerStyleRule} that you provided.
813
813
  *
814
814
  * All objects that you provide that require an id should have a unique uuid v4 id. Many programming languages let you generate such ids.
815
815
  *
@@ -444,7 +444,6 @@ declare interface JLayerStyleRule {
444
444
  id: string
445
445
  layerId: string
446
446
  active: boolean
447
- defaultRule: boolean
448
447
  name: string
449
448
  conditions: JLayerStyleRuleCondition[]
450
449
  }
@@ -534,11 +533,9 @@ declare interface JLayerTextStyle extends JLayerBaseStyle {
534
533
  italic: boolean
535
534
  }
536
535
 
537
- declare type JLayerUserStyleRule = Omit<JLayerStyleRule, "defaultRule">
538
-
539
536
  declare type JLayerAddThematicParams = {
540
537
  layerId: JId
541
- styleRule: JLayerUserStyleRule
538
+ styleRule: JLayerStyleRule
542
539
  styles: JLayerSetStyleParams[]
543
540
  }
544
541
 
@@ -1,3 +1,9 @@
1
+ // ALL_TERRAIN_ILLUMINATION_ANCHOR_TYPES in all-enum.ts
2
+ declare const enum JTERRAIN_ILLUMINATION_ANCHOR_TYPES {
3
+ VIEWPORT = "VIEWPORT",
4
+ MAP = "MAP"
5
+ }
6
+
1
7
  declare interface JProjectLoadThumbnailsParams {
2
8
  width: number
3
9
  height: number
@@ -28,6 +34,8 @@ declare interface JProject {
28
34
  initialRotation: number
29
35
  colorSelection: string
30
36
  colorBackground: string
37
+ terrainRasterDataSourceId?: JId
38
+ terrain?: JTerrainSpecification
31
39
  initialExtent: JBounds | null
32
40
  minimumVisibleZoom: number
33
41
  maximumVisibleZoom: number
@@ -43,3 +51,14 @@ declare interface JProject {
43
51
  extensions: JProjectServerExtension[]
44
52
  usageStatisticsActive: boolean
45
53
  }
54
+
55
+ declare interface JTerrainSpecification {
56
+ terrainExaggeration?: number
57
+ hillshadeExaggeration?: number
58
+ hillshadeIlluminationDirection?: number
59
+ visible?: boolean
60
+ hillshadeIlluminationAnchor?: JTERRAIN_ILLUMINATION_ANCHOR_TYPES
61
+ hillshadeAccentColor?: string
62
+ hillshadeHighlightColor?: string
63
+ hillshadeShadowColor?: string
64
+ }