instanceOfMapLegend
geovisto-map / instanceOfMapLegend
Function: instanceOfMapLegend()
instanceOfMapLegend\<
T
>(tool
):tool is IMapLegendControl
Help function which tests whether the tool implements getMapForm function of the IMapFormControl interface.
Type parameters
• T extends IMapObject
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectState
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>
Parameters
• tool: IMapLegendControl
| T
Returns
tool is IMapLegendControl