mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
isHighwayIntersection only applies to nodes, so remove from osmEntity (#10831)
This commit is contained in:
@@ -182,10 +182,6 @@ osmEntity.prototype = {
|
||||
return Object.keys(this.tags).some(osmIsInterestingTag);
|
||||
},
|
||||
|
||||
isHighwayIntersection: function() {
|
||||
return false;
|
||||
},
|
||||
|
||||
isDegenerate: function() {
|
||||
return true;
|
||||
},
|
||||
|
||||
@@ -77,7 +77,7 @@ export function uiInspector(context) {
|
||||
if (context.validator().getEntityIssues(entityID).length) return false;
|
||||
|
||||
// show turn restriction editor for junction vertices
|
||||
if (entity.isHighwayIntersection(context.graph())) return false;
|
||||
if (entity.type === 'node' && entity.isHighwayIntersection(context.graph())) return false;
|
||||
|
||||
// otherwise show preset list for uninteresting vertices
|
||||
return true;
|
||||
|
||||
@@ -78,7 +78,7 @@ export function uiSectionPresetFields(context) {
|
||||
});
|
||||
|
||||
var singularEntity = _entityIDs.length === 1 && graph.hasEntity(_entityIDs[0]);
|
||||
if (singularEntity && singularEntity.isHighwayIntersection(graph) && presetsManager.field('restrictions')) {
|
||||
if (singularEntity && singularEntity.type === 'node' && singularEntity.isHighwayIntersection(graph) && presetsManager.field('restrictions')) {
|
||||
_fieldsArr.push(
|
||||
uiField(context, presetsManager.field('restrictions'), _entityIDs)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user