MapboxOverlay interleaved and onClick argument #8885
Unanswered
kaorukitao
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some questions on MapboxOverlay having layers of PointCloudLayer instance. I use MapLibre-GL 4.2.0 and I am trying display point cloud with deck.gl 9.0.14.
I wrote like this;
First question:
Changing interleaved value to false, points were not displayed. Why ?
When I create a similar program MapLibre-GL 3.6.2 and deck.gl 8.9.32, points were displayed whether interleaved is both true and false.
Second question:
Tell me aboud "onClick" argument "d". "d" has a property "color". I thought it is the color of clicked point but it seems different. When I draw 3 points, first point color is Uint8Array [ 1, 0, 0, 2 ], second is [ 2, 0, 0, 2 ], third is [ 3, 0, 0, 2 ].
What value does property "color" indicate ?
Third question:
"d" mentioned above has a property "index". Does it show the order of clicked point ?
Beta Was this translation helpful? Give feedback.
All reactions