mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-09 05:44:34 +00:00
[editor] Mark businesse as disused/vacant
Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -755,6 +755,7 @@ public:
|
||||
bool GetEditableMapObject(FeatureID const & fid, osm::EditableMapObject & emo) const;
|
||||
osm::Editor::SaveResult SaveEditedMapObject(osm::EditableMapObject emo);
|
||||
void DeleteFeature(FeatureID const & fid);
|
||||
void MarkPlaceAsDisused(osm::EditableMapObject emo);
|
||||
osm::NewFeatureCategories GetEditorCategories() const;
|
||||
bool RollBackChanges(FeatureID const & fid);
|
||||
void CreateNote(osm::MapObject const & mapObject, osm::Editor::NoteProblemType const type, std::string const & note);
|
||||
|
||||
Reference in New Issue
Block a user