more complete inheritance of readers and writers
This commit is contained in:
@@ -48,7 +48,7 @@ OpenLayers.Format.SLD.v1_0_0_GeoServer = OpenLayers.Class(
|
||||
* with two arguments: the node being read and a context object passed
|
||||
* from the parent.
|
||||
*/
|
||||
readers: {
|
||||
readers: OpenLayers.Util.applyDefaults({
|
||||
"sld": OpenLayers.Util.applyDefaults({
|
||||
"Priority": function(node, obj) {
|
||||
var value = this.readers.ogc._expression.call(this, node);
|
||||
@@ -65,9 +65,8 @@ OpenLayers.Format.SLD.v1_0_0_GeoServer = OpenLayers.Class(
|
||||
value: this.getChildValue(node)
|
||||
});
|
||||
}
|
||||
}, OpenLayers.Format.SLD.v1_0_0.prototype.readers["sld"]),
|
||||
"ogc": OpenLayers.Format.SLD.v1_0_0.prototype.readers["ogc"]
|
||||
},
|
||||
}, OpenLayers.Format.SLD.v1_0_0.prototype.readers["sld"])
|
||||
}, OpenLayers.Format.SLD.v1_0_0.prototype.readers),
|
||||
|
||||
/**
|
||||
* Property: writers
|
||||
@@ -75,7 +74,7 @@ OpenLayers.Format.SLD.v1_0_0_GeoServer = OpenLayers.Class(
|
||||
* writing functions grouped by namespace alias and named like the
|
||||
* node names they produce.
|
||||
*/
|
||||
writers: {
|
||||
writers: OpenLayers.Util.applyDefaults({
|
||||
"sld": OpenLayers.Util.applyDefaults({
|
||||
"Priority": function(priority) {
|
||||
return this.writers.sld._OGCExpression.call(
|
||||
@@ -114,9 +113,8 @@ OpenLayers.Format.SLD.v1_0_0_GeoServer = OpenLayers.Class(
|
||||
var node = writers["sld"]["PolygonSymbolizer"].apply(this, arguments);
|
||||
return this.addVendorOptions(node, symbolizer);
|
||||
}
|
||||
}, OpenLayers.Format.SLD.v1_0_0.prototype.writers["sld"]),
|
||||
"ogc": OpenLayers.Format.SLD.v1_0_0.prototype.writers["ogc"]
|
||||
},
|
||||
}, OpenLayers.Format.SLD.v1_0_0.prototype.writers["sld"])
|
||||
}, OpenLayers.Format.SLD.v1_0_0.prototype.writers),
|
||||
|
||||
/**
|
||||
* Method: addVendorOptions
|
||||
|
||||
Reference in New Issue
Block a user