@jupytergis/schema 0.12.2 → 0.13.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.
@@ -211,13 +211,15 @@
211
211
  ],
212
212
  "properties": {
213
213
  "renderType": {
214
- "type": "string"
214
+ "type": "string",
215
+ "default": "Heatmap"
215
216
  },
216
217
  "colorRamp": {
217
218
  "type": "string",
218
219
  "default": "viridis"
219
220
  }
220
- }
221
+ },
222
+ "default": {}
221
223
  }
222
224
  }
223
225
  },
@@ -290,7 +292,8 @@
290
292
  "properties": {
291
293
  "data": {
292
294
  "type": "object",
293
- "description": "The data of the source"
295
+ "description": "The data of the source",
296
+ "default": {}
294
297
  },
295
298
  "opacity": {
296
299
  "type": "number",
@@ -304,7 +307,6 @@
304
307
  },
305
308
  "StorySegmentLayer": {
306
309
  "type": "object",
307
- "additionalProperties": false,
308
310
  "required": [
309
311
  "zoom",
310
312
  "extent",
@@ -324,20 +326,26 @@
324
326
  },
325
327
  "content": {
326
328
  "type": "object",
329
+ "title": "Segment Content",
327
330
  "additionalProperties": false,
328
331
  "properties": {
329
332
  "title": {
330
- "type": "string"
333
+ "title": "Segment Title",
334
+ "type": "string",
335
+ "default": ""
331
336
  },
332
337
  "image": {
333
338
  "type": "string",
334
- "description": "Link to image for the story"
339
+ "description": "Link to image for the story",
340
+ "default": ""
335
341
  },
336
342
  "markdown": {
337
343
  "type": "string",
338
- "description": "Markdown string representing the content of the story stop"
344
+ "description": "Markdown string representing the content of the story stop",
345
+ "default": ""
339
346
  }
340
- }
347
+ },
348
+ "default": {}
341
349
  },
342
350
  "transition": {
343
351
  "type": "object",
@@ -362,7 +370,53 @@
362
370
  "required": [
363
371
  "type",
364
372
  "time"
365
- ]
373
+ ],
374
+ "default": {
375
+ "type": "linear",
376
+ "time": 1
377
+ }
378
+ },
379
+ "layerOverride": {
380
+ "type": "array",
381
+ "title": "Layer Override",
382
+ "description": "Layer overrides to apply to target layers when this story segment is active",
383
+ "items": {
384
+ "type": "object",
385
+ "properties": {
386
+ "targetLayer": {
387
+ "type": "string",
388
+ "title": "Target Layer",
389
+ "description": "The name of the layer to apply a layer override to when this story segment is active",
390
+ "default": ""
391
+ },
392
+ "visible": {
393
+ "type": "boolean",
394
+ "title": "Visibility",
395
+ "default": true,
396
+ "description": "Override the target layer visibility while this story segment is active"
397
+ },
398
+ "opacity": {
399
+ "type": "number",
400
+ "title": "Opacity",
401
+ "description": "Override the target layer opacity while this story segment is active",
402
+ "minimum": 0,
403
+ "maximum": 1,
404
+ "multipleOf": 0.1,
405
+ "default": 1
406
+ },
407
+ "symbologyState": {
408
+ "type": "object",
409
+ "description": "The symbology state override (renderType, value, method, etc.)",
410
+ "default": {}
411
+ },
412
+ "color": {
413
+ "type": "object",
414
+ "description": "The color/style override",
415
+ "default": {}
416
+ }
417
+ }
418
+ },
419
+ "default": []
366
420
  }
367
421
  }
368
422
  },
@@ -379,7 +433,8 @@
379
433
  },
380
434
  "color": {
381
435
  "type": "object",
382
- "description": "The color of the the object"
436
+ "description": "The color of the the object",
437
+ "default": {}
383
438
  },
384
439
  "opacity": {
385
440
  "type": "number",
@@ -402,25 +457,32 @@
402
457
  "Single Symbol",
403
458
  "Graduated",
404
459
  "Categorized"
405
- ]
460
+ ],
461
+ "default": "Single Symbol"
406
462
  },
407
463
  "value": {
408
- "type": "string"
464
+ "type": "string",
465
+ "default": ""
409
466
  },
410
467
  "method": {
411
468
  "type": "string",
412
469
  "enum": [
413
470
  "color",
414
471
  "radius"
415
- ]
472
+ ],
473
+ "default": "color"
416
474
  },
417
475
  "colorRamp": {
418
476
  "type": "string",
419
477
  "default": "viridis"
420
478
  },
421
479
  "nClasses": {
422
- "type": "string",
423
- "default": "9"
480
+ "type": "number",
481
+ "default": 9
482
+ },
483
+ "reverse": {
484
+ "type": "boolean",
485
+ "default": false
424
486
  },
425
487
  "mode": {
426
488
  "type": "string",
@@ -434,7 +496,15 @@
434
496
  ]
435
497
  }
436
498
  },
437
- "additionalProperties": false
499
+ "additionalProperties": false,
500
+ "default": {
501
+ "renderType": "Single Symbol",
502
+ "value": "",
503
+ "method": "color",
504
+ "colorRamp": "viridis",
505
+ "nClasses": "9",
506
+ "mode": "equal interval"
507
+ }
438
508
  }
439
509
  }
440
510
  },
@@ -451,7 +521,8 @@
451
521
  },
452
522
  "color": {
453
523
  "type": "object",
454
- "description": "The color of the the object"
524
+ "description": "The color of the the object",
525
+ "default": {}
455
526
  },
456
527
  "opacity": {
457
528
  "type": "number",
@@ -460,6 +531,57 @@
460
531
  "multipleOf": 0.1,
461
532
  "minimum": 0,
462
533
  "maximum": 1
534
+ },
535
+ "symbologyState": {
536
+ "type": "object",
537
+ "description": "The state of the symbology panel options",
538
+ "required": [
539
+ "renderType"
540
+ ],
541
+ "properties": {
542
+ "renderType": {
543
+ "type": "string",
544
+ "enum": [
545
+ "Single Symbol",
546
+ "Graduated",
547
+ "Categorized"
548
+ ],
549
+ "default": "Single Symbol"
550
+ },
551
+ "value": {
552
+ "type": "string",
553
+ "default": ""
554
+ },
555
+ "method": {
556
+ "type": "string",
557
+ "enum": [
558
+ "color",
559
+ "radius"
560
+ ],
561
+ "default": "color"
562
+ },
563
+ "colorRamp": {
564
+ "type": "string",
565
+ "default": "viridis"
566
+ },
567
+ "nClasses": {
568
+ "type": "string",
569
+ "default": "9"
570
+ },
571
+ "mode": {
572
+ "type": "string",
573
+ "default": "equal interval",
574
+ "enum": [
575
+ "quantile",
576
+ "equal interval",
577
+ "jenks",
578
+ "pretty",
579
+ "logarithmic"
580
+ ]
581
+ }
582
+ },
583
+ "additionalProperties": false,
584
+ "default": {}
463
585
  }
464
586
  }
465
587
  },
@@ -540,22 +662,28 @@
540
662
  ],
541
663
  "properties": {
542
664
  "renderType": {
543
- "type": "string"
665
+ "type": "string",
666
+ "default": "Single Symbol"
544
667
  },
545
668
  "band": {
546
- "type": "number"
669
+ "type": "number",
670
+ "default": 1
547
671
  },
548
672
  "redBand": {
549
- "type": "number"
673
+ "type": "number",
674
+ "default": 1
550
675
  },
551
676
  "greenBand": {
552
- "type": "number"
677
+ "type": "number",
678
+ "default": 2
553
679
  },
554
680
  "blueBand": {
555
- "type": "number"
681
+ "type": "number",
682
+ "default": 3
556
683
  },
557
684
  "alphaBand": {
558
- "type": "number"
685
+ "type": "number",
686
+ "default": 4
559
687
  },
560
688
  "interpolation": {
561
689
  "type": "string",
@@ -563,7 +691,8 @@
563
691
  "discrete",
564
692
  "linear",
565
693
  "exact"
566
- ]
694
+ ],
695
+ "default": "linear"
567
696
  },
568
697
  "colorRamp": {
569
698
  "type": "string",
@@ -583,7 +712,19 @@
583
712
  ]
584
713
  }
585
714
  },
