You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on what I noticed in the source code for the react it loops over the children and if they are interested from Layer it creates an areay of layers and pass it to the deckgl.
Is it possible if it checks and if the children type is a function, calls it first and then attempt to create a layer? I am not sure if this approach works with reactivity tho.
I noticed that react-map-gl already supports such mechanisms
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Is there any examples that we can use declarative custom layers in react?
Here is what I am trying to achive
Based on what I noticed in the source code for the react it loops over the children and if they are interested from
Layer
it creates an areay of layers and pass it to the deckgl.Is it possible if it checks and if the children type is a function, calls it first and then attempt to create a layer? I am not sure if this approach works with reactivity tho.
I noticed that
react-map-gl
already supports such mechanismsBeta Was this translation helpful? Give feedback.
All reactions