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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user