How can I pass a dynamic list of stop parameter to line Gradient function in Mapbox SDK for Android (kotlin)
Something like:
val stops = [stop1, stop2...stopN]
style.addLayer(new LineLayer("linelayer", "line-source").withProperties(
lineCap(Property.LINE_CAP_ROUND),
lineJoin(Property.LINE_JOIN_ROUND),
lineWidth(14f),
lineGradient(interpolate(
linear(), lineProgress(),
stops //<- How to pass a dynamic array of stops here !!!
))));
Is this possible?