The infoWarning control adds infoWarning from layers to the map display. It uses ‘infoWarning’ property of each layer.
// 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");
| ALKMaps. | The 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. | |
| Functions | |
| destroy | Destroy control. |
| draw | Initialize control. |
| updateInfoWarning | Update infoWarning string. |
{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}”.
Destroy control.
destroy: function()
Initialize control.
draw: function()
Update infoWarning string.
updateInfoWarning: function()