new RegionUI(regionsopt, optionsopt) → {ProfileUI}
Create a VisiOmatic dialog for overlaying region and Point of Interest (PoI).
Parameters
-
regions
Array.<region>
<optional>
Regions to overlay.
-
options
object
<optional>
Options.
Properties
-
title
string
<optional>
'Region overlays'Title of the dialog window or panel.
-
color
string
<optional>
'#00FFFF'Default region overlay color.
-
title
See
UI
for additional control options.
Returns
-
ProfileUI
Instance of a VisiOmatic profile and spectrum plotting user interface.
Source
Methods
privatestatic
_getRegion(region, timeoutopt)
Query a region.
Parameters
-
region
region
Region.
-
timeout
number
<optional>
Query time out delay, in seconds. Defaults to no time out.
Source
privatestatic
_initDialog()
Initialize the region overlay dialog.
Source
privatestatic
_loadRegion(region, templayer, self, httpRequest)
Load region data and display the overlay layer.
Parameters
-
region
region
Region.
-
templayer
leaflet.Layer
"Dummy" layer to activate a spinner sign.
-
self
object
Calling control object (
this
). -
httpRequest
object
HTTP request.
Source
privatestatic
_resetDialog()
Reset the region query dialog (do nothing actually).
Source
Type Definitions
drawCallback(feature, latlng)
Callback for custom drawing of a GeoJSON point feature.
Parameters
-
feature
object
GeoJSON feature.
-
latlng
LatLng
World coordinates of the point.