Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Doc]HexagonLayer: TypeScript example cannot be compiled #9176

Open
clo-vis opened this issue Sep 23, 2024 · 1 comment
Open

[Doc]HexagonLayer: TypeScript example cannot be compiled #9176

clo-vis opened this issue Sep 23, 2024 · 1 comment
Labels

Comments

@clo-vis
Copy link

clo-vis commented Sep 23, 2024

Link

https://deck.gl/docs/api-reference/aggregation-layers/hexagon-layer

Description

The line

getTooltip: ({object}: PickingInfo<BikeRack>) => object && `Count: ${object.elevationValue}`,

in the TypeScript example cannot be compiled. The error the compiler issues is:

Property 'elevationValue' does not exist on type 'BikeRack'. ts(2339)

(using typescript 5.5.4)

@clo-vis clo-vis added the doc label Sep 23, 2024
@Pessimistress
Copy link
Collaborator

The HexagonLayer produces its own picking info type. This is fixed on the master branch and will land in 9.1.

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

No branches or pull requests

2 participants