586
- "additionalProperties": false
715
+ "additionalProperties": false,
716
+ "default": {
717
+ "renderType": "Single Symbol",
718
+ "band": 1,
719
+ "redBand": 1,
720
+ "greenBand": 2,
721
+ "blueBand": 3,
722
+ "alphaBand": 4,
723
+ "interpolation": "linear",
724
+ "colorRamp": "viridis",
725
+ "nClasses": "9",
726
+ "mode": "equal interval"
727
+ }
587
728
  }
588
729
  }
589
730
  },
@@ -596,7 +737,8 @@
596
737
  "properties": {
597
738
  "path": {
598
739
  "type": "string",
599
- "description": "The path to the GeoParquet source"
740
+ "description": "The path to the GeoParquet source",
741
+ "default": ""
600
742
  },
601
743
  "attribution": {
602
744
  "type": "string",
@@ -624,18 +766,23 @@
624
766
  "type": "object",
625
767
  "properties": {
626
768
  "url": {
627
- "type": "string"
769
+ "type": "string",
770
+ "default": ""
628
771
  },
629
772
  "min": {
630
- "type": "number"
773
+ "type": "number",
774
+ "default": null
631
775
  },
632
776
  "max": {
633
- "type": "number"
777
+ "type": "number",
778
+ "default": null
634
779
  }
635
- }
780
+ },
781
+ "default": {}
636
782
  },
637
783
  "minItems": 1,
638
- "description": "URLs"
784
+ "description": "URLs",
785
+ "default": []
639
786
  },
640
787
  "normalize": {
641
788
  "type": "boolean",
@@ -665,7 +812,8 @@
665
812
  "path": {
666
813
  "type": "string",
667
814
  "readOnly": true,
668
- "description": "Path that points to an image"
815
+ "description": "Path that points to an image",
816
+ "default": ""
669
817
  },
670
818
  "coordinates": {
671
819
  "type": "array",
@@ -699,7 +847,8 @@
699
847
  "properties": {
700
848
  "color": {
701
849
  "type": "string",
702
- "description": "Color of the marker icon (hex, rgb, rgba, or named color)"
850
+ "description": "Color of the marker icon (hex, rgb, rgba, or named color)",
851
+ "default": ""
703
852
  },
704
853
  "feature": {
705
854
  "type": "object",
@@ -714,8 +863,18 @@
714
863
  "maxItems": 2,
715
864
  "items": {
716
865
  "type": "number"
717
- }
866
+ },
867
+ "default": [
868
+ 0,
869
+ 0
870
+ ]
718
871
  }
872
+ },
873
+ "default": {
874
+ "coords": [
875
+ 0,
876
+ 0
877
+ ]
719
878
  }
720
879
  }
721
880
  }
@@ -729,17 +888,20 @@
729
888
  "properties": {
730
889
  "url": {
731
890
  "type": "string",
732
- "description": "The url to the tile provider"
891
+ "description": "The url to the tile provider",
892
+ "default": ""
733
893
  },
734
894
  "attribution": {
735
895
  "type": "string",
736
- "description": "The attribution for the raster-dem source"
896
+ "description": "The attribution for the raster-dem source",
897
+ "default": ""
737
898
  },
738
899
  "urlParameters": {
739
900
  "type": "object",
740
901
  "additionalProperties": {
741
902
  "type": "string"
742
- }
903
+ },
904
+ "default": {}
743
905
  },
