vicR
vicR

Reputation: 819

MapboxGL extruding lines/circles

I'm trying to implement a LineString extrusion depending on timestamp. As mentioned on github it is supposed to be implemented, but it isn't. It is supposed to look something like the screenshot below. enter image description here

So far I could find out that it is possible to use extrusion for polygons but then i would have to somehow create polygons from my LineStrings and circles. Is there another way to implement this? My plan is to show human movement in association with there timestamps (smallest z-axis heigth/altitude would represent the oldest timestamp).

Maybe there is another framework where this is possible but so far i m very pleased with MapboxGl JS. Thanks for anyhelp.

Upvotes: 1

Views: 905

Answers (2)

vicR
vicR

Reputation: 819

UPDATE:

I ended up using fill-extrusion. I created Polygons between my geo points and extruded the or as mention it works perfectly with turf as well.

Upvotes: 0

AndrewHarvey
AndrewHarvey

Reputation: 3065

You can only extrude polygon. You could use turf buffer to create polygon features from your linestring segments.

Upvotes: 2

Related Questions