ReactGeovistoMap
geovisto-map / ReactGeovistoMap
Class: ReactGeovistoMap
React component which wraps Geovisto map.
Author
Jiri Hynek
Extends
unknown
\<IReactGeovistoMapProps
,Record
\<string
,never
>>
Constructors
new ReactGeovistoMap()
new ReactGeovistoMap(
props
):ReactGeovistoMap
Initializes object.
Parameters
• props: IReactGeovistoMapProps
Returns
Overrides
Component<IReactGeovistoMapProps, Record<string, never>>.constructor
Source
Properties
m
private
m:IMap
\<IMapProps
,IMapDefaults
,IMapState
\<IMapProps
,IMapDefaults
,IMapConfig
>,IMapConfig
,IMapInitProps
\<IMapConfig
>>
Source
Methods
componentDidMount()
componentDidMount():
void
Draw map after component is rendered
Returns
void
Source
componentDidUpdate()
componentDidUpdate():
void
Redraw map after component is updated
Returns
void
Source
getDefaultClass()
private
getDefaultClass():string
It returns a default class name used for Geovisto map container.
Returns
string
Source
getDefaultId()
private
getDefaultId():string
It returns a default id used for Geovisto map container.
Returns
string
Source
getMap()
getMap():
IMap
\<IMapProps
,IMapDefaults
,IMapState
\<IMapProps
,IMapDefaults
,IMapConfig
>,IMapConfig
,IMapInitProps
\<IMapConfig
>>
It returns Geovisto map.
Returns
IMap
\<IMapProps
, IMapDefaults
, IMapState
\<IMapProps
, IMapDefaults
, IMapConfig
>, IMapConfig
, IMapInitProps
\<IMapConfig
>>
Source
render()
render():
Element
The render function prepares a wrapper which will be used by Geovisto/Leaflet to render the map.
Returns
Element