Constructor
new MarkerList(dataId, triggerId, clearId)
Parameters:
Name | Type | Description |
---|---|---|
dataId |
string | id of element containing the list of markers |
triggerId |
string | id of element triggering the list validation |
clearId |
string | id of the element triggering a data clearing |
Methods
_clearMarkers()
Notifies all listeners that the list has been cleared
_getEvent() → {CustomEvent}
Returns the event sent to listening objects
It contains RA, DEC coordinates and a label of an object
Returns:
- Type
- CustomEvent
_updateMarkers()
Notifies all listeners that the list has been updated
addListener(listener)
Adds an object listening to event from this object
Parameters:
Name | Type | Description |
---|---|---|
listener |
Object |
removeListener(listener)
Removes an object listening to event from this object
Parameters:
Name | Type | Description |
---|---|---|
listener |
Object |
sourceTableCall(event)
Adds a markers in the list corresponding to an entry clicked in the NED table
Action triggered by a SourceTable instance
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | event sent by a SourceTable instance |