Constructor
(abstract) new MarkerBase()
Initializes the instance with a native marker which will handle all
the execution. This function may be moved to the class constructor in
the future, but currently it supports the legacy API.
Members
(static, non-null) STATE :Object
State definition.
Type:
- Object
Methods
_getNativeEventFunction(externalEventType) → {function}
Generates a function that, when fired, emits an event with a normalized
version of the received event and the given event type.
Parameters:
Name | Type | Description |
---|---|---|
externalEventType |
string | Event that will be emited when the function is executed. |
Returns:
Generated event handler.
- Type
- function
(abstract) _getNativeMarker(location, map) → {Object}
Returns a nativeMarket object for a given location and map.
At this point any extra event should be added to the object, using
the implemented method _handleNativeEvent as handler.
Parameters:
Name | Type | Description |
---|---|---|
location |
Object | |
map |
Object |
Returns:
Generated native marker
- Type
- Object
(abstract) _getNormalizedEventData(nativeEvent) → {Object}
For a given event, it returns a normalized version of it
with a common structure
Parameters:
Name | Type | Description |
---|---|---|
nativeEvent |
Event |
Returns:
- Type
- Object
_handleNativeEvent(nativeEvent, externalEventType)
Parses the given nativeEvent and emits a new event with the given
event type.
Parameters:
Name | Type | Description |
---|---|---|
nativeEvent |
Event | Native event that will be parsed. |
externalEventType |
string | Event type that will be emitted. |