new CatalogUI(catalogs, optionsopt) → {CatalogUI}
Create a VisiOmatic dialog for catalog queries and catalog overlays.
Parameters
-
catalogs
Array.<Catalog>
Array of catalogs
-
options
object
<optional>
Options.
Properties
-
title
string
<optional>
'Catalog overlays'Title of the dialog window or panel.
-
color
string
<optional>
'#FFFF00'Default catalog overlay color.
-
timeOut
number
<optional>
30Time out delay for catalog queries, in seconds.
-
authenticate
boolean
<optional>
falseForce authentication for querying catalogs?
-
title
See
UI
for additional control options.
Returns
-
CatalogUI
VisiOmatic CatalogUI instance.
Source
Members
static
defaultCatalogsArray.<Catalog>
Default array of catalogs.
Type
-
Array.<Catalog>
Default Value
-
["gaiaDR3","twomass","sdss","panstarrs1","unWISE","skybot"]
Source
Methods
privatestatic
_getCatalog(catalog, timeoutopt)
Query catalog.
Parameters
-
catalog
Catalog
Catalog.
-
timeout
number
<optional>
Query time out delay, in seconds. Defaults to no time out.
Source
privatestatic
_initDialog()
Initialize the catalog query dialog.
Source
privatestatic
_loadCatalog(catalog, templayer, response)
Load catalog data and display the overlay layer.
Parameters
-
catalog
Catalog
Catalog.
-
templayer
leaflet.Layer
"Dummy" layer to activate a spinner sign.
-
response
object
Response object from the fetch() request.
Source
privatestatic
_resetDialog()
Reset the catalog query dialog.