这是indexloc提供的服务,不要输入任何密码
Skip to content

Feature Request: Option to promote a geojson feature property to top level ID #660

@samgehret

Description

@samgehret

With the introduction of setFeatureState into GL-JS, it is increasingly important to have control over the top level ID of features within a vector tile.

Take the following example: I download a shape file from the census website, convert it to geojson, run through tippecanoe, and upload to mapbox as a vector tile. Now I want to use setFeatureState to style the polygons in the vector tile. But I cannot, because the top level IDs of the polygon features are generated sequentially/randomly.

It would be great, if running my geojson through tippecanoe, if I could choose which of the geojson properties would be promoted to the top level ID of each feature.

cc @ericfischer

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