【问题标题】:Can the latest openlayers render the animated marker using gif/apng/webp?最新的 openlayers 可以使用 gif/apng/webp 渲染动画标记吗?
【发布时间】:2021-05-23 14:14:31
【问题描述】:

根据这个 QA,通过使用“gifler”库,我们可以使用动画 gif 在基于画布的 openlayers 上进行渲染。 can openlayers 3 render the animated marker using gif

但它不能接受 apng/webp,而且“gifler”库有点旧,很难与最新的 EcmaScript 或 TypeScript 一起使用。

还有其他方法可以实现吗?

【问题讨论】:

    标签: html5-canvas openlayers webp openlayers-6 apng


    【解决方案1】:

    最终,我找不到让它工作的方法,所以我开始自己开发它。 动画 GIF、APNG 和动画 webp 可以在下面的画布上下文中进行帧分割甚至动画。

    https://github.com/code4history/Gyeonghwon

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-12
      • 1970-01-01
      • 2020-06-27
      • 2021-06-19
      • 2016-12-17
      • 1970-01-01
      • 2011-03-09
      • 1970-01-01
      相关资源
      最近更新 更多