Skip to main content

MapEvent

geovisto-mapReadme | API


geovisto-map / MapEvent

Class: MapEvent\<TSource>

This class provides generic map event object.

Author

Jiri Hynek

Extended by

Type parameters

TSource extends IMapObject = IMapObject

Implements

Constructors

new MapEvent()

new MapEvent\<TSource>(type, source): MapEvent\<TSource>

It initializes event.

Parameters

type: string

source: TSource

Returns

MapEvent\<TSource>

Source

model/internal/event/generic/MapEvent.ts:17

Properties

source

private source: TSource

Source

model/internal/event/generic/MapEvent.ts:12


type

private type: string

Source

model/internal/event/generic/MapEvent.ts:11

Methods

getSource()

getSource(): TSource

It return source map object of the event.

Returns

TSource

Implementation of

IMapEvent.getSource

Source

model/internal/event/generic/MapEvent.ts:32


getType()

getType(): string

It returns string which identifies the event.

Returns

string

Implementation of

IMapEvent.getType

Source

model/internal/event/generic/MapEvent.ts:25