744
906
  "interpolate": {
745
907
  "type": "boolean",
@@ -759,7 +921,8 @@
759
921
  "properties": {
760
922
  "url": {
761
923
  "type": "string",
762
- "description": "The url to the tile provider"
924
+ "description": "The url to the tile provider",
925
+ "default": ""
763
926
  },
764
927
  "minZoom": {
765
928
  "type": "number",
@@ -830,7 +993,8 @@
830
993
  "properties": {
831
994
  "path": {
832
995
  "type": "string",
833
- "description": "The path to the shapefile (.shp, .zip, or folder URL)."
996
+ "description": "The path to the shapefile (.shp, .zip, or folder URL).",
997
+ "default": ""
834
998
  },
835
999
  "attribution": {
836
1000
  "type": "string",
@@ -869,34 +1033,40 @@
869
1033
  "properties": {
870
1034
  "url": {
871
1035
  "type": "string",
872
- "description": "The url to the tile provider"
1036
+ "description": "The url to the tile provider",
1037
+ "default": ""
873
1038
  },
874
1039
  "minZoom": {
875
1040
  "type": "number",
876
1041
  "minimum": 0,
877
1042
  "maximum": 24,
878
- "description": "The minimum zoom level for the vector source"
1043
+ "description": "The minimum zoom level for the vector source",
1044
+ "default": 0
879
1045
  },
880
1046
  "maxZoom": {
881
1047
  "type": "number",
882
1048
  "minimum": 0,
883
1049
  "maximum": 24,
884
- "description": "The maximum zoom level for the vector source"
1050
+ "description": "The maximum zoom level for the vector source",
1051
+ "default": 24
885
1052
  },
886
1053
  "attribution": {
887
1054
  "type": "string",
888
- "description": "The attribution for the vector source"
1055
+ "description": "The attribution for the vector source",
1056
+ "default": ""
889
1057
  },
890
1058
  "provider": {
891
1059
  "type": "string",
892
1060
  "readOnly": true,
893
- "description": "The map provider"
1061
+ "description": "The map provider",
1062
+ "default": ""
894
1063
  },
895
1064
  "urlParameters": {
896
1065
  "type": "object",
897
1066
  "additionalProperties": {
898
1067
  "type": "string"
899
- }
1068
+ },
1069
+ "default": {}
900
1070
  }
901
1071
  }
902
1072
  },
@@ -941,7 +1111,8 @@
941
1111
  "properties": {
942
1112
  "path": {
943
1113
  "type": "string",
944
- "description": "The local path to a GeoJSON file"
1114
+ "description": "The local path to a GeoJSON file",
1115
+ "default": ""
945
1116
  },
946
1117
  "data": {
947
1118
  "type": "object",
@@ -2439,7 +2610,8 @@
2439
2610
  "valid": {
2440
2611
  "type": "boolean",
2441
2612
  "description": "Whether the data are valid or not",
2442
- "readOnly": true
2613
+ "readOnly": true,
2614
+ "default": false
2443
2615
  }
2444
2616
  }
2445
2617
  }
@@ -5,23 +5,48 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
+ export type SegmentTitle = string;
9
+ /**
10
+ * The name of the layer to apply a layer override to when this story segment is active
11
+ */
12
+ export type TargetLayer = string;
13
+ /**
14
+ * Override the target layer visibility while this story segment is active
15
+ */
16
+ export type Visibility = boolean;
17
+ /**
18
+ * Override the target layer opacity while this story segment is active
19
+ */
20
+ export type Opacity = number;
21
+ /**
22
+ * Layer overrides to apply to target layers when this story segment is active
23
+ */
24
+ export type LayerOverride = {
25
+ targetLayer?: TargetLayer;
26
+ visible?: Visibility;
27
+ opacity?: Opacity;
28
+ /**
29
+ * The symbology state override (renderType, value, method, etc.)
30
+ */
31
+ symbologyState?: {
32
+ [k: string]: any;
33
+ };
34
+ /**
35
+ * The color/style override
36
+ */
37
+ color?: {
38
+ [k: string]: any;
39
+ };
40
+ [k: string]: any;
41
+ }[];
42
+
8
43
  /**
9
44
  * StorySegmentLayer
10
45
  */
11
46
  export interface IStorySegmentLayer {
12
47
  zoom: number;
13
48
  extent: number[];
14
- content?: {
15
- title?: string;
16
- /**
17
- * Link to image for the story
18
- */
19
- image?: string;
20
- /**
21
- * Markdown string representing the content of the story stop
22
- */
23
- markdown?: string;
24
- };
49
+ content?: SegmentContent;
25
50
  /**
26
51
  * Transition configuration between to this story segment
27
52
  */
@@ -36,4 +61,17 @@ export interface IStorySegmentLayer {
36
61
  time: number;
37
62
  [k: string]: any;
38
63
  };
64
+ layerOverride?: LayerOverride;
65
+ [k: string]: any;
66
+ }
67
+ export interface SegmentContent {
68
+ title?: SegmentTitle;
69
+ /**
70
+ * Link to image for the story
71
+ */
72
+ image?: string;
73
+ /**
74
+ * Markdown string representing the content of the story stop
75
+ */
76
+ markdown?: string;
39
77
  }
@@ -31,7 +31,8 @@ export interface IVectorLayer {
31
31
  value?: string;
32
32
  method?: "color" | "radius";
33
33
  colorRamp?: string;
34
- nClasses?: string;
34
+ nClasses?: number;
35
+ reverse?: boolean;
35
36
  mode?: "quantile" | "equal interval" | "jenks" | "pretty" | "logarithmic";
36
37
  };
37
38
  }
@@ -23,4 +23,15 @@ export interface IVectorTileLayer {
23
23
  * The opacity of the the object
24
24
  */
25
25
  opacity?: number;
26
+ /**
27
+ * The state of the symbology panel options
28
+ */
29
+ symbologyState?: {
30
+ renderType: "Single Symbol" | "Graduated" | "Categorized";
31
+ value?: string;
32
+ method?: "color" | "radius";
33
+ colorRamp?: string;
34
+ nClasses?: string;
35
+ mode?: "quantile" | "equal interval" | "jenks" | "pretty" | "logarithmic";
36
+ };
26
37
  }
@@ -40,13 +40,15 @@
40
40
  "required": ["renderType"],
41
41
  "properties": {
42
42
  "renderType": {
43
- "type": "string"
43
+ "type": "string",
44
+ "default": "Heatmap"
44
45
  },
45
46
  "colorRamp": {
46
47
  "type": "string",
47
48
  "default": "viridis"
48
49
  }
49
- }
50
+ },
51
+ "default": {}
50
52
  }
