InfoTool
geovisto-map / InfoTool
Class: InfoTool
This class implements Info Tool
Author
Jiri Hynek IMap,
Extends
Implements
Constructors
new InfoTool()
new InfoTool(
props
?):InfoTool
It creates a new tool with respect to the props.
Parameters
• props?: IInfoToolProps
Returns
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:36
Properties
mapForm
private
mapForm:IMapForm
Source
tools/info/model/internal/tool/InfoTool.ts:29
Methods
copy()
copy():
IInfoTool
\<IInfoToolProps
,IInfoToolDefaults
,IInfoToolState
\<IInfoToolProps
,IInfoToolDefaults
,IInfoToolConfig
>,IInfoToolConfig
,IMapToolInitProps
\<IInfoToolConfig
>>
It creates a copy of the uninitialized tool.
Returns
IInfoTool
\<IInfoToolProps
, IInfoToolDefaults
, IInfoToolState
\<IInfoToolProps
, IInfoToolDefaults
, IInfoToolConfig
>, IInfoToolConfig
, IMapToolInitProps
\<IInfoToolConfig
>>
Implementation of
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:43
create()
create():
this
It creates new filter tool.
Returns
this
Implementation of
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:94
createDefaults()
createDefaults():
IInfoToolDefaults
It creates new defaults of the tool.
Returns
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:64
createMapForm()
protected
createMapForm():IMapForm
It creates new map form.
Returns
Source
tools/info/model/internal/tool/InfoTool.ts:112
createState()
createState():
IInfoToolState
\<IInfoToolProps
,IInfoToolDefaults
,IInfoToolConfig
>
It returns default tool state.
Returns
IInfoToolState
\<IInfoToolProps
, IInfoToolDefaults
, IInfoToolConfig
>
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:78
getAPIGetter()
getAPIGetter():
undefined
|IMapToolAPIGetter
It returns the tool API
Returns
undefined
| IMapToolAPIGetter
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:74
getDefaults()
getDefaults():
IInfoToolDefaults
It returns default values of the filters tool.
Returns
Implementation of
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:57
getId()
getId():
string
Help function which returns the id of the object.
Returns
string
Implementation of
Inherited from
Source
model/internal/object/MapObject.ts:93
getInfo()
getInfo():
void
It creates a new map form.
Returns
void
Source
tools/info/model/internal/tool/InfoTool.ts:120
getMap()
getMap():
undefined
|IMap
\<IMapProps
,IMapDefaults
,IMapState
\<IMapProps
,IMapDefaults
,IMapConfig
>,IMapConfig
,IMapInitProps
\<IMapConfig
>>
Help function returns map which uses this tool.
Do not override this function. Use the state class instead.
Returns
undefined
| IMap
\<IMapProps
, IMapDefaults
, IMapState
\<IMapProps
, IMapDefaults
, IMapConfig
>, IMapConfig
, IMapInitProps
\<IMapConfig
>>
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:112
getMapForm()
getMapForm():
IMapForm
It returns a map form.
Returns
Implementation of
Source
tools/info/model/internal/tool/InfoTool.ts:102
getProps()
getProps():
IInfoToolProps
It returns the props given by the programmer.
Returns
Implementation of
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:50
getState()
getState():
IInfoToolState
\<IInfoToolProps
,IInfoToolDefaults
,IInfoToolConfig
>
It returns the filters tool state.
Returns
IInfoToolState
\<IInfoToolProps
, IInfoToolDefaults
, IInfoToolConfig
>
Implementation of
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:71
getType()
getType():
string
Help function which returns the type of the object.
Returns
string
Implementation of
Inherited from
Source
model/internal/object/MapObject.ts:86
handleEvent()
handleEvent(
event
):void
This function is called when a custom event is invoked.
Override this function, if needed.
Parameters
• event: IMapEvent
\<IMapObject
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectState
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>>
Returns
void
Inherited from
Source
model/internal/tool/MapTool.ts:171
initialize()
initialize(
initProps
):this
Overrides the super method.
Parameters
• initProps: IMapToolInitProps
\<IInfoToolConfig
>
Returns
this
Implementation of
Overrides
Source
tools/info/model/internal/tool/InfoTool.ts:87
isEnabled()
isEnabled():
boolean
Help getter which returns enabled property of state.
Do not override this function. Use the state class instead.
Returns
boolean
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:130
isSingleton()
isSingleton():
boolean
Help getter which returns a logtical value whether the tool type is singleton.
Returns
boolean
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:81
setEnabled()
setEnabled(
enabled
):void
Some tools might be dynamicaly enabled/disabled. This function is called externally when the tool is enabled/disabled.
Override this function, if needed.
Parameters
• enabled: boolean
Returns
void
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:142
setProps()
protected
setProps(props
):void
It updates the props.
Parameters
• props: IMapObjectProps
Returns
void
Inherited from
Source
model/internal/object/MapObject.ts:38
switchEnabled()
switchEnabled():
void
Help function which switches enabled state (enabled/disabled).
Do not override this function. Use setEnabled instead.
Returns
void