Insert a Multipolygon into a Deck.gl Polygon chart #31405
Replies: 1 comment
-
Hello @KarypidisParis 👋, I'm here to help you with any bugs, questions, or contributions you have. The issue of only the first polygon in a MultiPolygon being colored while the second is overlaid without color in a deck.gl polygon chart is likely due to the way the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to insert a MultiPolygon into a deck.gl polygon chart.
I read that the MultiPolygon should be a list of polygons, something like this (a simplified map of Denmark).
[[[9.921906, 54.983104], [10.369993, 56.190007], [10.912182, 56.458621], [10.25, 56.890016], [10.580006, 57.730017], [9.424469, 57.172066], [8.256582, 56.809969], [8.120311, 55.517723], [9.282049, 54.830865], [9.921906, 54.983104]], [[12.370904, 56.111407], [11.043543, 55.364864], [12.690006, 55.609991], [12.370904, 56.111407]]]
This seems to work, and the contours appear fine. However, when enabling colour, only the first polygon is coloured while the second is overlayed (have a look at the attachments).
Does anybody know why this is happening?
Beta Was this translation helpful? Give feedback.
All reactions