You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/client/plugins/TOC.jsx
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -457,6 +457,7 @@ class LayerTree extends React.Component {
457
457
* @prop {object} cfg.layerOptions: options to pass to the layer.
458
458
* @prop {boolean} cfg.showFullTitleOnExpand shows full length title in the legend. default `false`.
459
459
* @prop {boolean} cfg.hideOpacityTooltip hide toolip on opacity sliders
460
+
*
460
461
* Some of the layerOptions are: `legendContainerStyle`, `legendStyle`. These 2 allow to customize the legend:
461
462
* For instance you can pass some styling props to the legend.
462
463
* this example is to make the legend scrollable horizontally
@@ -472,7 +473,7 @@ class LayerTree extends React.Component {
472
473
* }
473
474
* }
474
475
* ```
475
-
* Another layerOptionS entry can be `indicators`. `indicators` is an array of icons to add to the TOC. They must satisfy a condition to be shown in the TOC.
476
+
* Another layerOptions entry can be `indicators`. `indicators` is an array of icons to add to the TOC. They must satisfy a condition to be shown in the TOC.
476
477
* For the moment only indicators of type `dimension` are supported.
477
478
* example :
478
479
* ```
@@ -493,6 +494,16 @@ class LayerTree extends React.Component {
493
494
* }
494
495
* }]
495
496
* ```
497
+
*
498
+
* Another layerOptions is `tooltipOptions` which contains the custom tooltips fragment for nodes in the TOC
499
+
* structure is {"nodeID": ["prop1", "prop2"], "joinsStr": " - "}, it will display the fragment in the order are written
500
+
* for example
501
+
* ```
502
+
* "tooltipOptions": {
503
+
* "id_of_the_layer": ["title", "description"]
504
+
* }
505
+
* ```
506
+
* it can contain also the "joinStr" property to be used for joining tooltips fragments, default is " - "
0 commit comments