Skip to main content

MapChangeEvent

geovisto-mapReadme | API


geovisto-map / MapChangeEvent

Class: MapChangeEvent\<TChangedObject, TSource>

This class provides generic map change event object.

Author

Jiri Hynek

Extends

Type parameters

TChangedObject

TSource extends IMapObject = IMapObject

Implements

Constructors

new MapChangeEvent()

new MapChangeEvent\<TChangedObject, TSource>(type, source, changedObject): MapChangeEvent\<TChangedObject, TSource>

It initializes event.

Parameters

type: string

source: TSource

changedObject: TChangedObject

Returns

MapChangeEvent\<TChangedObject, TSource>

Overrides

MapEvent.constructor

Source

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

Properties

changedObject

private changedObject: TChangedObject

Source

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

Methods

getChangedObject()

getChangedObject(): TChangedObject

Return the changed object.

Returns

TChangedObject

Implementation of

IMapChangeEvent.getChangedObject

Source

model/internal/event/generic/MapChangeEvent.ts:26


getSource()

getSource(): TSource

It return source map object of the event.

Returns

TSource

Implementation of

IMapChangeEvent.getSource

Inherited from

MapEvent.getSource

Source

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


getType()

getType(): string

It returns string which identifies the event.

Returns

string

Implementation of

IMapChangeEvent.getType

Inherited from

MapEvent.getType

Source

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