Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Using Line-Gradient Property #203

Closed
riastrad opened this issue Aug 10, 2018 · 6 comments · Fixed by #423 · May be fixed by #368
Closed

Using Line-Gradient Property #203

riastrad opened this issue Aug 10, 2018 · 6 comments · Fixed by #423 · May be fixed by #368

Comments

@riastrad
Copy link
Contributor

riastrad commented Aug 10, 2018

When mapbox/mapbox-gl-native#12575 lands, a new example that demonstrates how to leverage this feature will be very helpful.

Especially as this delivers the ability to implement frequently asked for line animations.

@1ec5
Copy link
Contributor

1ec5 commented Aug 20, 2018

Note that the line-gradient property, like all the data-driven properties, lacks support for transitions: mapbox/mapbox-navigation-ios#1307 (comment). So animating a gradient will require changing the property on each frame on a timer.

@JanC
Copy link

JanC commented Oct 4, 2018

Hi @riastrad, is your WIP example somehow working? I'm getting the exception

'NSInvalidArgumentException', reason: 'Invalid property value: [2][1]: Unknown variable "lineProgress". Make sure "lineProgress" has been bound in an enclosing "let" expression before using it.'

update: I've just found this issue mapbox/mapbox-gl-native#12917

@riastrad
Copy link
Contributor Author

riastrad commented Oct 4, 2018

@JanC That's correct, while building out that example I ran into the issue you've linked to. I'm currently troubleshooting possible workarounds, but will likely hold off on finalizing until that issue is resolved.

@riastrad
Copy link
Contributor Author

riastrad commented Nov 15, 2018

Just want to note that $lineProgress is an expression variable as of mapbox/mapbox-gl-native#13192, so we should be good to rebase on master and pick this back up (since the examples were bumped to v4.6.0 here: #244)

@captainbarbosa
Copy link
Contributor

We should still do this!

@jumbopilot
Copy link

Hi guys, yes, would be very much appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants