Cesium学习(一)An error occurred while rendering

在学习Cesium 1.68过程中,在Firefox和Chrome浏览器运行时遇到问题。解决方法是搭建本地Web服务器,不直接通过浏览器打开HTML文件。通过Node.js简单三步设置Web服务器:安装Node.js,执行npm install,然后运行node server.js启动服务器,通过http://localhost:8080/访问。后续将分析Cesium与osgEarth对比、加载Google Earth数据以及Cesium的帧循环问题。
摘要由CSDN通过智能技术生成

基于Cesium1.68进行学习。

在Firefox、chrome中运行下面文件都会遇到问题。

<!DOCTYPE html>
<html lang="en">
<head>
  <!-- Use correct character set. -->
  <meta charset="utf-8">
  <!-- Tell IE to use the latest, best version. -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  <title>Hello World!</title>
  <script src="../Build/Cesium/Cesium.js"></script>
  <style>
      @import url(../Build/Cesium/Widgets/widgets.css);
      html, body, #cesiumContainer {
          width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
      }
  
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值