Skip to content

Multi-geometry feature indices #44

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
kylebarron opened this issue Oct 17, 2023 · 2 comments
Closed

Multi-geometry feature indices #44

kylebarron opened this issue Oct 17, 2023 · 2 comments

Comments

@kylebarron
Copy link
Member

Related to picking... presumably the default picking gives the index of the data array? If you do this, then you have to do like a binary search into the indices array to find the feature index that contains the specified geometry (or maybe vertex?) index.

Alternatively, similarly to the geojson layer, you could pass in a feature index per vertex that maps to the geometry index. See
https://github.com/visgl/deck.gl/blob/6e6b48b82aa498b957ac775db15e62523c0c6e45/modules/layers/src/geojson-layer/geojson-layer-props.ts#L120

@kylebarron
Copy link
Member Author

Fixed from #49

@kylebarron
Copy link
Member Author

Though auto-highlight doesn't work for multi polygons yet

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant