Uber的deck.gl介绍

将deck.gl在本地运行起来

1、利用git clone https://github.com/uber/deck.gl.git 命令将deck.gl从github上克隆下来。

2、cd deck.gl-master 进入项目根目录,运行npm install安装相关依赖。这里使用cnpm加快包的安装。

npm install cnpm -g --registry=https://registry.npm.taobao.org    安装cnpm

然后运行cnpm install

报错

MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008.

安装一下windows-build-tools工具然后再运行cnpm install即可完成依赖的安装。

3、进入examples目录,需要运行那一个例子就进入目录下,首先依然是安装依赖,然后运行

set MapboxAccessToken={Your Token Here} && cnpm start

需要在mapbox官网登陆注册,https://www.mapox.com/studio/account/tokens/ 申请token

进入3d-heatmap,cd 3d-heatmap。运行上面的命令,注意两边的大括号不需要。









  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值