Draw rectangles (cherry pick)

This commit is contained in:
Bryan Housel
2016-07-31 23:50:57 -04:00
parent e1bdae7800
commit fbce168809
2 changed files with 107 additions and 11 deletions
+3 -3
View File
@@ -125,9 +125,9 @@ _.extend(Way.prototype, {
tagged.oneway = this.isOneWay();
tagged.lanes = {};
if (this.tags.lanes) tagged.lanes.count = this.tags.lanes;
if (this.tags['lanes:forward']) tagged.lanes.forward = this.tags['lanes:forward'];
if (this.tags['lanes:backward']) tagged.lanes.backward = this.tags['lanes:backward'];
if (this.tags.lanes) tagged.lanes.count = parseInt(this.tags.lanes);
if (this.tags['lanes:forward']) tagged.lanes.forward = parseInt(this.tags['lanes:forward']);
if (this.tags['lanes:backward']) tagged.lanes.backward = parseInt(this.tags['lanes:backward']);
return {
defaults: {