简体   繁体   English

MapboxGL 挤出线/圆

[英]MapboxGL extruding lines/circles

I'm trying to implement a LineString extrusion depending on timestamp.我正在尝试根据时间戳实现 LineString 挤压。 As mentioned on github it is supposed to be implemented, but it isn't.正如github中提到的,它应该被实现,但事实并非如此。 It is supposed to look something like the screenshot below.它应该看起来像下面的屏幕截图。 在此处输入图像描述

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.到目前为止,我发现可以对多边形使用挤压,但是我必须以某种方式从我的 LineStrings 和圆创建多边形。 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).我的计划是显示与时间戳相关的人类运动(最小的 z 轴高度/高度将代表最旧的时间戳)。

Maybe there is another framework where this is possible but so far im very pleased with MapboxGl JS.也许还有另一个框架可以做到这一点,但到目前为止我对 MapboxGl JS 非常满意。 Thanks for anyhelp.谢谢你的帮助。

You can only extrude polygon.您只能挤出多边形。 You could use turf buffer to create polygon features from your linestring segments.您可以使用草皮缓冲区从您的线串段创建多边形特征。

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.我在我的地理点之间创建了多边形并挤压了或如前所述,它也可以完美地与草皮配合使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM