Commit a96df5a2 authored by Volker Krause's avatar Volker Krause
Browse files

Hide original elements when using a synthesized elevator element

This avoid mixing node-based and area-based rendering, and thus
conflicting icons.
parent 0b5c232a
......@@ -92,7 +92,12 @@ void EquipmentModel::forEach(int floorLevel, const std::function<void (OSM::Elem
void EquipmentModel::hiddenElements(std::vector<OSM::Element> &elems) const
{
// TODO
for (const auto &eq : m_equipment) {
if (!eq.syntheticElement) {
continue;
}
elems.insert(elems.end(), eq.sourceElements.begin(), eq.sourceElements.end());
}
}
void EquipmentModel::findEquipment()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment