# Legato.Format.ExtendedWMC

Main entry point to the extended WMC functionality

Summary

Legato.Format.ExtendedWMC | Main entry point to the extended WMC functionality
Functions |
read | Read WMC data from a string, and return an object with a list of layers and some window metadata.
Legato.Format.ExtendedWMC.Result | Represents the results of the read operation
Properties |
layers {Array} <OpenLayers.Layer> objects |
model {<Legato.Format.ExtendedWMC.Model>} the parsed ExtendedWMC model |
Configurable Components |
lf:ExtendedWMCLoader |
Configurable Properties |
map | {ol:Map} Target map.
url | {String} URL of the WMC file.
defaultOptions | {String {}} Default layer options.
zoomToBoundingBox | {Boolean}
resizeToWindow | {Boolean}
createDefaultBaseLayer | {Boolean}

### Functions

### read

> read : function( | data,
> | options | )

Read WMC data from a string, and return an object with a list of layers and some window metadata.

Parameters: data | {String} or {DOMElement} data to read/parse. options - {Object} Some options that will be added to all created layers

Returns: {Legato.Format.ExtendedWMC.Result} Parsed ExtendedWMC data and a list of OpenLayers.Layer objects

## Legato.Format.ExtendedWMC.Result

Represents the results of the read operation

Summary

Properties |
layers {Array} <OpenLayers.Layer> objects |
model {<Legato.Format.ExtendedWMC.Model>} the parsed ExtendedWMC model |
Configurable Components |
lf:ExtendedWMCLoader |
Configurable Properties |
map | {ol:Map} Target map.
url | {String} URL of the WMC file.
defaultOptions | {String {}} Default layer options.
zoomToBoundingBox | {Boolean}
resizeToWindow | {Boolean}
createDefaultBaseLayer | {Boolean}

### Properties

### layers {Array} <OpenLayers.Layer> objects

### model {<Legato.Format.ExtendedWMC.Model>} the parsed ExtendedWMC model

### Configurable Components

### lf:ExtendedWMCLoader

#### See also

- lf namespace
- {<Legato.Format.ExtendedWMCLoader>}

### Configurable Properties

### map

{ol:Map} Target map.

### url

{String} URL of the WMC file.

### defaultOptions

{String {}} Default layer options.

### zoomToBoundingBox

{Boolean}

### resizeToWindow

{Boolean}

### createDefaultBaseLayer

{Boolean}

> read : function( | data,
> | options | )

Read WMC data from a string, and return an object with a list of layers and some window metadata.
Configuration component for {OpenLayers.Map}.
Represents the results of the read operation
URI: Namespace URI http://www.disy.net/legato/format