Superclass for WMC version 1 parsers.
OpenLayers. | Superclass for WMC version 1 parsers. |
Properties and Functions | |
namespaces | {Object} Mapping of namespace aliases to namespace URIs. |
schemaLocation | {String} Schema location for a particular minor version. |
getNamespacePrefix | Get the namespace prefix for a given uri from the namespaces object. |
defaultPrefix | |
rootPrefix | {String} Prefix on the root node that maps to the context namespace URI. |
defaultStyleName | {String} Style name used if layer has no style param. |
defaultStyleTitle | {String} Default style title. |
Constructor | |
OpenLayers. | Instances of this class are not created directly. |
Functions | |
read | Read capabilities data from a string, and return a list of layers. |
runChildNodes | |
read_wmc_General | |
read_wmc_BoundingBox | |
read_wmc_LayerList | |
read_wmc_Layer | |
getLayerFromInfo | Create a WMS layer from a layerInfo object. |
read_wmc_Extension | |
read_ol_units | |
read_ol_maxExtent | |
read_ol_transparent | |
read_ol_numZoomLevels | |
read_ol_opacity | |
read_ol_singleTile | |
read_ol_isBaseLayer | |
read_ol_displayInLayerSwitcher | |
read_wmc_Server | |
read_wmc_FormatList | |
read_wmc_Format | |
read_wmc_StyleList | |
read_wmc_Style | |
read_wmc_SLD | |
read_sld_StyledLayerDescriptor | |
read_wmc_OnlineResource | |
read_wmc_Name | |
read_wmc_Title | |
read_wmc_MetadataURL | |
read_wmc_Abstract | |
read_wmc_LatLonBoundingBox | |
read_wmc_LegendURL | |
write | |
createElementDefaultNS | Shorthand for createElementNS with namespace from defaultPrefix. |
setAttributes | Set multiple attributes given key value pairs from an object. |
write_wmc_General | Create a General node given an context object. |
write_ol_MapExtension | |
write_wmc_LayerList | Create a LayerList node given an context object. |
write_wmc_Layer | Create a Layer node given a layer object. |
write_wmc_LayerExtension | Add OpenLayers specific layer parameters to an Extension element. |
createOLPropertyNode | Create a node representing an OpenLayers property. |
write_wmc_Server | Create a Server node given a layer object. |
write_wmc_MetadataURL | Create a MetadataURL node given a layer object. |
write_wmc_FormatList | Create a FormatList node given a layer. |
write_wmc_StyleList | Create a StyleList node given a layer. |
write_wmc_OnlineResource | Create an OnlineResource node given a URL. |
getNamespacePrefix: function( uri )
Get the namespace prefix for a given uri from the namespaces object.
{String} A namespace prefix or null if none found.
Instances of this class are not created directly. Use the OpenLayers.Format.WMC constructor instead.
options | {Object} An optional object whose properties will be set on this instance. |
getLayerFromInfo: function( layerInfo )
Create a WMS layer from a layerInfo object.
layerInfo | {Object} An object representing a WMS layer. |
{OpenLayers.Layer.WMS} A WMS layer.
createElementDefaultNS: function( name, childValue, attributes )
Shorthand for createElementNS with namespace from defaultPrefix. Can optionally be used to set attributes and a text child value.
name | {String} The qualified node name. |
childValue | {String} Optional value for text child node. |
attributes | {Object} Optional object representing attributes. |
{Element} An element node.
write_wmc_Layer: function( layer )
Create a Layer node given a layer object.
layer | {OpenLayers.Layer.WMS} Layer object. |
{Element} A WMC Layer element node.
write_wmc_LayerExtension: function( layer )
Add OpenLayers specific layer parameters to an Extension element.
layer | {OpenLayers.Layer.WMS} A WMS layer. |
{Element} A WMC Extension element (for a layer).
write_wmc_Server: function( layer )
Create a Server node given a layer object.
layer | {OpenLayers.Layer.WMS} Layer object. |
{Element} A WMC Server element node.
write_wmc_MetadataURL: function( layer )
Create a MetadataURL node given a layer object.
layer | {OpenLayers.Layer.WMS} Layer object. |
{Element} A WMC metadataURL element node.
write_wmc_FormatList: function( layer )
Create a FormatList node given a layer.
layer | {OpenLayers.Layer.WMS} Layer object. |
{Element} A WMC FormatList element node.
write_wmc_StyleList: function( layer )
Create a StyleList node given a layer.
layer | {OpenLayers.Layer.WMS} Layer object. |
{Element} A WMC StyleList element node.
Get the namespace prefix for a given uri from the namespaces object.
getNamespacePrefix: function( uri )
Read capabilities data from a string, and return a list of layers.
read: function( data )
runChildNodes: function( obj, node )
read_wmc_General: function( context, node )
read_wmc_BoundingBox: function( context, node )
read_wmc_LayerList: function( context, node )
read_wmc_Layer: function( context, node )
Create a WMS layer from a layerInfo object.
getLayerFromInfo: function( layerInfo )
read_wmc_Extension: function( obj, node )
read_ol_units: function( layerInfo, node )
read_ol_maxExtent: function( obj, node )
read_ol_transparent: function( layerInfo, node )
read_ol_numZoomLevels: function( layerInfo, node )
read_ol_opacity: function( layerInfo, node )
read_ol_singleTile: function( layerInfo, node )
read_ol_isBaseLayer: function( layerInfo, node )
read_ol_displayInLayerSwitcher: function( layerInfo, node )
read_wmc_Server: function( layerInfo, node )
read_wmc_FormatList: function( layerInfo, node )
read_wmc_Format: function( layerInfo, node )
read_wmc_StyleList: function( layerInfo, node )
read_wmc_Style: function( layerInfo, node )
read_wmc_SLD: function( style, node )
read_sld_StyledLayerDescriptor: function( sld, node )
read_wmc_OnlineResource: function( obj, node )
read_wmc_Name: function( obj, node )
read_wmc_Title: function( obj, node )
read_wmc_MetadataURL: function( layerInfo, node )
read_wmc_Abstract: function( obj, node )
read_wmc_LatLonBoundingBox: function( layer, node )
read_wmc_LegendURL: function( style, node )
write: function( context, options )
Shorthand for createElementNS with namespace from defaultPrefix.
createElementDefaultNS: function( name, childValue, attributes )
Set multiple attributes given key value pairs from an object.
setAttributes: function( node, obj )
Create a General node given an context object.
write_wmc_General: function( context )
write_ol_MapExtension: function( context )
Create a LayerList node given an context object.
write_wmc_LayerList: function( context )
Create a Layer node given a layer object.
write_wmc_Layer: function( layer )
Add OpenLayers specific layer parameters to an Extension element.
write_wmc_LayerExtension: function( layer )
Create a node representing an OpenLayers property.
createOLPropertyNode: function( obj, prop )
Create a Server node given a layer object.
write_wmc_Server: function( layer )
Create a MetadataURL node given a layer object.
write_wmc_MetadataURL: function( layer )
Create a FormatList node given a layer.
write_wmc_FormatList: function( layer )
Create a StyleList node given a layer.
write_wmc_StyleList: function( layer )
Create an OnlineResource node given a URL.
write_wmc_OnlineResource: function( href )