-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathlayer-image-config.json
More file actions
461 lines (460 loc) · 14.6 KB
/
layer-image-config.json
File metadata and controls
461 lines (460 loc) · 14.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
{
"tabs": [
{
"name": "Core",
"rows": [
{
"forceHeight": "64px",
"components": [
{
"field": "type",
"name": "Layer Type",
"description": "",
"type": "dropdown",
"width": 2,
"options": [
"data",
"header",
"image",
"model",
"query",
"tile",
"vector",
"vectortile"
]
},
{
"field": "name",
"name": "Layer Name",
"description": "",
"type": "textnotrim",
"width": 8
},
{
"field": "visibility",
"name": "Initially On",
"description": "",
"type": "checkbox",
"width": 2,
"defaultChecked": false
}
]
},
{
"name": "Image",
"components": [
{
"field": "url",
"name": "URL",
"description": "",
"type": "text",
"width": 12
},
{
"field": "initialOpacity",
"name": "Initial Opacity",
"description": "0 (transparent) to 1 (opaque)",
"type": "number",
"min": 0,
"width": 2
}
]
},
{
"components": [
{
"field": "minZoom",
"name": "Minimum Zoom",
"description": "",
"type": "number",
"min": 0,
"step": 1,
"width": 3
},
{
"field": "maxNativeZoom",
"name": "Maximum Native Zoom",
"description": "",
"type": "number",
"min": 0,
"step": 1,
"width": 2
},
{
"field": "maxZoom",
"name": "Maximum Zoom",
"description": "",
"type": "number",
"min": 0,
"step": 1,
"width": 3
}
]
},
{
"name": "Data",
"components": [
{
"field": "variables.image.fillMinMax",
"name": "Fill min/max",
"description": "Fill in with the maximum color or minimum color value if below min and/or above max of the band",
"type": "checkbox",
"width": 2,
"defaultChecked": false
},
{
"field": "variables.hideNoDataValue",
"name": "Hide No Data Value",
"description": " If true, hides all values where there is no data. ",
"type": "checkbox",
"width": 3,
"defaultChecked": false
}
]
},
{
"name": "Cloud-Optimized GeoTiffs (COG)",
"components": [
{
"field": "cogTransform",
"name": "Transform COG",
"description": "Enable rescaling and coloring single banded COGs on the fly.",
"type": "switch",
"width": 3,
"defaultChecked": false
},
{
"field": "cogMin",
"name": "Minimum Pixel Data Value",
"description": "If using single banded COGs, the default minimum value for which to rescale.",
"type": "number",
"width": 2
},
{
"field": "cogMax",
"name": "Maximum Pixel Data Value",
"description": "If using single banded COGs, the default maximum value for which to rescale.",
"type": "number",
"width": 2
},
{
"field": "cogUnits",
"name": "Units",
"description": "Units string by which to suffix values. For instance if the units are meters, use 'm' so that values are displayed as '100m'.",
"type": "textnotrim",
"width": 2
},
{
"field": "cogColormap",
"name": "Colormap",
"description": "",
"type": "colordropdown",
"width": 3,
"options": "{{COLORMAP_NAMES}}"
}
]
},
{
"name": "Other",
"components": [
{
"field": "boundingBox",
"name": "Bounding Box",
"description": "minx,miny,maxx,maxy",
"type": "textarray",
"width": 12
}
]
},
{
"name": "Actions",
"components": [
{
"name": "Populate Fields From tilemapresource.xml or from cog/info",
"description": "If the above URL is relative to the Missions/{mission} directory and the tileset contains a tilemapresource.xml within it, queries that xml and auto-fills the 'Minimum Zoom', 'Maximum Native Zoom' and 'Bounding Box' fields above. If it is a COG and TiTiler is true, the COG's data will be queried instead.",
"type": "button",
"action": "tile-populate-from-x",
"width": 6
}
]
}
]
},
{
"name": "Legend",
"rows": [
{
"name": "Legend",
"components": [
{
"new": true,
"field": "legend",
"name": "Legend From URL",
"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.",
"type": "text",
"width": 10
},
{
"new": true,
"field": "variables.hideLegendLayerName",
"name": "Hide layer name",
"description": "Hide layer name in the legend.",
"type": "checkbox",
"width": 2
}
]
},
{
"components": [
{
"field": "variables.legend",
"name": "Legend",
"description": "Configures a legend for the layer. The Legend Tool renders symbologies and gradient scales for any properly configured layer that is on.",
"type": "objectarray",
"width": 12,
"object": [
{
"field": "color",
"name": "Fill Color",
"description": "A color for the main fill of the symbol.",
"type": "colorpicker",
"width": 2
},
{
"field": "strokecolor",
"name": "Border Color",
"description": "A stroke/border color. Note that 'discreet' and 'continuous' shapes have no borders.",
"type": "colorpicker",
"width": 2
},
{
"field": "shape",
"name": "Shape",
"description": "The symbol for which to us for this legend entry. Discreet and continuous describe scales. These scales are broken into groups by a change in shape value. For instance, 'discreet, discreet, discreet, circle, discreet, discreet' represents a discreet scales of three colors, a circle and then a discreet scale of two colors.",
"type": "dropdown",
"width": 5,
"options": [
"circle",
"square",
"rect",
"triangle",
"continuous",
"discreet"
]
},
{
"field": "value",
"name": "Label",
"description": "A label description for this legend entry.",
"type": "text",
"width": 3
}
]
}
]
}
]
},
{
"name": "Interface",
"rows": [
{
"name": "Interface",
"subname": "Key Bindings",
"components": [
{
"field": "variables.shortcutSuffix",
"name": "Alt + {letter} Toggle Shortcut",
"description": "A single letter to 'ALT + {letter}' toggle the layer on and off. Please verify that your chosen shortcut does not conflict with other system or browser-level keyboard shortcuts.",
"type": "text",
"width": 6
}
]
},
{
"subname": "Downloads",
"components": [
{
"field": "variables.downloadURL",
"name": "Download URL",
"description": "Provides a menu option for users to download the specified source data file for the layer.",
"type": "text",
"width": 12
}
]
}
]
},
{
"name": "Information",
"rows": [
{
"name": "Information",
"subname": "Layer Tags",
"subdescription": "Assign tags to this layer so that they may be searched upon through the LayersTool. A category may be specified with the following pattern: 'category:tag'",
"components": [
{
"field": "tags.0",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.1",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.2",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.3",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.4",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.5",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
}
]
},
{
"components": [
{
"field": "tags.6",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.7",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.8",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.9",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.10",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
},
{
"field": "tags.11",
"name": "Tag",
"description": "",
"type": "text",
"width": 2
}
]
},
{
"subname": "Description",
"subdescription": "A freeform markdown description of the layer. In the LayersTool, users may click the information icon beside the layer's name to view this information.",
"components": [
{
"field": "description",
"name": "Description",
"description": "",
"type": "markdown",
"width": 12
}
]
}
]
},
{
"name": "Tool - Identifier",
"rows": [
{
"name": "Tool: Identifier",
"components": [
{
"field": "variables.tools.identifier.data",
"name": "Data",
"description": "Configure this layer for use with the IdentifierTool. Configuring the tool within this layer may override configurations of this layer within the tool itself in the Tools Tab.",
"type": "objectarray",
"width": 12,
"object": [
{
"field": "url",
"name": "URL to .tif",
"description": "This can be a relative path to a file under the Mission name or a full url path. The former is preferred is the file is large. If this field is left empty, the Identifier Tool will try to best-match the hovered-over pixel color with this layer's legend (if any).",
"type": "text",
"width": 12
},
{
"field": "bands",
"name": "Bands",
"description": "Number of bands from which to query.",
"type": "number",
"min": 0,
"step": 1,
"width": 2
},
{
"field": "sigfigs",
"name": "SigFigs",
"description": "Number of significant figures to use after the decimal of returned values.",
"type": "number",
"min": 0,
"step": 1,
"width": 2
},
{
"field": "unit",
"name": "Unit",
"description": "A string that is appended to your returned value. e.g. ' m' would be appended on a raw value ('41') and show '41 m'. If it was 'm', it would return '41m', without a space.",
"type": "text",
"width": 2
},
{
"field": "scalefactor",
"name": "Scale Factor",
"description": "A number for which to multiply the raw value by for display purposes only. Useful, for instance, if the underlying dataset is in units that are off by factor's of 10 from what's desired to be shown to users.",
"type": "number",
"width": 2
}
]
}
]
}
]
}
]
}