gxp.plugins.GeoServerStyleWriter¶
-
class
gxp.plugins.GeoServerStyleWriter(config)¶ Save styles from
gxp.WMSStylesDialogor similar classes that have alayerRecordand astylesStorewith auserStylefield. The plugin provides a save method, which will use the GeoServer RESTConfig API to persist style changes from thestylesStoreto the server and associate them with the layer referenced in the target’slayerRecord.
Config Options¶
Configuration properties in addition to those listed for Ext.util.Observable.
-
baseUrl StringThe base url for the GeoServer REST API. Default is “/geoserver/rest”.
Public Properties¶
Public properties in addition to those listed for Ext.util.Observable.
-
GeoServerStyleWriter.deletedStyles¶ Array(String)style names of styles from the server that were deleted and have to be removed from the server
Public Methods¶
Public methods in addition to those listed for Ext.util.Observable.
-
GeoServerStyleWriter.write()¶ Parameters: options – ObjectSaves the styles of the target’s
layerRecordusing GeoServer’s RESTconfig API.Supported options:
- defaultStyle -
StringIf set, the default style will be set. - success -
FunctionA function to call when all styles were written successfully. - scope -
ObjectA scope to call thesuccessfunction with.
- defaultStyle -