| items: [ | items: [ | ||||
| { text: '全局 API', link: '/zh/api/global' }, | { text: '全局 API', link: '/zh/api/global' }, | ||||
| { text: '基础 API', link: '/zh/api/base' }, | { text: '基础 API', link: '/zh/api/base' }, | ||||
| { text: '原生 API', link: '/zh/api/origin' }, | |||||
| { text: '地图 API', link: '/zh/api/tile' }, | { text: '地图 API', link: '/zh/api/tile' }, | ||||
| { text: '图层 API', link: '/zh/api/layer' }, | { text: '图层 API', link: '/zh/api/layer' }, | ||||
| { | { | 
| ```js | ```js | ||||
| //属性参数(可选) | //属性参数(可选) | ||||
| const config = { | const config = { | ||||
| "contextOptions": { | |||||
| "webgl": { | |||||
| "alpha": false, //背景 | |||||
| "depth": true, | |||||
| "stencil": false, | |||||
| "antialias": true, | |||||
| "powerPreference": "high-performance", | |||||
| "premultipliedAlpha": true, | |||||
| "preserveDrawingBuffer": false, | |||||
| "failIfMajorPerformanceCaveat": false | |||||
| contextOptions: { | |||||
| webgl: { | |||||
| alpha: false, // 背景缓冲区是否包含 alpha 通道 | |||||
| depth: true, // 开启深度缓冲区(通常必须开启,否则无法正确遮挡) | |||||
| stencil: true, // 是否启用模板缓冲。false 可以节省显存和性能 | |||||
| antialias: true, // 是否启用抗锯齿 | |||||
| powerPreference: 'high-performance', // 提示浏览器优先用独显或性能更高的 GPU | |||||
| premultipliedAlpha: true, // 颜色预乘 alpha, | |||||
| preserveDrawingBuffer: false, // 渲染后是否保留缓冲内容。false 性能更好,但不能直接保存截图 | |||||
| failIfMajorPerformanceCaveat: false, // 避免低性能环境直接报错 | |||||
| }, | }, | ||||
| "allowTextureFilterAnisotropic": true | |||||
| allowTextureFilterAnisotropic: true, // 启用各向异性纹理过滤,提高贴图锐度 | |||||
| }, | }, | ||||
| "sceneMode": 3, | |||||
| //1: 2.5D,2: 2D,3: 3D | |||||
| "enableEventPropagation": false, | |||||
| //是否开启鼠标事件冒泡 | |||||
| "enableMouseMovePick": false, | |||||
| // 是否开启鼠标移动拾取功能,开启后当覆盖物较多的情况下,帧率会下降 | |||||
| "enableMouseOver": false | |||||
| //是否开启鼠标移入事件,需要开启鼠标移动拾取功能 | |||||
| sceneMode: 3, //1: 2.5D,2: 2D,3: 3D | |||||
| enableEventPropagation: false, //是否开启鼠标事件冒泡 | |||||
| enableMouseMovePick: false, // 是否开启鼠标移动拾取功能,开启后当覆盖物较多的情况下,帧率会下降 | |||||
| enableMouseOver: false, //是否开启鼠标移入事件,需要开启鼠标移动拾取功能 | |||||
| } | } | ||||
| ``` | ``` | ||||
| - `{Element} container`:场景容器 **_`readonly`_** | - `{Element} container`:场景容器 **_`readonly`_** | ||||
| - `{Element} widgetContainer`:场景组件容器 **_`readonly`_** | - `{Element} widgetContainer`:场景组件容器 **_`readonly`_** | ||||
| - `{Element} layerContainer`:场景图层容器 **_`readonly`_** | - `{Element} layerContainer`:场景图层容器 **_`readonly`_** | ||||
| - `{Object} scene`:场景 **_`readonly`_**,详情参考:[Scene](http://resource.dvgis.cn/cesium-docs/Scene.html) | |||||
| - `{Object} camera`:相机 **_`readonly`_**,详情参考:[Camera](http://resource.dvgis.cn/cesium-docs/Scene.html) | |||||
| - `{Object} scene`:场景 **_`readonly`_**,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Scene.html) | |||||
| - `{Object} camera`:相机 **_`readonly`_**,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Scene.html) | |||||
| - `{Element} canvas`:canvas 节点 **_`readonly`_** | - `{Element} canvas`:canvas 节点 **_`readonly`_** | ||||
| - `{Object} clock`:时钟,详情参考:[Clock](http://resource.dvgis.cn/cesium-docs/Clock.html) | |||||
| - `{Object} dataSources` | |||||
| :数据资源集合,详情参考:[DataSourceCollection](http://resource.dvgis.cn/cesium-docs/DataSourceCollection.html) | |||||
| - `{Object} imageryLayers` | |||||
| :瓦片集合,详情参考:[ImageryLayerCollection](http://resource.dvgis.cn/cesium-docs/ImageryLayerCollection.html) | |||||
| - `{Object} entities`:实体集合,详情参考:[EntityCollection](http://resource.dvgis.cn/cesium-docs/EntityCollection.html) | |||||
| - `{Object} clock`:时钟,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Clock.html) | |||||
| - `{Object} dataSources` :数据资源集合,[详细使用说明](http://resource.dvgis.cn/cesium-docs/DataSourceCollection.html) | |||||
| - `{Object} imageryLayers`:瓦片集合,[详细使用说明](http://resource.dvgis.cn/cesium-docs/ImageryLayerCollection.html) | |||||
| - `{Object} entities`:实体集合,[详细使用说明](http://resource.dvgis.cn/cesium-docs/EntityCollection.html) | |||||
| - [`{Popup} popup`](#popup):气泡窗口 **_`readonly`_** | - [`{Popup} popup`](#popup):气泡窗口 **_`readonly`_** | ||||
| - [`{ContextMenu} contextMenu`](#contextmenu):右击弹框 **_`readonly`_** | - [`{ContextMenu} contextMenu`](#contextmenu):右击弹框 **_`readonly`_** | ||||
| - [`{Tooltip} tooltip`](#tooltip):提示框 **_`readonly`_** | - [`{Tooltip} tooltip`](#tooltip):提示框 **_`readonly`_** | ||||
| ```js | ```js | ||||
| // 属性参数(属性可选) | // 属性参数(属性可选) | ||||
| const config = { | const config = { | ||||
| "shadows": false,// 是否开启阴影 | |||||
| "resolutionScale": 1,// 设置渲染分辨率的缩放比例 | |||||
| "showAtmosphere": true,//是否显示大气层 | |||||
| "showSun": true,//是否显示太阳 | |||||
| "showMoon": true, //是否显示月亮 | |||||
| "enableFxaa": true,//是否开启抗锯齿 | |||||
| "msaaSamples": 1,//msaa抗拒出取样度 | |||||
| "cameraController": { // 相机控制 | |||||
| "enableRotate": true,// 是否可以旋转 | |||||
| "enableTilt": true,// 是否可以翻转 | |||||
| "enableTranslate": true,// 是否可以平移 | |||||
| "enableZoom": true,// 是否可以缩放 | |||||
| "enableCollisionDetection": true,// 是否支持碰撞检测 | |||||
| "minimumZoomDistance": 1.0,// 最小缩放距离 | |||||
| "maximumZoomDistance": 40489014.0// 最大缩放距离 | |||||
| shadows: false, // 是否开启阴影 | |||||
| resolutionScale: 1, // 设置渲染分辨率的缩放比例 | |||||
| showAtmosphere: true, //是否显示大气层 | |||||
| showSun: true, //是否显示太阳 | |||||
| showMoon: true, //是否显示月亮 | |||||
| enableFxaa: true, //是否开启抗锯齿 | |||||
| msaaSamples: 1, //msaa抗拒出取样度 | |||||
| cameraController: { | |||||
| // 相机控制 | |||||
| enableRotate: true, // 是否可以旋转 | |||||
| enableTilt: true, // 是否可以翻转 | |||||
| enableTranslate: true, // 是否可以平移 | |||||
| enableZoom: true, // 是否可以缩放 | |||||
| enableCollisionDetection: true, // 是否支持碰撞检测 | |||||
| minimumZoomDistance: 1.0, // 最小缩放距离 | |||||
| maximumZoomDistance: 40489014.0, // 最大缩放距离 | |||||
| }, | }, | ||||
| "globe": { | |||||
| "show": true,// 是否显示地球 | |||||
| "showGroundAtmosphere": true,// 显示地面大气 | |||||
| "enableLighting": false,//是否开启灯光,开启后地球会根据当前时间启用灯光 | |||||
| "depthTestAgainstTerrain": false, //是否开启深度测试 | |||||
| "tileCacheSize": 100, // 默认瓦片缓存大小 | |||||
| "preloadSiblings": false,//是否应预加载渲染同级图块 | |||||
| "terrainExaggeration": 1,//地形夸张系数 | |||||
| "terrainExaggerationRelativeHeight": 1,//地形相对高度夸张系数 | |||||
| "baseColor": new DC.Color(0, 0, 0.5, 1), //地球默认底色 | |||||
| "filterColor": newDC.Color(0, 0, 0, 0),//瓦片过滤色,设置后不可逆 | |||||
| "translucency": { //地表透明 | |||||
| "enabled": false, // 是否开启地表透明 | |||||
| "backFaceAlpha": 1, // 地球背面透明度 | |||||
| "backFaceAlphaByDistance": null, //根据距离设置地球背面透明度: {near:400,nearValue:0.2,far:800,farValue:1} | |||||
| "frontFaceAlpha": 1, // 地球正面透明度 | |||||
| "frontFaceAlphaByDistance": null //根据距离设置地球正面透明度: {near:400,nearValue:0.2,far:800,farValue:1} | |||||
| } | |||||
| globe: { | |||||
| show: true, // 是否显示地球 | |||||
| showGroundAtmosphere: true, // 显示地面大气 | |||||
| enableLighting: false, //是否开启灯光,开启后地球会根据当前时间启用灯光 | |||||
| depthTestAgainstTerrain: false, //是否开启深度测试 | |||||
| tileCacheSize: 100, // 默认瓦片缓存大小 | |||||
| preloadSiblings: false, //是否应预加载渲染同级图块 | |||||
| terrainExaggeration: 1, //地形夸张系数 | |||||
| terrainExaggerationRelativeHeight: 1, //地形相对高度夸张系数 | |||||
| baseColor: new DC.Color(0, 0, 0.5, 1), //地球默认底色 | |||||
| filterColor: newDC.Color(0, 0, 0, 0), //瓦片过滤色,设置后不可逆 | |||||
| translucency: { | |||||
| //地表透明 | |||||
| enabled: false, // 是否开启地表透明 | |||||
| backFaceAlpha: 1, // 地球背面透明度 | |||||
| backFaceAlphaByDistance: null, //根据距离设置地球背面透明度: {near:400,nearValue:0.2,far:800,farValue:1} | |||||
| frontFaceAlpha: 1, // 地球正面透明度 | |||||
| frontFaceAlphaByDistance: null, //根据距离设置地球正面透明度: {near:400,nearValue:0.2,far:800,farValue:1} | |||||
| }, | |||||
| }, | |||||
| skyBox: { | |||||
| sources: {}, // 六个面的贴图 | |||||
| show: true, //是否显示 | |||||
| offsetAngle: 0, //旋转角度 | |||||
| }, | }, | ||||
| "skyBox": { | |||||
| "sources": {}, // 六个面的贴图 | |||||
| "show": true, //是否显示 | |||||
| "offsetAngle": 0 //旋转角度 | |||||
| } | |||||
| } | } | ||||
| ``` | ``` | ||||
| ```js | ```js | ||||
| //属性参数 (属性可选) | //属性参数 (属性可选) | ||||
| const options = { | const options = { | ||||
| "name": "电子地图",//名称 | |||||
| "iconUrl": "../preview.png",//缩略图 | |||||
| "alpha": 1.0, | |||||
| "nightAlpha": 1.0, | |||||
| "dayAlpha": 1.0, | |||||
| "brightness": 1.0, | |||||
| "contrast": 1.0, | |||||
| "hue": 1.0, | |||||
| "saturation": 1.0, | |||||
| "gamma": 1.0 | |||||
| name: '电子地图', //名称 | |||||
| iconUrl: '../preview.png', //缩略图 | |||||
| alpha: 1.0, | |||||
| nightAlpha: 1.0, | |||||
| dayAlpha: 1.0, | |||||
| brightness: 1.0, | |||||
| contrast: 1.0, | |||||
| hue: 1.0, | |||||
| saturation: 1.0, | |||||
| gamma: 1.0, | |||||
| } | } | ||||
| ``` | ``` | ||||
| ```js | ```js | ||||
| // 配置(属性可选),配置后会影响全局的popup的显示样式,请慎重。 | // 配置(属性可选),配置后会影响全局的popup的显示样式,请慎重。 | ||||
| const config = { | const config = { | ||||
| "position": "center",// popup的位于鼠标的点击位置的方向,有:center,left ,right | |||||
| "customClass": "custom"// 添加自定义的Css 类名到popup中,多个用空格隔开 | |||||
| position: 'center', // popup的位于鼠标的点击位置的方向,有:center,left ,right | |||||
| customClass: 'custom', // 添加自定义的Css 类名到popup中,多个用空格隔开 | |||||
| } | } | ||||
| ``` | ``` | ||||
| - `{Boolean} enable`:是否启用 | - `{Boolean} enable`:是否启用 | ||||
| - `{String} state`:状态 **_`readonly`_** | - `{String} state`:状态 **_`readonly`_** | ||||
| ## DC.SkyBox | |||||
| > 天空盒,[详情参考](http://resource.dvgis.cn/cesium-docs/SkyBox.html) | |||||
| ### example | |||||
| ```js | |||||
| scene.skyBox = new DC.SkyBox({ | |||||
| sources: { | |||||
| positiveX: 'skybox_px.png', | |||||
| negativeX: 'skybox_nx.png', | |||||
| positiveY: 'skybox_py.png', | |||||
| negativeY: 'skybox_ny.png', | |||||
| positiveZ: 'skybox_pz.png', | |||||
| negativeZ: 'skybox_nz.png', | |||||
| }, | |||||
| }) | |||||
| ``` | |||||
| ### creation | |||||
| - **_constructor(id)_** | |||||
| 构造函数 | |||||
| - 参数 | |||||
| - `{Object} options`:配置 | |||||
| - 返回值 `skyBox` | |||||
| ```js | |||||
| //options(属性可选) | |||||
| const options = { | |||||
| "sources": {},// 六个面的贴图 | |||||
| "show": true//显示 | |||||
| } | |||||
| ``` | |||||
| ### properties | |||||
| - `{Object} sources`:六个面的贴图 | |||||
| - `{Boolean} show`:显示 | |||||
| ## DC.GroundSkyBox | ## DC.GroundSkyBox | ||||
| > 近地天空盒,[详情参考](http://resource.dvgis.cn/cesium-docs/SkyBox.html) | > 近地天空盒,[详情参考](http://resource.dvgis.cn/cesium-docs/SkyBox.html) | ||||
| ```js | ```js | ||||
| //options(属性可选) | //options(属性可选) | ||||
| const options = { | const options = { | ||||
| "sources": {},// 六个面的贴图 | |||||
| "show": true,//显示 | |||||
| "offsetAngle": 0//旋转角度 | |||||
| sources: {}, // 六个面的贴图 | |||||
| show: true, //显示 | |||||
| offsetAngle: 0, //旋转角度 | |||||
| } | } | ||||
| ``` | ``` | ||||
| - `{String} valStr`:序列化的对象 | - `{String} valStr`:序列化的对象 | ||||
| - 返回值 `position` | - 返回值 `position` | ||||
| ## DC.Color | |||||
| > 颜色类 | |||||
| ### example | |||||
| ```js | |||||
| let red = DC.Color.RED | |||||
| ``` | |||||
| ### properties | |||||
| - `{Color} RED`:红色 | |||||
| - `{Color} YELLOW`:黄色 | |||||
| - `{Color} WHITE`:白色 | |||||
| - `{Color} GREEN`:绿色 | |||||
| [其他颜色](http://resource.dvgis.cn/cesium-docs/Color.html) | |||||
| ## DC.TilesetStyle | |||||
| > tileset 样式,用于设置 3dtiles 的颜色设置 | |||||
| ### example | |||||
| ```js | |||||
| let style = new DC.TilesetStyle() | |||||
| style.color = { | |||||
| conditions: [ | |||||
| ['${floor} >= 5', 'rgb(198, 106, 11)'], | |||||
| ['true', 'rgb(127, 59, 8)'], | |||||
| ], | |||||
| } | |||||
| ``` | |||||
| [详情参考](http://resource.dvgis.cn/cesium-docs/Cesium3DTileStyle.html) | |||||
| ## DC.JulianDate | |||||
| > 朱莉安日历 | |||||
| ```js | |||||
| let date = DC.JulianDate.now() | |||||
| ``` | |||||
| ### static methods | |||||
| - **_now()_** | |||||
| 当前朱莉安时间 | |||||
| - 返回值 `date` | |||||
| - **_fromDate(date)_** | |||||
| 通过 Js 时间创建朱莉安时间 | |||||
| - 参数 | |||||
| - `{Date} date`:Js 时间 | |||||
| - 返回值 `date` | |||||
| [JulianDate](http://resource.dvgis.cn/cesium-docs/JulianDate.html) | |||||
| ## DC.Rectangle | |||||
| > 矩形相关函数 | |||||
| ### example | |||||
| ```js | |||||
| let r = DC.Rectangle.fromDegrees(10, 20, 12, 31) | |||||
| ``` | |||||
| [详情参考](http://resource.dvgis.cn/cesium-docs/Rectangle.html) | |||||
| ## DC.CallbackProperty | |||||
| > 回调属性,用户通过自定义回调函数来返回需要的值。回调函数中,用户可以使用 time 给定 value,也可以自定设置。 | |||||
| ```js | |||||
| let position = new DC.Position(120, 20) | |||||
| let point = new DC.Point(position) | |||||
| let size = 0 | |||||
| point.setStyle({ | |||||
| pixelSize: new DC.CallbackProperty((time) => { | |||||
| size += 1 | |||||
| if (size == 10) { | |||||
| size = 0 | |||||
| } | |||||
| return size | |||||
| }), | |||||
| }) | |||||
| ``` | |||||
| ## DC.Parse | ## DC.Parse | ||||
| > 坐标解析工具类,可简写为 DC.P | > 坐标解析工具类,可简写为 DC.P | 
| - 参数 | - 参数 | ||||
| - `{String} modelPath`:模型路径 | - `{String} modelPath`:模型路径 | ||||
| - `{Object} style`:样式,详情参考:[DC.Model](./overlay-vector#dc-model) | |||||
| - `{Object} style`:样式,[详细使用说明](./overlay-vector#dc-model) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| - **_setBillboard(icon,style)_** | - **_setBillboard(icon,style)_** | ||||
| - 参数 | - 参数 | ||||
| - `{String} icon`:图标路径 | - `{String} icon`:图标路径 | ||||
| - `{Object} style`:样式,参考:[DC.Billboard](./overlay-vector#dc-billboard) | |||||
| - `{Object} style`:样式,[详细使用说明](./overlay-vector#dc-billboard) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| - **_setLabel(text,style)_** | - **_setLabel(text,style)_** | ||||
| - 参数 | - 参数 | ||||
| - `{String} text`:文本 | - `{String} text`:文本 | ||||
| - `{Object} style`:样式,参考:[DC.Label](./overlay-vector#dc-label) | |||||
| - `{Object} style`:样式,[详细使用说明](./overlay-vector#dc-label) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| - **_setPath(visible,style)_** | - **_setPath(visible,style)_** | 
| - `{String} id`:图层唯一标识 | - `{String} id`:图层唯一标识 | ||||
| - `{String} url`:数据地址 | - `{String} url`:数据地址 | ||||
| - `{Object} options` | - `{Object} options` | ||||
| :属性配置,详情参考:[GeoJsonDataSource](http://resource.dvgis.cn/cesium-docs/GeoJsonDataSource.html) | |||||
| :属性配置,[详细使用说明](http://resource.dvgis.cn/cesium-docs/GeoJsonDataSource.html) | |||||
| - 返回值 `geoJsonLayer` | - 返回值 `geoJsonLayer` | ||||
| ### methods | ### methods | ||||
| - `{String} id`:图层唯一标识 | - `{String} id`:图层唯一标识 | ||||
| - `{String} url`:数据地址 | - `{String} url`:数据地址 | ||||
| - `{Object} options` | - `{Object} options` | ||||
| :属性配置,详情参考:[GeoJsonDataSource](http://resource.dvgis.cn/cesium-docs/GeoJsonDataSource.html) | |||||
| :属性配置,[详细使用说明](http://resource.dvgis.cn/cesium-docs/GeoJsonDataSource.html) | |||||
| - 返回值 `topoJsonLayer` | - 返回值 `topoJsonLayer` | ||||
| ### methods | ### methods | ||||
| - 参数 | - 参数 | ||||
| - `{String} id`:图层唯一标识 | - `{String} id`:图层唯一标识 | ||||
| - `{String} url`:数据地址 | - `{String} url`:数据地址 | ||||
| - `{Object} options`:属性配置,详情参考:[CzmlDataSource](http://resource.dvgis.cn/cesium-docs/CzmlDataSource.html) | |||||
| - `{Object} options`:属性配置 [详细使用说明](http://resource.dvgis.cn/cesium-docs/CzmlDataSource.html) | |||||
| - 返回值 `czmlLayer` | - 返回值 `czmlLayer` | ||||
| ## DC.KmlLayer | ## DC.KmlLayer | ||||
| - 参数 | - 参数 | ||||
| - `{String} id`:图层唯一标识 | - `{String} id`:图层唯一标识 | ||||
| - `{String} url`:数据地址 | - `{String} url`:数据地址 | ||||
| - `{Object} options`:属性配置,详情参考:[KmlDataSource](http://resource.dvgis.cn/cesium-docs/KmlDataSource.html) | |||||
| - `{Object} options`:属性配置,[详细使用说明](http://resource.dvgis.cn/cesium-docs/KmlDataSource.html) | |||||
| - 返回值 `kmlLayer` | - 返回值 `kmlLayer` | ||||
| ## DC.GpxLayer | ## DC.GpxLayer | ||||
| - 参数 | - 参数 | ||||
| - `{String} id`:图层唯一标识 | - `{String} id`:图层唯一标识 | ||||
| - `{String} url`:数据地址 | - `{String} url`:数据地址 | ||||
| - `{Object} options`:属性配置,详情参考:[GpxDataSource](http://resource.dvgis.cn/cesium-docs/GpxDataSource.html) | |||||
| - `{Object} options`:属性配置,[详细使用说明](http://resource.dvgis.cn/cesium-docs/GpxDataSource.html) | |||||
| - 返回值 `gpxLayer` | - 返回值 `gpxLayer` | ||||
| ## DC.ClusterLayer | ## DC.ClusterLayer | ||||
| - 参数 | - 参数 | ||||
| - `{String} id`:唯一标识 | - `{String} id`:唯一标识 | ||||
| - `{Object} option`:echarts 配置,详情参考:[echarts](https://www.echartsjs.com/zh/option.html#title) | |||||
| - `{Object} option`:echarts 配置,[详细使用说明](https://www.echartsjs.com/zh/option.html#title) | |||||
| - 返回值 `chartLayer` | - 返回值 `chartLayer` | ||||
| ```js | ```js | ||||
| 设置点位 | 设置点位 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} option`:echarts 配置,详情参考:[echarts](https://www.echartsjs.com/zh/option.html#title) | |||||
| - `{Object} option`:echarts 配置,[详细使用说明](https://www.echartsjs.com/zh/option.html#title) | |||||
| - 返回值 `this` | - 返回值 `this` | 
| # 原生 API 🌎 | |||||
| Cesium 原生类扩展与重命名 | |||||
| :::warning | |||||
| 该文档只列举部分常用的内部类,如果需要更多的 Cesium 内部类,可以通过接口 ` getLib('cesium')` 获取到 Cesium | |||||
| 对象 | |||||
| ::: | |||||
| ## DC.CallbackProperty | |||||
| > 回调属性,用户通过自定义回调函数来返回需要的值。回调函数中,用户可以使用 time 给定 | |||||
| > value,也可以自定设置。[详细使用说明](http://resource.dvgis.cn/cesium-docs/CallbackProperty.html) | |||||
| ```js | |||||
| let position = new DC.Position(120, 20) | |||||
| let point = new DC.Point(position) | |||||
| let size = 0 | |||||
| point.setStyle({ | |||||
| pixelSize: new DC.CallbackProperty((time) => { | |||||
| size += 1 | |||||
| if (size == 10) { | |||||
| size = 0 | |||||
| } | |||||
| return size | |||||
| }), | |||||
| }) | |||||
| ``` | |||||
| ## DC.Cartesian2 | |||||
| > 一个二维笛卡尔坐标点。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Cartesian2.html) | |||||
| ### example | |||||
| ```js | |||||
| let c = new DC.Cartesian2(1, 1) | |||||
| ``` | |||||
| ## DC.Cartesian3 | |||||
| > 一个三维笛卡尔坐标点。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Cartesian3.html) | |||||
| ### example | |||||
| ```js | |||||
| let c = new DC.Cartesian3(1, 1, 1) | |||||
| ``` | |||||
| ## DC.Cartesian4 | |||||
| > 一个四维笛卡尔坐标点。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Cartesian4.html) | |||||
| ### example | |||||
| ```js | |||||
| let c = new DC.Cartesian4(1, 1, 1, 1) | |||||
| ``` | |||||
| ## DC.Matrix2 | |||||
| > | |||||
| 一个2x2矩阵,可作为列优先顺序数组进行索引。构造函数参数采用行优先顺序,以提高代码可读性。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Matrix2.html) | |||||
| ### example | |||||
| ```js | |||||
| let m = new DC.Matrix2() | |||||
| ``` | |||||
| ## DC.Matrix3 | |||||
| > | |||||
| 一个3x3矩阵,可作为列优先顺序数组进行索引。构造函数参数采用行优先顺序,以提高代码可读性。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Matrix3.html) | |||||
| ### example | |||||
| ```js | |||||
| let m = new DC.Matrix3() | |||||
| ``` | |||||
| ## DC.Matrix4 | |||||
| > | |||||
| 一个4x4矩阵,可作为列优先顺序数组进行索引。构造函数参数采用行优先顺序,以提高代码可读性。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Matrix4.html) | |||||
| ### example | |||||
| ```js | |||||
| let m = new DC.Matrix4() | |||||
| ``` | |||||
| ## DC.Material | |||||
| > | |||||
| 材质通过漫反射、镜面反射、法线、发光和透明度等组件的组合来定义表面外观。这些数值使用名为Fabric的JSON模式进行定义,该模式会在后台被解析并组装成GLSL着色器代码。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Material.html) | |||||
| ### example | |||||
| ```js | |||||
| let m = new DC.Material() | |||||
| let m_1 = new Cesium.Material({ | |||||
| fabric: { | |||||
| type: 'Color', | |||||
| uniforms: { | |||||
| color: new Cesium.Color(1.0, 1.0, 0.0, 1.0) | |||||
| } | |||||
| } | |||||
| }); | |||||
| ``` | |||||
| ## DC.SceneMode | |||||
| > 指示场景是以3D、2D还是2.5D哥伦布视图显示。[详细使用说明](http://resource.dvgis.cn/cesium-docs/global.html#SceneMode) | |||||
| ### example | |||||
| ```js | |||||
| const mode = DC.SceneMode.SCENE3D | |||||
| ``` | |||||
| ## DC.SkyBox | |||||
| > 天空盒。[详细使用说明](http://resource.dvgis.cn/cesium-docs/SkyBox.html) | |||||
| ### example | |||||
| ``` | |||||
| js | |||||
| scene.skyBox = new DC.SkyBox({ | |||||
| sources: { | |||||
| positiveX: 'skybox_px.png', | |||||
| negativeX: 'skybox_nx.png', | |||||
| positiveY: 'skybox_py.png', | |||||
| negativeY: 'skybox_ny.png', | |||||
| positiveZ: 'skybox_pz.png', | |||||
| negativeZ: 'skybox_nz.png', | |||||
| }, | |||||
| }) | |||||
| ``` | |||||
| ### creation | |||||
| - **_constructor(id)_** | |||||
| 构造函数 | |||||
| - 参数 | |||||
| - `{Object} options`:配置 | |||||
| - 返回值 `skyBox` | |||||
| ```js | |||||
| //options(属性可选) | |||||
| const options = { | |||||
| "sources": {},// 六个面的贴图 | |||||
| "show": true//显示 | |||||
| } | |||||
| ``` | |||||
| ### properties | |||||
| - `{Object} sources`:六个面的贴图 | |||||
| - `{Boolean} show`:显示 | |||||
| ## DC.Color | |||||
| > 颜色类。[详细使用说明](http://resource.dvgis.cn/cesium-docs/Color.html) | |||||
| ### example | |||||
| ```js | |||||
| let red = DC.Color.RED | |||||
| ``` | |||||
| ## DC.TilesetStyle | |||||
| > tileset 样式,用于设置 3d-tiles | |||||
| > 的样式,Cesium3DTileStyle重命名。 [详细使用说明](http://resource.dvgis.cn/cesium-docs/Cesium3DTileStyle.html) | |||||
| ### example | |||||
| ```js | |||||
| let style = new DC.TilesetStyle() | |||||
| style.color = { | |||||
| conditions: [ | |||||
| ['${floor} >= 5', 'rgb(198, 106, 11)'], | |||||
| ['true', 'rgb(127, 59, 8)'], | |||||
| ], | |||||
| } | |||||
| ``` | |||||
| ## DC.JulianDate | |||||
| > 朱莉安日历。[详细参考](http://resource.dvgis.cn/cesium-docs/JulianDate.html) | |||||
| ```js | |||||
| let date = DC.JulianDate.now() | |||||
| ``` | |||||
| ### static methods | |||||
| - **_now()_** | |||||
| 当前朱莉安时间 | |||||
| - 返回值 `date` | |||||
| - **_fromDate(date)_** | |||||
| 通过 Js 时间创建朱莉安时间 | |||||
| - 参数 | |||||
| - `{Date} date`:Js 时间 | |||||
| - 返回值 `date` | |||||
| ## DC.Rectangle | |||||
| > 矩形相关函数,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Rectangle.html) | |||||
| ### example | |||||
| ```js | |||||
| let r = DC.Rectangle.fromDegrees(10, 20, 12, 31) | |||||
| ``` | |||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Polygon](#dc-polygon) | |||||
| - `{Object} style`:样式,[详细使用说明](#dc-polygon) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ## DC.DoubleArrow | ## DC.DoubleArrow | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Polygon](#dc-polygon) | |||||
| - `{Object} style`:样式,[详细使用说明](#dc-polygon) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ## DC.FineArrow | ## DC.FineArrow | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Polygon](#dc-polygon) | |||||
| - `{Object} style`:样式,[详细使用说明](#dc-polygon) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ## DC.GatheringPlace | ## DC.GatheringPlace | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Polygon](#dc-polygon) | |||||
| - `{Object} style`:样式,[详细使用说明](#dc-polygon) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ## DC.TailedAttackArrow | ## DC.TailedAttackArrow | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Polygon](#dc-polygon) | |||||
| - `{Object} style`:样式,[详细使用说明](#dc-polygon) | |||||
| - 返回值 `this` | - 返回值 `this` | 
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PointGraphics](http://resource.dvgis.cn/cesium-docs/PointGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PointGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Billboard](http://resource.dvgis.cn/cesium-docs/Billboard.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Billboard.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Billboard](http://resource.dvgis.cn/cesium-docs/Billboard.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Billboard.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Label](http://resource.dvgis.cn/cesium-docs/Label.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Label.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Label](http://resource.dvgis.cn/cesium-docs/Label.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Label.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Polyline](http://resource.dvgis.cn/cesium-docs/Polyline.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Polyline.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[Model](http://resource.dvgis.cn/cesium-docs/Model.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Model.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PolygonGraphics](http://resource.dvgis.cn/cesium-docs/PolygonGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PolygonGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | 
| > 覆盖物基类 | > 覆盖物基类 | ||||
| :::warning | :::warning | ||||
| 该类无需实例化,既视实例化后也无法使用 | |||||
| 该类作为一个基类,不建议实例化使用 | |||||
| ::: | ::: | ||||
| ### properties | ### properties | ||||
| - 参数 | - 参数 | ||||
| - `{String} text`:文本 | - `{String} text`:文本 | ||||
| - `{String} textStyle`:文本样式,详情参考:[DC.Label](#dc-label) | |||||
| - `{String} textStyle`:文本样式,[详细使用说明](#dc-label) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| :::warning | :::warning | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PointGraphics](http://resource.dvgis.cn/cesium-docs/PointGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PointGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PolylineGraphics](http://resource.dvgis.cn/cesium-docs/PolylineGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PolylineGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PolygonGraphics](http://resource.dvgis.cn/cesium-docs/PolygonGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PolygonGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[BillboardGraphics](http://resource.dvgis.cn/cesium-docs/BillboardGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/BillboardGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[LabelGraphics](http://resource.dvgis.cn/cesium-docs/LabelGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/LabelGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[EllipseGraphics](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[RectangleGraphics](http://resource.dvgis.cn/cesium-docs/RectangleGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/RectangleGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[WallGraphics](http://resource.dvgis.cn/cesium-docs/WallGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/WallGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[ModelGraphics](http://resource.dvgis.cn/cesium-docs/ModelGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/ModelGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| - 参数 | - 参数 | ||||
| - `{String} url`:模型地址 | - `{String} url`:模型地址 | ||||
| - `{Object} options`:参数设置,详情参考:[Tileset](http://resource.dvgis.cn/cesium-docs/Cesium3DTileset.html) | |||||
| - `{Object} options`:参数设置,[详细使用说明](http://resource.dvgis.cn/cesium-docs/Cesium3DTileset.html) | |||||
| - 返回值 `tileset` | - 返回值 `tileset` | ||||
| ### properties | ### properties | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[TileStyle](https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling) | |||||
| - `{Object} style` :样式,[详细使用说明](https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[BoxGraphics](http://resource.dvgis.cn/cesium-docs/BoxGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/BoxGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[CorridorGraphics](http://resource.dvgis.cn/cesium-docs/CorridorGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/CorridorGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[CylinderGraphics](http://resource.dvgis.cn/cesium-docs/CylinderGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/CylinderGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[EllipseGraphics](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[EllipsoidGraphics](http://resource.dvgis.cn/cesium-docs/EllipsoidGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/EllipsoidGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PlaneGraphics](http://resource.dvgis.cn/cesium-docs/PlaneGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PlaneGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style` | |||||
| :样式,详情参考:[PolylineVolumeGraphics](http://resource.dvgis.cn/cesium-docs/PolylineVolumeGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PolylineVolumeGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[BillboardGraphics](http://resource.dvgis.cn/cesium-docs/BillboardGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/BillboardGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[ModelGraphics](http://resource.dvgis.cn/cesium-docs/ModelGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/ModelGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置垂直线 | 设置垂直线 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PolylineGraphics](http://resource.dvgis.cn/cesium-docs/PolylineGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PolylineGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| - **_setBottomCircle(radius,style,rotateAmount)_** | - **_setBottomCircle(radius,style,rotateAmount)_** | ||||
| - 参数 | - 参数 | ||||
| - `{Number} radius`:半径 | - `{Number} radius`:半径 | ||||
| - `{Object} style`:样式,详情参考:[EllipseGraphics](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - `{Number} rotateAmount`:旋转量 | - `{Number} rotateAmount`:旋转量 | ||||
| - 返回值 `this` | - 返回值 `this` | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[BillboardGraphics](http://resource.dvgis.cn/cesium-docs/BillboardGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/BillboardGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | ||||
| 设置垂直线 | 设置垂直线 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[PolylineGraphics](http://resource.dvgis.cn/cesium-docs/PolylineGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/PolylineGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| - **_setBottomCircle(radius,style,rotateAmount)_** | - **_setBottomCircle(radius,style,rotateAmount)_** | ||||
| - 参数 | - 参数 | ||||
| - `{Number} radius`:半径 | - `{Number} radius`:半径 | ||||
| - `{Object} style`:样式,详情参考:[EllipseGraphics](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/EllipseGraphics.html) | |||||
| - `{Number} rotateAmount`:旋转量 | - `{Number} rotateAmount`:旋转量 | ||||
| - 返回值 `this` | - 返回值 `this` | ||||
| 设置样式 | 设置样式 | ||||
| - 参数 | - 参数 | ||||
| - `{Object} style`:样式,详情参考:[LabelGraphics](http://resource.dvgis.cn/cesium-docs/LabelGraphics.html) | |||||
| - `{Object} style`:样式,[详细使用说明](http://resource.dvgis.cn/cesium-docs/LabelGraphics.html) | |||||
| - 返回值 `this` | - 返回值 `this` | ||||
| ```js | ```js | 
| } | } | ||||
| ``` | ``` | ||||
| ## CustomMercatorTilingScheme | |||||
| ## DC.CustomMercatorTilingScheme | |||||
| > 自定义墨卡托平铺方案 | > 自定义墨卡托平铺方案 | ||||
| 标绘 | 标绘 | ||||
| - 参数 | - 参数 | ||||
| - `{String} type`:覆盖物类型,参照 [OverlayType](./global#overlaytype) | |||||
| - `{String} type`:覆盖物类型,[详细使用说明](./global#overlaytype) | |||||
| - `{Function} callback`:标绘完成的回调函数,参数为覆盖物 | - `{Function} callback`:标绘完成的回调函数,参数为覆盖物 | ||||
| - `{Object} style`:标绘的覆盖物样式设置 | - `{Object} style`:标绘的覆盖物样式设置 | ||||
| - `{Boolean} clampToModel`:点位是否获取模型表面坐标 | - `{Boolean} clampToModel`:点位是否获取模型表面坐标 | 
| import { Cesium } from '../../libs' | import { Cesium } from '../../libs' | ||||
| // C | |||||
| export const CallbackProperty = Cesium.CallbackProperty | |||||
| export const Cartesian2 = Cesium.Cartesian2 | export const Cartesian2 = Cesium.Cartesian2 | ||||
| export const Cartesian3 = Cesium.Cartesian3 | export const Cartesian3 = Cesium.Cartesian3 | ||||
| export const Matrix3 = Cesium.Matrix3 | |||||
| export const Matrix4 = Cesium.Matrix4 | |||||
| export const Material = Cesium.Material | |||||
| export const SceneMode = Cesium.SceneMode | |||||
| export const SkyBox = Cesium.SkyBox | |||||
| export const Cartesian4 = Cesium.Cartesian4 | |||||
| export const Cartographic = Cesium.Cartographic | |||||
| export const ClassificationType = Cesium.ClassificationType | |||||
| export const ClippingPlane = Cesium.ClippingPlane | |||||
| export const ClippingPlaneCollection = Cesium.ClippingPlaneCollection | |||||
| export const ClippingPolygon = Cesium.ClippingPolygon | |||||
| export const ClippingPolygonCollection = Cesium.ClippingPolygonCollection | |||||
| export const Color = Cesium.Color | export const Color = Cesium.Color | ||||
| export const Rectangle = Cesium.Rectangle | |||||
| export const ShadowMode = Cesium.ShadowMode | |||||
| export const JulianDate = Cesium.JulianDate | |||||
| export const ColorMaterialProperty = Cesium.ColorMaterialProperty | |||||
| export const createElevationBandMaterial = Cesium.createElevationBandMaterial | |||||
| export const createGooglePhotorealistic3DTileset = | |||||
| Cesium.createGooglePhotorealistic3DTileset | |||||
| export const CustomShader = Cesium.CustomShader | |||||
| export const CustomShaderMode = Cesium.CustomShaderMode | |||||
| export const CustomShaderTranslucencyMode = Cesium.CustomShaderTranslucencyMode | |||||
| // E | |||||
| export const Ellipsoid = Cesium.Ellipsoid | |||||
| // G | |||||
| export const GeographicTilingScheme = Cesium.GeographicTilingScheme | |||||
| // H | |||||
| export const HeightReference = Cesium.HeightReference | export const HeightReference = Cesium.HeightReference | ||||
| export const HorizontalOrigin = Cesium.HorizontalOrigin | export const HorizontalOrigin = Cesium.HorizontalOrigin | ||||
| export const VerticalOrigin = Cesium.VerticalOrigin | |||||
| export const CallbackProperty = Cesium.CallbackProperty | |||||
| export const ClassificationType = Cesium.ClassificationType | |||||
| export const TilesetStyle = Cesium.Cesium3DTileStyle | |||||
| export const GeographicTilingScheme = Cesium.GeographicTilingScheme | |||||
| export const WebMercatorTilingScheme = Cesium.WebMercatorTilingScheme | |||||
| export const ColorMaterialProperty = Cesium.ColorMaterialProperty | |||||
| // I | |||||
| export const ImageMaterialProperty = Cesium.ImageMaterialProperty | export const ImageMaterialProperty = Cesium.ImageMaterialProperty | ||||
| // J | |||||
| export const JulianDate = Cesium.JulianDate | |||||
| // M | |||||
| export const Matrix2 = Cesium.Matrix2 | |||||
| export const Matrix3 = Cesium.Matrix3 | |||||
| export const Matrix4 = Cesium.Matrix4 | |||||
| export const Material = Cesium.Material | |||||
| export const ModelAnimationLoop = Cesium.ModelAnimationLoop | |||||
| // P | |||||
| export const PolylineArrowMaterialProperty = | |||||
| Cesium.PolylineArrowMaterialProperty | |||||
| export const PolylineDashMaterialProperty = Cesium.PolylineDashMaterialProperty | export const PolylineDashMaterialProperty = Cesium.PolylineDashMaterialProperty | ||||
| export const PolylineGlowMaterialProperty = Cesium.PolylineGlowMaterialProperty | export const PolylineGlowMaterialProperty = Cesium.PolylineGlowMaterialProperty | ||||
| export const PolylineOutlineMaterialProperty = | export const PolylineOutlineMaterialProperty = | ||||
| Cesium.PolylineOutlineMaterialProperty | Cesium.PolylineOutlineMaterialProperty | ||||
| export const PolylineArrowMaterialProperty = | |||||
| Cesium.PolylineArrowMaterialProperty | |||||
| export const writeTextToCanvas = Cesium.writeTextToCanvas | |||||
| export const CustomShaderMode = Cesium.CustomShaderMode | |||||
| export const CustomShaderTranslucencyMode = Cesium.CustomShaderTranslucencyMode | |||||
| export const CustomShader = Cesium.CustomShader | |||||
| export const UniformType = Cesium.UniformType | |||||
| export const Ellipsoid = Cesium.Ellipsoid | |||||
| // R | |||||
| export const Rectangle = Cesium.Rectangle | |||||
| export const Resource = Cesium.Resource | export const Resource = Cesium.Resource | ||||
| export const createGooglePhotorealistic3DTileset = | |||||
| Cesium.createGooglePhotorealistic3DTileset | |||||
| export const createElevationBandMaterial = Cesium.createElevationBandMaterial | |||||
| export const ModelAnimationLoop = Cesium.ModelAnimationLoop | |||||
| export const ClippingPlane = Cesium.ClippingPlane | |||||
| export const ClippingPlaneCollection = Cesium.ClippingPlaneCollection | |||||
| export const ClippingPolygon = Cesium.ClippingPolygon | |||||
| export const ClippingPolygonCollection = Cesium.ClippingPolygonCollection | |||||
| // S | |||||
| export const SceneMode = Cesium.SceneMode | |||||
| export const SkyBox = Cesium.SkyBox | |||||
| export const ShadowMode = Cesium.ShadowMode | |||||
| // T | |||||
| export const TilesetStyle = Cesium.Cesium3DTileStyle | |||||
| // U | |||||
| export const UniformType = Cesium.UniformType | |||||
| // V | |||||
| export const VerticalOrigin = Cesium.VerticalOrigin | |||||
| // W | |||||
| export const WebMercatorTilingScheme = Cesium.WebMercatorTilingScheme | |||||
| export const writeTextToCanvas = Cesium.writeTextToCanvas |