flowmap.gl icon indicating copy to clipboard operation
flowmap.gl copied to clipboard

Custom location colors

Open mcpxd1 opened this issue 1 year ago • 1 comments

Hello,

I've been using flowmap.gl and it has what I need but I've just noticed something. There is no prop to be able to change the color of the location based on certain criteria. Similar to getFlowColor (which allow to implement logic to assign the colors), I was expecting to find a getLocationColor (or something like that). Is there any way to do it in the latest version?

mcpxd1 avatar Jul 13 '23 20:07 mcpxd1

It's not supported by the FlowmapLayer at the moment. You can however try to use FlowLineLayer directly together with deck.gl's ScatterplotLayer to render the circles and color them as you prefer.

ilyabo avatar Jul 15 '23 16:07 ilyabo