Deck.gl 相关

github:  https://github.com/uber/deck.gl

官网: https://deck.gl/

demo: https://deck.gl/#/examples/

1. 到 https://www.mapbox.com/ 申请 Key;

2. clone github项目下来;

3. 进入  /examples/website 目录下的任意一个文件夹;

4. npm install  / yarn 安装依赖;

5. 修改目录下 package.json 中的 start 命令: 其中的 MapboxAccessToken 是你在 mapbox 申请到的 key 

"scripts": {
    "start-local": "webpack-dev-server --env.local --progress --hot --open",
    "start": "MapboxAccessToken='pk.kxxxxxx' webpack-dev-server --progress --hot --open"
  },

6. 终端运行 npm run start ;

扫描二维码关注公众号,回复: 11244672 查看本文章

猜你喜欢

转载自blog.csdn.net/byc233518/article/details/103263986