mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +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)
|
void RepresentationLayer::HandleArea(FeatureBuilder & fb, FeatureBuilderParams const & params)
|
||||||
{
|
{
|
||||||
if (CanBeArea(params))
|
|
||||||
{
|
|
||||||
LayerBase::Handle(fb);
|
LayerBase::Handle(fb);
|
||||||
fb.SetParams(params);
|
fb.SetParams(params);
|
||||||
}
|
|
||||||
else if (CanBePoint(params))
|
|
||||||
{
|
|
||||||
// CanBePoint ignores exceptional types from TypeAlwaysExists / IsUsefulNondrawableType.
|
|
||||||
auto featurePoint = MakePoint(fb);
|
|
||||||
LayerBase::Handle(featurePoint);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|||||||
Reference in New Issue
Block a user