Main entry point to the extended WMC functionality
| Legato. | 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. | Represents the results of the read operation |
| Properties | |
| layers {Array} <OpenLayers. | |
| model {<Legato. | |
| Configurable Components | |
| lf: | |
| 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.
| 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
Represents the results of the read operation
| Properties | |
| layers {Array} <OpenLayers. | |
| model {<Legato. | |
| Configurable Components | |
| lf: | |
| 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} |
{ol:Map} Target map.
Read WMC data from a string, and return an object with a list of layers and some window metadata.
read : function( data, options )