#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.
#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 existingidvalues.Pros: Simple and efficient solution to create GeoJSON and VT spec compliant
idattributes for all nodes.Cons:
idvalue for a feature can change between different invocations of the API, and depends on the input GeoJSONfeatures.