DrawingLayerToolDefaults
geovisto-map / DrawingLayerToolDefaults
Class: DrawingLayerToolDefaults
This class provide functions which return the default state values.
Author
Andrej Tlcina
Extends
Implements
IDrawingLayerToolDefaults
Constructors
new DrawingLayerToolDefaults()
new DrawingLayerToolDefaults():
DrawingLayerToolDefaults
It initializes tool defaults.
Returns
Overrides
Source
tools/layers/drawing/DrawingLayerToolDefaults.ts:16
Properties
idString?
protected
optional
idString:string
Inherited from
Source
model/internal/object/MapObjectDefaults.ts:13
TYPE
static
TYPE:string
="geovisto-tool-layer-drawing"
A unique string of the tool type.
Overrides
Source
tools/layers/drawing/DrawingLayerToolDefaults.ts:12
id
static
protected
id:number
Inherited from
Source
model/internal/object/MapObjectDefaults.ts:12
Methods
generateId()
protected
generateId():string
It returns identifier which is used when no identifier is specified.
Returns
string
Inherited from
Source
model/internal/object/MapObjectDefaults.ts:54
getConfig()
getConfig():
IMapToolConfig
By defaults it returns the config with undefined props.
Returns
Implementation of
IDrawingLayerToolDefaults.getConfig
Inherited from
Source
model/internal/tool/MapToolDefaults.ts:34
getDataManager()
getDataManager():
IMapDataManager
It returns default map data manager.
Returns
Inherited from
LayerToolDefaults
.getDataManager
Source
model/internal/tool/MapToolDefaults.ts:20
getDimensions()
getDimensions(
map
?):ILayerToolDimensions
It returns the default layer tool dimensions.
Parameters
• map?: IMap
\<IMapProps
, IMapDefaults
, IMapState
\<IMapProps
, IMapDefaults
, IMapConfig
>, IMapConfig
, IMapInitProps
\<IMapConfig
>>
Returns
Implementation of
IDrawingLayerToolDefaults.getDimensions
Inherited from
LayerToolDefaults
.getDimensions
Source
model/internal/layer/LayerToolDefaults.ts:36
getGeoDataManager()
getGeoDataManager(
geoDataArray
):IGeoDataManager
It returns default geo data manager.
Parameters
• geoDataArray: undefined
| IGeoData
[]
Returns
Inherited from
LayerToolDefaults
.getGeoDataManager
Source
model/internal/tool/MapToolDefaults.ts:27
getIcon()
getIcon():
string
It returns the icon of the tool.
Returns
string
Implementation of
IDrawingLayerToolDefaults.getIcon
Overrides
Source
tools/layers/drawing/DrawingLayerToolDefaults.ts:43
getId()
getId():
string
It returns identifier which is used when no identifier is specified.
Returns
string
Implementation of
IDrawingLayerToolDefaults.getId
Inherited from
Source
model/internal/object/MapObjectDefaults.ts:44
getLabel()
getLabel():
string
It returns the label of the tool.
Returns
string
Implementation of
IDrawingLayerToolDefaults.getLabel
Overrides
Source
tools/layers/drawing/DrawingLayerToolDefaults.ts:36
getLayerName()
getLayerName():
string
It returns the layer name.
Returns
string
Implementation of
IDrawingLayerToolDefaults.getLayerName
Overrides
LayerToolDefaults
.getLayerName
Source
tools/layers/drawing/DrawingLayerToolDefaults.ts:29
getProps()
getProps():
IMapObjectProps
It returns default props if no props are given.
Returns
Implementation of
IDrawingLayerToolDefaults.getProps
Inherited from
Source
model/internal/object/MapObjectDefaults.ts:18
getType()
getType():
string
A unique string of the tool type.
Returns
string
Implementation of
IDrawingLayerToolDefaults.getType
Overrides
Source
tools/layers/drawing/DrawingLayerToolDefaults.ts:22
isEnabled()
isEnabled():
boolean
By default, the tool is enabled.
Returns
boolean
Implementation of
IDrawingLayerToolDefaults.isEnabled
Inherited from
Source
model/internal/tool/MapToolDefaults.ts:50
isSingleton()
isSingleton():
boolean
By default, the tool is singleton
Returns
boolean
Implementation of
IDrawingLayerToolDefaults.isSingleton