Skip to main content

DrawingLayerToolMapForm

geovisto-mapReadme | API


geovisto-map / DrawingLayerToolMapForm

Class: DrawingLayerToolMapForm

This class provides controls for management of the layer sidebar tab.

Author

Andrej Tlcina

Extends

Implements

  • DrawingForm

Constructors

new DrawingLayerToolMapForm()

new DrawingLayerToolMapForm(props): DrawingLayerToolMapForm

Parameters

props

props.tool: IDrawingLayerTool\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolState\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolConfig, ILayerToolDimensionsConfig, ILayerToolDimensions>, IDrawingLayerToolConfig, IMapToolInitProps\<IDrawingLayerToolConfig>>

Returns

DrawingLayerToolMapForm

Overrides

MapLayerToolForm.constructor

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:34

Properties

htmlContent

private htmlContent: HTMLDivElement

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:29


state

private state: TabState

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:32


tool

private tool: IDrawingLayerTool\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolState\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolConfig, ILayerToolDimensionsConfig, ILayerToolDimensions>, IDrawingLayerToolConfig, IMapToolInitProps\<IDrawingLayerToolConfig>>

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:31

Methods

getAutocompleteInput()

protected getAutocompleteInput(dimension, formAction?): IMapFormInput

Help method which returns a new universal autocomplete input for the any map domain dimension.

Parameters

dimension: IMapDomainDimension\<IMapDomain>

formAction?

Returns

IMapFormInput

Inherited from

MapLayerToolForm.getAutocompleteInput

Source

model/internal/form/MapLayerToolForm.ts:43


getCheckboxInput()

protected getCheckboxInput(dimension, formAction?): IMapFormInput

Help method which returns a new universal checkbox input for the any map boolean dimension.

Parameters

dimension: IMapTypeDimension\<boolean, ITypeManager\<boolean>>

formAction?

Returns

IMapFormInput

Inherited from

MapLayerToolForm.getCheckboxInput

Source

model/internal/form/MapLayerToolForm.ts:78


getColorInput()

protected getColorInput(dimension, formAction?): IMapFormInput

Help method which returns a new universal color input for the any map string dimension.

Parameters

dimension: IMapTypeDimension\<string, ITypeManager\<string>>

formAction?

Returns

IMapFormInput

Inherited from

MapLayerToolForm.getColorInput

Source

model/internal/form/MapLayerToolForm.ts:96


getContent()

getContent(layerType): HTMLDivElement

It returns the sidebar tab pane.

Parameters

layerType: "" | LayerType= ""

Returns

HTMLDivElement

Implementation of

DrawingForm.getContent

Overrides

MapLayerToolForm.getContent

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:77


getMapObject()

protected getMapObject(): IDrawingLayerTool\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolState\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolConfig, ILayerToolDimensionsConfig, ILayerToolDimensions>, IDrawingLayerToolConfig, IMapToolInitProps\<IDrawingLayerToolConfig>>

Returns

IDrawingLayerTool\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolState\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolConfig, ILayerToolDimensionsConfig, ILayerToolDimensions>, IDrawingLayerToolConfig, IMapToolInitProps\<IDrawingLayerToolConfig>>

Inherited from

MapLayerToolForm.getMapObject

Source

model/internal/form/MapObjectForm.ts:16


getNumberInput()

protected getNumberInput(dimension, formAction?): IMapFormInput

Help method which returns a new universal number input for the any map number dimension.

Parameters

dimension: IMapTypeDimension\<number, ITypeManager\<number>>

formAction?

Returns

IMapFormInput

Inherited from

MapLayerToolForm.getNumberInput

Source

model/internal/form/MapLayerToolForm.ts:133


getSliderInput()

protected getSliderInput(dimension, formAction?): IMapFormInput

Help method which returns a new universal slider input for the any map range integer dimension.

Parameters

dimension: IMapTypeDimension\<number, IIntegerRangeManager>

formAction?

Returns

IMapFormInput

Inherited from

MapLayerToolForm.getSliderInput

Source

model/internal/form/MapLayerToolForm.ts:113


getState()

getState(): TabState

It creates new state of the tab control.

Returns

TabState

Implementation of

DrawingForm.getState

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:52


getTextInput()

protected getTextInput(dimension, formAction?): IMapFormInput

Help method which returns a new universal text input for the any map domain dimension.

Parameters

dimension: IMapTypeDimension\<string, ITypeManager\<string>>

formAction?

Returns

IMapFormInput

Inherited from

MapLayerToolForm.getTextInput

Source

model/internal/form/MapLayerToolForm.ts:61


getTool()

getTool(): IDrawingLayerTool\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolState\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolConfig, ILayerToolDimensionsConfig, ILayerToolDimensions>, IDrawingLayerToolConfig, IMapToolInitProps\<IDrawingLayerToolConfig>>

Returns

IDrawingLayerTool\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolState\<ILayerToolProps, IDrawingLayerToolDefaults, IDrawingLayerToolConfig, ILayerToolDimensionsConfig, ILayerToolDimensions>, IDrawingLayerToolConfig, IMapToolInitProps\<IDrawingLayerToolConfig>>

Implementation of

DrawingForm.getTool

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:45


redrawTabContent()

redrawTabContent(layerType): void

removes all elements of a sidebar and calls function to create new content of the sidebar

Parameters

layerType: "" | LayerType

Returns

void

Implementation of

DrawingForm.redrawTabContent

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:59


setInputValues()

setInputValues(dimensions): void

It updates selected input values according to the given dimensions.

Parameters

dimensions: ILayerToolDimensions

Returns

void

Overrides

MapLayerToolForm.setInputValues

Source

tools/layers/drawing/sidebar/DrawingLayerToolMapForm.ts:41