remove unneeded parseFloat when building Bounds

This commit is contained in:
fredj
2011-10-07 09:09:26 +02:00
parent 6026f60276
commit ef1feac748

View File

@@ -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"))
); );
}, },