51
53
  }
52
54
  }
@@ -7,7 +7,8 @@
7
7
  "properties": {
8
8
  "data": {
9
9
  "type": "object",
10
- "description": "The data of the source"
10
+ "description": "The data of the source",
11
+ "default": {}
11
12
  },
12
13
  "opacity": {
13
14
  "type": "number",
@@ -2,7 +2,6 @@
2
2
  "type": "object",
3
3
  "description": "StorySegmentLayer",
4
4
  "title": "IStorySegmentLayer",
5
- "additionalProperties": false,
6
5
  "required": ["zoom", "extent", "transition"],
7
6
  "properties": {
8
7
  "zoom": {
@@ -18,20 +17,26 @@
18
17
  },
19
18
  "content": {
20
19
  "type": "object",
20
+ "title": "Segment Content",
21
21
  "additionalProperties": false,
22
22
  "properties": {
23
23
  "title": {
24
- "type": "string"
24
+ "title": "Segment Title",
25
+ "type": "string",
26
+ "default": ""
25
27
  },
26
28
  "image": {
27
29
  "type": "string",
28
- "description": "Link to image for the story"
30
+ "description": "Link to image for the story",
31
+ "default": ""
29
32
  },
30
33
  "markdown": {
31
34
  "type": "string",
32
- "description": "Markdown string representing the content of the story stop"
35
+ "description": "Markdown string representing the content of the story stop",
36
+ "default": ""
33
37
  }
34
- }
38
+ },
39
+ "default": {}
35
40
  },
36
41
  "transition": {
37
42
  "type": "object",
@@ -49,7 +54,50 @@
49
54
  "default": 1
50
55
  }
51
56
  },
52
- "required": ["type", "time"]
57
+ "required": ["type", "time"],
58
+ "default": { "type": "linear", "time": 1 }
59
+ },
60
+ "layerOverride": {
61
+ "type": "array",
62
+ "title": "Layer Override",
63
+ "description": "Layer overrides to apply to target layers when this story segment is active",
64
+ "items": {
65
+ "type": "object",
66
+ "properties": {
67
+ "targetLayer": {
68
+ "type": "string",
69
+ "title": "Target Layer",
70
+ "description": "The name of the layer to apply a layer override to when this story segment is active",
71
+ "default": ""
72
+ },
73
+ "visible": {
74
+ "type": "boolean",
75
+ "title": "Visibility",
76
+ "default": true,
77
+ "description": "Override the target layer visibility while this story segment is active"
78
+ },
79
+ "opacity": {
80
+ "type": "number",
81
+ "title": "Opacity",
82
+ "description": "Override the target layer opacity while this story segment is active",
83
+ "minimum": 0,
84
+ "maximum": 1,
85
+ "multipleOf": 0.1,
86
+ "default": 1.0
87
+ },
88
+ "symbologyState": {
89
+ "type": "object",
90
+ "description": "The symbology state override (renderType, value, method, etc.)",
91
+ "default": {}
92
+ },
93
+ "color": {
94
+ "type": "object",
95
+ "description": "The color/style override",
96
+ "default": {}
97
+ }
98
+ }
99
+ },
100
+ "default": []
53
101
  }
