missing var's, p=jorix (thx), r=me (closes #2960)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2010-12-06 20:15:15 +00:00
parent b125e045d1
commit 831420aac2
6 changed files with 11 additions and 11 deletions

View File

@@ -374,13 +374,14 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
return already_exists ? [] : [node];
},
linestring: function(feature) {
var id;
var nodes = [];
var geometry = feature.geometry;
if (feature.osm_id) {
id = feature.osm_id;
} else {
id = -this.osm_id;
this.osm_id++;
id = -this.osm_id;
this.osm_id++;
}
var way = this.createElementNS(null, "way");
way.setAttribute("id", id);