特牛生活网

Cesium:入门教程(一)之 Hello World_cesium运行npm run start如何在浏览器运行helloworld-CSDN博客

网友收藏
文章浏览阅读222次。下载与使用Cesium中文网提供最近版本的镜像下载地址:把包解压后如图所示:文件夹内含一个index.html,但双击并不能打开它,我们需要打开vscode编辑器下载依赖的npm模块,打开终端输入命令 npm install然后执行node server.js 或 npm start 就可以启动项目然后浏览器打开 http://localhost:8080/Apps/HelloWorld.html此时的页面上是没有地球的这时我们需要去官网 https://cesium.com/io_cesium运行npm run start如何在浏览器运行helloworld