remove unneeded parseFloat when building Geometry.Point

This commit is contained in:
Frederic Junod
2011-10-06 14:32:38 +02:00
parent 00e2e1bd59
commit 54e5db90ae
3 changed files with 12 additions and 31 deletions
+3 -14
View File
@@ -607,12 +607,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {
point[i].firstChild.nodeValue
).split(/\s*,\s*/);
}
components.push(
new OpenLayers.Geometry.Point(
parseFloat(xy[1]),
parseFloat(xy[0])
)
);
components.push(new OpenLayers.Geometry.Point(xy[1], xy[0]));
}
}
@@ -627,10 +622,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {
).split(/\s+/);
points = [];
for (var j=0, jj=coords.length; j<jj; j+=2) {
p = new OpenLayers.Geometry.Point(
parseFloat(coords[j+1]),
parseFloat(coords[j])
);
p = new OpenLayers.Geometry.Point(coords[j+1], coords[j]);
points.push(p);
}
components.push(
@@ -650,10 +642,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, {
).split(/\s+/);
points = [];
for (var j=0, jj=coords.length; j<jj; j+=2) {
p = new OpenLayers.Geometry.Point(
parseFloat(coords[j+1]),
parseFloat(coords[j])
);
p = new OpenLayers.Geometry.Point(coords[j+1], coords[j]);
points.push(p);
}
components.push(