remove unneeded parseFloat when building Geometry.Point
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user