When writing a WMC, bounds should not be rounded to a predefined precision, original patch by bbinet, r=me (closes #2242)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -94,7 +94,7 @@ OpenLayers.Format.WMC.v1_1_0 = OpenLayers.Class(
|
||||
var minSD = this.createElementNS(
|
||||
this.namespaces.sld, "sld:MinScaleDenominator"
|
||||
);
|
||||
minSD.appendChild(this.createTextNode(layer.maxScale.toPrecision(10)));
|
||||
minSD.appendChild(this.createTextNode(layer.maxScale.toPrecision(16)));
|
||||
node.appendChild(minSD);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ OpenLayers.Format.WMC.v1_1_0 = OpenLayers.Class(
|
||||
var maxSD = this.createElementNS(
|
||||
this.namespaces.sld, "sld:MaxScaleDenominator"
|
||||
);
|
||||
maxSD.appendChild(this.createTextNode(layer.minScale.toPrecision(10)));
|
||||
maxSD.appendChild(this.createTextNode(layer.minScale.toPrecision(16)));
|
||||
node.appendChild(maxSD);
|
||||
}
|
||||
|
||||
@@ -122,4 +122,4 @@ OpenLayers.Format.WMC.v1_1_0 = OpenLayers.Class(
|
||||
|
||||
CLASS_NAME: "OpenLayers.Format.WMC.v1_1_0"
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user