Skip to content

Commit

Permalink
remove highway=residential as default tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Feb 26, 2013
1 parent 5073c3b commit d964d7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions css/map.css
Expand Up @@ -229,6 +229,11 @@ path.area.fill {
fill-rule: evenodd;
}

path.line.stroke {
stroke: white;
stroke-width: 2;
}

path.stroke.tag-natural {
stroke: #b6e199;
stroke-width:1;
Expand Down
9 changes: 4 additions & 5 deletions js/id/modes/add_line.js
Expand Up @@ -10,13 +10,12 @@ iD.modes.AddLine = function(context) {
var behavior = iD.behavior.AddWay(context)
.on('start', start)
.on('startFromWay', startFromWay)
.on('startFromNode', startFromNode),
defaultTags = {highway: 'residential'};
.on('startFromNode', startFromNode);

function start(loc) {
var graph = context.graph(),
node = iD.Node({loc: loc}),
way = iD.Way({tags: defaultTags});
way = iD.Way();

context.perform(
iD.actions.AddEntity(node),
Expand All @@ -29,7 +28,7 @@ iD.modes.AddLine = function(context) {
function startFromWay(other, loc, index) {
var graph = context.graph(),
node = iD.Node({loc: loc}),
way = iD.Way({tags: defaultTags});
way = iD.Way();

context.perform(
iD.actions.AddEntity(node),
Expand All @@ -52,7 +51,7 @@ iD.modes.AddLine = function(context) {
context.enter(iD.modes.DrawLine(context, parent.id, 'forward', graph));

} else {
var way = iD.Way({tags: defaultTags});
var way = iD.Way();

context.perform(
iD.actions.AddEntity(way),
Expand Down

0 comments on commit d964d7f

Please sign in to comment.