标记未导出到 mp4

问题描述 投票:0回答:1

我试过示例代码来沿路径移动相机: https://github.com/mapbox/impact-tools/tree/master/journey-animation-sequence

示例代码运行良好,我可以将动画导出为 mp4

当我尝试使用标记时,我可以在动画期间在屏幕上看到标记,但标记不会导出到 mp4 视频。有什么想法吗?

    const pinRoute = trackGeojson.features[0].geometry.coordinates;

    const startMarker = new mapboxgl.Marker({
      color: 'red',
      scale: 0.8,
      draggable: false,
      pitchAlignment: 'auto',
      rotationAlignment: 'auto'
    })
        .setLngLat(pinRoute[0])
        .addTo(map)

    const endMarker = new mapboxgl.Marker({
      color: 'green',
      scale: 0.8,
      draggable: false,
      pitchAlignment: 'auto',
      rotationAlignment: 'auto'
    })
        .setLngLat(pinRoute[pinRoute.length-1])
        .addTo(map)
javascript mapbox-gl-js
1个回答
0
投票

也许使用不同的库或技术来添加标记。

© www.soinside.com 2019 - 2024. All rights reserved.