jmapcloud-ng-core-types 1.0.14 → 1.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
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 JLayerStyleRule} specification
809
+ * * a {@link JLayerUserStyleRule} 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 JLayerStyleRule} that you provided.
812
+ * The id of the thematic that will be created will be the same id than the {@link JLayerUserStyleRule} 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,6 +444,7 @@ declare interface JLayerStyleRule {
444
444
  id: string
445
445
  layerId: string
446
446
  active: boolean
447
+ defaultRule: boolean
447
448
  name: string
448
449
  conditions: JLayerStyleRuleCondition[]
449
450
  }
@@ -533,9 +534,11 @@ declare interface JLayerTextStyle extends JLayerBaseStyle {
533
534
  italic: boolean
534
535
  }
535
536
 
537
+ declare type JLayerUserStyleRule = Omit<JLayerStyleRule, "defaultRule">
538
+
536
539
  declare type JLayerAddThematicParams = {
537
540
  layerId: JId
538
- styleRule: JLayerStyleRule
541
+ styleRule: JLayerUserStyleRule
539
542
  styles: JLayerSetStyleParams[]
540
543
  }
541
544