Skip to content

Commit d5c7d68

Browse files
authored
Merge pull request #760 from NASA-AMMOS/jr-756
Enable horizontal legends
2 parents ccdf392 + b89b32d commit d5c7d68

File tree

8 files changed

+575
-71
lines changed

8 files changed

+575
-71
lines changed

configure/src/metaconfigs/layer-image-config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,16 @@
199199
"name": "Legend From URL",
200200
"description": "A URL to a static image or .csv with the following header: 'color,strokecolor,shape,value'. If the path is relative, it will be relative to the mission's directory. This legend is overridden if a legend is also configured below.",
201201
"type": "text",
202-
"width": 10
202+
"width": 8
203+
},
204+
{
205+
"new": true,
206+
"field": "variables.legendOrientation",
207+
"name": "Legend Orientation",
208+
"description": "Displays the legend horizontally or vertically.",
209+
"type": "dropdown",
210+
"width": 2,
211+
"options": ["vertical", "horizontal"]
203212
},
204213
{
205214
"new": true,

configure/src/metaconfigs/layer-model-config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,16 @@
435435
"name": "Legend From URL",
436436
"description": "A URL to a static image or .csv with the following header: 'color,strokecolor,shape,value'. If the path is relative, it will be relative to the mission's directory. This legend is overridden if a legend is also configured below.",
437437
"type": "text",
438-
"width": 10
438+
"width": 8
439+
},
440+
{
441+
"new": true,
442+
"field": "variables.legendOrientation",
443+
"name": "Legend Orientation",
444+
"description": "Displays the legend horizontally or vertically.",
445+
"type": "dropdown",
446+
"width": 2,
447+
"options": ["vertical", "horizontal"]
439448
},
440449
{
441450
"new": true,

configure/src/metaconfigs/layer-query-config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,16 @@
551551
"name": "Legend From URL",
552552
"description": "A URL to a static image or .csv with the following header: 'color,strokecolor,shape,value'. If the path is relative, it will be relative to the mission's directory. This legend is overridden if a legend is also configured below.",
553553
"type": "text",
554-
"width": 10
554+
"width": 8
555+
},
556+
{
557+
"new": true,
558+
"field": "variables.legendOrientation",
559+
"name": "Legend Orientation",
560+
"description": "Displays the legend horizontally or vertically.",
561+
"type": "dropdown",
562+
"width": 2,
563+
"options": ["vertical", "horizontal"]
555564
},
556565
{
557566
"new": true,

configure/src/metaconfigs/layer-tile-config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,16 @@
404404
"name": "Legend From URL",
405405
"description": "A URL to a static image or .csv with the following header: 'color,strokecolor,shape,value'. If the path is relative, it will be relative to the mission's directory. This legend is overridden if a legend is also configured below.",
406406
"type": "text",
407-
"width": 10
407+
"width": 8
408+
},
409+
{
410+
"new": true,
411+
"field": "variables.legendOrientation",
412+
"name": "Legend Orientation",
413+
"description": "Displays the legend horizontally or vertically.",
414+
"type": "dropdown",
415+
"width": 2,
416+
"options": ["vertical", "horizontal"]
408417
},
409418
{
410419
"new": true,

configure/src/metaconfigs/layer-vector-config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,16 @@
515515
"name": "Legend From URL",
516516
"description": "A URL to a static image or .csv with the following header: 'color,strokecolor,shape,value'. If the path is relative, it will be relative to the mission's directory. This legend is overridden if a legend is also configured below.",
517517
"type": "text",
518-
"width": 10
518+
"width": 8
519+
},
520+
{
521+
"new": true,
522+
"field": "variables.legendOrientation",
523+
"name": "Legend Orientation",
524+
"description": "Displays the legend horizontally or vertically.",
525+
"type": "dropdown",
526+
"width": 2,
527+
"options": ["vertical", "horizontal"]
519528
},
520529
{
521530
"new": true,

configure/src/metaconfigs/layer-vectortile-config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,16 @@
457457
"name": "Legend From URL",
458458
"description": "A URL to a static image or .csv with the following header: 'color,strokecolor,shape,value'. If the path is relative, it will be relative to the mission's directory. This legend is overridden if a legend is also configured below.",
459459
"type": "text",
460-
"width": 10
460+
"width": 8
461+
},
462+
{
463+
"new": true,
464+
"field": "variables.legendOrientation",
465+
"name": "Legend Orientation",
466+
"description": "Displays the legend horizontally or vertically.",
467+
"type": "dropdown",
468+
"width": 2,
469+
"options": ["vertical", "horizontal"]
461470
},
462471
{
463472
"new": true,

configure/src/metaconfigs/layer-velocity-config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,16 @@
377377
"name": "Legend From URL",
378378
"description": "A URL to a static image or .csv with the following header: 'color,strokecolor,shape,value'. If the path is relative, it will be relative to the mission's directory. This legend is overridden if a legend is also configured below.",
379379
"type": "text",
380-
"width": 10
380+
"width": 8
381+
},
382+
{
383+
"new": true,
384+
"field": "variables.legendOrientation",
385+
"name": "Legend Orientation",
386+
"description": "Displays the legend horizontally or vertically.",
387+
"type": "dropdown",
388+
"width": 2,
389+
"options": ["vertical", "horizontal"]
381390
},
382391
{
383392
"new": true,

0 commit comments

Comments
 (0)