mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[generator] Keep area shape to fix OSM editing
Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
@@ -124,17 +124,8 @@ 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);
|
||||
}
|
||||
LayerBase::Handle(fb);
|
||||
fb.SetParams(params);
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Reference in New Issue
Block a user