Base class for both Format.WMC and Format.OWSContext
| OpenLayers. | Base class for both Format.WMC and Format.OWSContext | 
| 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. | 
| 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.
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 ) 
Write a context document given a map.
write: function( obj, options )