Add "Business is vacant"/'disused' option to editor (#526)

Signed-off-by: map-per <map-per@gmx.de>
Co-authored-by: map-per <map-per@gmx.de>
Co-committed-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-11-14 22:10:02 +01:00
committed by map-per
parent 24b498e386
commit 9bfebc2046
20 changed files with 424 additions and 8 deletions

View File

@@ -3091,6 +3091,13 @@ void Framework::DeleteFeature(FeatureID const & fid)
UpdatePlacePageInfoForCurrentSelection();
}
void Framework::MarkPlaceAsDisused(osm::EditableMapObject emo)
{
emo.MarkAsDisused();
osm::Editor::Instance().SaveEditedFeature(emo);
UpdatePlacePageInfoForCurrentSelection();
}
osm::NewFeatureCategories Framework::GetEditorCategories() const
{
return osm::Editor::Instance().GetNewFeatureCategories();