Skip to content

Add option to Generate IDs for input features #97

Description

@asheemmamoowala

#94 implements index-based ids for the returned cluster nodes. Some GeoJSON input may not have feature ids, or may use string feature ids which do not work with geojson-vt.

Proposal

generateLeafIds: enables generation of ids on the leaf nodes, ensuring uniqueness across leaf nodes and cluster nodes. Overwrites any existing id values.

Pros: Simple and efficient solution to create GeoJSON and VT spec compliant id attributes for all nodes.
Cons: id value for a feature can change between different invocations of the API, and depends on the input GeoJSON features.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions