MAPPE DELLA SARDEGNA
sardegnamappe api  ›  api documentation  ›  classe
Class framework.plugins.GWCSource


Extends gxp.plugins.WMSSource.
Plugin for using Geowebcache service
Defined in: GWCSource.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Plugin for using Geowebcache layers with :class:`gxp.Viewer` instances.
Field Summary
Field Attributes Field Name and Description
 
framework_gwcsource plugin type.
 
Only WFS 1.1.0 is supported at the moment.
 
api: config[version] Only WMS 1.1.1 is supported at the moment.
Method Summary
Method Attributes Method Name and Description
 
Creates a store of layer records.
 
Create a config object that can be used to recreate the given record
 
getSchema(rec, callback, scope)
Gets the schema for a layer of this source, if the layer is a feature layer.
 
getWFSProtocol(record, callback, scope)
Creates a WFS protocol for the given WMS layer record.
Class Detail
framework.plugins.GWCSource()
Plugin for using Geowebcache layers with :class:`gxp.Viewer` instances. The plugin issues a GetCapabilities request to create a store of the WMS's layers. If tilesets are available, it will use them.
Field Detail
{String} ptype
framework_gwcsource plugin type.

{String} url_wfs
Only WFS 1.1.0 is supported at the moment.

{String} version
api: config[version] Only WMS 1.1.1 is supported at the moment.
Method Detail
createStore()
Creates a store of layer records. Fires "ready" when store is loaded.

{Object} getConfigForRecord(record)
Create a config object that can be used to recreate the given record
Parameters:
{GeoExt.data.LayerRecord} record
Returns:
{Object}

getSchema(rec, callback, scope)
Gets the schema for a layer of this source, if the layer is a feature layer.
Parameters:
{GeoExt.data.LayerRecord} rec
the WMS layer to issue a WFS DescribeFeatureType request for
{Function} callback
Will be called with a ``GeoExt.data.AttributeStore`` containing the schema as first argument, or false if the WMS does not support DescribeLayer or the layer is not associated with a WFS feature type.
{scope} scope
Optional scope for the callback

{OpenLayers.Protocol.WFS} getWFSProtocol(record, callback, scope)
Creates a WFS protocol for the given WMS layer record.
Parameters:
{GeoExt.data.LayerRecord} record
{function} callback
{type} scope
Returns:
{OpenLayers.Protocol.WFS}
© 2013 Regione Autonoma della Sardegna