Ensure that boundary relation members look like boundaries

This commit is contained in:
John Firebaugh
2016-01-30 13:01:01 -08:00
parent 3f5d7ec701
commit 087d5aa65f
3 changed files with 25 additions and 3 deletions
+3 -2
View File
@@ -83,11 +83,12 @@ iD.svg = {
};
},
MultipolygonMemberTags: function(graph) {
RelationMemberTags: function(graph) {
return function(entity) {
var tags = entity.tags;
graph.parentRelations(entity).forEach(function(relation) {
if (relation.isMultipolygon()) {
var type = relation.tags.type;
if (type === 'multipolygon' || type === 'boundary') {
tags = _.extend({}, relation.tags, tags);
}
});
+1 -1
View File
@@ -86,7 +86,7 @@ iD.svg.Lines = function(projection) {
lines
.sort(waystack)
.attr('d', getPath)
.call(iD.svg.TagClasses().tags(iD.svg.MultipolygonMemberTags(graph)));
.call(iD.svg.TagClasses().tags(iD.svg.RelationMemberTags(graph)));
lines.exit()
.remove();