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
UIfor additional control options.
Returns
-
ProfileUIInstance of a VisiOmatic profile and spectrum plotting user interface.
Source
Methods
privatestatic
_getRegion(region, timeoutopt)
Query a region.
Parameters
-
region
regionRegion.
-
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
regionRegion.
-
templayer
leaflet.Layer"Dummy" layer to activate a spinner sign.
-
self
objectCalling control object (
this). -
httpRequest
objectHTTP 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
objectGeoJSON feature.
-
latlng
LatLngWorld coordinates of the point.