Changed initial sidebar screen for highway intersection vertices from preset list to editor

This commit is contained in:
Quincy Morgan
2018-12-20 10:17:16 -05:00
parent 62547e3459
commit 97c2361f43
+4 -3
View File
@@ -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%');