mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
remove highway=residential as default tag
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user