Skip to main content

ReactGeovistoMap

geovisto-mapReadme | API


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

ReactGeovistoMap

Overrides

Component<IReactGeovistoMapProps, Record<string, never>>.constructor

Source

react/ReactGeovistoMap.tsx:27

Properties

m

private m: IMap\<IMapProps, IMapDefaults, IMapState\<IMapProps, IMapDefaults, IMapConfig>, IMapConfig, IMapInitProps\<IMapConfig>>

Source

react/ReactGeovistoMap.tsx:20

Methods

componentDidMount()

componentDidMount(): void

Draw map after component is rendered

Returns

void

Source

react/ReactGeovistoMap.tsx:60


componentDidUpdate()

componentDidUpdate(): void

Redraw map after component is updated

Returns

void

Source

react/ReactGeovistoMap.tsx:68


getDefaultClass()

private getDefaultClass(): string

It returns a default class name used for Geovisto map container.

Returns

string

Source

react/ReactGeovistoMap.tsx:53


getDefaultId()

private getDefaultId(): string

It returns a default id used for Geovisto map container.

Returns

string

Source

react/ReactGeovistoMap.tsx:46


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

react/ReactGeovistoMap.tsx:39


render()

render(): Element

The render function prepares a wrapper which will be used by Geovisto/Leaflet to render the map.

Returns

Element

Source

react/ReactGeovistoMap.tsx:76