remove unneeded parseFloat when building Bounds
This commit is contained in:
@@ -147,10 +147,8 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
read_wmc_BoundingBox: function(context, node) {
|
read_wmc_BoundingBox: function(context, node) {
|
||||||
context.projection = node.getAttribute("SRS");
|
context.projection = node.getAttribute("SRS");
|
||||||
context.bounds = new OpenLayers.Bounds(
|
context.bounds = new OpenLayers.Bounds(
|
||||||
parseFloat(node.getAttribute("minx")),
|
node.getAttribute("minx"), node.getAttribute("miny"),
|
||||||
parseFloat(node.getAttribute("miny")),
|
node.getAttribute("maxx"), node.getAttribute("maxy")
|
||||||
parseFloat(node.getAttribute("maxx")),
|
|
||||||
parseFloat(node.getAttribute("maxy"))
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user