[generator] Keep area shape to fix OSM editing

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-11-09 09:38:58 +01:00
committed by x7z4w
parent 91ba38df56
commit 84ecbaa63c

View File

@@ -123,19 +123,10 @@ void RepresentationLayer::Handle(FeatureBuilder & fb)
}
void RepresentationLayer::HandleArea(FeatureBuilder & fb, FeatureBuilderParams const & params)
{
if (CanBeArea(params))
{
LayerBase::Handle(fb);
fb.SetParams(params);
}
else if (CanBePoint(params))
{
// CanBePoint ignores exceptional types from TypeAlwaysExists / IsUsefulNondrawableType.
auto featurePoint = MakePoint(fb);
LayerBase::Handle(featurePoint);
}
}
// static
bool RepresentationLayer::CanBeArea(FeatureParams const & params)