deck.gl class MapboxLayer support for react-map-gl <Layer /> component #1787
Unanswered
heyheman11
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
-
Is there any reason why we cannot use the react-map-gl
<Layer />
component with the object that is returned from the deck.gl MapboxLayer class?We can use
useMap()
to get the map reference then callmap.getMap().addLayer(new MapboxLayer({ id, deck }))
, but doing this does not work:<Layer key={index} {...new MapboxLayer({ id, deck })} />
. I understand that methods on classes will not be included when spreading, but i wonder if these two libraries could be compatible.Is there any reason why these aren't aligned? Apologies in advanced if this is a deck.gl compatibility issue
Beta Was this translation helpful? Give feedback.
All reactions