Instance members of Source doesn't have a type definition. #1855
Unanswered
adellamaggiora
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Please cast source to geojsonsource. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://maplibre.org/maplibre-gl-js-docs/api/sources/#geojsonsource-instance-members
Property 'getClusterExpansionZoom' does not exist on type 'Source'.
Property 'getClusterChildren' does not exist on type 'Source'.
Property 'getClusterLeaves' does not exist on type 'Source'.
Property 'setData' does not exist on type 'Source'.
and this causes a TypeScript compiler error.
Beta Was this translation helpful? Give feedback.
All reactions