Skip to content

Add support for GeometryCollection feature type #1383

@shaietz

Description

@shaietz

Currently, features of type GeometryCollection are not supported, as seen in stylefunction.js types declaration:
const types = { 'Point': 1, 'MultiPoint': 1, 'LineString': 2, 'MultiLineString': 2, 'Polygon': 3, 'MultiPolygon': 3, };

when a feature of type GeometryCollection is encountered, const type = types[featureGeometry.getType()]; (stylefunction.js line 556) is undefined and no styles are applied.

adding support for GeometryCollection is a matter of iterating over the inner geometries and the styles based on the inner geometry type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions