ESASky Javascript API


All commands should be sent to the ESASky element as http postmessages. For example by:

document.getElementById(esaskyFrameName).contentWindow.postMessage(command, ‘http://sky.esa.int’)

Where esaskyFrameName is the elementId where the esasky page is embedded, command is a JSON containing ‘event’ for function name and ‘content’ with all parameters

There are a number of commands that will send back response from ESASky. These will also be sent as http messages directed to the sender element of the command sent to ESASky. Unless otherwise specified this will probably be the main window for you. Add a message listener if you want to handle the data sent back as:

window.addEventListener("message",function(e){
        var data = e.data;
        // Code to handle the data
 });

Available events described here and can be tested in the iframe on this page. Every command has a submit button which will send it to the iframe and paste it to the custom function input below the iframe. Here all responses from ESASky are also displayed:

Click on the headers to expand them


Event: goToRaDec:

Parameters:

ra (String, decimal degrees or sexagesimal format) 

dec (String, decimal degrees or sexagesimal format) 

Description:

Moves centre of the screen to supplied ra and dec in current coordinate frame

Example:

{event:'goToRaDec', content: {ra:'10.68470',dec:'41.26875'}}

 

Event: setFov 

Parameters: fov (double, in deg) 

Description:

Set the Field of View in degrees

Example:

{event:'setFov', content: {fov:'3.2'}}

 

Event

goToTargetName

Parameters

targetName (String)

Description:

Does a search against SIMBAD to get location of targetName and sets location in view

Example:

{event:'goToTargetName', content: {targetName:'Carina Nebula'}}

 

Event

getCenter

Parameters

cooFrame (String)(Optional) - Should be "J2000" or "GALACTIC", defaults to "J2000"

Returns:

values.ra (Double) - Right ascension (lon) of the center in decimal degrees

values.dec (Double) - Declination(lat) of the center in decimal degrees

values.fov (Double) - Field of view in horizontal (lat) direction in decimal degrees

Description:

Returns the center position of the screen

Example:

{event:'getCenter', content: {cooFrame:'J2000'}}

 

Event

setCooFrame

Parameters

cooFrame (String) - J2000 or galactic

Description:

Set the coordinate frame

Example:

{event:'setCooFrame', content: {cooFrame: "galactic"}}

 

Event

clickExploreButton

Parameters

Description:

Explore a random target

Example:

{event:'clickExploreButton'}

 


Event: showCoordinateGrid:

Parameters:

show (Boolean) shows for true, hides for false

Description:

Enables or disables the coordinate grid overlay

Example:

{event:'showCoordinateGrid', content: {show:true}}

 


Event

getAvailableHiPS

Parameters

wavelength (String)(Optional) - Wavelength in capital e.g. "OPTICAL". Defaults to empty.

Returns:

values(JSON dictionary) - If wavelength is empty this is a dictionary of wavlengths otherwise this is a dictionary with available HiPS in that wavlength

Description:

Returns the available HiPS in ESASky

Example:

{event:'getAvailableHiPS', content: {wavelength:'OPTICAL'}}

 

Event

changeHips

Parameters

hipsName(String)

Returns:

extras (Dictionary) - Empty if succes

extras.message (String) - Not existing if success otherwise error message

Description:

Change HiPS programmatically by using a HiPS present in ESASky

Example:

{event:'changeHips', content: {hipsName:'AllWISE color'}}

 

Event

addHips

Parameters

hipsName(String)

Returns:

extras (Dictionary) - Empty if succes

extras.message (String) - Not existing if success otherwise error message

Description:

Add a HiPS programmatically to the skypanel list

Example:

{event:'addHips', content: {hipsName:'DSS2 color'}}

 

Event

changeHiPSWithParams

Parameters

hips.id (String)

hips.name (String)

hips.url (String)

hips.cooframe (String)

hips.maxnorder (Int)

hips.imgformat (String)

Description:

Change HiPS programmatically by using a new HiPS not present in ESASky

Example:

{event:'changeHipsWithParams', content: {'hips': {'name': 'Chandra', 'id': 'Chandra', 'url': 'https://cdaftp.cfa.harvard.edu/cxc-hips/', 'cooframe': 'J2000', 'maxnorder': '11', 'imgformat': 'png'}}}

 

Event

addHiPSWithParams

Parameters

hips.id (String)

hips.name (String)

hips.url (String)

hips.cooframe (String)

hips.maxnorder (Int)

hips.imgformat (String)

Description:

Add a HiPS programmatically to the sky panel list by using a new HiPS not present in ESASky

Example:

{event:'addHiPSWithParams', content: {'hips': {'name': 'Chandra', 'id': 'Chandra', 'url': 'https://cdaftp.cfa.harvard.edu/cxc-hips/', 'cooframe': 'J2000', 'maxnorder': '11', 'imgformat': 'png'}}}

 

Event

setHipsColorPalette

Parameters

colorPalette (String)

Description:

Changing color palette

Example:

{event:'setHipsColorPalette', content: {colorPalette:'PLANCK'}}

 

Event

removeHips

Parameters

index (Integer)

Returns:

extras (Dictionary) - Empty if succes

extras.message (String) - Not existing if success otherwise error message

Description:

Removes the hips in the sky panel list at described index with first starting at 0. Entering -1 will remove all except for the first row.

Example:

{event:'removeHips', content: {index:0}}

 

Event

openSkyPanel

Parameters:

Description:

Opens the sky panel with all hips shown

Example:

{event:'openSkyPanel'}

 

Event

closeSkyPanel

Parameters:

Description:

Closes the sky panel

Example:

{event:'closeSkyPanel'}

 

Event

setHipsSliderValue

Parameters:

value (Double)

Description:

Sets the hips slider to specified value. 0.0 for first in skypanel list 1.0 for second etc. For everything in between a interpolation of the 2 nearby HiPS will be shown

Example:

{event:'setHipsSliderValue', content: {value:0.5}}

 

Event

getNumberOfSkyRows

Parameters:

Returns:

values (Integer)

Description:

Returns the current number of rows in the sky panel

Example:

{event:'getNumberOfSkyRows'}


Event

selectShape

Parameters

overlayName (String) - Name of the overlaySet where we eant to selesct a shape

shapeName (String) - Name of the shape (typical observation id. See overlayCatalogue/Footprint or response from shapeSelectionEvent

Description:

Selects a shape (catalogue source or footprint)

Example: ( will only work after you've run overlayFootprints example)

{'event': 'selectShape', content: {overlayName:'test footprints', shapeName:'test footprint1'}}

 

Event

deselectShape

Parameters

overlayName (String) - Name of the overlaySet where we eant to selesct a shape

shapeName (String) - Name of the shape (typical observation id. See overlayCatalogue/Footprint or response from shapeSelectionEvent

Description:

Deselects a shape (catalogue source or footprint)

Example: ( will only work after you've run overlayFootprints example and selected it)

{'event': 'deselectShape', content: {overlayName:'test footprints', shapeName:'test footprint1'}}

Event

deselectAllShapes

Parameters

Description:

Deselects all shapes selected (catalogue source or footprint)

Example: ( will only work after you've selected some shapes)

{'event': 'deselectAllShapes'}

 


Event

overlayCatalogue

Parameters

overlaySet(String)

overlaySet. type(String)

overlaySet. overlayName(String)

overlaySet. cooframe(String)

overlaySet. color(String)

overlaySet. lineWidth(Int)

overlaySet. skyObjectList(List)

overlaySet. skyObjectList. name(String)

overlaySet. skyObjectList. id(Int)

overlaySet. skyObjectList. ra(String)

overlaySet. skyObjectList. dec(String)

Description:

Overlay a catalogue

Example:

{'event': 'overlayCatalogue', content: {'overlaySet': {'type': 'SourceListOverlay', 'overlayName': 'test catalogue name', 'cooframe': 'J2000', 'color': '#ee2345', 'lineWidth': 10, 'skyObjectList': [{'name': 'source name A', 'id': 1, 'ra': '150.44963', 'dec': '2.24640'}]}}}

 

Event

overlayCatalogueWithDetails

Parameters

overlaySet(String)

overlaySet. type(String)

overlaySet. overlayName(String)

overlaySet. cooframe(String)

overlaySet. color(String)

overlaySet. lineWidth(Int)

overlaySet. skyObjectList(List)

overlaySet. skyObjectList. name(String)

overlaySet. skyObjectList. id(Int)

overlaySet. skyObjectList. ra(String)

overlaySet. skyObjectList. dec(String)

overlaySet. skyObjectList. data(List)

overlaySet. skyObjectList. data.name(String)

overlaySet. skyObjectList.data. type(String)

overlaySet. skyObjectList.data. value(type)

Description:

Overlay a catalogue with data

Example:

{'event':'overlayCatalogueWithDetails', content: {'overlaySet': {'type': 'SourceListOverlay', 'overlayName': 'test catalogue name', 'cooframe': 'J2000', 'color': '#ee2345', 'lineWidth': 10, 'skyObjectList': [{'name': 'source name A', 'id': 1, 'ra': '150.44963', 'dec': '2.24640', 'data': [{'name': 'Flux 1', 'value': '10.5', 'type': 'STRING'}]}]}}}

 

Event

deleteCatalogue

Parameters

overlayName(String)

Description:

Remove an existing catalogue

Example:

{'event': 'deleteCatalogue',content: { 'overlayName': 'test catalogue name'}}

 

Event

clearCatalogue

Parameters

overlayName(String)

Description:

Clear an existing catalogue

Example:

{'event': 'clearCatalogue', content: {'overlayName': 'test catalogue name'}}

 


Event

overlayFootprints

Parameters

overlaySet(String)

overlaySet. type(String)

overlaySet. overlayName(String)

overlaySet. cooframe(String)

overlaySet. color(String)

overlaySet. lineWidth(Int)

overlaySet. skyObjectList(List)

overlaySet. skyObjectList. name(String)

overlaySet. skyObjectList. id(Int)

overlaySet. skyObjectList. stcs(stcs)

Description:

Overlay a list of footprints

Example:

{'event': 'overlayFootprints', content: {'overlaySet': {'type': 'FootprintListOverlay', 'overlayName': 'test footprints', 'cooframe': 'J2000', 'color': 'red', 'lineWidth': 5, 'skyObjectList': [{'name': 'test footprint1', 'id': 1, 'stcs': 'Polygon J2000 187.33912535049 -62.6616054228651 187.343512531474 -62.7116786437002 187.235239903703 -62.7136263115712 187.231036216914 -62.6635488923945', 'ra_deg': '187.287228500645', 'dec_deg': '-62.6876148176328'}]}}}

 

Event

overlayFootprintsWithDetails

Parameters

overlaySet(JSON)

overlaySet. type(String)

overlaySet. overlayName(String)

overlaySet. cooframe(String)

overlaySet. color(String)

overlaySet. lineWidth(Int)

overlaySet. skyObjectList(List)

overlaySet. skyObjectList. name(String)

overlaySet. skyObjectList. id(Int)

overlaySet. skyObjectList. stcs(stcs)

overlaySet. skyObjectList. data(List)

overlaySet. skyObjectList. data.name(String)

overlaySet. skyObjectList.data. type(String)

overlaySet. skyObjectList.data. value(type)

Description:

Overlay a list of footprints with data

Example:

{'event': 'overlayFootprintsWithDetails', content: {'overlaySet': {'type': 'FootprintListOverlay', 'overlayName': 'test footprints', 'cooframe': 'J2000', 'color': 'red', 'lineWidth': 5, 'skyObjectList': [{'name': 'test footprint1', 'id': 1, 'stcs': 'Polygon J2000 187.33912535049 -62.6616054228651 187.343512531474 -62.7116786437002 187.235239903703 -62.7136263115712 187.231036216914 -62.6635488923945', 'ra_deg': '187.287228500645', 'dec_deg': '-62.6876148176328', 'data': [{'name': 'wid', 'value': '0.0562381572800632', 'type': 'STRING'}, {'name': 'hei', 'value': '0.0260104443530693', 'type': 'STRING'}, {'name': 'score', 'value': '0.99999988079071', 'type': 'STRING'}]}]}}}

 

Event

deleteFootprintsOverlay

Parameters

overlayName(String)

Description:

Remove an existing catalogue

Example:

{'event': 'deleteFootprintsOverlay', content: {'overlayName': 'test catalogue name'}}

 

Event

clearFootprintsOverlay

Parameters

catalogueName(String)

Description:

Clear an existing catalogue

Example:

{'event': 'clearFootprintsOverlay', content: {'overlayName': 'test catalogue name'}}

 


Event: closeDataPanel

Parameters:

Description:

Minimises the datapanel

Example:

{event:'closeDataPanel'}

 

Event: closeResultPanelTab

Parameters:

index (Integer)

Description:

Closes the result panel tab at index, starting with 0. -1 closes the current active tab.

Example:

{event:'closeResultPanelTab', content: {index: -1}}

 

Event: closeAllResultPanelTabs

Parameters:

Description:

Closes all result panel tabs

Example:

{event:'closeAllResultPanelTabs'}

 

Event: getResultPanelData

Parameters:

Returns:

values (Dictionary) - All data in the currently active result panel tab

Description:

Closes all result panel tabs

Example:

{event:'getResultPanelData'}

 


Event

plotObservations

Parameters

missionId (String)

Returns:

extras (Dictionary) - Empty if succes

extras.message (String) - Not existing if success otherwise error message

Description:

Plot available image observation footprints in ESASky for he currently shown area for the given missionID

Example:

{event:"plotObservations", content: {missionId: 'HST-UV'}}

 

Event

plotCatalogues

Parameters

missionId (String)

Returns:

extras (Dictionary) - Empty if succes

extras.message (String) - Not existing if success otherwise error message

Description:

Plot available catalogue data in ESASky for the currently shown area for the given missionID

Example:

{event:"plotCatalogues", content: {missionId: "GAIA DR2"}}

 

Event

plotSpectra

Parameters

missionId (String)

Returns:

extras (Dictionary) - Empty if succes

extras.message (String) - Not existing if success otherwise error message

Description:

Plot available spectra footprints in ESASky for he currently shown area for the given missionID

Example:

{event:"plotSpectra", content: {missionId: 'IUE'}} 

 

Event

plotSpectra

Parameters

missionId (String)

Returns:

extras (Dictionary) - Empty if succes

extras.message (String) - Not existing if success otherwise error message

Description:

Plot available spectra footprints in ESASky for he currently shown area for the given missionID

Example:

{event:"plotSpectra", content: {missionId: 'IUE'}} 

 


Event

getAvailableTapServices

Parameters

Returns:

List with the available TAP Services

Description:

Lists the avaialble TAP services in ESASky

Example:

{'event':'getAvailableTapServices'}

 

Event

getTapServiceCount

Parameters

tapService (String) - The name of the tapService to get available data from

Returns

List with missions with data in the tapService within the current FoV

Description:

Get list of missions in a TAP Serrivece wihtin the current FoV

Example:

{'event':'getTapServiceCount', content: {"tapService":"ESO"}}

 

Event

plotTapService

Parameters

tapService (String) - The mission from the tapService to get data from (See getTapServiceCount for available missions in the current view)

Description:

Plots data from the mission in the TAP Service

Example:

{'event':'plotTapService', content: {"tapService":"ESO-Spectrum-MPG/ESO-2.2"}}

 

Event

plotTapServiceWithDetails

Parameters

name (String) - Will overwrite any exisitng dataPanel with the same name

tapUrl (String)

color (String) - Sets the color, use 'blue' or RGB format (e.g. '#FF008A')

adql (String) - ADQL used for the TAP query

Description:

Plot available image observation footprints in ESASky for he currently shown area for the given missionID

Example:

{'event':'plotTapServiceWithDetails', content: {"name":"myTAP22",color:"#FF00FF", dataOnlyInView: false, tapUrl:"http://archive.eso.org/tap_obs", adql:"SELECT TOP 100 * FROM ivoa.obscore"}}

 


Event

getObservationCount

Parameters:

Returns:

List of available observations in ESASky with associated counts in the visible sky area

Description:

Returns the observations count

Example:

{'event': 'getObservationsCount'}

 

Event

getCataloguesCount

Parameters:

Returns:

List of available catalogues in ESASky with associated counts in the visible sky area

Description:

Returns the catalogues count

Example:

{'event': 'getCataloguesCount'}

 

Event

getSpectraCount

Parameters:

Returns:

List of available spectra in ESASky with associated counts in the visible sky area

Description:

Returns the spectra count

Example:

{'event': 'getSpectraCount'}

 

Event

getPublicationsCount

Parameters:

Returns:

Number of publications in the visible sky area

Description:

Returns the publications count

Example:

{'event': 'getPublicationsCount'}

 


Event

addJwst

Parameters

instrument(String)

detector(String)

showAllInstruments(boolean)

Description:

Open the JWST planning tool and adds at center of screen

Example:

{'event': 'addJwst', content: {'instrument': 'NIRSpec', 'detector': 'NRS_FULL_MSA', 'showAllInstruments': false}}

 

Event

addJwstWithCoordinates

Parameters

instrument(String)

detector(String)

showAllInstruments(boolean)

ra(String, in degrees)

dec(String, in degrees)

rotation(String, in degrees)

Description:

Open the JWST planning tool and adds at supplied coordinates

Example:

{'event': 'addJwstWithCoordinates', content: {'instrument': 'NIRISS', 'detector': 'NIS_CEN', 'showAllInstruments': true, 'ra': '210', 'dec': '12', 'rotation': '90'}}

 

Event

closeJwstPanel

Parameters

Description:

Closes the JWST planning tool

Example:

{'event': 'closeJwstPanel'}

 

Event

openJwstPanel

Parameters

Description:

Opens the JWST planning tool

Example:

{'event': 'openJwstPanel'}

 

Event

clearJwstAll

Parameters

Description:

Clear all 

Example:

{'event': 'clearJwstAll'}

 


Event

addMOC

Parameters

name(String) - Name of the MOC (will overwrte existing MOC with same name)

options.color(String) - Sets the color, use 'blue' or RGB format (e.g. '#FF008A')

options.opacity(Float) - Opacity of the MOC in range 0.0 - 1.0 (1.0 will only show the borders)

options.lineStyle(String)(optional) - Sets the linestyle of the borders in case only the borders are shown. Possible parameters are "solid" and "dashed"

options.mode(String)(optional) - Default: "healpix" Choose to display in "healpix" or "q3c" system

options.addTab(Boolean)(optional) - Default: false Adds a resultspanel tab to control style on true

mocData(Javascript Object) - Object where the keys are the orders and the values are lists of pixels in the order

Description:

Adds a MOC ( HEALPix Multi-Order Coverage map) on the sky

Example:

{event:'addMOC', content: {name:"myMOC",options:{color:"#FF00FF",lineStyle:"dashed",opacity:.5, mode:"healpix", addTab:true}, mocData:{8:[0,1,2,3,4,5], 6:[165]}}}}

 

Event

removeMOC

Parameters

name(String) - Name of the MOC (if it has already been added) MOC added without name will be "MOC"

Description:

Removes a MOC ( HEALPix Multi-Order Coverage map) from the sky

Example:

{'event':'removeMOC', "content": {"name":"myMOC"}}


Event

addCustomTreeMap

Parameters

treeMap.name(String) - The name/ID that will be used in any callbacks

treeMap.description(String)(Optional) - Description that will be shown when hovering on the button

treeMap.iconText(String)(Otional) - Text showing on the button, will default to name if not specified

treeMap.missions (List) - List of the missions that will show up in the treemap

treeMap.missions.name(String) - Name of the mission which will be ID in callbacks

treeMap.missions.color(String) - Default color showing up in the treeMap

Returns

On click of one of the tree map missions this will return a message

values.action (String) - "treemap_mission_clicked"

values.info.treemap(String) - treemap name as specified in the parameter

values.info.mission (String) - mission name as specified in the parameter

Description:

Adds a custom treeMap button to ESASky and starts listening for clicks on the missions inside it

Example:

{'event': 'addCustomTreeMap', content: {'treeMap':{name:'JWST', iconText:'JWST', description:'James webb imgages....', missions:[{'name':'NIRSpec','color':'blue'},{'name':'NIRCam','color':'green'}]}}}

 

Event:

setModuleVisibility

Parameters:

modules(JSON Object) - Object on format: {key:boolean}. Possible keys are: scientific_toggle_button, language_button, coordinate_grid_button, screenshot_button, share_button, help_button, dropdown_menu, feedback_button, skies_menu, observations_button, catalogues_button, spectra_button, exttap_button, sso_button, publications_button, target_list_button, jwst_planning_button, dice_button, science_mode

Description:

Sets visibility of the buttons

Example:

{event:'setModuleVisibility', content: {modules:{coordinate_grid_button:false}}}

 


Event

openGWPanel

Parameters

Returns

Description:

Opens the Graviational Wave panel

Example:

{'event': 'openGWPanel'}

 

Event

openNeutrinoPanel

Parameters

Returns

Description:

Opens the Nutrino events panel

Example:

{'event': 'openNeutrinoPanel'}

 

Event

closeAlertPanel

Parameters

Returns

Description:

Closes the Alert panel

Example:

{'event': 'closeAlertPanel'}

 

Event

minimiseAlertPanel

Parameters

Returns

Description:

Mininises the Alert panel, i.e. keeps the events shown but removes the panel from the screen

Example:

{'event': 'minimiseAlertPanel'}

 

Event

getGWIds

Parameters

Returns

List of available GW ids in ESASky

Description:

Returns the available gravitational wave ids

Example:

{'event': 'getGWIds'}

 

Event

getGWEventData

Parameters

id (String)

Returns

Data associated with the GW id

Description:

Returns the data from chosen gravitational wave id

Example:

{event:'getGWEventData', content: {id: "S200225q"}}

 

Event

showGWEvent

Parameters

id (String)

Description:

Shows the chosen GW id on ESASky

Example:

{event:'showGWEvent', content: {id: "S200225q"}}

 

Event

getAllGWData

Parameters

Returns

List of available GW ids with data in ESASky

Description:

Returns the available gravitational wave data

Example:

{event:'getAllGWData'}

 

Event

getNeutrinoEventData

Parameters

Returns

List of neutrino events with data in ESASky

Description:

Returns the available neutrino events data

Example:

{event:'getNeutrinoEventData}

 


Event

registerEventListener

Parameters

Returns

Will return values on change of view and on selection of shapes

View changed

values.action (String) - "view_changed"

values.values.ra (float) - Right ascension of center of screen in deg

values.values.dec (float) - Declination of center of screen in deg

values.values.fov (float) - Field of View in deg

Shape selected

values.action (String) - "shape_selected"

values.values.overlay (String) - Overlayname to which the shape selected is attached

values.values.name (String) - Name of the shape

values.values.id (String) - Id of the shape

Description:

Adds a event listener which returns values of certain events

Example:

{'event': 'registerEventListener'}

 


Event

showSearchTool

Parameters

Description:

Shows the search tool panel

Example:

{event: 'showSearchTool'}

 

Event

closeSearchTool

Parameters

Description:

Closes the search tool panel

Example:

{event: 'closeSearchTool'}

 

Event

setConeSearchArea

Parameters

ra (double) - Right Ascension of the center of the circle

dec (double) - Declination of the center of the circle

radius (double) - Radius of the circle

Description:

Sets a circle as cone search area. All counts and data retrival will be within this area. Outside of the area will be blurred

Example:

{event: 'setConeSearchArea', content: {ra:15.0, dec:35.4, radius:5.0}}

 

Event

setPolygonSearchArea

Parameters

stcs (String) - STC String of the polygon

Description:

Sets a polygon as search area. All counts and data retrival will be within this area. Outside of the area will be blurred

Example:

{event: 'setPolygonSearchArea', content: {stcs:"POLYGON ICRS 3.5596 -10.9209 3.6914 -11.1109 3.6475 -11.3010 3.6035 -11.4913 3.4717 -11.6817 3.3398 -11.8722 3.1201 -11.6817 2.9004 -11.4913 2.7686 -11.3771 2.7246 -11.1869 2.5928 -10.9969 2.4609 -10.8069 2.3291 -10.6171 2.1973 -10.4274 2.0654 -10.2378 1.9336 -10.0484 1.8896 -9.8590 1.8457 -9.6697 1.7139 -9.4806 1.5820 -9.2916 1.5381 -9.1026 1.4941 -8.9138 1.4502 -8.7250 1.4062 -8.5364 1.2744 -8.3478 1.3184 -8.1594 1.1865 -7.9710 1.2305 -7.7827 1.0986 -7.5945 1.1426 -7.4064 1.0107 -7.2184 1.0547 -7.0304 0.9229 -6.8425 0.9668 -6.6547 0.8350 -6.4670 0.8789 -6.2793 0.8350 -6.0917 0.7910 -5.9042 0.8350 -5.7167 0.8789 -5.5293 0.8350 -5.3419 0.7910 -5.1546 0.8350 -4.9674 0.8789 -4.7802 0.9229 -4.5931 1.1426 -4.5556 1.3623 -4.6679 1.5820 -4.6305 1.8018 -4.8176 1.8457 -5.0048 1.8896 -5.1921 2.0215 -5.3794 2.1533 -5.5667 2.1973 -5.7542 2.3291 -5.9417 2.3730 -6.1292 2.5049 -6.3168 2.5488 -6.5045 2.5928 -6.6923 2.6367 -6.8801 2.6807 -7.0680 2.7246 -7.2560 2.8564 -7.4440 2.9883 -7.6321 2.9443 -7.8204 3.0762 -8.0087 3.1201 -8.1971 3.1641 -8.3855 3.2080 -8.5741 3.2520 -8.7628 3.2959 -8.9515 3.3398 -9.1404 3.4717 -9.3294 3.4277 -9.5184 3.4717 -9.7076 3.5156 -9.8969 3.5596 -10.0862 3.6035 -10.2757 3.5596 -10.4653 3.5156 -10.6551 3.5596 -10.8449"}}

 

Event

clearSearchArea

Parameters

Description:

Clears the current active search area

Example:

{event: 'clearSearchArea'}

 


Event

getTargetLists

Parameters

Description:

Get all available target lists

Returns:

A list of all available target lists.

Example:

{event: 'getTargetLists'}

 

Event

openTargetList

Parameters

targetList (String)(Optional) - One of the available target lists

Description:

Open the target list panel. If the optional parameter "targetlist" is provided, the panel is opened with the provided target list pre-selected

Example:

{event: 'openTargetList', content: {targetList: "PeculiarGalaxies"}}

 

Event

closeTargetList

Parameters

Description:

Close the target list panel

Example:

{event: 'closeTargetList'}

 


Event

openOutreachPanel

Parameters

Description:

Open the outreach panel

Example:

{event: 'openOutreachPanel'}

 

Event

closeOutreachPanel

Parameters

Description:

Close the outreach panel

Example:

{event: 'closeOutreachPanel'}

 

Event

getOutreachImageIds

Parameters

Description:

Get all available outreach image IDs

Returns:

Returns a list of outreach image IDs

Example:

{event: 'getOutreachImageIds'}

 

Event

openOutreachImage

Parameters

id - The unique identifier of the outreach image to be opened

Description:

Close the outreach panel

Example:

{event: 'openOutreachImage', content: { id: "heic0406a"}}

 


Event

playerPlay

Parameters

Description:

Start the currently active player

Example:

{event: 'playerPlay'}

 

Event

playerPause

Parameters

Description:

Pause the currently active player

Example:

{event: 'playerPause'}

 

Event

playerNext

Parameters

Description:

Go to the next entry in the player queue

Example:

{event: 'playerNext'}

 

Event

playerPrevious

Parameters

Description:

Go to the previous entry in the player queue

Example:

{event: 'playerPrevious'}

 

Output window

Will show any text returned from ESASky