54
102
  }
55
103
  }
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "color": {
13
13
  "type": "object",
14
- "description": "The color of the the object"
14
+ "description": "The color of the the object",
15
+ "default": {}
15
16
  },
16
17
  "opacity": {
17
18
  "type": "number",
@@ -28,22 +29,29 @@
28
29
  "properties": {
29
30
  "renderType": {
30
31
  "type": "string",
31
- "enum": ["Single Symbol", "Graduated", "Categorized"]
32
+ "enum": ["Single Symbol", "Graduated", "Categorized"],
33
+ "default": "Single Symbol"
32
34
  },
33
35
  "value": {
34
- "type": "string"
36
+ "type": "string",
37
+ "default": ""
35
38
  },
36
39
  "method": {
37
40
  "type": "string",
38
- "enum": ["color", "radius"]
41
+ "enum": ["color", "radius"],
42
+ "default": "color"
39
43
  },
40
44
  "colorRamp": {
41
45
  "type": "string",
42
46
  "default": "viridis"
43
47
  },
44
48
  "nClasses": {
45
- "type": "string",
46
- "default": "9"
49
+ "type": "number",
50
+ "default": 9.0
51
+ },
52
+ "reverse": {
53
+ "type": "boolean",
54
+ "default": false
47
55
  },
48
56
  "mode": {
49
57
  "type": "string",
@@ -57,7 +65,15 @@
57
65
  ]
58
66
  }
59
67
  },
60
- "additionalProperties": false
68
+ "additionalProperties": false,
69
+ "default": {
70
+ "renderType": "Single Symbol",
71
+ "value": "",
72
+ "method": "color",
73
+ "colorRamp": "viridis",
74
+ "nClasses": "9",
75
+ "mode": "equal interval"
76
+ }
61
77
  }
62
78
  }
63
79
  }
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "color": {
13
13
  "type": "object",
14
- "description": "The color of the the object"
14
+ "description": "The color of the the object",
15
+ "default": {}
15
16
  },
16
17
  "opacity": {
17
18
  "type": "number",
@@ -20,6 +21,48 @@
20
21
  "multipleOf": 0.1,
21
22
  "minimum": 0,
22
23
  "maximum": 1
24
+ },
25
+ "symbologyState": {
26
+ "type": "object",
27
+ "description": "The state of the symbology panel options",
28
+ "required": ["renderType"],
29
+ "properties": {
30
+ "renderType": {
31
+ "type": "string",
32
+ "enum": ["Single Symbol", "Graduated", "Categorized"],
33
+ "default": "Single Symbol"
34
+ },
35
+ "value": {
36
+ "type": "string",
37
+ "default": ""
38
+ },
39
+ "method": {
40
+ "type": "string",
41
+ "enum": ["color", "radius"],
42
+ "default": "color"
43
+ },
44
+ "colorRamp": {
45
+ "type": "string",
46
+ "default": "viridis"
47
+ },
48
+ "nClasses": {
49
+ "type": "string",
50
+ "default": "9"
51
+ },
52
+ "mode": {
53
+ "type": "string",
54
+ "default": "equal interval",
55
+ "enum": [
56
+ "quantile",
57
+ "equal interval",
58
+ "jenks",
59
+ "pretty",
60
+ "logarithmic"
61
+ ]
62
+ }
63
+ },
64
+ "additionalProperties": false,
65
+ "default": {}
23
66
  }
24
67
  }
25
68
  }
@@ -54,26 +54,33 @@
54
54
  "required": ["renderType"],
