@jupytergis/schema 0.13.0 → 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.
- package/lib/_interface/forms.json +137 -54
- package/lib/_interface/project/layers/storySegmentLayer.d.ts +4 -4
- package/lib/_interface/project/layers/vectorLayer.d.ts +2 -1
- package/lib/schema/project/layers/heatmapLayer.json +4 -2
- package/lib/schema/project/layers/stacLayer.json +2 -1
- package/lib/schema/project/layers/storySegmentLayer.json +15 -9
- package/lib/schema/project/layers/vectorLayer.json +23 -7
- package/lib/schema/project/layers/vectorTileLayer.json +10 -5
- package/lib/schema/project/layers/webGlLayer.json +27 -8
- package/lib/schema/project/sources/geoJsonSource.json +4 -2
- package/lib/schema/project/sources/geoParquetSource.json +2 -1
- package/lib/schema/project/sources/geoTiffSource.json +10 -5
- package/lib/schema/project/sources/imageSource.json +2 -1
- package/lib/schema/project/sources/markerSource.json +6 -3
- package/lib/schema/project/sources/rasterDemSource.json +6 -3
- package/lib/schema/project/sources/rasterSource.json +2 -1
- package/lib/schema/project/sources/shapefileSource.json +2 -1
- package/lib/schema/project/sources/vectorTileSource.json +12 -6
- package/package.json +2 -2
|
@@ -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",
|
|
@@ -328,17 +331,21 @@
|
|
|
328
331
|
"properties": {
|
|
329
332
|
"title": {
|
|
330
333
|
"title": "Segment Title",
|
|
331
|
-
"type": "string"
|
|
334
|
+
"type": "string",
|
|
335
|
+
"default": ""
|
|
332
336
|
},
|
|
333
337
|
"image": {
|
|
334
338
|
"type": "string",
|
|
335
|
-
"description": "Link to image for the story"
|
|
339
|
+
"description": "Link to image for the story",
|
|
340
|
+
"default": ""
|
|
336
341
|
},
|
|
337
342
|
"markdown": {
|
|
338
343
|
"type": "string",
|
|
339
|
-
"description": "Markdown string representing the content of the story stop"
|
|
344
|
+
"description": "Markdown string representing the content of the story stop",
|
|
345
|
+
"default": ""
|
|
340
346
|
}
|
|
341
|
-
}
|
|
347
|
+
},
|
|
348
|
+
"default": {}
|
|
342
349
|
},
|
|
343
350
|
"transition": {
|
|
344
351
|
"type": "object",
|
|
@@ -363,19 +370,23 @@
|
|
|
363
370
|
"required": [
|
|
364
371
|
"type",
|
|
365
372
|
"time"
|
|
366
|
-
]
|
|
373
|
+
],
|
|
374
|
+
"default": {
|
|
375
|
+
"type": "linear",
|
|
376
|
+
"time": 1
|
|
377
|
+
}
|
|
367
378
|
},
|
|
368
379
|
"layerOverride": {
|
|
369
380
|
"type": "array",
|
|
370
|
-
"title": "
|
|
371
|
-
"description": "
|
|
381
|
+
"title": "Layer Override",
|
|
382
|
+
"description": "Layer overrides to apply to target layers when this story segment is active",
|
|
372
383
|
"items": {
|
|
373
384
|
"type": "object",
|
|
374
385
|
"properties": {
|
|
375
386
|
"targetLayer": {
|
|
376
387
|
"type": "string",
|
|
377
388
|
"title": "Target Layer",
|
|
378
|
-
"description": "The name of the layer to apply a
|
|
389
|
+
"description": "The name of the layer to apply a layer override to when this story segment is active",
|
|
379
390
|
"default": ""
|
|
380
391
|
},
|
|
381
392
|
"visible": {
|
|
@@ -404,7 +415,8 @@
|
|
|
404
415
|
"default": {}
|
|
405
416
|
}
|
|
406
417
|
}
|
|
407
|
-
}
|
|
418
|
+
},
|
|
419
|
+
"default": []
|
|
408
420
|
}
|
|
409
421
|
}
|
|
410
422
|
},
|
|
@@ -421,7 +433,8 @@
|
|
|
421
433
|
},
|
|
422
434
|
"color": {
|
|
423
435
|
"type": "object",
|
|
424
|
-
"description": "The color of the the object"
|
|
436
|
+
"description": "The color of the the object",
|
|
437
|
+
"default": {}
|
|
425
438
|
},
|
|
426
439
|
"opacity": {
|
|
427
440
|
"type": "number",
|
|
@@ -444,25 +457,32 @@
|
|
|
444
457
|
"Single Symbol",
|
|
445
458
|
"Graduated",
|
|
446
459
|
"Categorized"
|
|
447
|
-
]
|
|
460
|
+
],
|
|
461
|
+
"default": "Single Symbol"
|
|
448
462
|
},
|
|
449
463
|
"value": {
|
|
450
|
-
"type": "string"
|
|
464
|
+
"type": "string",
|
|
465
|
+
"default": ""
|
|
451
466
|
},
|
|
452
467
|
"method": {
|
|
453
468
|
"type": "string",
|
|
454
469
|
"enum": [
|
|
455
470
|
"color",
|
|
456
471
|
"radius"
|
|
457
|
-
]
|
|
472
|
+
],
|
|
473
|
+
"default": "color"
|
|
458
474
|
},
|
|
459
475
|
"colorRamp": {
|
|
460
476
|
"type": "string",
|
|
461
477
|
"default": "viridis"
|
|
462
478
|
},
|
|
463
479
|
"nClasses": {
|
|
464
|
-
"type": "
|
|
465
|
-
"default":
|
|
480
|
+
"type": "number",
|
|
481
|
+
"default": 9
|
|
482
|
+
},
|
|
483
|
+
"reverse": {
|
|
484
|
+
"type": "boolean",
|
|
485
|
+
"default": false
|
|
466
486
|
},
|
|
467
487
|
"mode": {
|
|
468
488
|
"type": "string",
|
|
@@ -476,7 +496,15 @@
|
|
|
476
496
|
]
|
|
477
497
|
}
|
|
478
498
|
},
|
|
479
|
-
"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
|
+
}
|
|
480
508
|
}
|
|
481
509
|
}
|
|
482
510
|
},
|
|
@@ -493,7 +521,8 @@
|
|
|
493
521
|
},
|
|
494
522
|
"color": {
|
|
495
523
|
"type": "object",
|
|
496
|
-
"description": "The color of the the object"
|
|
524
|
+
"description": "The color of the the object",
|
|
525
|
+
"default": {}
|
|
497
526
|
},
|
|
498
527
|
"opacity": {
|
|
499
528
|
"type": "number",
|
|
@@ -516,17 +545,20 @@
|
|
|
516
545
|
"Single Symbol",
|
|
517
546
|
"Graduated",
|
|
518
547
|
"Categorized"
|
|
519
|
-
]
|
|
548
|
+
],
|
|
549
|
+
"default": "Single Symbol"
|
|
520
550
|
},
|
|
521
551
|
"value": {
|
|
522
|
-
"type": "string"
|
|
552
|
+
"type": "string",
|
|
553
|
+
"default": ""
|
|
523
554
|
},
|
|
524
555
|
"method": {
|
|
525
556
|
"type": "string",
|
|
526
557
|
"enum": [
|
|
527
558
|
"color",
|
|
528
559
|
"radius"
|
|
529
|
-
]
|
|
560
|
+
],
|
|
561
|
+
"default": "color"
|
|
530
562
|
},
|
|
531
563
|
"colorRamp": {
|
|
532
564
|
"type": "string",
|
|
@@ -548,7 +580,8 @@
|
|
|
548
580
|
]
|
|
549
581
|
}
|
|
550
582
|
},
|
|
551
|
-
"additionalProperties": false
|
|
583
|
+
"additionalProperties": false,
|
|
584
|
+
"default": {}
|
|
552
585
|
}
|
|
553
586
|
}
|
|
554
587
|
},
|
|
@@ -629,22 +662,28 @@
|
|
|
629
662
|
],
|
|
630
663
|
"properties": {
|
|
631
664
|
"renderType": {
|
|
632
|
-
"type": "string"
|
|
665
|
+
"type": "string",
|
|
666
|
+
"default": "Single Symbol"
|
|
633
667
|
},
|
|
634
668
|
"band": {
|
|
635
|
-
"type": "number"
|
|
669
|
+
"type": "number",
|
|
670
|
+
"default": 1
|
|
636
671
|
},
|
|
637
672
|
"redBand": {
|
|
638
|
-
"type": "number"
|
|
673
|
+
"type": "number",
|
|
674
|
+
"default": 1
|
|
639
675
|
},
|
|
640
676
|
"greenBand": {
|
|
641
|
-
"type": "number"
|
|
677
|
+
"type": "number",
|
|
678
|
+
"default": 2
|
|
642
679
|
},
|
|
643
680
|
"blueBand": {
|
|
644
|
-
"type": "number"
|
|
681
|
+
"type": "number",
|
|
682
|
+
"default": 3
|
|
645
683
|
},
|
|
646
684
|
"alphaBand": {
|
|
647
|
-
"type": "number"
|
|
685
|
+
"type": "number",
|
|
686
|
+
"default": 4
|
|
648
687
|
},
|
|
649
688
|
"interpolation": {
|
|
650
689
|
"type": "string",
|
|
@@ -652,7 +691,8 @@
|
|
|
652
691
|
"discrete",
|
|
653
692
|
"linear",
|
|
654
693
|
"exact"
|
|
655
|
-
]
|
|
694
|
+
],
|
|
695
|
+
"default": "linear"
|
|
656
696
|
},
|
|
657
697
|
"colorRamp": {
|
|
658
698
|
"type": "string",
|
|
@@ -672,7 +712,19 @@
|
|
|
672
712
|
]
|
|
673
713
|
}
|
|
674
714
|
},
|
|
675
|
-
"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
|
+
}
|
|
676
728
|
}
|
|
677
729
|
}
|
|
678
730
|
},
|
|
@@ -685,7 +737,8 @@
|
|
|
685
737
|
"properties": {
|
|
686
738
|
"path": {
|
|
687
739
|
"type": "string",
|
|
688
|
-
"description": "The path to the GeoParquet source"
|
|
740
|
+
"description": "The path to the GeoParquet source",
|
|
741
|
+
"default": ""
|
|
689
742
|
},
|
|
690
743
|
"attribution": {
|
|
691
744
|
"type": "string",
|
|
@@ -713,18 +766,23 @@
|
|
|
713
766
|
"type": "object",
|
|
714
767
|
"properties": {
|
|
715
768
|
"url": {
|
|
716
|
-
"type": "string"
|
|
769
|
+
"type": "string",
|
|
770
|
+
"default": ""
|
|
717
771
|
},
|
|
718
772
|
"min": {
|
|
719
|
-
"type": "number"
|
|
773
|
+
"type": "number",
|
|
774
|
+
"default": null
|
|
720
775
|
},
|
|
721
776
|
"max": {
|
|
722
|
-
"type": "number"
|
|
777
|
+
"type": "number",
|
|
778
|
+
"default": null
|
|
723
779
|
}
|
|
724
|
-
}
|
|
780
|
+
},
|
|
781
|
+
"default": {}
|
|
725
782
|
},
|
|
726
783
|
"minItems": 1,
|
|
727
|
-
"description": "URLs"
|
|
784
|
+
"description": "URLs",
|
|
785
|
+
"default": []
|
|
728
786
|
},
|
|
729
787
|
"normalize": {
|
|
730
788
|
"type": "boolean",
|
|
@@ -754,7 +812,8 @@
|
|
|
754
812
|
"path": {
|
|
755
813
|
"type": "string",
|
|
756
814
|
"readOnly": true,
|
|
757
|
-
"description": "Path that points to an image"
|
|
815
|
+
"description": "Path that points to an image",
|
|
816
|
+
"default": ""
|
|
758
817
|
},
|
|
759
818
|
"coordinates": {
|
|
760
819
|
"type": "array",
|
|
@@ -788,7 +847,8 @@
|
|
|
788
847
|
"properties": {
|
|
789
848
|
"color": {
|
|
790
849
|
"type": "string",
|
|
791
|
-
"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": ""
|
|
792
852
|
},
|
|
793
853
|
"feature": {
|
|
794
854
|
"type": "object",
|
|
@@ -803,8 +863,18 @@
|
|
|
803
863
|
"maxItems": 2,
|
|
804
864
|
"items": {
|
|
805
865
|
"type": "number"
|
|
806
|
-
}
|
|
866
|
+
},
|
|
867
|
+
"default": [
|
|
868
|
+
0,
|
|
869
|
+
0
|
|
870
|
+
]
|
|
807
871
|
}
|
|
872
|
+
},
|
|
873
|
+
"default": {
|
|
874
|
+
"coords": [
|
|
875
|
+
0,
|
|
876
|
+
0
|
|
877
|
+
]
|
|
808
878
|
}
|
|
809
879
|
}
|
|
810
880
|
}
|
|
@@ -818,17 +888,20 @@
|
|
|
818
888
|
"properties": {
|
|
819
889
|
"url": {
|
|
820
890
|
"type": "string",
|
|
821
|
-
"description": "The url to the tile provider"
|
|
891
|
+
"description": "The url to the tile provider",
|
|
892
|
+
"default": ""
|
|
822
893
|
},
|
|
823
894
|
"attribution": {
|
|
824
895
|
"type": "string",
|
|
825
|
-
"description": "The attribution for the raster-dem source"
|
|
896
|
+
"description": "The attribution for the raster-dem source",
|
|
897
|
+
"default": ""
|
|
826
898
|
},
|
|
827
899
|
"urlParameters": {
|
|
828
900
|
"type": "object",
|
|
829
901
|
"additionalProperties": {
|
|
830
902
|
"type": "string"
|
|
831
|
-
}
|
|
903
|
+
},
|
|
904
|
+
"default": {}
|
|
832
905
|
},
|
|
833
906
|
"interpolate": {
|
|
834
907
|
"type": "boolean",
|
|
@@ -848,7 +921,8 @@
|
|
|
848
921
|
"properties": {
|
|
849
922
|
"url": {
|
|
850
923
|
"type": "string",
|
|
851
|
-
"description": "The url to the tile provider"
|
|
924
|
+
"description": "The url to the tile provider",
|
|
925
|
+
"default": ""
|
|
852
926
|
},
|
|
853
927
|
"minZoom": {
|
|
854
928
|
"type": "number",
|
|
@@ -919,7 +993,8 @@
|
|
|
919
993
|
"properties": {
|
|
920
994
|
"path": {
|
|
921
995
|
"type": "string",
|
|
922
|
-
"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": ""
|
|
923
998
|
},
|
|
924
999
|
"attribution": {
|
|
925
1000
|
"type": "string",
|
|
@@ -958,34 +1033,40 @@
|
|
|
958
1033
|
"properties": {
|
|
959
1034
|
"url": {
|
|
960
1035
|
"type": "string",
|
|
961
|
-
"description": "The url to the tile provider"
|
|
1036
|
+
"description": "The url to the tile provider",
|
|
1037
|
+
"default": ""
|
|
962
1038
|
},
|
|
963
1039
|
"minZoom": {
|
|
964
1040
|
"type": "number",
|
|
965
1041
|
"minimum": 0,
|
|
966
1042
|
"maximum": 24,
|
|
967
|
-
"description": "The minimum zoom level for the vector source"
|
|
1043
|
+
"description": "The minimum zoom level for the vector source",
|
|
1044
|
+
"default": 0
|
|
968
1045
|
},
|
|
969
1046
|
"maxZoom": {
|
|
970
1047
|
"type": "number",
|
|
971
1048
|
"minimum": 0,
|
|
972
1049
|
"maximum": 24,
|
|
973
|
-
"description": "The maximum zoom level for the vector source"
|
|
1050
|
+
"description": "The maximum zoom level for the vector source",
|
|
1051
|
+
"default": 24
|
|
974
1052
|
},
|
|
975
1053
|
"attribution": {
|
|
976
1054
|
"type": "string",
|
|
977
|
-
"description": "The attribution for the vector source"
|
|
1055
|
+
"description": "The attribution for the vector source",
|
|
1056
|
+
"default": ""
|
|
978
1057
|
},
|
|
979
1058
|
"provider": {
|
|
980
1059
|
"type": "string",
|
|
981
1060
|
"readOnly": true,
|
|
982
|
-
"description": "The map provider"
|
|
1061
|
+
"description": "The map provider",
|
|
1062
|
+
"default": ""
|
|
983
1063
|
},
|
|
984
1064
|
"urlParameters": {
|
|
985
1065
|
"type": "object",
|
|
986
1066
|
"additionalProperties": {
|
|
987
1067
|
"type": "string"
|
|
988
|
-
}
|
|
1068
|
+
},
|
|
1069
|
+
"default": {}
|
|
989
1070
|
}
|
|
990
1071
|
}
|
|
991
1072
|
},
|
|
@@ -1030,7 +1111,8 @@
|
|
|
1030
1111
|
"properties": {
|
|
1031
1112
|
"path": {
|
|
1032
1113
|
"type": "string",
|
|
1033
|
-
"description": "The local path to a GeoJSON file"
|
|
1114
|
+
"description": "The local path to a GeoJSON file",
|
|
1115
|
+
"default": ""
|
|
1034
1116
|
},
|
|
1035
1117
|
"data": {
|
|
1036
1118
|
"type": "object",
|
|
@@ -2528,7 +2610,8 @@
|
|
|
2528
2610
|
"valid": {
|
|
2529
2611
|
"type": "boolean",
|
|
2530
2612
|
"description": "Whether the data are valid or not",
|
|
2531
|
-
"readOnly": true
|
|
2613
|
+
"readOnly": true,
|
|
2614
|
+
"default": false
|
|
2532
2615
|
}
|
|
2533
2616
|
}
|
|
2534
2617
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
export type SegmentTitle = string;
|
|
9
9
|
/**
|
|
10
|
-
* The name of the layer to apply a
|
|
10
|
+
* The name of the layer to apply a layer override to when this story segment is active
|
|
11
11
|
*/
|
|
12
12
|
export type TargetLayer = string;
|
|
13
13
|
/**
|
|
@@ -19,9 +19,9 @@ export type Visibility = boolean;
|
|
|
19
19
|
*/
|
|
20
20
|
export type Opacity = number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Layer overrides to apply to target layers when this story segment is active
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type LayerOverride = {
|
|
25
25
|
targetLayer?: TargetLayer;
|
|
26
26
|
visible?: Visibility;
|
|
27
27
|
opacity?: Opacity;
|
|
@@ -61,7 +61,7 @@ export interface IStorySegmentLayer {
|
|
|
61
61
|
time: number;
|
|
62
62
|
[k: string]: any;
|
|
63
63
|
};
|
|
64
|
-
layerOverride?:
|
|
64
|
+
layerOverride?: LayerOverride;
|
|
65
65
|
[k: string]: any;
|
|
66
66
|
}
|
|
67
67
|
export interface SegmentContent {
|
|
@@ -31,7 +31,8 @@ export interface IVectorLayer {
|
|
|
31
31
|
value?: string;
|
|
32
32
|
method?: "color" | "radius";
|
|
33
33
|
colorRamp?: string;
|
|
34
|
-
nClasses?:
|
|
34
|
+
nClasses?: number;
|
|
35
|
+
reverse?: boolean;
|
|
35
36
|
mode?: "quantile" | "equal interval" | "jenks" | "pretty" | "logarithmic";
|
|
36
37
|
};
|
|
37
38
|
}
|
|
@@ -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
|
}
|
|
@@ -22,17 +22,21 @@
|
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": {
|
|
24
24
|
"title": "Segment Title",
|
|
25
|
-
"type": "string"
|
|
25
|
+
"type": "string",
|
|
26
|
+
"default": ""
|
|
26
27
|
},
|
|
27
28
|
"image": {
|
|
28
29
|
"type": "string",
|
|
29
|
-
"description": "Link to image for the story"
|
|
30
|
+
"description": "Link to image for the story",
|
|
31
|
+
"default": ""
|
|
30
32
|
},
|
|
31
33
|
"markdown": {
|
|
32
34
|
"type": "string",
|
|
33
|
-
"description": "Markdown string representing the content of the story stop"
|
|
35
|
+
"description": "Markdown string representing the content of the story stop",
|
|
36
|
+
"default": ""
|
|
34
37
|
}
|
|
35
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"default": {}
|
|
36
40
|
},
|
|
37
41
|
"transition": {
|
|
38
42
|
"type": "object",
|
|
@@ -50,19 +54,20 @@
|
|
|
50
54
|
"default": 1
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
|
-
"required": ["type", "time"]
|
|
57
|
+
"required": ["type", "time"],
|
|
58
|
+
"default": { "type": "linear", "time": 1 }
|
|
54
59
|
},
|
|
55
60
|
"layerOverride": {
|
|
56
61
|
"type": "array",
|
|
57
|
-
"title": "
|
|
58
|
-
"description": "
|
|
62
|
+
"title": "Layer Override",
|
|
63
|
+
"description": "Layer overrides to apply to target layers when this story segment is active",
|
|
59
64
|
"items": {
|
|
60
65
|
"type": "object",
|
|
61
66
|
"properties": {
|
|
62
67
|
"targetLayer": {
|
|
63
68
|
"type": "string",
|
|
64
69
|
"title": "Target Layer",
|
|
65
|
-
"description": "The name of the layer to apply a
|
|
70
|
+
"description": "The name of the layer to apply a layer override to when this story segment is active",
|
|
66
71
|
"default": ""
|
|
67
72
|
},
|
|
68
73
|
"visible": {
|
|
@@ -91,7 +96,8 @@
|
|
|
91
96
|
"default": {}
|
|
92
97
|
}
|
|
93
98
|
}
|
|
94
|
-
}
|
|
99
|
+
},
|
|
100
|
+
"default": []
|
|
95
101
|
}
|
|
96
102
|
}
|
|
97
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": "
|
|
46
|
-
"default":
|
|
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",
|
|
@@ -28,14 +29,17 @@
|
|
|
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",
|
|
@@ -57,7 +61,8 @@
|
|
|
57
61
|
]
|
|
58
62
|
}
|
|
59
63
|
},
|
|
60
|
-
"additionalProperties": false
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"default": {}
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
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
|
}
|
|
@@ -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",
|
|
@@ -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
|
"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.13.
|
|
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",
|