From 97c2361f431f960da979507fbd6c6dd022a932bb Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Thu, 20 Dec 2018 10:17:16 -0500 Subject: [PATCH] Changed initial sidebar screen for highway intersection vertices from preset list to editor --- modules/ui/inspector.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/ui/inspector.js b/modules/ui/inspector.js index e167ee41e..ccb415077 100644 --- a/modules/ui/inspector.js +++ b/modules/ui/inspector.js @@ -46,9 +46,10 @@ export function uiInspector(context) { var entity = context.entity(_entityID); - var isTaglessVertex = entity.geometry(context.graph()) === 'vertex' && !entity.hasNonGeometryTags(); - // start with the preset list if the feature is new or is a vertex with no tags - var showPresetList = newFeature || isTaglessVertex; + var isTaglessOrIntersectionVertex = entity.geometry(context.graph()) === 'vertex' && + (!entity.hasNonGeometryTags() && !entity.isHighwayIntersection(context.graph())); + // start with the preset list if the feature is new or is an uninteresting vertex + var showPresetList = newFeature || isTaglessOrIntersectionVertex; if (showPresetList) { wrap.style('right', '-100%');