55
55
  "properties": {
56
56
  "renderType": {
57
- "type": "string"
57
+ "type": "string",
58
+ "default": "Single Symbol"
58
59
  },
59
60
  "band": {
60
- "type": "number"
61
+ "type": "number",
62
+ "default": 1
61
63
  },
62
64
  "redBand": {
63
- "type": "number"
65
+ "type": "number",
66
+ "default": 1
64
67
  },
65
68
  "greenBand": {
66
- "type": "number"
69
+ "type": "number",
70
+ "default": 2
67
71
  },
68
72
  "blueBand": {
69
- "type": "number"
73
+ "type": "number",
74
+ "default": 3
70
75
  },
71
76
  "alphaBand": {
72
- "type": "number"
77
+ "type": "number",
78
+ "default": 4
73
79
  },
74
80
  "interpolation": {
75
81
  "type": "string",
76
- "enum": ["discrete", "linear", "exact"]
82
+ "enum": ["discrete", "linear", "exact"],
83
+ "default": "linear"
77
84
  },
78
85
  "colorRamp": {
79
86
  "type": "string",
@@ -89,7 +96,19 @@
89
96
  "enum": ["continuous", "equal interval", "quantile"]
90
97
  }
91
98
  },
92
- "additionalProperties": false
99
+ "additionalProperties": false,
100
+ "default": {
101
+ "renderType": "Single Symbol",
102
+ "band": 1,
103
+ "redBand": 1,
104
+ "greenBand": 2,
105
+ "blueBand": 3,
106
+ "alphaBand": 4,
107
+ "interpolation": "linear",
108
+ "colorRamp": "viridis",
109
+ "nClasses": "9",
110
+ "mode": "equal interval"
111
+ }
93
112
  }
94
113
  }
95
114
  }
@@ -7,7 +7,8 @@
7
7
  "properties": {
8
8
  "path": {
9
9
  "type": "string",
10
- "description": "The local path to a GeoJSON file"
10
+ "description": "The local path to a GeoJSON file",
11
+ "default": ""
11
12
  },
12
13
  "data": {
13
14
  "type": "object",
@@ -17,7 +18,8 @@
17
18
  "valid": {
18
19
  "type": "boolean",
19
20
  "description": "Whether the data are valid or not",
20
- "readOnly": true
21
+ "readOnly": true,
22
+ "default": false
21
23
  }
22
24
  }
23
25
  }
@@ -7,7 +7,8 @@
7
7
  "properties": {
8
8
  "path": {
9
9
  "type": "string",
10
- "description": "The path to the GeoParquet source"
10
+ "description": "The path to the GeoParquet source",
11
+ "default": ""
11
12
  },
12
13
  "attribution": {
13
14
  "type": "string",
@@ -11,18 +11,23 @@
11
11
  "type": "object",
12
12
  "properties": {
13
13
  "url": {
14
- "type": "string"
14
+ "type": "string",
15
+ "default": ""
15
16
  },
16
17
  "min": {
17
- "type": "number"
18
+ "type": "number",
19
+ "default": null
18
20
  },
19
21
  "max": {
20
- "type": "number"
22
+ "type": "number",
23
+ "default": null
21
24
  }
22
- }
25
+ },
26
+ "default": {}
23
27
  },
24
28
  "minItems": 1,
25
- "description": "URLs"
29
+ "description": "URLs",
30
+ "default": []
26
31
  },
27
32
  "normalize": {
28
33
  "type": "boolean",
@@ -8,7 +8,8 @@
8
8
  "path": {
9
9
  "type": "string",
10
10
  "readOnly": true,
11
- "description": "Path that points to an image"
11
+ "description": "Path that points to an image",
12
+ "default": ""
12
13
  },
13
14
  "coordinates": {
14
15
  "type": "array",
@@ -7,7 +7,8 @@
7
7
  "properties": {
8
8
  "color": {
9
9
  "type": "string",
10
- "description": "Color of the marker icon (hex, rgb, rgba, or named color)"
10
+ "description": "Color of the marker icon (hex, rgb, rgba, or named color)",
11
+ "default": ""
11
12
  },
12
13
  "feature": {
13
14
  "type": "object",
@@ -20,9 +21,11 @@
20
21
  "maxItems": 2,
21
22
  "items": {
22
23
  "type": "number"
23
- }
24
+ },
25
+ "default": [0, 0]
24
26
  }
25
- }
27
+ },
28
+ "default": { "coords": [0, 0] }
26
29
  }
27
30
  }
28
31
  }
@@ -7,17 +7,20 @@
7
7
  "properties": {
8
8
  "url": {
9
9
  "type": "string",
10
- "description": "The url to the tile provider"
10
+ "description": "The url to the tile provider",
11
+ "default": ""
11
12
  },
12
13
  "attribution": {
13
14
  "type": "string",
14
- "description": "The attribution for the raster-dem source"
15
+ "description": "The attribution for the raster-dem source",
16
+ "default": ""
15
17
  },
16
18
  "urlParameters": {
17
19
  "type": "object",
18
20
  "additionalProperties": {
19
21
  "type": "string"
20
- }
22
+ },
23
+ "default": {}
21
24
  },
