OpenLayers. Format. OWSContext

Read and write OWS Context documents.  OWS Context documents are a preliminary OGC (Open Geospatial Consortium) standard for storing the state of a web mapping application.  In a way it is the successor to Web Map Context (WMC), since it is more generic and more types of layers can be stored.  Also, nesting of layers is supported since version 0.3.1.  For more information see: http://www.ogcnetwork.net/context

Summary
OpenLayers. Format. OWSContextRead and write OWS Context documents.
Properties
defaultVersion{String} Version number to assume if none found.
Functions
getParserGet the OWSContext parser given a version.
toContextCreate a context object free from layer given a map or a context object.

Properties

defaultVersion

{String} Version number to assume if none found.  Default is “0.3.1”.

Functions

getParser

getParser: function(version)

Get the OWSContext parser given a version.  Create a new parser if it does not already exist.

Parameters

version{String} The version of the parser.

Returns

{OpenLayers.Format.OWSContext} An OWSContext parser.

toContext

toContext: function(obj)

Create a context object free from layer given a map or a context object.

Parameters

obj{OpenLayers.Map | Object} The map or context.

Returns

{Object} A context object.

getParser: function(version)
Get the OWSContext parser given a version.
toContext: function(obj)
Create a context object free from layer given a map or a context object.
Read and write OWS Context documents.
Instances of OpenLayers.Map are interactive maps embedded in a web page.
Close