LoadingPanel.js

Summary
LoadingPanel.js
Properties
counter{Integer} A counter for the number of layers loading
maximized{Boolean} A boolean indicating whether or not the control is maximized
visible{Boolean} A boolean indicating whether or not the control is visible
Constructor
OpenLayers.Control.LoadingPanelDisplay a panel across the map that says ‘loading’.
Functions
setVisibleSet the visibility of this control
getVisibleGet the visibility of this control
hideHide the loading panel control
showShow the loading panel control
toggleToggle the visibility of the loading panel control
addLayerAttach event handlers when new layer gets added to the map
setMapSet the map property for the control and all handlers.
increaseCounterIncrease the counter and show control
decreaseCounterDecrease the counter and hide the control if finished
drawCreate and return the element to be splashed over the map.
minimizeControlSet the display properties of the control to make it disappear.
maximizeControlMake the control visible.
destroyDestroy control.

Properties

counter

{Integer} A counter for the number of layers loading

maximized

{Boolean} A boolean indicating whether or not the control is maximized

visible

{Boolean} A boolean indicating whether or not the control is visible

Constructor

OpenLayers.Control.LoadingPanel

Display a panel across the map that says ‘loading’.

Parameters

options{Object} additional options.

Functions

setVisible

setVisible: function(visible)

Set the visibility of this control

Parameters

visible{Boolean} should the control be visible or not?

getVisible

getVisible: function()

Get the visibility of this control

Returns

{Boolean} the current visibility of this control

hide

hide: function()

Hide the loading panel control

show

show: function()

Show the loading panel control

toggle

toggle: function()

Toggle the visibility of the loading panel control

addLayer

addLayer: function(evt)

Attach event handlers when new layer gets added to the map

Parameters

evt{Event}

setMap

setMap: function(map)

Set the map property for the control and all handlers.

Parameters

map{OpenLayers.Map} The control’s map.

increaseCounter

increaseCounter: function()

Increase the counter and show control

decreaseCounter

decreaseCounter: function()

Decrease the counter and hide the control if finished

draw

draw: function ()

Create and return the element to be splashed over the map.

minimizeControl

minimizeControl: function(evt)

Set the display properties of the control to make it disappear.

Parameters

evt{Event}

maximizeControl

maximizeControl: function(evt)

Make the control visible.

Parameters

evt{Event}

destroy

destroy: function()

Destroy control.

setVisible: function(visible)
Set the visibility of this control
getVisible: function()
Get the visibility of this control
hide: function()
Hide the loading panel control
show: function()
Show the loading panel control
toggle: function()
Toggle the visibility of the loading panel control
addLayer: function(evt)
Attach event handlers when new layer gets added to the map
setMap: function(map)
Set the map property for the control and all handlers.
increaseCounter: function()
Increase the counter and show control
decreaseCounter: function()
Decrease the counter and hide the control if finished
draw: function ()
Create and return the element to be splashed over the map.
minimizeControl: function(evt)
Set the display properties of the control to make it disappear.
maximizeControl: function(evt)
Make the control visible.
destroy: function()
Destroy control.
Instances of OpenLayers.Map are interactive maps embedded in a web page.