if (Main.main.getActiveLayer() == null)
return null;
// try to zoom to the first selected layer
Layer l = getFirstSelectedLayer();
if (l == null) return null;
l.visitBoundingBox(v);
break;
case "selection":
case "conflict":
Collection<OsmPrimitive> sel = new HashSet<>();
if ("selection".equals(mode)) {