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. | Display a panel across the map that says ‘loading’. |
Functions | |
setVisible | Set the visibility of this control |
getVisible | Get the visibility of this control |
hide | Hide the loading panel control |
show | Show the loading panel control |
toggle | Toggle the visibility of the loading panel control |
addLayer | Attach event handlers when new layer gets added to the map |
setMap | Set the map property for the control and all handlers. |
increaseCounter | Increase the counter and show control |
decreaseCounter | Decrease the counter and hide the control if finished |
draw | Create and return the element to be splashed over the map. |
minimizeControl | Set the display properties of the control to make it disappear. |
maximizeControl | Make the control visible. |
destroy | Destroy control. |
setMap: function( map )
Set the map property for the control and all handlers.
map | {OpenLayers.Map} The control’s map. |
Set the visibility of this control
setVisible: function( visible )
Get the visibility of this control
getVisible: function()
Hide the loading panel control
hide: function()
Show the loading panel control
show: function()
Toggle the visibility of the loading panel control
toggle: function()
Attach event handlers when new layer gets added to the map
addLayer: function( evt )
Set the map property for the control and all handlers.
setMap: function( map )
Increase the counter and show control
increaseCounter: function()
Decrease the counter and hide the control if finished
decreaseCounter: function()
Create and return the element to be splashed over the map.
draw: function ()
Set the display properties of the control to make it disappear.
minimizeControl: function( evt )
Make the control visible.
maximizeControl: function( evt )
Destroy control.
destroy: function()