Make Format.SLD work against ArcGIS Server, r=tschaub (closes #2166)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10034 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -437,6 +437,12 @@ OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0, {
|
||||
"xsi:schemaLocation": this.schemaLocation
|
||||
}}
|
||||
);
|
||||
|
||||
// For ArcGIS Server it is necessary to define this
|
||||
// at the root level (see ticket:2166).
|
||||
root.setAttribute("xmlns:ogc", this.namespaces.ogc);
|
||||
root.setAttribute("xmlns:gml", this.namespaces.gml);
|
||||
|
||||
// add in optional name
|
||||
if(sld.name) {
|
||||
this.writeNode("Name", sld.name, root);
|
||||
|
||||
Reference in New Issue
Block a user