Base class for both Format.WMC and Format.OWSContext
| OpenLayers. | Base class for both Format.WMC and Format.OWSContext | 
| Properties | |
| layerOptions | {Object} Default options for layers created by the parser. | 
| layerParams | {Object} Default parameters for layers created by the parser. | 
| Constructor | |
| OpenLayers. | Create a new parser for Context documents. | 
| Functions | |
| read | Read Context data from a string, and return an object with map properties and a list of layers. | 
| getLayerFromContext | Create a WMS layer from a layerContext object. | 
| getLayersFromContext | Create an array of layers from an array of layerContext objects. | 
| contextToMap | Create a map given a context object. | 
| mergeContextToMap | Add layers from a context object to a map. | 
| write | Write a context document given a map. | 
| Constants | |
| OpenLayers. | Enumeration for service types | 
read: function( data, options ) 
Read Context data from a string, and return an object with map properties and a list of layers.
| data | {String} or {DOMElement} data to read/parse. | 
| options | {Object} The options object must contain a map property. If the map property is a string, it must be the id of a dom element where the new map will be placed. If the map property is an OpenLayers.Map, the layers from the context document will be added to the map. | 
{OpenLayers.Map} A map based on the context.
getLayerFromContext: function( layerContext ) 
Create a WMS layer from a layerContext object.
| layerContext | {Object} An object representing a WMS layer. | 
{OpenLayers.Layer.WMS} A WMS layer.
getLayersFromContext: function( layersContext ) 
Create an array of layers from an array of layerContext objects.
| layersContext | {Array(Object)} An array of objects representing layers. | 
{Array(OpenLayers.Layer)} An array of layers.
contextToMap: function( context, options ) 
Create a map given a context object.
| context | {Object} The context object. | 
| options | {Object} Default map options. | 
{OpenLayers.Map} A map based on the context object.
mergeContextToMap: function( context, map ) 
Add layers from a context object to a map.
| context | {Object} The context object. | 
| map | {OpenLayers.Map} The map. | 
{OpenLayers.Map} The same map with layers added.
write: function( obj, options ) 
Write a context document given a map.
| obj | {OpenLayers.Map | Object} A map or context object. | 
| options | {Object} Optional configuration object. | 
{String} A context document string.
Read Context data from a string, and return an object with map properties and a list of layers.
read: function( data, options ) 
Create a WMS layer from a layerContext object.
getLayerFromContext: function( layerContext ) 
Create an array of layers from an array of layerContext objects.
getLayersFromContext: function( layersContext ) 
Create a map given a context object.
contextToMap: function( context, options ) 
Add layers from a context object to a map.
mergeContextToMap: function( context, map ) 
Write a context document given a map.
write: function( obj, options )