Mapbox-gl-js: Popular Mapbox.js example: draw & animate a line on a map

Created on 23 Sep 2015  Â·  6Comments  Â·  Source: mapbox/mapbox-gl-js

No. 3 most popular Mapbox.js example by analytics in the past year

https://www.mapbox.com/mapbox.js/example/v1.0.0/dynamically-drawing-a-line/

docs mapbox.js → GL JS

Most helpful comment

@YunjieLi nice! From support questions, we get two types of requests for this kind of example - animating the line and making the line disappear after a specific distance or time similar to the Courier example.

All 6 comments

Happy to work on this example

Curious why this commit did not make its way to an example but may start from there.

cc @geografa @tristen

@YunjieLi Oh! I forgot about this and it's unfinished. Go for it!

@YunjieLi nice! From support questions, we get two types of requests for this kind of example - animating the line and making the line disappear after a specific distance or time similar to the Courier example.

Thanks @geografa !
It's easy to stop after a specific time. But it will need turf for a certain distance or along a specific route. I'll give that a shot and see how it works.

I'll definitely add a play/pause button too.

Hi,
Just wondering if there's an update on this, as I'm looking into this for a project I'm working on.
Thanks!

@mcurtiswilliams this just went alive!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samanpwbb picture samanpwbb  Â·  3Comments

aaronlidman picture aaronlidman  Â·  3Comments

foundryspatial-duncan picture foundryspatial-duncan  Â·  3Comments

muesliq picture muesliq  Â·  3Comments

PBrockmann picture PBrockmann  Â·  3Comments