Skip to content

Clarify 'propertyName' behaviour in dissolve #1806

@stevage

Description

@stevage

Currently .dissolve() supports a property option which is a pretty limited way of saying "apply the dissolve to these polygons, but not those ones".

A more flexible approach would be a filter function:

var dissolved = turf.dissolve(features, { filter: f => f.properties.id === 47 } );

This way you're less likely to have to pre-massage the polygons to get the dissolve you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions