mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 14:13:45 +00:00
@@ -740,7 +740,8 @@ void XMLFeature::OSMBusinessReplacement(uint32_t old_type, uint32_t new_type)
|
|||||||
else
|
else
|
||||||
SetTagValue("disused:" + std::string(key), "yes");
|
SetTagValue("disused:" + std::string(key), "yes");
|
||||||
|
|
||||||
SetTagValue("old_name", name);
|
if (!name.empty())
|
||||||
|
SetTagValue("old_name", name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -89,12 +89,15 @@ vector<MapObject::MetadataID> EditableMapObject::GetEditableProperties() const
|
|||||||
|
|
||||||
bool EditableMapObject::CanMarkPlaceAsDisused() const
|
bool EditableMapObject::CanMarkPlaceAsDisused() const
|
||||||
{
|
{
|
||||||
|
if (GetEditingLifecycle() == EditingLifecycle::CREATED)
|
||||||
|
return false;
|
||||||
|
|
||||||
auto types = GetTypes();
|
auto types = GetTypes();
|
||||||
types.SortBySpec();
|
types.SortBySpec();
|
||||||
uint32_t mainType = *types.begin();
|
uint32_t mainType = *types.begin();
|
||||||
std::string mainTypeStr = classif().GetReadableObjectName(mainType);
|
std::string mainTypeStr = classif().GetReadableObjectName(mainType);
|
||||||
|
|
||||||
std::vector<string_view> typePrefixes = {
|
constexpr string_view typePrefixes[] = {
|
||||||
"shop",
|
"shop",
|
||||||
"amenity-restaurant",
|
"amenity-restaurant",
|
||||||
"amenity-fast_food",
|
"amenity-fast_food",
|
||||||
|
|||||||
Reference in New Issue
Block a user