mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
@@ -34,6 +34,8 @@ _.extend(iD.Way.prototype, {
|
||||
|
||||
isOneWay: function() {
|
||||
return this.tags.oneway === 'yes' ||
|
||||
this.tags.oneway === '1' ||
|
||||
this.tags.oneway === '-1' ||
|
||||
this.tags.waterway === 'river' ||
|
||||
this.tags.waterway === 'stream' ||
|
||||
this.tags.junction === 'roundabout';
|
||||
|
||||
+7
-4
@@ -29,13 +29,16 @@ iD.svg = {
|
||||
b,
|
||||
i = 0,
|
||||
offset = dt,
|
||||
segments = [];
|
||||
segments = [],
|
||||
coordinates = graph.childNodes(entity).map(function(n) {
|
||||
return n.loc;
|
||||
});
|
||||
|
||||
if (entity.tags.oneway === '-1') coordinates.reverse();
|
||||
|
||||
d3.geo.stream({
|
||||
type: 'LineString',
|
||||
coordinates: graph.childNodes(entity).map(function(n) {
|
||||
return n.loc;
|
||||
})
|
||||
coordinates: coordinates
|
||||
}, projection.stream({
|
||||
lineStart: function() {},
|
||||
lineEnd: function() {},
|
||||
|
||||
Reference in New Issue
Block a user