gxp.plugins.GeoServerStyleWriter
¶
-
class
gxp.plugins.
GeoServerStyleWriter
(config)¶ Save styles from
gxp.WMSStylesDialog
or similar classes that have alayerRecord
and astylesStore
with auserStyle
field. The plugin provides a save method, which will use the GeoServer RESTConfig API to persist style changes from thestylesStore
to 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
String
The 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 – Object
Saves the styles of the target’s
layerRecord
using GeoServer’s RESTconfig API.Supported options:
- defaultStyle -
String
If set, the default style will be set. - success -
Function
A function to call when all styles were written successfully. - scope -
Object
A scope to call thesuccess
function with.
- defaultStyle -