Last updated

API / geotoolkit3d / scene / grid / legend / GridLegend / GridLegend

Namespace: GridLegend

legend.GridLegend.GridLegend

Table of contents

Type Aliases

Contents

Type Aliases

Options

Ƭ Options: Object

options object

Type declaration

NameTypeDescription
centerbeforehiding?booleanif true and hideiftoolarge enabled, will try to shift the legend text to fit inside the panel if possible.
hideiftoolarge?booleanif true, hide the legend text when it doesnt fit inside it's panel.
planes?{ back?: PlaneOptions ; front?: PlaneOptions ; left?: PlaneOptions ; right?: PlaneOptions }planes options object
planes.back?PlaneOptionsback plane options object
planes.front?PlaneOptionsfront plane options object
planes.left?PlaneOptionsleft plane options object
planes.right?PlaneOptionsright plane options object

PlaneOptions

Ƭ PlaneOptions: Object

Type declaration

NameTypeDescription
centerbeforehiding?boolean-
enable?booleanif the plane text is visible or not.
hideiftoolarge?boolean-
horizontalanchor?HorizontalAnchorPositionThe horizontal anchor position for the legend (default is Center)
nearside?booleanif true, show the text on the near face of the grid cube, if false, show on the far face of the grid cube.
outline?OutlineOptionsoutline options
sizeindevice?booleanif true, the on-screen size of the text will always be the same, if false, it will depend on zoom level.
style?Typethe style of the legend text (Font, size, color...)
text?stringthe plane text to display, supports newlines/carriage returns.
textoffset?Vector2local X,Y offset for text position, (0,0 is bottom left, 1,1 is top right, relative to the plane)
textscale?numberthe text scale. To use with sizeindevice=false. If text is blury, it is recommended to increase testStyle font size before increasing textscale.
verticalanchor?VerticalAnchorPositionThe vertical anchor position for the legend (default is Center)