UNPKG

dy3dmap

Version:

2,162 lines (2,136 loc) 1.91 MB
/** * Mars3D三维可视化平台 mars3d * * 版本信息:v3.7.8 * 编译日期:2024-03-25 20:24:46 * 版权所有:Copyright by 火星科技 http://mars3d.cn * 使用单位:免费公开版 ,2024-01-15 */ import * as Cesium from "mars3d-cesium" export { Cesium } declare const version: string declare const update: string declare const name: string declare const proj4: any declare const provider: any /** * 国内偏移坐标系 枚举 */ declare enum ChinaCRS { /** * 标准无偏坐标系 */ WGS84 = "WGS84", /** * 国测局(GCJ02)偏移坐标系 */ GCJ02 = "GCJ02", /** * 百度(BD09) 偏移坐标系 */ BAIDU = "BD09" } /** * 裁剪模型类型 */ declare enum ClipType { /** * z水平面, 切底部 */ Z = 1, /** * z水平面,切顶部 */ ZR = 2, /** * x垂直面,切西向 */ X = 3, /** * x垂直面,切东向 */ XR = 4, /** * y垂直面, 切南向 */ Y = 5, /** * y垂直面,切北向 */ YR = 6 } /** * 控件类型 */ declare enum ControlType { clockAnimate, compass, distanceLegend, locationBar, mapSplit, mouseDownView, overviewMap, zoom } /** * 坐标系 枚举 */ declare enum CRS { /** * Web墨卡托投影坐标系 */ EPSG3857 = "EPSG:3857", /** * WGS84地理坐标系 */ EPSG4326 = "EPSG:4326", /** * 中国大地2000 (CGCS2000)地理坐标系 */ EPSG4490 = "EPSG:4490", /** * CGCS2000 Gauss-Kruger Zone 平面投影,3度分带,横坐标前加带号。 * 范围:EPSG:4513 到 EPSG:4533 */ CGCS2000_GK_Zone_3 = "CGCS2000_GK_Zone_3", /** * CGCS2000 Gauss-Kruger Zone 平面投影,6度分带,横坐标前加带号。 * 范围:EPSG:4491 到 EPSG:4501 */ CGCS2000_GK_Zone_6 = "CGCS2000_GK_Zone_6", /** * CGCS2000 Gauss-Kruger CM 平面投影,3度分带,横坐标前不加带号。 * 范围:EPSG:4534 到 EPSG:4554 */ CGCS2000_GK_CM_3 = "CGCS2000_GK_CM_3", /** * CGCS2000 Gauss-Kruger CM 平面投影,6度分带,横坐标前不加带号。 * 范围:EPSG:4502 到 EPSG:4512 */ CGCS2000_GK_CM_6 = "CGCS2000_GK_CM_6" } /** * 矢量对象编辑时 拖拽点类型 */ declare enum EditPointType { /** * 位置控制 */ Control = 1, /** * 整体平移(如线面) */ MoveAll = 2, /** * 辅助增加新点 */ AddMidPoint = 3, /** * 上下移动高度 */ MoveHeight = 4, /** * 辅助修改属性(如半径) */ EditAttr = 5, /** * 旋转角度修改 */ EditRotation = 6 } /** * 特效类型 */ declare enum EffectType { blackAndWhite, bloom, brightness, depthOfField, fog, inverted, mosaic, nightVision, outline, rain, snow, snowCover, colorCorrection } /** * 事件类型 枚举(所有事件统一的入口) */ declare enum EventType { /** * 添加对象(本身) */ add = "add", /** * 移除对象(本身) */ remove = "remove", /** * 对象中添加了一项内容 */ addItem = "addItem", /** * 对象中移除了一项内容 */ removeItem = "removeItem", /** * 添加矢量数据时[图层上监听时使用] */ addGraphic = "addGraphic", /** * 移除矢量数据时[图层上监听时使用] */ removeGraphic = "removeGraphic", /** * 添加图层[map上监听时使用] */ addLayer = "addLayer", /** * 移除图层[map上监听时使用] */ removeLayer = "removeLayer", /** * 底图变化了,在 map.basemap = xx 时触发 */ changeBasemap = "changeBasemap", /** * 地图上添加控件 */ addControl = "addControl", /** * 从地图上移除控件 */ removeControl = "removeControl", /** * 更新了控件(比如show变化) */ updateControl = "updateControl", /** * 地图上添加Effect特效 */ addEffect = "addEffect", /** * 从地图上移除Effect特效 */ removeEffect = "removeEffect", /** * 更新了对象 */ update = "update", /** * 更新了坐标位置 */ updatePosition = "updatePosition", /** * 更新了style对象 */ updateStyle = "updateStyle", /** * 更新了attr对象 */ updateAttr = "updateAttr", /** * 显示了对象 */ show = "show", /** * 隐藏了对象 */ hide = "hide", /** * 开始 */ start = "start", /** * 变化了 */ change = "change", /** * 多个数据异步分析时,完成其中一个时的回调事件 */ endItem = "endItem", /** * 多个数据异步分析时,完成所有的回调事件 */ end = "end", /** * 完成 */ stop = "stop", /** * 地图zoomIn/zoomOut方法缩放事件 */ zoom = "zoom", /** * 完成加载,但未做任何其他处理前 */ loadBefore = "loadBefore", /** * 完成加载,执行所有内部处理后 */ load = "load", /** * 出错了 */ error = "error", /** * 完成加载配置信息 */ loadConfig = "loadConfig", /** * popup弹窗打开后 */ popupOpen = "popupOpen", /** * popup弹窗关闭 */ popupClose = "popupClose", /** * popup的渲染更新事件 */ popupRender = "popupRender", /** * tooltip弹窗打开后 */ tooltipOpen = "tooltipOpen", /** * tooltip弹窗关闭 */ tooltipClose = "tooltipClose", /** * tooltip的渲染更新事件 */ tooltipRender = "tooltipRender", /** * 右键菜单 打开后 */ contextMenuOpen = "contextMenuOpen", /** * 右键菜单 关闭 */ contextMenuClose = "contextMenuClose", /** * 右键菜单 单击某一项后 */ contextMenuClick = "contextMenuClick", /** * highlight高亮后 */ highlightOpen = "highlightOpen", /** * highlight关闭后 */ highlightClose = "highlightClose", /** * 左键单击 鼠标事件 */ click = "click", /** * 左键单击到矢量或模型数据时 鼠标事件 */ clickGraphic = "clickGraphic", /** * 左键单击到wms或arcgis瓦片服务的对应矢量数据时 */ clickTileGraphic = "clickTileGraphic", /** * 左键单击地图空白(未单击到矢量或模型数据)时 鼠标事件 */ clickMap = "clickMap", /** * 左键双击 鼠标事件 */ dblClick = "dblClick", /** * 左键鼠标按下 鼠标事件 */ leftDown = "leftDown", /** * 左键鼠标按下后释放 鼠标事件 */ leftUp = "leftUp", /** * 鼠标移动 鼠标事件 */ mouseMove = "mouseMove", /** * 鼠标移动(拾取目标,并延迟处理) 鼠标事件 */ mouseMoveTarget = "mouseMoveTarget", /** * 鼠标滚轮滚动 鼠标事件 */ wheel = "wheel", /** * 右键单击 鼠标事件 */ rightClick = "rightClick", /** * 右键鼠标按下 鼠标事件 */ rightDown = "rightDown", /** * 右键鼠标按下后释放 鼠标事件 */ rightUp = "rightUp", /** * 中键单击 鼠标事件 */ middleClick = "middleClick", /** * 中键鼠标按下 鼠标事件 */ middleDown = "middleDown", /** * 中键鼠标按下后释放 鼠标事件 */ middleUp = "middleUp", /** * 在触摸屏上两指缩放开始 鼠标事件 */ pinchStart = "pinchStart", /** * 在触摸屏上两指缩放结束 鼠标事件 */ pinchEnd = "pinchEnd", /** * 在触摸屏上两指移动 鼠标事件 */ pinchMove = "pinchMove", /** * 鼠标按下 [左中右3键都触发] 鼠标事件 */ mouseDown = "mouseDown", /** * 鼠标按下后释放 [左中右3键都触发] 鼠标事件 */ mouseUp = "mouseUp", /** * 鼠标移入 鼠标事件 */ mouseOver = "mouseOver", /** * 鼠标移出 鼠标事件 */ mouseOut = "mouseOut", /** * 按键按下 键盘事件 */ keydown = "keydown", /** * 按键按下后释放 键盘事件 */ keyup = "keyup", /** * 开始绘制 标绘事件 */ drawStart = "drawStart", /** * 正在移动鼠标中,绘制过程中鼠标移动了点 标绘事件 */ drawMouseMove = "drawMouseMove", /** * 绘制过程中增加了点 标绘事件 */ drawAddPoint = "drawAddPoint", /** * 绘制过程中删除了最后一个点 标绘事件 */ drawRemovePoint = "drawRemovePoint", /** * 创建完成 标绘事件 */ drawCreated = "drawCreated", /** * 开始编辑 标绘事件 */ editStart = "editStart", /** * 移动鼠标按下左键(LEFT_DOWN)标绘事件 */ editMouseDown = "editMouseDown", /** * 正在移动鼠标中,正在编辑拖拽修改点中(MOUSE_MOVE) 标绘事件 */ editMouseMove = "editMouseMove", /** * 编辑修改了点(LEFT_UP)标绘事件 */ editMovePoint = "editMovePoint", /** * 编辑新增了点 标绘事件 */ editAddPoint = "editAddPoint", /** * 编辑删除了点 标绘事件 */ editRemovePoint = "editRemovePoint", /** * 图上编辑修改了相关style属性 标绘事件 */ editStyle = "editStyle", /** * 停止编辑 标绘事件 */ editStop = "editStop", /** * 标绘事件 */ move = "move", /** * 3dtiles模型,模型瓦片初始化完成 * 该回调只执行一次 */ initialTilesLoaded = "initialTilesLoaded", /** * 3dtiles模型,当前批次模型加载完成 * 该回调会执行多次,视角变化后重新加载一次完成后都会回调 */ allTilesLoaded = "allTilesLoaded", /** * 栅格瓦片图层,添加单个瓦片,开始加载瓦片(请求前) */ addTile = "addTile", /** * 栅格瓦片图层,添加单个瓦片 加载瓦片完成 */ addTileSuccess = "addTileSuccess", /** * 栅格瓦片图层,添加单个瓦片 加载瓦片出错了 */ addTileError = "addTileError", /** * 栅格瓦片图层,移除单个瓦片 */ removeTile = "removeTile", /** * 相机开启移动前 场景事件 */ cameraMoveStart = "cameraMoveStart", /** * 相机移动完成后 场景事件 */ cameraMoveEnd = "cameraMoveEnd", /** * 相机位置完成 场景事件 */ cameraChanged = "cameraChanged", /** * 场景更新前 场景事件 */ preUpdate = "preUpdate", /** * 场景更新后 场景事件 */ postUpdate = "postUpdate", /** * 场景渲染前 场景事件 */ preRender = "preRender", /** * 场景渲染后 场景事件 */ postRender = "postRender", /** * 场景渲染失败(需要刷新页面) */ renderError = "renderError", /** * 场景模式(2D/3D/哥伦布)变换前 场景事件 */ morphStart = "morphStart", /** * 完成场景模式(2D/3D/哥伦布)变换 场景事件 */ morphComplete = "morphComplete", /** * 时钟跳动 场景事件 */ clockTick = "clockTick", /** * 时钟结束(当达到clock.stopTime时) 场景事件 */ clockStop = "clockStop", /** * 地形变化 事件 */ terrainChange = "terrainChange", /** * 地形初始化加载layer.json失败 事件 */ terrainLoadError = "terrainLoadError", /** * 地形初始化加载layer.json完成 事件 */ terrainLoadSuccess = "terrainLoadSuccess", /** * 地图中瓦片加载进度变化 事件 */ tileLoadProgress = "tileLoadProgress" } /** * 矢量数据类型 */ declare enum GraphicType { label, labelP, point, pointP, billboard, divBillboard, fontBillboard, billboardP, flatBillboard, model, modelP, plane, planeP, doubleSidedPlane, box, boxP, circle, circleP, ellipse, cylinder, cylinderP, coneTrack, coneTrackP, ellipsoid, ellipsoidP, particleSystem, lightCone, tetrahedron, frustum, arcFrustum, rectangularSensor, camberRadar, conicSensor, rectSensor, satelliteSensor, satellite, polyline, curve, brushLine, polylineP, polylineC, polylineVolume, polylineVolumeP, path, route, fixedRoute, corridor, corridorP, road, dynamicRiver, wall, wallP, scrollWall, diffuseWall, thickWall, polygon, polygonP, polygonC, water, waterC, reflectionWater, pit, pitEntity, video2D, video3D, viewShed, rectangle, rectangleP, div, divLightPoint, divUpLabel, divBoderLabel, popup, tooltip, distanceMeasure, distanceSurfaceMeasure, sectionMeasure, areaMeasure, areaSurfaceMeasure, volumeMeasure, volumeDepthMeasure, heightMeasure, heightTriangleMeasure, angleMeasure, attackArrow, attackArrowPW, attackArrowYW, doubleArrow, fineArrow, fineArrowYW, straightArrow, lune, sector, regular, isosTriangle, closeVurve, gatheringPlace, group } /** * SDK内部使用的一些图标配置,方便外部覆盖(建议Map构造前覆盖)。 * 如:默认右键菜单 */ declare enum Icon { /** * 删除 */ Delete = "fa fa-trash-o", /** * 查看此处坐标 */ Coordinates = "fa fa-info-circle", /** * 查看当前视角 */ CameraInfo = "fa fa-camera-retro", /** * 视角切换 */ Camera = "fa fa-street-view", /** * 禁止进入地下 */ UndergroundNo = "fa fa-ban", /** * 允许进入地下 */ UndergroundYes = "fa fa-sort-amount-desc", /** * 绕此处环绕飞行 */ RotatePointStart = "fa fa-retweet", /** * 关闭环绕飞行 */ RotatePointStop = "fa fa-remove", /** * 移动到此处 */ FlyToPoint = "fa fa-send-o", /** * 第一视角站到此处 */ FirstPerspective = "fa fa-male", /** * 开启键盘漫游 */ KeyboardRoamYes = "fa fa-keyboard-o", /** * 关闭键盘漫游 */ KeyboardRoamNo = "fa fa-keyboard-o", /** * 跟踪锁定 */ TrackedEntityYes = "fa fa-lock", /** * 取消锁定 */ TrackedEntityNo = "fa fa-unlock-alt", /** * 三维模型 */ Tileset = "fa fa-building-o", /** * 显示模型三角网 */ TilesetWireframeYes = "fa fa-connectdevelop", /** * 关闭模型三角网 */ TilesetWireframeNo = "fa fa-connectdevelop", /** * 显示模型包围盒 */ TilesetBoundingVolumeYes = "fa fa-codepen", /** * 关闭模型包围盒 */ TilesetBoundingVolumeNo = "fa fa-codepen", /** * 地形服务 */ Terrain = "fa fa-globe", /** * 开启地形 */ TerrainYes = "fa fa-medium", /** * 关闭地形 */ TerrainNo = "fa fa-medium", /** * 显示地形三角网 */ TerrainWireframeYes = "fa fa-connectdevelop", /** * 关闭地形三角网 */ TerrainWireframeNo = "fa fa-connectdevelop", /** * 图上量算 */ Measure = "fa fa-share-alt", /** * 距离 */ MeasureDistance = "fa fa-minus", /** * 面积 */ MeasureArea = "fa fa-medium", /** * 高度差 */ MeasureHeight = "fa fa-sort-amount-asc", /** * 角度 */ MeasureAngle = "fa fa-road", /** * 图上标记 */ Draw = "fa fa-eyedropper", /** * 标记点 */ DrawPoint = "fa fa-map-marker", /** * 标记线 */ DrawPolyline = "fa fa-reorder", /** * 标记面 */ DrawPolygon = "fa fa-medium", /** * 标记圆 */ DrawCircle = "fa fa-genderless", /** * 标记矩形 */ DrawRectangle = "fa fa-retweet", /** * 允许编辑 */ DrawEditYes = "fa fa-pencil", /** * 禁止编辑 */ DrawEditNo = "fa fa-pencil-square", /** * 导出GeoJSON */ DrawDownJson = "fa fa-file-text-o", /** * 特效效果 */ Effect = "fa fa-rss", /** * 开启下雨 */ RainEffectYes = "fa fa-tint", /** * 关闭下雨 */ RainEffectNo = "fa fa-tint", /** * 开启下雪 */ SnowEffectYes = "fa fa-yelp", SnowEffectNo = "fa fa-yelp", /** * 开启雾天气 */ FogEffectYes = "fa fa-spinner", /** * 关闭雾天气 */ FogEffectNo = "fa fa-spinner", /** * 开启泛光 */ BloomEffectYes = "fa fa-bullseye", /** * 关闭泛光 */ BloomEffectNo = "fa fa-bullseye", /** * 开启亮度 */ BrightnessEffectYes = "fa fa-trello", /** * 关闭亮度 */ BrightnessEffectNo = "fa fa-trello", /** * 开启夜视 */ NightVisionEffectYes = "fa fa-dashboard", /** * 关闭夜视 */ NightVisionEffectNo = "fa fa-dashboard", /** * 开启黑白 */ BlackAndWhiteEffectYes = "fa fa-star-half-full", /** * 关闭黑白 */ BlackAndWhiteEffectNo = "fa fa-star-half-full", /** * 开启拾取高亮 */ OutlineEffectYes = "fa fa-ticket", /** * 关闭拾取高亮 */ OutlineEffectNo = "fa fa-ticket", /** * 场景设置 */ Scene = "fa fa-gear", /** * 开启深度监测 */ DepthTestYes = "fa fa-eye-slash", /** * 关闭深度监测 */ DepthTestNo = "fa fa-eye", /** * 显示星空背景 */ SkyBoxYes = "fa fa-moon-o", /** * 关闭星空背景 */ SkyBoxNo = "fa fa-moon-o", /** * 开启日照阴影 */ ShadowYes = "fa fa-sun-o", /** * 关闭日照阴影 */ ShadowNo = "fa fa-sun-o", /** * 开启大气渲染 */ SkyAtmosphereYes = "fa fa-soundcloud", /** * 关闭大气渲染 */ SkyAtmosphereNo = "fa fa-soundcloud", /** * 场景出图 */ ExpImage = "fa fa-download" } /** * 多语种文本配置, * @example * // 更新Lang单个值 * map.setLangText("_放大", "Zoom In") * * // 更新Lang多个值 * map.setLangText({ * _放大: "Zoom In", * _缩小: "Zoom Out", * //其他需要更新的文本 * }) * * // 获取Lang值 * const text = map.getLangText("_放大") */ declare enum Lang { /** * 标识语言的唯一标识 */ type = "cn", /** * Cesium内部 renderError时 错误弹窗 */ RenderingHasStopped = "WebGL\u53D1\u751F\u6E32\u67D3\u9519\u8BEF,\u6E32\u67D3\u5DF2\u7ECF\u505C\u6B62,\u8BF7\u5237\u65B0\u9875\u9762\u3002", /** * Cesium内部 渲染try catch异常时 错误弹窗 */ ErrorConstructingCesiumWidget = "WebGL\u53D1\u751F\u6E32\u67D3\u9519\u8BEF,\u6E32\u67D3\u5DF2\u7ECF\u505C\u6B62,\u8BF7\u5237\u65B0\u9875\u9762\u3002", /** * {@link Animation } 控件相关 */ Today = "\u4ECA\u5929", /** * {@link Animation } 控件相关 */ TodayRealTime = "\u4ECA\u5929\uFF08\u5B9E\u9645\u65F6\u95F4\uFF09", /** * {@link Animation } 控件相关 */ Pause = "\u6682\u505C", /** * {@link Animation } 控件相关 */ PlayReverse = "\u540E\u9000\u64AD\u653E", /** * {@link Animation } 控件相关 */ PlayForward = "\u524D\u8FDB\u64AD\u653E", /** * {@link Animation } 控件相关 */ CurrentTimeNotInRange = "\u5F53\u524D\u65F6\u95F4\u4E0D\u5728\u8303\u56F4\u5185", /** * {@link BaseLayerPicker } 控件相关 */ Imagery = "\u5F71\u50CF", /** * {@link BaseLayerPicker } 控件相关 */ CesiumIon = "\u5B98\u65B9ION", /** * {@link BaseLayerPicker } 控件相关 */ Other = "\u5176\u4ED6", /** * {@link BaseLayerPicker } 控件:地形服务 */ Terrain = "\u5730\u5F62\u670D\u52A1", /** * {@link BaseLayerPicker } 控件:无地形 */ EllipsoidTerrainProvider = "\u65E0\u5730\u5F62", /** * {@link BaseLayerPicker } 控件:无地形提示 */ EllipsoidTerrainProviderTooltip = "WGS84\u6807\u51C6\u692D\u7403\u4F53\uFF0C\u6CA1\u6709\u5730\u5F62\u6570\u636E", /** * {@link BaseLayerPicker } 控件:有地形 */ TerrainProvider = "\u6709\u5730\u5F62", /** * {@link BaseLayerPicker } 控件:有地形提示 */ TerrainProviderTooltip = "\u63D0\u4F9B\u7684\u9AD8\u7CBE\u5EA6\u7684DEM\u5730\u5F62\u670D\u52A1", /** * {@link FullscreenButton } 控件:全屏 */ FullScreen = "\u5168\u5C4F", /** * {@link FullscreenButton } 控件:退出全屏 */ ExitFullScreen = "\u9000\u51FA\u5168\u5C4F", /** * {@link FullscreenButton } 控件:全屏不可用 */ FullScreenUnavailable = "\u5168\u5C4F\u4E0D\u53EF\u7528", /** * {@link Geocoder } 控件:请输入关键字 */ EnterAnAddressOrLandmark = "\u8BF7\u8F93\u5165\u5173\u952E\u5B57...", /** * {@link Geocoder } 控件:查询中 */ Searching = "\u67E5\u8BE2\u4E2D...", /** * {@link HomeButton } 控件title */ ViewHome = "\u521D\u59CB\u89C6\u56FE", /** * {@link NavigationHelpButton } 控件title */ NavigationInstructions = "\u5E2E\u52A9", /** * {@link NavigationHelpButton } 控件内容相关 */ Mouse = "\u9F20\u6807\u64CD\u4F5C", /** * {@link NavigationHelpButton } 控件内容相关 */ Touch = "\u89E6\u6478\u624B\u52BF", /** * {@link NavigationHelpButton } 控件内容相关 */ PanView = "\u5E73\u79FB\u89C6\u56FE", /** * {@link NavigationHelpButton } 控件内容相关 */ LeftClickDrag = "\u9F20\u6807\u5DE6\u952E+\u62D6\u62FD", /** * {@link NavigationHelpButton } 控件内容相关 */ ZoomView = "\u7F29\u653E\u89C6\u56FE", /** * {@link NavigationHelpButton } 控件内容相关 */ RightClick = "\u53F3\u952E+\u62D6\u62FD\uFF0C\u6216\u8005", /** * {@link NavigationHelpButton } 控件内容相关 */ MouseWheelScroll = "\u4E2D\u952E\u6EDA\u52A8", /** * {@link NavigationHelpButton } 控件内容相关 */ RotateView = "\u65CB\u8F6C\u89C6\u56FE", /** * {@link NavigationHelpButton } 控件内容相关 */ MiddleClickDrag = "\u4E2D\u952E\u6309\u4E0B\u62D6\u62FD\uFF0C\u6216\u8005", /** * {@link NavigationHelpButton } 控件内容相关 */ CtrlAndClickDrag = "\u6309Ctrl\u952E \u540C\u65F6 \u5DE6/\u53F3\u952E\u62D6\u62FD", /** * {@link NavigationHelpButton } 控件内容相关 */ OneFingerDrag = "\u5355\u6307\u62D6\u52A8", /** * {@link NavigationHelpButton } 控件内容相关 */ TwoFingerPinch = "\u53CC\u6307\u5411\u5185\u6216\u5411\u5916\u6ED1\u52A8", /** * {@link NavigationHelpButton } 控件内容相关 */ TiltView = "\u503E\u659C\u89C6\u56FE", /** * {@link NavigationHelpButton } 控件内容相关 */ TwoFingerDragSameDirection = "\u53CC\u6307\u6309\u76F8\u540C\u65B9\u5411\u62D6\u52A8", /** * {@link NavigationHelpButton } 控件内容相关 */ TwoFingerDragOppositeDirection = "\u53CC\u6307\u6309\u76F8\u53CD\u65B9\u5411\u62D6\u52A8", /** * {@link ProjectionPicker } 控件:透视投影 */ PerspectiveProjection = "\u900F\u89C6\u6295\u5F71", /** * {@link ProjectionPicker } 控件:正射投影 */ OrthographicProjection = "\u6B63\u5C04\u6295\u5F71", /** * {@link SceneModePicker } 控件:二维视图 */ _2D = "\u4E8C\u7EF4\u89C6\u56FE", /** * {@link SceneModePicker } 控件:三维视图 */ _3D = "\u4E09\u7EF4\u89C6\u56FE", /** * {@link SceneModePicker } 控件:哥伦布2.5D视图 */ ColumbusView = "\u54E5\u4F26\u5E032.5D\u89C6\u56FE", /** * {@link VRButton } 控件:进入VR模式 */ EnterVRMode = "\u8FDB\u5165VR\u6A21\u5F0F", /** * {@link VRButton } 控件:退出VR模式 */ ExitVRMode = "\u9000\u51FAVR\u6A21\u5F0F", /** * {@link VRButton } 控件:VR模式不可用 */ VRModeIsUnavailable = "VR\u6A21\u5F0F\u4E0D\u53EF\u7528", /** * {@link Zoom } 控件:放大 */ "_放大" = "\u653E\u5927", /** * {@link Zoom } 控件:缩小 */ "_缩小" = "\u7F29\u5C0F", /** * {@link ClockAnimate } 控件:暂停 */ "_暂停" = "\u6682\u505C", /** * {@link ClockAnimate } 控件:继续 */ "_继续" = "\u7EE7\u7EED", /** * {@link Compass } 控件相关 */ "_导航球" = "\u5BFC\u822A\u7403", /** * {@link Compass } 控件相关 */ "_拖拽调整俯仰角" = "\u62D6\u62FD\u8C03\u6574\u4FEF\u4EF0\u89D2", /** * {@link Compass } 控件相关 */ "_拖拽调整四周方向角" = "\u62D6\u62FD\u8C03\u6574\u56DB\u5468\u65B9\u5411\u89D2\uFF0C\u53CC\u51FB\u56DE\u6B63\u5317", /** * 内置右键菜单相关 */ "_查看此处坐标" = "\u67E5\u770B\u6B64\u5904\u5750\u6807", "_位置信息" = "\u4F4D\u7F6E\u4FE1\u606F", "_经度" = "\u7ECF\u5EA6", "_纬度" = "\u7EAC\u5EA6", "_海拔" = "\u9AD8\u7A0B", "_横坐标" = "\u6A2A\u5750\u6807", "_纵坐标" = "\u7EB5\u5750\u6807", "_查看当前视角" = "\u67E5\u770B\u5F53\u524D\u89C6\u89D2", "_当前视角信息" = "\u5F53\u524D\u89C6\u89D2\u4FE1\u606F", "_视角切换" = "\u89C6\u89D2\u5207\u6362", "_禁止进入地下" = "\u7981\u6B62\u8FDB\u5165\u5730\u4E0B", "_允许进入地下" = "\u5141\u8BB8\u8FDB\u5165\u5730\u4E0B", "_绕此处环绕飞行" = "\u7ED5\u6B64\u5904\u73AF\u7ED5\u98DE\u884C", "_关闭环绕飞行" = "\u5173\u95ED\u73AF\u7ED5\u98DE\u884C", "_移动到此处" = "\u79FB\u52A8\u5230\u6B64\u5904", "_第一视角站到此处" = "\u7B2C\u4E00\u89C6\u89D2\u7AD9\u5230\u6B64\u5904", "_开启键盘漫游" = "\u5F00\u542F\u952E\u76D8\u6F2B\u6E38", "_关闭键盘漫游" = "\u5173\u95ED\u952E\u76D8\u6F2B\u6E38", "_跟踪锁定" = "\u8DDF\u8E2A\u9501\u5B9A", "_取消锁定" = "\u53D6\u6D88\u9501\u5B9A", "_三维模型" = "\u4E09\u7EF4\u6A21\u578B", "_显示三角网" = "\u663E\u793A\u4E09\u89D2\u7F51", "_关闭三角网" = "\u5173\u95ED\u4E09\u89D2\u7F51", "_显示包围盒" = "\u663E\u793A\u5305\u56F4\u76D2", "_关闭包围盒" = "\u5173\u95ED\u5305\u56F4\u76D2", "_地形服务" = "\u5730\u5F62\u670D\u52A1", "_开启地形" = "\u5F00\u542F\u5730\u5F62", "_关闭地形" = "\u5173\u95ED\u5730\u5F62", "_图上标记" = "\u56FE\u4E0A\u6807\u8BB0", "_标记点" = "\u6807\u8BB0\u70B9", "_标记线" = "\u6807\u8BB0\u7EBF", "_标记面" = "\u6807\u8BB0\u9762", "_标记圆" = "\u6807\u8BB0\u5706", "_标记矩形" = "\u6807\u8BB0\u77E9\u5F62", "_允许编辑" = "\u5141\u8BB8\u7F16\u8F91", "_禁止编辑" = "\u7981\u6B62\u7F16\u8F91", "_导出GeoJSON" = "\u5BFC\u51FAGeoJSON", "_清除所有标记" = "\u6E05\u9664\u6240\u6709\u6807\u8BB0", "_特效效果" = "\u7279\u6548\u6548\u679C", "_开启下雨" = "\u5F00\u542F\u4E0B\u96E8", "_关闭下雨" = "\u5173\u95ED\u4E0B\u96E8", "_开启下雪" = "\u5F00\u542F\u4E0B\u96EA", "_关闭下雪" = "\u5173\u95ED\u4E0B\u96EA", "_开启雾天气" = "\u5F00\u542F\u96FE\u5929\u6C14", "_关闭雾天气" = "\u5173\u95ED\u96FE\u5929\u6C14", "_开启泛光" = "\u5F00\u542F\u6CDB\u5149", "_关闭泛光" = "\u5173\u95ED\u6CDB\u5149", "_开启亮度" = "\u5F00\u542F\u4EAE\u5EA6", "_关闭亮度" = "\u5173\u95ED\u4EAE\u5EA6", "_开启夜视" = "\u5F00\u542F\u591C\u89C6", "_关闭夜视" = "\u5173\u95ED\u591C\u89C6", "_开启黑白" = "\u5F00\u542F\u9ED1\u767D", "_关闭黑白" = "\u5173\u95ED\u9ED1\u767D", "_开启拾取高亮" = "\u5F00\u542F\u62FE\u53D6\u9AD8\u4EAE", "_关闭拾取高亮" = "\u5173\u95ED\u62FE\u53D6\u9AD8\u4EAE", "_场景设置" = "\u573A\u666F\u8BBE\u7F6E", "_开启深度监测" = "\u5F00\u542F\u6DF1\u5EA6\u76D1\u6D4B", "_关闭深度监测" = "\u5173\u95ED\u6DF1\u5EA6\u76D1\u6D4B", "_显示星空背景" = "\u663E\u793A\u661F\u7A7A\u80CC\u666F", "_关闭星空背景" = "\u5173\u95ED\u661F\u7A7A\u80CC\u666F", "_开启日照阴影" = "\u5F00\u542F\u65E5\u7167\u9634\u5F71", "_关闭日照阴影" = "\u5173\u95ED\u65E5\u7167\u9634\u5F71", "_开启大气渲染" = "\u5F00\u542F\u5927\u6C14\u6E32\u67D3", "_关闭大气渲染" = "\u5173\u95ED\u5927\u6C14\u6E32\u67D3", "_场景出图" = "\u573A\u666F\u51FA\u56FE", "_图上量算" = "\u56FE\u4E0A\u91CF\u7B97", "_删除测量" = "\u5220\u9664\u6D4B\u91CF", /** * 图上量算 tooltip 相关 */ "_角度" = "\u89D2\u5EA6", "_距离" = "\u8DDD\u79BB", "_面积" = "\u9762\u79EF", "_总长" = "\u603B\u957F", "_起点" = "\u8D77\u70B9", "_高度差" = "\u9AD8\u5EA6\u5DEE", "_空间距离" = "\u7A7A\u95F4\u8DDD\u79BB", "_水平距离" = "\u6C34\u5E73\u8DDD\u79BB", "_正在计算体积" = "\u6B63\u5728\u8BA1\u7B97\u4F53\u79EF", "_填方体积" = "\u586B\u65B9\u4F53\u79EF", "_挖方体积" = "\u6316\u65B9\u4F53\u79EF", "_横切面积" = "\u6A2A\u5207\u9762\u79EF", "_面上" = "\u9762\u4E0A", "_面下" = "\u9762\u4E0B", "_米" = "\u7C73", "_公里" = "\u516C\u91CC", "_万米" = "\u4E07\u7C73", "_海里" = "\u6D77\u91CC", "_丈" = "\u4E08", "_平方米" = "\u5E73\u65B9\u7C73", "_平方公里" = "\u5E73\u65B9\u516C\u91CC", "_亩" = "\u4EA9", "_公顷" = "\u516C\u9877", "_立方米" = "\u65B9", "_万立方米" = "\u4E07\u65B9", "_秒" = "\u79D2", "_分钟" = "\u5206\u949F", "_小时" = "\u5C0F\u65F6", /** * 标绘 tooltip 相关 */ "_单击开始绘制" = "\u5355\u51FB\u5F00\u59CB\u7ED8\u5236", "_单击完成绘制" = "\u5355\u51FB\u5B8C\u6210\u7ED8\u5236", "_双击完成绘制" = "\u53CC\u51FB\u5B8C\u6210\u7ED8\u5236", "_单击增加点" = "\u5355\u51FB\u589E\u52A0\u70B9", "_右击删除点" = "\u53F3\u51FB\u5220\u9664\u70B9", "_单击后激活编辑" = "\u5355\u51FB\u540E\u6FC0\u6D3B\u7F16\u8F91", "_右击菜单删除" = "\u53F3\u51FB\u83DC\u5355\u5220\u9664", "_更多功能请右击" = "\u66F4\u591A\u529F\u80FD\u8BF7\u53F3\u51FB", "_停止编辑" = "\u505C\u6B62\u7F16\u8F91", "_删除该点" = "\u5220\u9664\u8BE5\u70B9", "_按轴平移" = "\u6309\u8F74\u5E73\u79FB", "_停止按轴平移" = "\u505C\u6B62\u6309\u8F74\u5E73\u79FB", "_按轴旋转" = "\u6309\u8F74\u65CB\u8F6C", "_停止按轴旋转" = "\u505C\u6B62\u6309\u8F74\u65CB\u8F6C", "_调整比例" = "\u8C03\u6574\u6BD4\u4F8B", "_停止调整比例" = "\u505C\u6B62\u8C03\u6574\u6BD4\u4F8B", "_释放后完成修改" = "\u91CA\u653E\u540E\u5B8C\u6210\u4FEE\u6539", "_该对象不允许编辑" = "\u8BE5\u5BF9\u8C61\u4E0D\u5141\u8BB8\u7F16\u8F91", "_拖动该点后" = "\u62D6\u52A8\u8BE5\u70B9\u540E", "_拖动对象后" = "\u62D6\u52A8\u5BF9\u8C61\u540E", "_修改位置" = "\u4FEE\u6539\u4F4D\u7F6E", "_整体平移" = "\u6574\u4F53\u5E73\u79FB", "_增加点" = "\u589E\u52A0\u70B9", "_修改高度" = "\u4FEE\u6539\u9AD8\u5EA6", "_修改半径" = "\u4FEE\u6539\u534A\u5F84", "_修改长度" = "\u4FEE\u6539\u957F\u5EA6(X\u65B9\u5411)", "_修改宽度" = "\u4FEE\u6539\u5BBD\u5EA6(Y\u65B9\u5411)", "_修改方向" = "\u4FEE\u6539\u65B9\u5411", "_修改缩放比例" = "\u4FEE\u6539\u7F29\u653E\u6BD4\u4F8B", "_无法删除不能少于最小点数" = "\u65E0\u6CD5\u5220\u9664\uFF0C\u70B9\u6570\u91CF\u4E0D\u80FD\u5C11\u4E8E", "_删除" = "\u5220\u9664", "_半径" = "\u534A\u5F84", /** * ModelEntity 标绘时的tooltip加载中提示 */ "_加载模型中" = "\u52A0\u8F7D\u6A21\u578B\u4E2D,\u8BF7\u7A0D\u7B49\u2026" } /** * 图层类型 */ declare enum LayerType { tdt, baidu, gaode, tencent, osm, google, bing, mapbox, ion, image, xyz, arcgis, arcgis_tile, arcgis_cache, wms, wmts, tms, gee, empty, tileinfo, grid, terrain, group, graphic, graphicGroup, geojson, busineData, lodGraphic, wfs, arcgis_wfs, arcgis_wfs_single, tileset, i3s, czmGeojson, kml, czml, graticule, gaodePOI, osmBuildings, tdt_dm, mapv, echarts, heat, canvasWind, wind } /** * 材质 类型枚举 * @example * //Entity矢量对象 * let graphic = new mars3d.graphic.PolylineEntity({ * positions: [ * [117.169646, 31.769171], * [117.194579, 31.806466], * ], * style: { * width: 5, * material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlow, { * color: '#00ff00', * image: 'img/textures/line-pulse.png', * speed: 5, * }), * }, * }) * graphicLayer.addGraphic(graphic) * * //Primitive矢量对象 * let primitive = new mars3d.graphic.PolylinePrimitive({ * positions: [ * [117.348938, 31.805369, 7.63], * [117.429496, 31.786715, 8.41], * ], * style: { * width: 5, * material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, { * color: '#1a9850', * image: 'img/textures/line-arrow.png', * speed: 10, * }), * }, * }) * graphicLayer.addGraphic(primitive) */ declare namespace MaterialType { /** * 通用:纯色颜色 ,也是默认的材质 * @property [color = Cesium.Color.WHITE] - 颜色 */ const Color: string; /** * 线:虚线(等长度虚线间隔) * @property [color = Cesium.Color.WHITE] - 颜色 * @property [gapColor = Cesium.Color.TRANSPARENT] - 虚线间隔颜色,默认为透明 * @property [dashLength = 16.0] - 虚线间隔长度,以像素为单位 * @property [dashPattern = 255.0] - 指定的16位模式 */ const PolylineDash: string; /** * 线:点划线虚线 * @property [color = Cesium.Color.WHITE] - 颜色 * @property [gapColor = Cesium.Color.TRANSPARENT] - 虚线间隔颜色,默认为透明 * @property [dashLength = 16.0] - 虚线间隔长度,以像素为单位 * @property [dashPattern = 255.0] - 指定的16位模式 */ const LineDotDash: string; /** * 线:衬色线 * @property [color = Cesium.Color.WHITE] - 主颜色 * @property [outlineColor = Cesium.Color.BLACK] - 衬色颜色 * @property [outlineWidth = 1.0] - 衬色宽度,以像素为单位 */ const PolylineOutline: string; /** * 线:箭头 * @property [color = Cesium.Color.WHITE] - 颜色 */ const PolylineArrow: string; /** * 线:高亮线 * @property [color = Cesium.Color.WHITE] - 颜色 * @property [glowPower = 0.25] - 高亮强度,占总线宽的百分比表示。 * @property [taperPower = 1.0] - 渐变效果强度,占总行长的百分比表示。如果1.0或更高,则不使用锥度效应。 */ const PolylineGlow: string; /** * 线状: 流动图片(适用于线和墙) * @property image - 背景图片URL * @property [color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色 * @property [repeat = new Cesium.Cartesian2(1.0, 1.0)] - 横纵方向重复次数 * @property [speed = 10] - 速度,值越大越快 * @property [axisY = false] - 是否Y轴朝上 * @property [mixt = false] - 默认为color颜色,true时color颜色与图片颜色混合 * @property [hasImage2 = false] - 是否有2张图片的混合模式 * @property [image2 = Cesium.Material.DefaultImageId] - 第2张背景图片URL地址 * @property [color2 = new Cesium.Color(1, 1, 1)] - 第2张背景图片颜色 */ const LineFlow: string; /** * 线状: 流动颜色 * @property [color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 * @property [speed = 2] - 速度,值越大越快 * @property [percent = 0.04] - 比例 * @property [alpha = 0.1] - 透明程度 0.0-1.0 * @property [startTime = 0] - 开始的时间 */ const LineFlowColor: string; /** * 线状: OD线 * @property [color = new Cesium.Color(1, 0, 0, 1.0)] - 运动对象的颜色 * @property [bgColor] - 线的背景颜色 * @property [speed = 20] - 速度,值越大越快 * @property [startTime = 0] - 开始的时间 * @property [bidirectional = 0] - 运行形式,可选值:0 正向运动 1 反向运动 2 双向运动 */ const ODLine: string; /** * 线状: 闪烁线 * @property [color = new Cesium.Color(1.0, 0.0, 0.0, 0.7)] - 线颜色 * @property [speed = 10] - 速度,值越大越快 */ const LineFlicker: string; /** * 线状: 轨迹线 * @property [color = new Cesium.Color(1.0, 0.0, 0.0, 0.7)] - 线颜色 * @property [speed = 5.0] - 速度,值越大越快 */ const LineTrail: string; /** * 线状: 泛光线 * @property [color = Cesium.Color.ORANGE] - 泛光颜色 * @property [glow = 1.0] - 泛光强度 * @property [speed = 5.0] - 速度,值越大越快 */ const LineBloom: string; /** * 数字流动线数字 材质(可用于PlanePrimitive) * @property image - 背景图片URL * @property [color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色 * @property [speed = 10] - 速度,值越大越快 * @property [glow = 10.0] - 高亮强度 * @property [flowGlow = 1.0] - 流动高亮强度 * @property [segment = 3.0] - 分段数 */ const DigitalFlow: string; /** * 线状: 三条平行虚线 * @property [color = Cesium.Color.RED] - 中心线颜色 * @property [dashLength = 16.0] - 中心线虚线间隔长度,以像素为单位 * @property [widthRatio = 0.1] - 中心线百分比 * @property [sidesColor = Cesium.Color.WHITE] - 外侧线颜色 * @property [sidesDashLength = 32] - 外侧线长度 * @property [sidesWidthRatio = 0.1] - 外侧线百分比 * @property [dashPattern = 255.0] - 指定的16位模式 */ const LineThreeDash: string; /** * 线状: 十字形间隔线 * @property [color = Cesium.Color.WHITE] - 线颜色 * @property [dashLength = 64.0] - 十字长度,以像素为单位 * @property [maskLength = 9.0] - 空隙间隔长度 * @property [centerPower = 0.1] - 中心百分比 * @property [dashPower = 0.1] - 虚线百分比 * @property [dashPattern = 255.0] - 指定的16位模式 */ const LineCross: string; /** * 墙体: 走马灯效果 * @property [image = Cesium.Material.DefaultImageId] - 背景图片URL * @property [color = new Cesium.Color(1.0, 0.0, 0.0, 0.7)] - 颜色 * @property [count = 1] - 数量 * @property [speed = 5.0] - 速度,值越大越快 * @property [reverse = false] - 方向往上,false是往下,true是往上 * @property [bloom = false] - 是否泛光 * @property [axisY = false] - 是否Y轴朝上 */ const WallScroll: string; /** * 面状:图片 * @property image - 图片对象或图片地址 * @property [repeat = new Cesium.Cartesian2(1.0, 1.0)] - 指定图像在每个方向上重复的次数 * @property [color = Cesium.Color.WHITE] - 应用于图像的颜色,也可以使用白色来控制透明度 * @property [transparent = false] - 当图像具有透明度时设置为true (例如当png具有透明部分时) */ const Image: string; /** * 面状:图片2 (没有加载完成前的白色闪烁,但也不支持纯白色的图片) * @property image - 图片对象或图片地址 * @property [opacity = 1.0] - 透明度 * @property [color = Cesium.Color.WHITE] - 颜色 * @property [speed = 0] - 不为0时呈现图片滚动效果,数字代表滚动速度 * @property [flipx = false] - 是否X方向翻转图片 * @property [flipy = false] - 是否Y方向翻转图片 * @property [repeat = new Cesium.Cartesian2(1.0, 1.0)] - 指定图像在每个方向上重复的次数 * @property [noWhite = true] - 是否不显示白色,true时没有加载完成前的白色闪烁,但也不支持纯白色的图片 */ const Image2: string; /** * 面状: 文字贴图 * @property text - 文本内容 * @property [font_family = "楷体"] - 字体, 可选项:微软雅黑,宋体,楷体,隶书,黑体 等 * @property [font_size = 30] - 字体大小 * @property [font_weight = "normal"] - 是否加粗, 可选项:bold (解释:是),normal (解释:否) * @property [font_style = "normal"] - 是否斜体, 可选项:italic (解释:是),normal (解释:否) * @property [font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性 * @property [color = new Cesium.Color(1.0, 1.0, 0.0, 1.0)] - 文本颜色 * @property [stroke = true] - 是否描边文本 * @property [strokeColor = new Cesium.Color(1.0, 1.0, 1.0, 0.8)] - 描边的颜色 * @property [strokeWidth = 2] - 描边的宽度 * @property [outlineWidth] - 边框的宽度。 * @property [outlineColor = color] - 矩形边框的颜色。 * @property [background = false] - 是否背景色。 * @property [backgroundColor = new Cesium.Color(1.0, 1.0, 1.0, 0.1)] - 画布的背景色 * @property [padding = 10] - 要在文本周围添加的填充的像素大小 * @property [textBaseline = 'top'] - 文本的基线 * @property [speed = 0] - 不为0时呈现文字滚动效果,数字代表滚动速度 */ const Text: string; /** * 面状:网格 * @property [color = Cesium.Color.WHITE] - 网格颜色 * @property [cellAlpha = 0.1] - 填充透明度 * @property [lineCount = new Cesium.Cartesian2(8, 8)] - 网格线的数量 * @property [lineThickness = new Cesium.Cartesian2(1.0, 1.0)] - 网格宽度 * @property [lineOffset = new Cesium.Cartesian2(0.0, 0.0)] - 偏移量,沿每个轴的起始偏移量 */ const Grid: string; /** * 面状:棋盘 * @property [evenColor = Cesium.Color.WHITE] - 主色 * @property [oddColor = Cesium.Color.BLACK] - 衬色,棋盘中另外一个颜色 * @property [repeat = new Cesium.Cartesian2(2.0, 2.0)] - 数量,在每个方向重复的次数 */ const Checkerboard: string; /** * 面状:条纹 * @property [evenColor = Cesium.Color.WHITE] - 主色 * @property [oddColor = Cesium.Color.BLACK] - 衬色,条纹中另外一个颜色 * @property [repeat = 1] - 数量,条纹重复的次数 * @property [orientation = Cesium.StripeOrientation.HORIZONTAL] - 条纹方向,横向还是纵向 * @property [offset = 0] - 起始位置 */ const Stripe: string; /** * 面状: 渐变面 * @property [color = new Cesium.Color(1.0, 1.0, 0.0, 0.5)] - 颜色 * @property [alphaPower = 1.5] - 透明度系数 * @property [diffusePower = 1.6] - 漫射系数 * @property [isInner = false] - 渐变方向, true向内、false外向 * @property [center = new Cesium.Cartesian2(0.5, 0.5)] - 渐变位置,默认在中心 */ const PolyGradient: string; /** * 面状: 柏油路面效果 * @property [color = new Cesium.Color(0.15, 0.15, 0.15, 1.0)] - 沥青的颜色 * @property [size = 0.02] - 块大小 * @property [frequency = 0.2] - 粗糙度 */ const PolyAsphalt: string; /** * 面状:混合 * @property [evenColor = new Cesium.Color(1.0, 1.0, 1.0, 0.5)] - 浅色的颜色 * @property [oddColor = new Cesium.Color(0.0, 0.0, 1.0, 0.5)] - 深色的颜色 * @property [frequency = 10.0] - 频率 */ const PolyBlob: string; /** * 面状:碎石面 * @property [evenColor = new Cesium.Color(0.25, 0.25, 0.25, 0.75)] - 浅色的颜色 * @property [oddColor = new Cesium.Color(0.75, 0.75, 0.75, 0.75)] - 深色的颜色 * @property [frequency = 10.0] - 频率 */ const PolyFacet: string; /** * 面状:草地面 * @property [evenColor = new Cesium.Color(0.25, 0.4, 0.1, 1.0)] - 草地的颜色 * @property [oddColor = new Cesium.Color(0.1, 0.1, 0.1, 1.0)] - 泥土的颜色 * @property [frequency = 1.5] - 斑块分布 */ const PolyGrass: string; /** * 面状:木材面 * @property [evenColor = new Cesium.Color(0.6, 0.3, 0.1, 1.0)] - 浅色的颜色 * @property [oddColor = new Cesium.Color(0.4, 0.2, 0.07, 1.0)] - 深色的颜色 * @property [frequency = 3.0] - 环频率 * @property [noiseScale = new Cesium.Cartesian2(0.7, 0.5)] - 噪波比例 * @property [grainFrequency = 27.0] - 颗粒的频率 */ const PolyWood: string; /** * 面状: 霓虹灯材质 * @property [color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色 * @property [repeat = 30] - 圈数量 * @property [frameRate = 60] - 每秒刷新次数 */ const NeonLight: string; /** * 面状:水面材质 * @property specularMap - 图片路径,镜面反射纹理材质图片 * @property [normalMap = Cesium.Material.DefaultImageId] - 图片路径,水正常扰动的法线图材质图片 * @property [baseWaterColor = new Cesium.Color(0.2, 0.3, 0.6, 1.0)] - 基础颜色 * @property [blendColor = new Cesium.Color(0.0, 1.0, 0.699, 1.0)] - 混合颜色,从水中混合到非水域时使用的rgba颜色对象 * @property [frequency = 100] - 波数 * @property [animationSpeed = 0.01] - 动画速度 * @property [amplitude = 10] - 水波振幅 * @property [specularIntensity = 0.5] - 镜面反射强度 * @property [fadeFactor = 1.0] - 衰减因子 */ const Water: string; /** * 面状:带蓝色光线波纹的水面材质 * @property specularMap - 图片路径,镜面反射纹理材质图片 * @property [normalMap = Cesium.Material.DefaultImageId] - 图片路径,水正常扰动的法线图材质图片 * @property [alpha = 0.2] - 透明度 */ const WaterLight: string; /** * 矩形面: 轮播图 * @property image - 图片URL * @property [color = Cesium.Color.WHITE] - 颜色和透明度 * @property [speed = 10] - 速度,值越大越快 * @property [pure = false] - 是否纯色 */ const RectSlide: string; /** * 圆形: 放大扩散线 * @property [color = new Cesium.Color(1.0, 1.0, 0.0, 1.0)] - 扫描线颜色 * @property [speed = 10] - 扫描速度,值越大越快 */ const ScanLine: string; /** * 圆形: 扫描半径 * @property image - 扫描图片URL地址 * @property [color = new Cesium.Color(1.0, 0.0, 0.0, 1.0)] - 颜色 */ const CircleScan: string; /** * 圆形: 波纹扩散 * @property [color = new Cesium.Color(1.0, 1.0, 0.0, 1.0)] - 颜色 * @property [speed = 10] - 速度,值越大越快 * @property [count = 1] - 圆圈个数 * @property [gradient = 0.1] - 透明度的幂方(0-1),0表示无虚化效果,1表示虚化成均匀渐变 */ const CircleWave: string; /** * 圆形: 雷达线 (圆+旋转半径线) * @property [color = new Cesium.Color(0.0, 1.0, 1.0, 0.7)] - 颜色 * @property [speed = 5.0] - 速度,值越大越快 */ const RadarLine: string; /** * 圆形: 波纹雷达扫描 * @property [color = new Cesium.Color(0.0, 1.0, 1.0, 0.7)] - 颜色 * @property [speed = 5.0] - 速度,值越大越快 */ const RadarWave: string; /** * 圆锥: 条纹扩散 * @property [color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色 * @property [repeat = 30] - 圈数量 * @property [thickness = 0.3] - 圈的宽度比例 * @property [speed = 10] - 速度,值越大越快 */ const CylinderWave: string; /** * 球体: 电弧球体 * @property [color = new Cesium.Color(0.0, 1.0, 1.0, 0.7)] - 颜色 * @property [speed = 5.0] - 速度,值越大越快 */ const EllipsoidElectric: string; /** * 球体: 波纹球体 * @property [color = new Cesium.Color(0.0, 1.0, 1.0, 0.7)] - 颜色 * @property [speed = 5.0] - 速度,值越大越快 */ const EllipsoidWave: string; } /** * 相机旋转的类型 */ declare enum MoveType { /** * 向屏幕中心靠近 */ ENLARGE = 0, /** * 向屏幕中心远离 */ NARROW = 1, /** * 相机原地左旋转 */ LEFT_ROTATE = 2, /** * 相机原地右旋转 */ RIGHT_ROTATE = 3, /** * 相机原地上旋转 */ TOP_ROTATE = 4, /** * 相机原地下旋转 */ BOTTOM_ROTATE = 5 } /** * 状态 枚举 */ declare enum State { /** * 初始化 */ INITIALIZED = "inited", /** * 开始添加到地图上,添加前 */ ADD = "add", /** * 已添加到地图上,添加结束 */ ADDED = "added", /** * 已移除地图 */ REMOVED = "removed", /** * 已销毁对象 */ DESTROY = "destroy" } /** * 地形类型 */ declare enum TerrainType { /** * 无地形 */ NONE = "none", /** * 标准xyz瓦片地形 */ XYZ = "xyz", /** * arcgis地形 */ ARCGIS = "arcgis", /** * ION在线地形(cesium官方服务) */ ION = "ion", /** * GoogleEarth Enterprise 地形服务 */ GEE = "gee", /** * VR 地形 */ VR = "vr" } /** * Thing对象(如分析、管理类等) 类型 【提示:仅与地图一对一的类型,非所有Thing类】 */ declare enum ThingType { shadows, sightline, skyline, cameraHistory, rotateOut, rotatePoint, firstPersonRoam, streetView, terrainFlat, terrainClip, terrainPlanClip, terrainUplift, floodByMaterial, floodByGraphic, underground, contourLine, Slope, limitHeight } /** * SDK中涉及到的所有第3方地图服务的Token令牌key, * 【重要提示:为了避免后期失效,请全部重新赋值换成自己的key】 */ declare namespace Token { /** * Cesium官方的Ion服务key, * 官网: {@link https://cesium.com/ion/signin/} */ const ion: string; /** * 更新Cesium官方的Ion服务key * @param item - token值 */ function updateIon(item: string): void; /** * mapbox地图key, * 官网:{@link https://account.mapbox.com} */ const mapbox: string; /** * 更新mapbox地图key * @param item - token值 */ function updateMapbox(item: string): void; /** * 微软Bing地图key, * 官网: {@link https://www.bingmapsportal.com/Application} */ const bing: string; /** * 更新微软Bing地图key * @param item - token值 */ function updateBing(item: string): void; /** * 天地图key数组, * 官网: {@link https://console.tianditu.gov.cn/api/key} */ const tiandituArr: string[]; /** * 天地图key, */ const tianditu: string; /** * 更新天地图key * @param item - token值 */ function updateTianditu(item: string | string[]): void; /** * 高德key数组, * 官网: {@link https://console.amap.com/dev/key/app} */ const gaodeArr: string[]; /** * 高德key, */ const gaode: string; /** * 更新高德key * @param item - token值 */ function updateGaode(item: string | string[]): void; /** * 百度key数组, * 官网: {@link http://lbsyun.baidu.com/apiconsole/key#/home} */ const baiduArr: string[]; /** * 百度key, */ const baidu: string; /** * 更新百度key * @param item - token值 */ function updateBaidu(item: string | string[]): void; /** * 更新所有SDK涉及的第3放Token值(如果具体使用类中传入时,已传入值优先) * @param token - 集合 * @param [token.tianditu] - 天地图 * @param [token.gaode] - 高德 * @param [token.baidu] - 百度 * @param [token.ion] - Ion服务 * @param [token.mapbox] - mapbox地图 * @param [token.bing] - 微软Bing地图 */ function updateAll(token: { tianditu?: string | string[]; gaode?: string | string[]; baidu?: string | string[]; ion?: string; mapbox?: string; bing?: string; }): void; } /** * 控件 基类 * @param [options] - 参数对象,包括以下: * @param [options.id = createGuid()] - 对象的id标识 * @param [options.enabled = true] - 对象的启用状态 * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件 */ declare class BaseControl extends BaseThing { constructor(options?: { id?: string | number; enabled?: boolean; parentContainer?: HTMLElement; insertIndex?: number; insertBefore?: HTMLElement | string; eventParent?: BaseClass | boolean; }); /** * 设置DOM容器的显示隐藏 */ show: boolean; /** * 控件类型 */ readonly type: string; /** * 当前控件的DOM对象 */ readonly container: HTMLElement; /** * 父容器DOM对象 */ readonly parentContainer: HTMLElement; /** * 父容器DOM对象的ID */ readonly parentContainerId: string; /** * 重新加载 * @returns 无 */ reload(): void; /** * 添加到地图上,同 map.addControl * @param map - 地图对象 * @returns 当前对象本身,可以链式调用 */ addTo(map: Map): BaseControl; /** * 从地图上移除,同map.removeControl * @param [destroy] - 是否调用destroy释放 * @returns 无 */ remove(destroy?: boolean): void; /** * 对象添加到地图前创建一些对象的钩子方法, * 只会调用一次 * @returns 无 */ _mountedHook(): void; /** * 对象添加到地图上的创建钩子方法, * 每次add时都会调用 * @returns 无 */ _addedHook(): void; /** * 对象从地图上移除的创建钩子方法, * 每次remove时都会调用 * @returns 无 */ _removedHook(): void; /** * 设置新的css样式信息 * @param style - css样式 * @returns 无 */ setStyle(style: any): void; /** * 获取当前key对应语言的文本内容。 * @param key - 文本key * @returns lang参数指定的对应文本内容 */ getLangText(key: string): string; /** * 设置对象的启用和禁用状态。 */ enabled: boolean; /** * 更新图层参数 * @param options - 与类的构造方法参数相同 * @returns 当前对象本身,可以链式调用 */ setOptions(options: any): BaseThing | BaseControl | any; } /** * 时钟及其动画的管理控制 * @param [options] - 参数对象,包括以下: * @param [options.format = "yyyy-MM-dd HH:mm:ss"] - 当前时间格式化字符串 * @param [options.className] - 样式名称,可以外部自定义样式。 * @param [options.id = createGuid()] - 对象的id标识 * @param [options.enabled = true] - 对象的启用状态 * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 */ declare class ClockAnimate extends BaseControl { constructor(options?: { format?: string; className?: string; id?: string | number; enabled?: boolean; parentContainer?: HTMLElement; insertIndex?: number; insertBefore?: HTMLElement | string; }); } /** * 导航球控件 * @param [options] - 参数对象,包括以下: * @param [options.top] - css定位top位置, 如 top: '10px' * @param [options.bottom] - css定位bottom位置,支持配置'toolbar'自动跟随cesium-viewer-toolbar * @param [options.left] - css定位left位置 * @param [options.right] - css定位right位置 * @param [options.className = "mars3d-compass"] - 样式名称,可以外部自定义样式。 * @param [options.maxPitch = 0] - 最大俯仰角,度数 * @param [options.minPitch = -90] - 最小俯仰角,度数 * @param [options.outerSvg] - 外部圆环区域的SVG图片 * @param [options.innerSvg] - 中心球区域的SVG图片 * @param [options.rotationArcSvg] - rotation为true时,按中间区域往四周拖拽时,调整俯仰角的对外部圆环的半弧遮盖SVG图片 * @param [options.rotation = true] - 是否启用调整俯仰角(按中间区域往四周拖拽) * @param [options.clickToNorth = true] - 是否启用双击外部圆环区域视角调整为正北 * @param [options.id = createGuid()] - 对象的id标识 * @param [options.enabled = true] - 对象的启用状态 * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 */ declare class Compass extends BaseControl { constructor(options?: { top?: string; bottom?: string; left?: string; right?: string; className?: string; maxPitch?: string; minPitch?: string; outerSvg?: string; innerSvg?: string; rotationArcSvg?: string; rotation?: boolean; clickToNorth?: boolean; id?: string | number; enabled?: boolean; parentContainer?: HTMLElement; insertIndex?: number; insertBefore?: HTMLElement | string; }); /** * 更新 外部圆环区域的SVG图片 * @param svg - SVG图片 * @returns 无 */ setOuterSvg(svg: string): void; /** * 更新 中心球区域的SVG图片 * @param svg - SVG图片 * @returns 无 */ setInnerSvg(svg: string): void; /** * 更新 按中间区域往四周拖拽时,调整俯仰角的对外部圆环的半弧遮盖SVG图片,rotation为true时有效 * @param svg - SVG图片 * @returns 无 */ setRotationSvg(svg: string): void; /** * 对象添加到地图前创建一些对象的钩子方法, * 只会调用一次 * @returns 无 */ _mountedHook(): void; /** * 对象添加到地图上的创建钩子方法, * 每次add时都会调用 * @returns 无 */ _addedHook(): void; /** * 对象从地图上移除的创建钩子方法, * 每次remove时都会调用 * @returns 无 */ _removedHook(): void; } /** * 立方体视图控件 * @param [options] - 参数对象,包括以下: * @param [optio