remove highway=residential as default tag

This commit is contained in:
Ansis Brammanis
2013-02-26 13:04:24 -05:00
parent 5073c3b8c3
commit d964d7fe28
2 changed files with 9 additions and 5 deletions
+5
View File
@@ -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;
+4 -5
View File
@@ -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),
@@ -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),
@@ -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),