Class: MarkerBase

(abstract) MarkerBase()

MarkerBase Each instance represents a marker being shown in the map. The implemented abstract methods will allow adding markers to the map instance and detecting click events on them.

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.
Source:

Members

(static, non-null) STATE :Object

State definition.
Type:
  • Object
Source:

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.
Source:
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
Source:
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
Source:
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.
Source: