ALKMaps.Control.InfoWarning

The infoWarning control adds infoWarning from layers to the map display.  It uses ‘infoWarning’ property of each layer.

Inherits from

// How to change default style of the control:
// Remove default CSS class name
ALKMaps.Element.removeClass(element, "olControlInfoWarning");
// Add your CSS class name.
ALKMaps.Element.addClass(element, "newCSSClassName");
Summary
ALKMaps.Control.InfoWarningThe infoWarning control adds infoWarning from layers to the map display.
Properties
separator{String} String used to separate layers.
template{String} Template for the infoWarning.
Constructor
ALKMaps.Control.InfoWarning
Functions
destroyDestroy control.
drawInitialize control.
updateInfoWarningUpdate infoWarning string.

Properties

separator

{String} String used to separate layers.

template

{String} Template for the infoWarning.  This has to include the substring “${layers}”, which will be replaced by the layer specific infoWarnings, separated by separator.  The default is “${layers}”.

Constructor

ALKMaps.Control.InfoWarning

Parameters

options{Object} Options for control.

Functions

destroy

destroy: function()

Destroy control.

draw

draw: function()

Initialize control.

Returns

{DOMElement} A reference to the DIV DOMElement containing the control

updateInfoWarning

updateInfoWarning: function()

Update infoWarning string.

destroy: function()
Destroy control.
draw: function()
Initialize control.
updateInfoWarning: function()
Update infoWarning string.
Controls affect the display or behavior of the map.
{String} String used to separate layers.
Close