OpenLayers.Control.WMSLayerAdder

Inherits From

  • <OpenLayers.Control>
Summary
OpenLayers.Control.WMSLayerAdder
Properties
dispolayers{Array} Array of layers to be made accessible
externalservers{Array} Array of external servers
map{OpenLayers.Map} The map object to be called
mapfishlayertree{mapfish.widgets.LayerTree} The mapfishlayertree to update (if set)
service{String} The service attached to the widget
resource{String} The resource attached to the widget
formwindow{Ext.Window} Saves the generated window so it ca be reused
type{String} The type of <OpenLayers.Control> -- When added to a <Control.Panel>, ‘type’ is used by the panel to determine how to handle our events.
Functions
addLayerAdd a new layer to openlayers and mapfishlayertree.
addServerAdds the server to the user’s list
connectServerConnects to the supplied server
getLayersGet the good layers and add the layers.
loadCapabilitiesLoad the personal servers and other layers of the current user
loadCapabilitiesServersInsert the capabilities in the server list
loadCapabilitiesWorkspaceInsert the layers in the list
parseCapabilitiesParse the returned GetCapabilities XML
removeServerRemove selected server from the list
triggerOpen the window.

Properties

dispolayers

{Array} Array of layers to be made accessible

externalservers

{Array} Array of external servers

map

{OpenLayers.Map} The map object to be called

mapfishlayertree

{mapfish.widgets.LayerTree} The mapfishlayertree to update (if set)

service

{String} The service attached to the widget

resource

{String} The resource attached to the widget

formwindow

{Ext.Window} Saves the generated window so it ca be reused

type

{String} The type of <OpenLayers.Control> -- When added to a <Control.Panel>, ‘type’ is used by the panel to determine how to handle our events.

Functions

addLayer

Add a new layer to openlayers and mapfishlayertree.

Parameters

layers{Array} Array of new layers.

addServer

addServer : function(btn,
text)

Adds the server to the user’s list

Parameters

btn{String} Clicked button.
text{String} Name for the server

connectServer

connectServer: function()

Connects to the supplied server

getLayers

getLayers: function(names)

Get the good layers and add the layers.

Parameters

names{String} List of layers names.

loadCapabilities

loadCapabilities : function()

Load the personal servers and other layers of the current user

loadCapabilitiesServers

loadCapabilitiesServers : function(request)

Insert the capabilities in the server list

Parameters

request{Object} The request object returned by loadCapabilities.

loadCapabilitiesWorkspace

loadCapabilitiesWorkspace : function(request)

Insert the layers in the list

Parameters

request{Object} The request object returned by loadCapabilities.

parseCapabilities

parseCapabilities : function(request)

Parse the returned GetCapabilities XML

Parameters

request{Object} The request object returned by connectServer.

removeServer

removeServer : function(id)

Remove selected server from the list

Parameters

id{String} ID of the server to delete.

trigger

trigger: function()

Open the window.

addServer : function(btn,
text)
Adds the server to the user’s list
connectServer: function()
Connects to the supplied server
getLayers: function(names)
Get the good layers and add the layers.
loadCapabilities : function()
Load the personal servers and other layers of the current user
loadCapabilitiesServers : function(request)
Insert the capabilities in the server list
loadCapabilitiesWorkspace : function(request)
Insert the layers in the list
parseCapabilities : function(request)
Parse the returned GetCapabilities XML
removeServer : function(id)
Remove selected server from the list
trigger: function()
Open the window.
Close