new PixelValues(optionsopt) → {PixelValue}
Create a new pixel value display interface.
Parameters
-
options
object<optional>
Options.
Properties
-
title
string<optional>
'Pixel value(s)'Title of the control.
-
position
'bottomleft'|'bottomright'|'topleft'|'topright'<optional>
'topright'Position of the value display.
-
valueSettings
Array.<valueSettings><optional>
Value settings for every instance of pixelValues.
-
dragUpdate
boolean<optional>
trueUpdate while dragging map?
-
title
Returns
-
PixelValueInstance of a pixel value display interface.
Source
Methods
privatestatic
_checkVisiomatic(e)
Check that the layer being loaded is a VisiOmatic layer.
Parameters
-
e
leaflet.LayerEventLeaflet layer event object.
Source
privatestatic
_initDialog()
Initialize the pixel value display dialog.
Source
privatestatic
_onUpdate(e)
Update coordinates when the map is being dragged.
Parameters
-
e
leaflet.LayerEventLeaflet layer event object.
Source
static
onRemove(mapopt)
Remove map update event when the coordinate display/control is removed.
Parameters
-
map
leaflet.map<optional>
The parent map.