cesium的Viewer初始化界面按钮

QQ交流群:607330463 GIS开发技术最强交流群   未经允许 禁止转载  可以参考

目录

(1)简介

(2)代码参考 


(1)简介

默认的Viewer自带了一些有用的组件: 

  1. Geocoder : A location search tool that flies the camera to queried location. Uses Bing Maps data by default.
  2. HomeButton : Flies the viewer back to a default view.
  3. SceneModePicker : Switches between 3D, 2D and Columbus View (CV) modes.
  4. BaseLayerPicker : Chooses the imagery and terrain to display on the globe.
  5. NavigationHelpButton : Displays the default camera controls.
  6. Animation : Controls the play speed for view animation.
  7. CreditsDisplay : Displays data attributions. Almost always required!
  8. Timeline : Indicates current time and allows users to jump to a specific time using the scrubber.
  9. FullscreenButton : Makes the Viewer fullscreen.

翻译

  1. Geocoder : 一种地理位置搜索工具,用于显示相机访问的地理位置。默认使用微软的Bing地图。
  2. HomeButton : 首页位置,点击之后将视图跳转到默认视角。
  3. SceneModePicker : 切换2D、3D 和 Columbus View (CV) 模式。
  4. BaseLayerPicker : 选择三维数字地球的底图(imagery and terrain)。
  5. NavigationHelpButton : 帮助提示,如何操作数字地球。
  6. Animation :控制视窗动画的播放速度。
  7. CreditsDisplay : 展示商标版权和数据源。
  8. Timeline : 展示当前时间和允许用户在进度条上拖动到任何一个指定的时间。
  9. FullscreenButton : 视察全屏按钮。

(2)代码参考 

var viewer = new Cesium.Viewer("cesiumContainer", {
  terrainProvider: Cesium.createWorldTerrain(),
  scene3DOnly: true,
  selectionIndicator: false,
  baseLayerPicker: false,
  animation:false,
  timeline:false,
  homeButton:false,
  fullscreenButton:false,
  navigationHelpButton:false,
  geocoder:false
});
viewer._cesiumWidget._creditContainer.style.display="none";

猜你喜欢

转载自blog.csdn.net/qq_30430463/article/details/114323708