22
25
  "interpolate": {
23
26
  "type": "boolean",
@@ -7,7 +7,8 @@
7
7
  "properties": {
8
8
  "url": {
9
9
  "type": "string",
10
- "description": "The url to the tile provider"
10
+ "description": "The url to the tile provider",
11
+ "default": ""
11
12
  },
12
13
  "minZoom": {
13
14
  "type": "number",
@@ -7,7 +7,8 @@
7
7
  "properties": {
8
8
  "path": {
9
9
  "type": "string",
10
- "description": "The path to the shapefile (.shp, .zip, or folder URL)."
10
+ "description": "The path to the shapefile (.shp, .zip, or folder URL).",
11
+ "default": ""
11
12
  },
12
13
  "attribution": {
13
14
  "type": "string",
@@ -7,34 +7,40 @@
7
7
  "properties": {
8
8
  "url": {
9
9
  "type": "string",
10
- "description": "The url to the tile provider"
10
+ "description": "The url to the tile provider",
11
+ "default": ""
11
12
  },
12
13
  "minZoom": {
13
14
  "type": "number",
14
15
  "minimum": 0,
15
16
  "maximum": 24,
16
- "description": "The minimum zoom level for the vector source"
17
+ "description": "The minimum zoom level for the vector source",
18
+ "default": 0
17
19
  },
18
20
  "maxZoom": {
19
21
  "type": "number",
20
22
  "minimum": 0,
21
23
  "maximum": 24,
22
- "description": "The maximum zoom level for the vector source"
24
+ "description": "The maximum zoom level for the vector source",
25
+ "default": 24
23
26
  },
24
27
  "attribution": {
25
28
  "type": "string",
26
- "description": "The attribution for the vector source"
29
+ "description": "The attribution for the vector source",
30
+ "default": ""
27
31
  },
28
32
  "provider": {
29
33
  "type": "string",
30
34
  "readOnly": true,
31
- "description": "The map provider"
35
+ "description": "The map provider",
36
+ "default": ""
32
37
  },
33
38
  "urlParameters": {
34
39
  "type": "object",
35
40
  "additionalProperties": {
36
41
  "type": "string"
37
- }
42
+ },
43
+ "default": {}
38
44
  }
39
45
  }
40
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/schema",
3
- "version": "0.12.2",
3
+ "version": "0.13.1",
4
4
  "description": "A JupyterGIS schema package.",
5
5
  "keywords": [
6
6
  "jupytergis"
@@ -30,7 +30,7 @@
30
30
  "build:processing": "python scripts/process.py",
31
31
  "build:schema:registry": "echo 'Generating combined schema file for schema registry...' && cd src/schema && node ../../scripts/dereference-and-combine-schemas-for-registry.js",
32
32
  "build:schema:js": "echo 'Generating TypeScript types from schema...' && json2ts -i src/schema -o src/_interface --no-unknownAny --unreachableDefinitions --cwd ./src/schema && node ./scripts/add-schema-version.js && cp -R ./src/_interface/* ./lib/_interface/.",
33
- "build:schema:py": "echo 'Generating Python types from schema...' && node scripts/preprocess-schemas-for-python-type-generation.js && datamodel-codegen --input ./temp-schema --output ../../python/jupytergis_core/jupytergis_core/schema/interfaces --output-model-type pydantic_v2.BaseModel --input-file-type jsonschema && rm -rf ./temp-schema",
33
+ "build:schema:py": "echo 'Generating Python types from schema...' && node scripts/preprocess-schemas-for-python-type-generation.js && datamodel-codegen --input ./temp-schema --output ../../python/jupytergis_core/jupytergis_core/schema/interfaces --output-model-type pydantic_v2.BaseModel --input-file-type jsonschema --set-default-enum-member && rm -rf ./temp-schema",
34
34
  "build:prod": "jlpm run clean && jlpm build:schema && jlpm run build:lib",
35
35
  "build:lib": "tsc -b",
36
36
  "build:dev": "jlpm run build",