MapToolsManager
geovisto-map / MapToolsManager
Class: MapToolsManager
This class provide functions for using tools.
Author
Jiri Hynek
Extends
Implements
Constructors
new MapToolsManager()
new MapToolsManager(
tools
):MapToolsManager
Parameters
• tools: IMapTool
\<IMapToolProps
, IMapToolDefaults
, IMapToolState
\<IMapToolProps
, IMapToolDefaults
, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>>, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>, IMapToolAPI
>[]
Returns
Overrides
Source
model/internal/tool/MapToolsManager.ts:12
Methods
add()
add(
object
):void
It adds object to the list of objects.
Override this function.
Parameters
• object: IMapTool
\<IMapToolProps
, IMapToolDefaults
, IMapToolState
\<IMapToolProps
, IMapToolDefaults
, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>>, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>, IMapToolAPI
>
Returns
void
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:48
copy()
copy():
IMapToolsManager
It returns copy of the tools manager with copies of tools.
Returns
Implementation of
Source
model/internal/tool/MapToolsManager.ts:19
getAll()
getAll():
IMapTool
\<IMapToolProps
,IMapToolDefaults
,IMapToolState
\<IMapToolProps
,IMapToolDefaults
,IMapToolConfig
,IMapToolInitProps
\<IMapToolConfig
>>,IMapToolConfig
,IMapToolInitProps
\<IMapToolConfig
>,IMapToolAPI
>[]
The function returns available map objects.
Returns
IMapTool
\<IMapToolProps
, IMapToolDefaults
, IMapToolState
\<IMapToolProps
, IMapToolDefaults
, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>>, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>, IMapToolAPI
>[]
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:23
getById()
getById(
id
):undefined
|IMapTool
\<IMapToolProps
,IMapToolDefaults
,IMapToolState
\<IMapToolProps
,IMapToolDefaults
,IMapToolConfig
,IMapToolInitProps
\<IMapToolConfig
>>,IMapToolConfig
,IMapToolInitProps
\<IMapToolConfig
>,IMapToolAPI
>
The function returns map object of given unique identifier.
Parameters
• id: string
Returns
undefined
| IMapTool
\<IMapToolProps
, IMapToolDefaults
, IMapToolState
\<IMapToolProps
, IMapToolDefaults
, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>>, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>, IMapToolAPI
>
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:123
getByType()
getByType(
type
):IMapTool
\<IMapToolProps
,IMapToolDefaults
,IMapToolState
\<IMapToolProps
,IMapToolDefaults
,IMapToolConfig
,IMapToolInitProps
\<IMapToolConfig
>>,IMapToolConfig
,IMapToolInitProps
\<IMapToolConfig
>,IMapToolAPI
>[]
The function returns map objects of given type.
Parameters
• type: string
Returns
IMapTool
\<IMapToolProps
, IMapToolDefaults
, IMapToolState
\<IMapToolProps
, IMapToolDefaults
, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>>, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>, IMapToolAPI
>[]
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:105
getIds()
getIds():
string
[]
Help function which returns the list of object string labels (object types).
Returns
string
[]
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:89
getTypes()
getTypes():
string
[]
Help function which returns the list of object string labels (object types).
Returns
string
[]
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:75
isEmpty()
isEmpty():
boolean
The function returns true if size() is 0.
Returns
boolean
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:37
remove()
remove(
object
):void
It removes object from the list of objects.
Parameters
• object: IMapTool
\<IMapToolProps
, IMapToolDefaults
, IMapToolState
\<IMapToolProps
, IMapToolDefaults
, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>>, IMapToolConfig
, IMapToolInitProps
\<IMapToolConfig
>, IMapToolAPI
>
Returns
void
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:57
removeById()
removeById(
id
):void
It removes object from the list of objects.
Override this function.
Parameters
• id: string
Returns
void
Implementation of
Inherited from
Source
model/internal/object/MapObjectsManager.ts:68
size()
size():
number
The function returns number of objects.
Returns
number