mapbox-gl-js - Where can I view older Mapbox GL JS API documentation?
问题描述
I'm building an app with mapbox-gl@0.44.2
and the latest version of Mapbox GL JS is 0.46.0. The API documentation on their website always reflects the latest release, but I still need to read the docs for this older version. Is it available somewhere on their website, or on their GitHub?
I've looked around the mapbox GitHub repos but I don't think I'm looking at the right branches.
解决方案
它位于 Mapbox GL JS GitHub 存储库中:
您可以执行以下操作:
- 转到
v0.44.2
树:https ://github.com/mapbox/mapbox-gl-js/tree/v0.44.2 - 下载存储库的 ZIP 文件(名为“克隆或下载”的绿色按钮)
- 为您的操作系统准备开发环境。您不需要克隆存储库,因为您之前已经下载过它。只需解压缩 ZIP 文件并
yarn install
在mapbox-gl-js-0.44.2
目录中执行。 - 运行
npm run start-docs
以在本地启动文档服务器。 - 使用打印的 URL 查看文档,在我的例子中是
http://localhost:8080/mapbox-gl-js/api/
:
推荐阅读
- iis - LetsEncrypt SSL 在私有子域上
- snakemake - Snakemake - 删除工作流产生的所有非输出文件
- altair - 如何从 Altair 的基本图表中更改 Y 值?
- javascript - ApexChart 烛台不会在每次状态更改时重绘
- google-apps-script - Google Apps 脚本 Google Sheets 更新而不打开
- vb.net - DrawImage 中的 Lockbits 问题
- typescript - 在没有 PHONE_STATE 权限的情况下获取唯一的设备 ID Ionic
- postmates - 嵌入 Postmates 跟踪 URL
- angular - Angular HTTP 删除请求,应用程序更新问题
- ios - 如何在 swift 4 中显示 FSCalendar 上的事件点?