# 基础控件

Cesium 地图原生的一些控件

名称 类型 说明
homeButton boolean 视角复位按钮
sceneModePicker boolean 二三维切换按钮
navigationHelpButton boolean 帮助按钮
animation boolean 动画部件按钮
fullscreenButton boolean 全屏按钮
shouldAnimate boolean 自动播放
vrButton boolean vr 模式按钮
geocoder boolean 查询按钮
homeButton boolean 复位按钮
infoBox boolean 信息框
selectionIndicator boolean 选择框
timeline boolean 时间轴
copyright boolean 版权信息

# 基础参数

Cesium 地图原生的一些参数

名称 类型 说明
isAnimation boolean 是否启动加载动画
minzoom Number 最小缩放高度
maxzoom Number 最大缩放高度

# 框架拓展

框架扩展的可配置控件和参数:

名称 配置 说明
地理编码配置 "geocoderConfig": { "citycode": "" } citycode为城市编码
初始视角 "center": { "y": 39.13503, "x": 117.233398, "z": 5000, "heading": 0, "pitch": -60, "roll": 0 }
环境配置 "style": {"atmosphere": true,"lighting": false,"fog": false,"testTerrain": false}
属性查询字段 "clickFields": ["id", "名称"] 三维模型
云层配置 "addClouds": {"show": false,"position": [117.205936, 39.099409, 50000],"style": {"scaleX": 250000,"scaleY": 120000,"brightness": 1 }}
罗盘控制 "controls": [{"type": "location","coordinate": "wgs","style": {"left": "0","right": "0","bottom": "0"}}, {"type": "mousezoom"}, {"type": "navigation","style": {"top": "120px","right": "5px"},"enableCompass": true,"enableZoomControls": false,"enableDistanceLegend": false,"enableCompassOuterRing": true} ]
Last Updated: 6/24/2024, 3:05:32 PM