nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

Mapbox-gl-js line layer gradient not found in mapbox react native ? #1287

Open anzjoe1994 opened 6 years ago

anzjoe1994 commented 6 years ago

In mapbox-gl-js we can apply the gradient to the line layer as shown in the screenshot below.

screen shot 2018-07-11 at 12 06 10

screen shot 2018-07-11 at 12 07 11

But in react-native-mapbox-gl, a similar functionality cannot be found. I can't find any properties and functions that enable me to apply gradient color to the line layer.

I am able to only apply a single color to line layer as shown in the below screenshot. screen shot 2018-07-11 at 12 35 28

If anyone has any idea about this or any workarounds please suggest, it would be really helpful.

nitaliano commented 6 years ago

line-gradient does not exist in the native sdks yet

Perronef5 commented 2 years ago

@nitaliano Any plan to support this feature. Gradient fills would be very useful