| | |
| | | |
| | | /* eslint-disable */ |
| | | |
| | | /** |
| | | * Mars3D三维可视化平台 |
| | | * |
| | | * 版本信息:v3.1.19, |
| | | * 编译日期:2022-01-02 13:34:22 |
| | | * |
| | | * 版权所有:Copyright by 火星科技 http://mars3d.cn |
| | | * |
| | | * 使用单位:免费公开版 ,2021-8-18 |
| | | */ |
| | | declare module "mars3d" { |
| | | import * as Cesium from "mars3d-cesium"; |
| | | |
| | |
| | | /** |
| | | * 国内偏移坐标系 枚举 |
| | | */ |
| | | export const enum ChinaCRS { |
| | | export const enum ChinaCRS { |
| | | /** |
| | | * 标准无偏坐标系 |
| | | */ |
| | |
| | | * 百度(BD09) 偏移坐标系 |
| | | */ |
| | | BAIDU = "BD09" |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 裁剪模型类型 |
| | | */ |
| | | export const enum ClipType { |
| | | /** |
| | | * 裁剪模型类型 |
| | | */ |
| | | export const enum ClipType { |
| | | /** |
| | | * z水平面, 切底部 |
| | | */ |
| | |
| | | * y垂直面,切北向 |
| | | */ |
| | | YR = 6 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 控件类型 |
| | | */ |
| | | export const enum ControlType { |
| | | /** |
| | | * 控件类型 |
| | | */ |
| | | export const enum ControlType { |
| | | clockAnimate, |
| | | compass, |
| | | distanceLegend, |
| | |
| | | mouseDownView, |
| | | overviewMap, |
| | | zoom |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 坐标系 枚举 |
| | | */ |
| | | export const enum CRS { |
| | | /** |
| | | * 坐标系 枚举 |
| | | */ |
| | | export const enum CRS { |
| | | /** |
| | | * Web墨卡托投影坐标系 |
| | | */ |
| | |
| | | * 范围:EPSG:4502 到 EPSG:4512 |
| | | */ |
| | | CGCS2000_GK_CM_6 = "CGCS2000_GK_CM_6" |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 特效类型 |
| | | */ |
| | | export const enum EffectType { |
| | | /** |
| | | * 特效类型 |
| | | */ |
| | | export const enum EffectType { |
| | | blackAndWhite, |
| | | bloom, |
| | | brightness, |
| | |
| | | rain, |
| | | snow, |
| | | snowCover |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 事件类型 枚举(所有事件统一的入口) |
| | | */ |
| | | export const enum EventType { |
| | | /** |
| | | * 事件类型 枚举(所有事件统一的入口) |
| | | */ |
| | | export const enum EventType { |
| | | /** |
| | | * 添加对象 |
| | | */ |
| | |
| | | * 地图中瓦片加载进度变化 事件 |
| | | */ |
| | | tileLoadProgress = "tileLoadProgress" |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据类型 |
| | | */ |
| | | export const enum GraphicType { |
| | | /** |
| | | * 矢量数据类型 |
| | | */ |
| | | export const enum GraphicType { |
| | | label, |
| | | labelP, |
| | | point, |
| | |
| | | rectSensor, |
| | | satelliteSensor, |
| | | satellite |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 多语种文本配置, |
| | | * 值为数组,对应{@link LangType}按照固定顺序排列,如:[中文简体,中文繁體,English] |
| | | * @example |
| | | * mars3d.Lang["_单击开始绘制"][mars3d.LangType.ZH] ="新的中文提示语句"; |
| | | */ |
| | | export const enum Lang { |
| | | /** |
| | | * 多语种文本配置, |
| | | * 值为数组,对应{@link LangType}按照固定顺序排列,如:[中文简体,中文繁體,English] |
| | | * @example |
| | | * mars3d.Lang["_单击开始绘制"][mars3d.LangType.ZH] ="新的中文提示语句"; |
| | | */ |
| | | export const enum Lang { |
| | | "_放大" = "[\"\u653E\u5927\",\"\u653E\u5927\",\"Zoom In\"]", |
| | | "_缩小" = "[\"\u7F29\u5C0F\",\"\u7E2E\u5C0F\",\"Zoom Out\"]", |
| | | "_查看此处坐标" = "[\"\u67E5\u770B\u6B64\u5904\u5750\u6807\",\"\u67E5\u770B\u6B64\u8655\u5750\u6A19\",\"Location info\"]", |
| | |
| | | "_无法删除不能少于最小点数" = "[\"\u65E0\u6CD5\u5220\u9664\uFF0C\u70B9\u6570\u91CF\u4E0D\u80FD\u5C11\u4E8E\",\"\u7121\u6CD5\u522A\u9664\uFF0C\u9EDE\u6578\u91CF\u4E0D\u80FD\u5C11\u4E8E\",\"Cannot delete, the number of dots cannot be less than\"]", |
| | | "_删除" = "[\"\u5220\u9664\",\"\u522A\u9664\",\"Delete\"]", |
| | | "_加载模型中" = "[\"\u52A0\u8F7D\u6A21\u578B\u4E2D\u2026\",\"\u52A0\u8F7D\u6A21\u578B\u4E2D\u2026\",\"Load Model\u2026\"]" |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 语言类型 枚举 |
| | | */ |
| | | export const enum LangType { |
| | | /** |
| | | * 语言类型 枚举 |
| | | */ |
| | | export const enum LangType { |
| | | /** |
| | | * 简体中文 |
| | | */ |
| | |
| | | * English英文 en |
| | | */ |
| | | EN = 2 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图层类型 |
| | | */ |
| | | export const enum LayerType { |
| | | /** |
| | | * 图层类型 |
| | | */ |
| | | export const enum LayerType { |
| | | tdt, |
| | | baidu, |
| | | gaode, |
| | |
| | | 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/LinkPulse.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/ArrowOpacity.png', |
| | | * speed: 10, |
| | | * }), |
| | | * }, |
| | | * }) |
| | | * graphicLayer.addGraphic(primitive) |
| | | */ |
| | | namespace MaterialType { |
| | | /** |
| | | * 材质 类型枚举 |
| | | * @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/LinkPulse.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/ArrowOpacity.png', |
| | | * speed: 10, |
| | | * }), |
| | | * }, |
| | | * }) |
| | | * graphicLayer.addGraphic(primitive) |
| | | */ |
| | | namespace MaterialType { |
| | | /** |
| | | * 通用:纯色颜色 材质 |
| | | * @property [color = Cesium.Color.WHITE] - 颜色 |
| | |
| | | * @property [frameRate = 60] - 每秒刷新次数 |
| | | */ |
| | | const CylinderWave: string; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 相机旋转的类型 |
| | | */ |
| | | export const enum MoveType { |
| | | /** |
| | | * 相机旋转的类型 |
| | | */ |
| | | export const enum MoveType { |
| | | /** |
| | | * 向屏幕中心靠近 |
| | | */ |
| | |
| | | * 相机原地下旋转 |
| | | */ |
| | | BOTTOM_ROTATE = 5 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 状态 枚举 |
| | | */ |
| | | export const enum State { |
| | | /** |
| | | * 状态 枚举 |
| | | */ |
| | | export const enum State { |
| | | /** |
| | | * 初始化 |
| | | */ |
| | |
| | | * 已销毁对象 |
| | | */ |
| | | DESTROY = "destroy" |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地形类型 |
| | | */ |
| | | export const enum TerrainType { |
| | | /** |
| | | * 地形类型 |
| | | */ |
| | | export const enum TerrainType { |
| | | /** |
| | | * 无地形 |
| | | */ |
| | |
| | | * VR 地形 |
| | | */ |
| | | VR = "vr" |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * SDK中涉及到的所有第3方地图服务的Token令牌key, |
| | | * 【重要提示:为了避免后期失效,请全部重新赋值换成自己的key】 |
| | | */ |
| | | namespace Token { |
| | | /** |
| | | * SDK中涉及到的所有第3方地图服务的Token令牌key, |
| | | * 【重要提示:为了避免后期失效,请全部重新赋值换成自己的key】 |
| | | */ |
| | | namespace Token { |
| | | /** |
| | | * Cesium官方的Ion服务key, |
| | | * 官网: {@link https://cesium.com/ion/signin/} |
| | |
| | | * 百度key, |
| | | */ |
| | | const baidu: string; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 控件 基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的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时不冒泡事件 |
| | | */ |
| | | export class BaseControl extends BaseThing { |
| | | /** |
| | | * 控件 基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的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时不冒泡事件 |
| | | */ |
| | | export class BaseControl extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | eventParent?: BaseClass | boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 设置DOM容器的显示隐藏 |
| | |
| | | * 设置对象的启用和禁用状态。 |
| | | */ |
| | | enabled: boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 时钟及其动画的管理控制 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.format = "yyyy-MM-dd HH:mm:ss"] - 当前时间格式化字符串 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class ClockAnimate extends BaseControl { |
| | | /** |
| | | * 时钟及其动画的管理控制 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.format = "yyyy-MM-dd HH:mm:ss"] - 当前时间格式化字符串 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class ClockAnimate extends BaseControl { |
| | | constructor(options?: { |
| | | format?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | format?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 导航球控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.rotation = true] - 是否启用调整俯仰角(按中间区域往四周拖拽) |
| | | * @param [options.className = 'mars3d-compass'] - 样式名称,可以外部自定义样式。 |
| | | * @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.outerSvg] - 外部圆环区域的SVG图片 |
| | | * @param [options.innerSvg] - 中心球区域的SVG图片 |
| | | * @param [options.rotationArcSvg] - rotation为true时,按中间区域往四周拖拽时,调整俯仰角的对外部圆环的半弧遮盖SVG图片 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class Compass extends BaseControl { |
| | | /** |
| | | * 导航球控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.rotation = true] - 是否启用调整俯仰角(按中间区域往四周拖拽) |
| | | * @param [options.className = 'mars3d-compass'] - 样式名称,可以外部自定义样式。 |
| | | * @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.outerSvg] - 外部圆环区域的SVG图片 |
| | | * @param [options.innerSvg] - 中心球区域的SVG图片 |
| | | * @param [options.rotationArcSvg] - rotation为true时,按中间区域往四周拖拽时,调整俯仰角的对外部圆环的半弧遮盖SVG图片 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class Compass extends BaseControl { |
| | | constructor(options?: { |
| | | rotation?: boolean; |
| | | className?: string; |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | outerSvg?: string; |
| | | innerSvg?: string; |
| | | rotationArcSvg?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | rotation?: boolean; |
| | | className?: string; |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | outerSvg?: string; |
| | | innerSvg?: string; |
| | | rotationArcSvg?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | /** |
| | | * 更新 外部圆环区域的SVG图片 |
| | |
| | | * @returns 无 |
| | | */ |
| | | _removedHook(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace DistanceLegend { |
| | | export namespace DistanceLegend { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property change - 比例尺发生变化 |
| | | */ |
| | | type EventType = { |
| | | change: string; |
| | | change: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 比例尺 控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.top] - css定位top位置, 如 top: '10px' |
| | | * @param [options.bottom] - css定位bottom位置 |
| | | * @param [options.left] - css定位left位置 |
| | | * @param [options.right] - css定位right位置 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class DistanceLegend extends BaseControl { |
| | | /** |
| | | * 比例尺 控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.top] - css定位top位置, 如 top: '10px' |
| | | * @param [options.bottom] - css定位bottom位置 |
| | | * @param [options.left] - css定位left位置 |
| | | * @param [options.right] - css定位right位置 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class DistanceLegend extends BaseControl { |
| | | constructor(options?: { |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | /** |
| | | * 当前比例尺值(单位:米) |
| | |
| | | * @returns 无 |
| | | */ |
| | | _removedHook(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace LocationBar { |
| | | export namespace LocationBar { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property change - 数据变化了 |
| | | */ |
| | | type EventType = { |
| | | change: string; |
| | | change: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 信息状态栏, 一般在页面下侧区域,包括鼠标经纬度等信息 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.template] - 展示的内容格式化字符串, 为数组时按多语言顺序定义,如[中文、繁体、英文] |
| | | * 支持以下模版配置: |
| | | * 【鼠标所在位置】 经度:{lng}, 纬度:{lat}, 海拔:{alt}米, |
| | | * 【相机的】 方向角度:{heading}, 俯仰角度:{pitch}, 视高:{cameraHeight}米, |
| | | * 【地图的】 层级:{level} |
| | | * @param [options.latDecimal = LatLngPoint.FormatLength] - 保留的{lat}和{lng}的小数位 |
| | | * @param [options.crs] - 按指定坐标系显示坐标值, 配置后template可以加模板:【鼠标所在位置对应的crs坐标系】 X或经度值:{crsx}, Y或纬度值:{crsy} |
| | | * @param [options.crsDecimal = 1] - 保留的{crsx}和{crsy}的小数位 |
| | | * @param [options.style] - 可以CSS样式,如: |
| | | * @param [options.style.top] - css定位top位置, 如 top: '10px' |
| | | * @param [options.style.bottom] - css定位bottom位置 |
| | | * @param [options.style.left] - css定位left位置 |
| | | * @param [options.style.right] - css定位right位置 |
| | | * @param [options.fps = false] - 是否显示实时FPS帧率 |
| | | * @param [options.cacheTime = 50] - 鼠标移动的缓存时间 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class LocationBar extends BaseControl { |
| | | /** |
| | | * 信息状态栏, 一般在页面下侧区域,包括鼠标经纬度等信息 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.template] - 展示的内容格式化字符串, 为数组时按多语言顺序定义,如[中文、繁体、英文] |
| | | * 支持以下模版配置: |
| | | * 【鼠标所在位置】 经度:{lng}, 纬度:{lat}, 海拔:{alt}米, |
| | | * 【相机的】 方向角度:{heading}, 俯仰角度:{pitch}, 视高:{cameraHeight}米, |
| | | * 【地图的】 层级:{level} |
| | | * @param [options.latDecimal = LatLngPoint.FormatLength] - 保留的{lat}和{lng}的小数位 |
| | | * @param [options.crs] - 按指定坐标系显示坐标值, 配置后template可以加模板:【鼠标所在位置对应的crs坐标系】 X或经度值:{crsx}, Y或纬度值:{crsy} |
| | | * @param [options.crsDecimal = 1] - 保留的{crsx}和{crsy}的小数位 |
| | | * @param [options.style] - 可以CSS样式,如: |
| | | * @param [options.style.top] - css定位top位置, 如 top: '10px' |
| | | * @param [options.style.bottom] - css定位bottom位置 |
| | | * @param [options.style.left] - css定位left位置 |
| | | * @param [options.style.right] - css定位right位置 |
| | | * @param [options.fps = false] - 是否显示实时FPS帧率 |
| | | * @param [options.cacheTime = 50] - 鼠标移动的缓存时间 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class LocationBar extends BaseControl { |
| | | constructor(options?: { |
| | | template?: string | string[]; |
| | | latDecimal?: number; |
| | | crs?: string | CRS; |
| | | crsDecimal?: number; |
| | | style?: { |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | }; |
| | | fps?: boolean; |
| | | cacheTime?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | template?: string | string[]; |
| | | latDecimal?: number; |
| | | crs?: string | CRS; |
| | | crsDecimal?: number; |
| | | style?: { |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | }; |
| | | fps?: boolean; |
| | | cacheTime?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | /** |
| | | * 显示的数据 |
| | | */ |
| | | readonly locationData: any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 卷帘对比 控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.leftLayer] - 左侧区域瓦片图层 |
| | | * @param [options.rightLayer] - 右侧区域瓦片图层 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class MapSplit extends BaseControl { |
| | | /** |
| | | * 卷帘对比 控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.leftLayer] - 左侧区域瓦片图层 |
| | | * @param [options.rightLayer] - 右侧区域瓦片图层 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class MapSplit extends BaseControl { |
| | | constructor(options?: { |
| | | leftLayer?: BaseTileLayer; |
| | | rightLayer?: BaseTileLayer; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | leftLayer?: BaseTileLayer; |
| | | rightLayer?: BaseTileLayer; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | /** |
| | | * 左侧区域瓦片图层 |
| | |
| | | * @returns 无 |
| | | */ |
| | | _removedHook(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 鼠标按下指示图标,比如鼠标旋转、放大时 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class MouseDownView extends BaseControl { |
| | | /** |
| | | * 鼠标按下指示图标,比如鼠标旋转、放大时 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class MouseDownView extends BaseControl { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 鹰眼地图 控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.basemap - 瓦片底图图层配置 |
| | | * @param [options.layers] - 可以叠加显示的图层配置 |
| | | * @param [options.scene] - 鹰眼地图场景参数 |
| | | * @param [options.rectangle] - 矩形区域样式信息,不配置时不显示矩形。 |
| | | * @param [options.style] - 可以CSS样式,如: |
| | | * @param [options.style.top] - css定位top位置, 如 top: '10px' |
| | | * @param [options.style.bottom] - css定位bottom位置 |
| | | * @param [options.style.left] - css定位left位置 |
| | | * @param [options.style.right] - css定位right位置 |
| | | * @param [options.flyToOptions] - 小地图的定位参数 |
| | | * @param [options.flyToOptions.scale = 2] - 缩放比例,可以控制视角比矩形略大一些,这样效果更友好。 |
| | | * @param [options.flyToOptions.duration = 0] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。 |
| | | * @param [options.flyToOptions.complete] - 飞行完成后要执行的函数。 |
| | | * @param [options.flyToOptions.cancel] - 飞行取消时要执行的函数。 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class OverviewMap extends BaseControl { |
| | | /** |
| | | * 鹰眼地图 控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.basemap - 瓦片底图图层配置 |
| | | * @param [options.layers] - 可以叠加显示的图层配置 |
| | | * @param [options.scene] - 鹰眼地图场景参数 |
| | | * @param [options.rectangle] - 矩形区域样式信息,不配置时不显示矩形。 |
| | | * @param [options.style] - 可以CSS样式,如: |
| | | * @param [options.style.top] - css定位top位置, 如 top: '10px' |
| | | * @param [options.style.bottom] - css定位bottom位置 |
| | | * @param [options.style.left] - css定位left位置 |
| | | * @param [options.style.right] - css定位right位置 |
| | | * @param [options.flyToOptions] - 小地图的定位参数 |
| | | * @param [options.flyToOptions.scale = 2] - 缩放比例,可以控制视角比矩形略大一些,这样效果更友好。 |
| | | * @param [options.flyToOptions.duration = 0] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。 |
| | | * @param [options.flyToOptions.complete] - 飞行完成后要执行的函数。 |
| | | * @param [options.flyToOptions.cancel] - 飞行取消时要执行的函数。 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class OverviewMap extends BaseControl { |
| | | constructor(options?: { |
| | | basemap: Map.basemapOptions; |
| | | layers?: Map.layerOptions[]; |
| | | scene?: Map.sceneOptions; |
| | | rectangle?: RectangleEntity.StyleOptions; |
| | | style?: { |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | }; |
| | | flyToOptions?: { |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | }; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | basemap: Map.basemapOptions; |
| | | layers?: Map.layerOptions[]; |
| | | scene?: Map.sceneOptions; |
| | | rectangle?: RectangleEntity.StyleOptions; |
| | | style?: { |
| | | top?: string; |
| | | bottom?: string; |
| | | left?: string; |
| | | right?: string; |
| | | }; |
| | | flyToOptions?: { |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | }; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | /** |
| | | * 鹰眼小地图对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | _removedHook(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace ToolButton { |
| | | export namespace ToolButton { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property click - 单击了按钮 |
| | | */ |
| | | type EventType = { |
| | | click: string; |
| | | click: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 工具栏 单个按钮控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.title = ''] - 按钮标题 |
| | | * @param [options.icon] - 按钮字体图标 图片url路径 或 字体图标class名 |
| | | * @param [options.click] - 按钮单击后的回调方法 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class ToolButton extends BaseControl { |
| | | /** |
| | | * 工具栏 单个按钮控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.title = ''] - 按钮标题 |
| | | * @param [options.icon] - 按钮字体图标 图片url路径 或 字体图标class名 |
| | | * @param [options.click] - 按钮单击后的回调方法 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class ToolButton extends BaseControl { |
| | | constructor(options?: { |
| | | title?: string; |
| | | icon?: string; |
| | | click?: (...params: any[]) => any; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | title?: string; |
| | | icon?: string; |
| | | click?: (...params: any[]) => any; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | /** |
| | | * 父容器DOM对象 |
| | | */ |
| | | readonly parentContainer: HTMLElement; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 放大缩小按钮控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.zoomOutIcon] - 缩小按钮 图片url路径 或 字体图标class名 |
| | | * @param [options.zoomInIcon] - 放大按钮 图片url路径 或 字体图标class名 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class Zoom extends BaseControl { |
| | | /** |
| | | * 放大缩小按钮控件 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.zoomOutIcon] - 缩小按钮 图片url路径 或 字体图标class名 |
| | | * @param [options.zoomInIcon] - 放大按钮 图片url路径 或 字体图标class名 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container |
| | | * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。 |
| | | * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。 |
| | | */ |
| | | export class Zoom extends BaseControl { |
| | | constructor(options?: { |
| | | zoomOutIcon?: string; |
| | | zoomInIcon?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | zoomOutIcon?: string; |
| | | zoomInIcon?: string; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | insertIndex?: number; |
| | | insertBefore?: HTMLElement; |
| | | }); |
| | | /** |
| | | * 父容器DOM对象 |
| | | */ |
| | | readonly parentContainer: HTMLElement; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 基础类,SDK中几乎所有类的基类,都是继承该基类的。 |
| | | * @param [options] - 参数名称 |
| | | */ |
| | | export class BaseClass { |
| | | /** |
| | | * 基础类,SDK中几乎所有类的基类,都是继承该基类的。 |
| | | * @param [options] - 参数名称 |
| | | */ |
| | | export class BaseClass { |
| | | constructor(options?: any); |
| | | /** |
| | | * 当前类的构造参数 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | hasEventParent(obj: any): BaseClass; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转换options参数处理基类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BaseOptsConver { |
| | | /** |
| | | * 转换options参数处理基类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BaseOptsConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换为Cesium相关属性值 |
| | |
| | | * @returns 颜色 |
| | | */ |
| | | getOutlineColorByStyle(style: any): Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | export namespace BaseThing { |
| | | export namespace BaseThing { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property remove - 移除对象 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | add: string; |
| | | remove: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Thing对象(如特效、分析、管理类等) 的基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件 |
| | | */ |
| | | export class BaseThing extends BaseClass { |
| | | /** |
| | | * Thing对象(如特效、分析、管理类等) 的基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件 |
| | | */ |
| | | export class BaseThing extends BaseClass { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 内置唯一标识ID |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 近地天空盒, 在场景周围绘制星星等太空背景。 |
| | | * 天空盒子是用真正的赤道平均春分点(TEME)轴定义的。仅在3D中支持。当转换为2D或哥伦布视图时,天空盒会淡出。 |
| | | * 天空盒子的大小不能超过{@link Cesium.Scene#maximumCubeMapSize}。 |
| | | * @example |
| | | * scene.skyBox = new mars3d.GroundSkyBox({ |
| | | * 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' |
| | | * } |
| | | * }); |
| | | * @param options - 对象,具有以下属性: |
| | | * @param [options.sources] - 天空盒的6个立方体映射面的图片url |
| | | * @param [options.sources.positiveX] - 映射面的图片url |
| | | * @param [options.sources.negativeX] - 映射面的图片url |
| | | * @param [options.sources.positiveY] - 映射面的图片url |
| | | * @param [options.sources.negativeY] - 映射面的图片url |
| | | * @param [options.sources.positiveZ] - 映射面的图片url |
| | | * @param [options.sources.negativeZ] - 映射面的图片url |
| | | * @param [options.show = true] - 是否显示 |
| | | */ |
| | | export class GroundSkyBox extends Cesium.SkyBox { |
| | | /** |
| | | * 近地天空盒, 在场景周围绘制星星等太空背景。 |
| | | * 天空盒子是用真正的赤道平均春分点(TEME)轴定义的。仅在3D中支持。当转换为2D或哥伦布视图时,天空盒会淡出。 |
| | | * 天空盒子的大小不能超过{@link Cesium.Scene#maximumCubeMapSize}。 |
| | | * @example |
| | | * scene.skyBox = new mars3d.GroundSkyBox({ |
| | | * 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' |
| | | * } |
| | | * }); |
| | | * @param options - 对象,具有以下属性: |
| | | * @param [options.sources] - 天空盒的6个立方体映射面的图片url |
| | | * @param [options.sources.positiveX] - 映射面的图片url |
| | | * @param [options.sources.negativeX] - 映射面的图片url |
| | | * @param [options.sources.positiveY] - 映射面的图片url |
| | | * @param [options.sources.negativeY] - 映射面的图片url |
| | | * @param [options.sources.positiveZ] - 映射面的图片url |
| | | * @param [options.sources.negativeZ] - 映射面的图片url |
| | | * @param [options.show = true] - 是否显示 |
| | | */ |
| | | export class GroundSkyBox extends Cesium.SkyBox { |
| | | constructor(options: { |
| | | sources?: { |
| | | positiveX?: string; |
| | | negativeX?: string; |
| | | positiveY?: string; |
| | | negativeY?: string; |
| | | positiveZ?: string; |
| | | negativeZ?: string; |
| | | }; |
| | | show?: boolean; |
| | | sources?: { |
| | | positiveX?: string; |
| | | negativeX?: string; |
| | | positiveY?: string; |
| | | negativeY?: string; |
| | | positiveZ?: string; |
| | | negativeZ?: string; |
| | | }; |
| | | show?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 坐标数组处理类 |
| | | */ |
| | | export class LatLngArray { |
| | | /** |
| | | * 坐标数组处理类 |
| | | */ |
| | | export class LatLngArray { |
| | | /** |
| | | * 根据传入的各种对象数据数组,转换返回Cartesian3数组 |
| | | * @param value - 坐标位置数组 |
| | |
| | | * @returns 经纬度坐标数组,示例:[ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ] |
| | | */ |
| | | static toArray(value: string[] | any[][] | Cesium.Cartesian3[], noAlt?: boolean): any[][]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 坐标点类(含经度、纬度、高度) |
| | | * @param lng - 经度值, -180 至 180 |
| | | * @param lat - 纬度值, -90 至 90 |
| | | * @param [alt] - 高度(单位:米) |
| | | */ |
| | | export class LatLngPoint { |
| | | /** |
| | | * 坐标点类(含经度、纬度、高度) |
| | | * @param lng - 经度值, -180 至 180 |
| | | * @param lat - 纬度值, -90 至 90 |
| | | * @param [alt] - 高度(单位:米) |
| | | */ |
| | | export class LatLngPoint { |
| | | constructor(lng: number | string, lat: number | string, alt?: number | string); |
| | | /** |
| | | * 经度值, -180 至 180 |
| | |
| | | * 高度的格式化时的长度,默认为1 |
| | | */ |
| | | static FormatAltLength: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 局部坐标系 与 世界坐标系 转换控制类 |
| | | * @param center - 局部坐标的中心点对应的世界坐标 |
| | | * @param [fixedFrameTransform] - 局部坐标系的轴方向 |
| | | */ |
| | | export class LocalWorldTransform { |
| | | /** |
| | | * 局部坐标系 与 世界坐标系 转换控制类 |
| | | * @param center - 局部坐标的中心点对应的世界坐标 |
| | | * @param [fixedFrameTransform] - 局部坐标系的轴方向 |
| | | */ |
| | | export class LocalWorldTransform { |
| | | constructor(center: Cesium.Cartesian3, fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame); |
| | | /** |
| | | * 局部坐标 转换成对应的 世界坐标 |
| | |
| | | * @returns 局部坐标 |
| | | */ |
| | | worldToLocal(worldPoint: Cesium.Cartesian3, result?: Cesium.Cartesian3): Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 特效 基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class BaseEffect extends BaseThing { |
| | | /** |
| | | * 特效 基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class BaseEffect extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | }); |
| | | /** |
| | | * 特效类型 |
| | |
| | | * </p> |
| | | */ |
| | | readonly uniforms: any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 黑白效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.gradations = 4.0] - 渐变 |
| | | */ |
| | | export class BlackAndWhiteEffect extends BaseEffect { |
| | | /** |
| | | * 黑白效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.gradations = 4.0] - 渐变 |
| | | */ |
| | | export class BlackAndWhiteEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | gradations?: number; |
| | | enabled?: boolean; |
| | | gradations?: number; |
| | | }); |
| | | /** |
| | | * 渐变 |
| | | */ |
| | | gradations: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 泛光效果, 使明亮的区域更亮,黑暗的区域更暗。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.contrast = 128] - 对比度,取值范围[-255.0,255.0] |
| | | * @param [options.brightness = -0.3] - 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中。 |
| | | * @param [options.delta = 1.0] - 增量 |
| | | * @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。 |
| | | * @param [options.stepSize = 5.0] - 步长,是下一个texel的距离 |
| | | */ |
| | | export class BloomEffect extends BaseEffect { |
| | | /** |
| | | * 泛光效果, 使明亮的区域更亮,黑暗的区域更暗。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.contrast = 128] - 对比度,取值范围[-255.0,255.0] |
| | | * @param [options.brightness = -0.3] - 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中。 |
| | | * @param [options.delta = 1.0] - 增量 |
| | | * @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。 |
| | | * @param [options.stepSize = 5.0] - 步长,是下一个texel的距离 |
| | | */ |
| | | export class BloomEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | contrast?: number; |
| | | brightness?: number; |
| | | delta?: number; |
| | | sigma?: number; |
| | | stepSize?: number; |
| | | enabled?: boolean; |
| | | contrast?: number; |
| | | brightness?: number; |
| | | delta?: number; |
| | | sigma?: number; |
| | | stepSize?: number; |
| | | }); |
| | | /** |
| | | * 对比度,取值范围[-255.0,255.0] |
| | |
| | | * 步长,是下一个texel的距离 |
| | | */ |
| | | stepSize: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 亮度 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.brightness = 2.0] - 亮度值 |
| | | */ |
| | | export class BrightnessEffect extends BaseEffect { |
| | | /** |
| | | * 亮度 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.brightness = 2.0] - 亮度值 |
| | | */ |
| | | export class BrightnessEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | brightness?: number; |
| | | enabled?: boolean; |
| | | brightness?: number; |
| | | }); |
| | | /** |
| | | * 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中 |
| | | */ |
| | | brightness: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 景深 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.focalDistance = 87] - 焦距,是以米为单位的距离来设定相机的焦距。 |
| | | * @param [options.delta = 1.0] - 增量 |
| | | * @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。 |
| | | * @param [options.stepSize = 5.0] - 步长,是下一个texel的距离 |
| | | */ |
| | | export class DepthOfFieldEffect extends BaseEffect { |
| | | /** |
| | | * 景深 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.focalDistance = 87] - 焦距,是以米为单位的距离来设定相机的焦距。 |
| | | * @param [options.delta = 1.0] - 增量 |
| | | * @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。 |
| | | * @param [options.stepSize = 5.0] - 步长,是下一个texel的距离 |
| | | */ |
| | | export class DepthOfFieldEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | focalDistance?: number; |
| | | delta?: number; |
| | | sigma?: number; |
| | | stepSize?: number; |
| | | enabled?: boolean; |
| | | focalDistance?: number; |
| | | delta?: number; |
| | | sigma?: number; |
| | | stepSize?: number; |
| | | }); |
| | | /** |
| | | * 焦距,是以米为单位的距离来设定相机的焦距。 |
| | |
| | | * 步长,是下一个texel的距离 |
| | | */ |
| | | stepSize: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 雾场景效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.fogByDistance = new Cesium.Cartesian4(10, 0.0, 1000, 0.9)] - 雾强度 |
| | | * @param [options.color = Cesium.Color.WHITE] - 雾颜色 |
| | | * @param [options.maxHeight = 9000] - 最高限定高度,超出该高度不显示雾场景效果 |
| | | */ |
| | | export class FogEffect extends BaseEffect { |
| | | /** |
| | | * 雾场景效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.fogByDistance = new Cesium.Cartesian4(10, 0.0, 1000, 0.9)] - 雾强度 |
| | | * @param [options.color = Cesium.Color.WHITE] - 雾颜色 |
| | | * @param [options.maxHeight = 9000] - 最高限定高度,超出该高度不显示雾场景效果 |
| | | */ |
| | | export class FogEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | fogByDistance?: Cesium.Cartesian4; |
| | | color?: Cesium.Color; |
| | | maxHeight?: number; |
| | | enabled?: boolean; |
| | | fogByDistance?: Cesium.Cartesian4; |
| | | color?: Cesium.Color; |
| | | maxHeight?: number; |
| | | }); |
| | | /** |
| | | * 雾强度 |
| | |
| | | * 最高限定高度,超出该高度不显示雾场景效果 |
| | | */ |
| | | maxHeight: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 倒影效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class InvertedEffect extends BaseEffect { |
| | | /** |
| | | * 倒影效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class InvertedEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | enabled?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 马赛克效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class MosaicEffect extends BaseEffect { |
| | | /** |
| | | * 马赛克效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class MosaicEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | enabled?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 夜视效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class NightVisionEffect extends BaseEffect { |
| | | /** |
| | | * 夜视效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class NightVisionEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | enabled?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace OutlineEffect { |
| | | export namespace OutlineEffect { |
| | | /** |
| | | * 选中对象的 轮廓线描边效果 支持的参数信息 |
| | | * @property [width = 6] - 线宽,单位:像素px |
| | |
| | | * @property [onlySelected = false] - 只显示选中构件 |
| | | */ |
| | | type Options = { |
| | | width?: number; |
| | | color?: string | Cesium.Color; |
| | | colorHidden?: string | Cesium.Color; |
| | | showPlane?: boolean; |
| | | planeAngle?: number; |
| | | glow?: boolean; |
| | | glowPower?: number; |
| | | glowStrength?: number; |
| | | onlySelected?: boolean; |
| | | width?: number; |
| | | color?: string | Cesium.Color; |
| | | colorHidden?: string | Cesium.Color; |
| | | showPlane?: boolean; |
| | | planeAngle?: number; |
| | | glow?: boolean; |
| | | glowPower?: number; |
| | | glowStrength?: number; |
| | | onlySelected?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 选中对象的 轮廓线描边效果。 |
| | | * @param [options] - 参数对象 |
| | | * @param [options.eventType = "click"] - 高亮触发的事件类型,默认为单击。可选值:单击、鼠标移入,false时不内部控制 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class OutlineEffect extends BaseEffect { |
| | | /** |
| | | * 选中对象的 轮廓线描边效果。 |
| | | * @param [options] - 参数对象 |
| | | * @param [options.eventType = "click"] - 高亮触发的事件类型,默认为单击。可选值:单击、鼠标移入,false时不内部控制 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class OutlineEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | eventType?: EventType | boolean; |
| | | enabled?: boolean; |
| | | eventType?: EventType | boolean; |
| | | enabled?: boolean; |
| | | }); |
| | | /** |
| | | * 选中对象 |
| | |
| | | * 只显示选中构件 |
| | | */ |
| | | onlySelected: boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 下雨效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.speed = 10] - 速度 |
| | | * @param [options.size = 20] - 雨粒子大小 |
| | | * @param [options.direction = -30] - 雨的方向(度),0度垂直向下 |
| | | */ |
| | | export class RainEffect extends BaseEffect { |
| | | /** |
| | | * 下雨效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.speed = 10] - 速度 |
| | | * @param [options.size = 20] - 雨粒子大小 |
| | | * @param [options.direction = -30] - 雨的方向(度),0度垂直向下 |
| | | */ |
| | | export class RainEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | speed?: number; |
| | | size?: number; |
| | | direction?: number; |
| | | enabled?: boolean; |
| | | speed?: number; |
| | | size?: number; |
| | | direction?: number; |
| | | }); |
| | | /** |
| | | * 速度 |
| | |
| | | * 雨的方向(度),0度垂直向下 |
| | | */ |
| | | direction: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地面积雪 效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.alpha = 1.0] - 覆盖强度 0-1 |
| | | * @param [options.maxHeight = 9000] - 最高限定高度,超出该高度不显示积雪效果 |
| | | */ |
| | | export class SnowCoverEffect extends BaseEffect { |
| | | /** |
| | | * 地面积雪 效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.alpha = 1.0] - 覆盖强度 0-1 |
| | | * @param [options.maxHeight = 9000] - 最高限定高度,超出该高度不显示积雪效果 |
| | | */ |
| | | export class SnowCoverEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | alpha?: number; |
| | | maxHeight?: number; |
| | | enabled?: boolean; |
| | | alpha?: number; |
| | | maxHeight?: number; |
| | | }); |
| | | /** |
| | | * 最高限定高度,超出该高度不显示积雪效果 |
| | |
| | | * 覆盖强度 0-1 |
| | | */ |
| | | alpha: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 下雪效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.speed = 10] - 速度 |
| | | */ |
| | | export class SnowEffect extends BaseEffect { |
| | | /** |
| | | * 下雪效果 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.speed = 10] - 速度 |
| | | */ |
| | | export class SnowEffect extends BaseEffect { |
| | | constructor(options?: { |
| | | enabled?: boolean; |
| | | speed?: number; |
| | | enabled?: boolean; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 速度 |
| | | */ |
| | | speed: number; |
| | | } |
| | | } |
| | | |
| | | export namespace BaseGraphic { |
| | | export namespace BaseGraphic { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property contextMenuClick - 右键菜单 单击某一项后 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据 基础类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 【点状】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.positions - 【线面状(多点)】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡 |
| | | */ |
| | | export class BaseGraphic extends BaseClass { |
| | | /** |
| | | * 矢量数据 基础类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 【点状】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.positions - 【线面状(多点)】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡 |
| | | */ |
| | | export class BaseGraphic extends BaseClass { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据类型 |
| | |
| | | * @returns GeoJSON格式规范对象 |
| | | */ |
| | | toGeoJSON(options?: { |
| | | noAlt?: boolean; |
| | | noAlt?: boolean; |
| | | }): any; |
| | | /** |
| | | * 将矢量数据的坐标、样式及属性等信息导出为对象,可以用于存储。 |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | /** |
| | | * 飞行定位至 数据所在的视角 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseGraphic | any; |
| | | /** |
| | | * 绑定鼠标移入或单击后的 对象高亮 |
| | |
| | | * @returns 无 |
| | | */ |
| | | bindHighlight(options: { |
| | | type?: string; |
| | | type?: string; |
| | | }): void; |
| | | /** |
| | | * 解绑鼠标移入或单击后的高亮处理 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | bindContextMenu(content: { |
| | | text?: string; |
| | | iconCls?: string; |
| | | show?: ((...params: any[]) => any) | boolean; |
| | | callback?: (...params: any[]) => any; |
| | | children?: array; |
| | | text?: string; |
| | | iconCls?: string; |
| | | show?: ((...params: any[]) => any) | boolean; |
| | | callback?: (...params: any[]) => any; |
| | | children?: array; |
| | | }[], options?: { |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | }): BaseGraphic | any; |
| | | /** |
| | | * 解除绑定的右键菜单 |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 大数据合并渲染Primitive对象基类 |
| | | */ |
| | | export class BaseCombine extends BasePrimitive { |
| | | /** |
| | | * 大数据合并渲染Primitive对象基类 |
| | | */ |
| | | export class BaseCombine extends BasePrimitive { |
| | | /** |
| | | * 数据集合数组 |
| | | */ |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | /** |
| | | * 更新颜色 |
| | |
| | | * @returns 空 |
| | | */ |
| | | setColorStyle(style: { |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | }, index?: number | undefined): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 大数据线面集合 (合并渲染) Primitive图元 矢量对象基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 线面信息数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有面的公共样式信息 |
| | | * @param [options.highlight] - 鼠标移入或单击后的对应高亮的部分样式 |
| | | * @param [options.highlight.type] - 触发高亮的方式,默认鼠标移入,可以指定为type:'click'为单击后高亮 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePolyCombine extends BaseCombine { |
| | | /** |
| | | * 大数据线面集合 (合并渲染) Primitive图元 矢量对象基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 线面信息数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有面的公共样式信息 |
| | | * @param [options.highlight] - 鼠标移入或单击后的对应高亮的部分样式 |
| | | * @param [options.highlight.type] - 触发高亮的方式,默认鼠标移入,可以指定为type:'click'为单击后高亮 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePolyCombine extends BaseCombine { |
| | | constructor(options: { |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | attr?: any; |
| | | }[]; |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | highlight?: { |
| | | type?: string; |
| | | }; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | attr?: any; |
| | | }[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | highlight?: { |
| | | type?: string; |
| | | }; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 样式信息 |
| | |
| | | * @returns 无 |
| | | */ |
| | | closeHighlight(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace FlatBillboard { |
| | | export namespace FlatBillboard { |
| | | /** |
| | | * 平放的图标 单个数据对象 |
| | | * @property image - 图标URL |
| | |
| | | * @property [angle = 0] - 图标的角度(角度值,0-360) |
| | | */ |
| | | type DataOptions = { |
| | | image: string; |
| | | position: Cesium.Cartesian3; |
| | | angle?: number; |
| | | image: string; |
| | | position: Cesium.Cartesian3; |
| | | angle?: number; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 平放的图标 数据集合 (多个图标一起合并渲染) |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.instances - 数据集合数组 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.style.width = 50] - 图标宽度 |
| | | * @param [options.style.height = width] - 图标高度 |
| | | * @param [options.style.distanceDisplayCondition = new Cesium.DistanceDisplayCondition(0, 5000000)] - 指定数据将显示在与摄像机的多大距离 |
| | | * @param [options.scale3d = 0.8] - 二维和三维模式切换后图标的缩放比例。因为二三维模式使用不同渲染方式,可能存在大小偏差,可以该参数调优。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FlatBillboard extends BaseCombine { |
| | | /** |
| | | * 平放的图标 数据集合 (多个图标一起合并渲染) |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.instances - 数据集合数组 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.style.width = 50] - 图标宽度 |
| | | * @param [options.style.height = width] - 图标高度 |
| | | * @param [options.style.distanceDisplayCondition = new Cesium.DistanceDisplayCondition(0, 5000000)] - 指定数据将显示在与摄像机的多大距离 |
| | | * @param [options.scale3d = 0.8] - 二维和三维模式切换后图标的缩放比例。因为二三维模式使用不同渲染方式,可能存在大小偏差,可以该参数调优。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FlatBillboard extends BaseCombine { |
| | | constructor(options: { |
| | | instances: FlatBillboard.DataOptions[]; |
| | | style: { |
| | | width?: number; |
| | | height?: number; |
| | | distanceDisplayCondition?: Cesium.DistanceDisplayCondition; |
| | | }; |
| | | scale3d?: number; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | instances: FlatBillboard.DataOptions[]; |
| | | style: { |
| | | width?: number; |
| | | height?: number; |
| | | distanceDisplayCondition?: Cesium.DistanceDisplayCondition; |
| | | }; |
| | | scale3d?: number; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 数据集合数组 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace ModelCombine { |
| | | export namespace ModelCombine { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property mouseOut - 鼠标移出 鼠标事件 |
| | | */ |
| | | type EventType = { |
| | | load: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | load: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 大数据 gltf小模型集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.url] - glTF模型的URI的字符串或资源属性。 |
| | | * @param [options.instances] - 集合信息数组,单个对象包括: |
| | | * @param options.instances.position - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息(目前仅支持方向和比例参数) |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.batchTable] - 实例化的3D贴图的Cesium.Cesium3DTileBatchTable批处理表。 |
| | | * @param [options.requestType] - 请求类型,用于确定请求的优先级 |
| | | * @param [options.gltf] - 一个glTF JSON对象,或者一个二进制的glTF缓冲区。 |
| | | * @param [options.basePath = ''] - glTF JSON中路径相对的基本路径。 |
| | | * @param [options.dynamic = false] - 提示实例模型矩阵是否会频繁更新。 |
| | | * @param [options.allowPicking = true] - 当true时,每个glTF和Primitive都可以用{@link Cesium.Scene#pick}来拾取。 |
| | | * @param [options.asynchronous = true] - 确定模型WebGL资源创建是否将分散在几个帧或块上,直到所有glTF文件加载完成。 |
| | | * @param [options.incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。 |
| | | * @param [options.shadows = ShadowMode.ENABLED] - 指定模型是投射还是接收来自光源的阴影。 |
| | | * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。 |
| | | * @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。 |
| | | * @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。 |
| | | * @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。 |
| | | * @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。 |
| | | * @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。查看模型的包围边界球。 |
| | | * @param [options.debugWireframe = false] - 仅供调试。查看模型的三角网线框图。 |
| | | * |
| | | * //以下是 模型动画相关 |
| | | * @param [options.startTime] - 场景时间开始播放动画。当undefined时,动画从下一帧开始。 |
| | | * @param [options.delay = 0.0] - 从startTime开始播放的延迟,以秒为单位。 |
| | | * @param [options.stopTime] - 场景时间停止播放动画。当这是undefined,动画播放它的整个持续时间。 |
| | | * @param [options.removeOnStop = false] - 当true时,动画在停止播放后被删除。 |
| | | * @param [options.multiplier = 1.0] - 大于1.0的值增加动画播放的速度相对于场景时钟的速度;小于1.0会降低速度。 |
| | | * @param [options.reverse = false] - 当true时,动画会反向播放。 |
| | | * @param [options.loop = Cesium.ModelAnimationLoop.REPEAT] - 决定动画是否循环以及如何循环。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ModelCombine extends BaseCombine { |
| | | /** |
| | | * 大数据 gltf小模型集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.url] - glTF模型的URI的字符串或资源属性。 |
| | | * @param [options.instances] - 集合信息数组,单个对象包括: |
| | | * @param options.instances.position - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息(目前仅支持方向和比例参数) |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.batchTable] - 实例化的3D贴图的Cesium.Cesium3DTileBatchTable批处理表。 |
| | | * @param [options.requestType] - 请求类型,用于确定请求的优先级 |
| | | * @param [options.gltf] - 一个glTF JSON对象,或者一个二进制的glTF缓冲区。 |
| | | * @param [options.basePath = ''] - glTF JSON中路径相对的基本路径。 |
| | | * @param [options.dynamic = false] - 提示实例模型矩阵是否会频繁更新。 |
| | | * @param [options.allowPicking = true] - 当true时,每个glTF和Primitive都可以用{@link Cesium.Scene#pick}来拾取。 |
| | | * @param [options.asynchronous = true] - 确定模型WebGL资源创建是否将分散在几个帧或块上,直到所有glTF文件加载完成。 |
| | | * @param [options.incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。 |
| | | * @param [options.shadows = ShadowMode.ENABLED] - 指定模型是投射还是接收来自光源的阴影。 |
| | | * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。 |
| | | * @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。 |
| | | * @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。 |
| | | * @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。 |
| | | * @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。 |
| | | * @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。查看模型的包围边界球。 |
| | | * @param [options.debugWireframe = false] - 仅供调试。查看模型的三角网线框图。 |
| | | * |
| | | * //以下是 模型动画相关 |
| | | * @param [options.startTime] - 场景时间开始播放动画。当undefined时,动画从下一帧开始。 |
| | | * @param [options.delay = 0.0] - 从startTime开始播放的延迟,以秒为单位。 |
| | | * @param [options.stopTime] - 场景时间停止播放动画。当这是undefined,动画播放它的整个持续时间。 |
| | | * @param [options.removeOnStop = false] - 当true时,动画在停止播放后被删除。 |
| | | * @param [options.multiplier = 1.0] - 大于1.0的值增加动画播放的速度相对于场景时钟的速度;小于1.0会降低速度。 |
| | | * @param [options.reverse = false] - 当true时,动画会反向播放。 |
| | | * @param [options.loop = Cesium.ModelAnimationLoop.REPEAT] - 决定动画是否循环以及如何循环。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ModelCombine extends BaseCombine { |
| | | constructor(options: { |
| | | url?: Cesium.Resource | string; |
| | | instances?: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style?: ModelPrimitive.StyleOptions; |
| | | attr?: any; |
| | | }[]; |
| | | batchTable?: any; |
| | | requestType?: any; |
| | | gltf?: any | ArrayBuffer | Uint8Array; |
| | | basePath?: Cesium.Resource | string; |
| | | dynamic?: boolean; |
| | | allowPicking?: boolean; |
| | | asynchronous?: boolean; |
| | | incrementallyLoadTextures?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Cartesian3; |
| | | luminanceAtZenith?: number; |
| | | sphericalHarmonicCoefficients?: Cesium.Cartesian3[]; |
| | | specularEnvironmentMaps?: string; |
| | | backFaceCulling?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugWireframe?: boolean; |
| | | startTime?: Cesium.JulianDate; |
| | | delay?: number; |
| | | stopTime?: Cesium.JulianDate; |
| | | removeOnStop?: boolean; |
| | | multiplier?: number; |
| | | reverse?: boolean; |
| | | loop?: Cesium.ModelAnimationLoop; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | url?: Cesium.Resource | string; |
| | | instances?: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style?: ModelPrimitive.StyleOptions; |
| | | attr?: any; |
| | | }[]; |
| | | batchTable?: any; |
| | | requestType?: any; |
| | | gltf?: any | ArrayBuffer | Uint8Array; |
| | | basePath?: Cesium.Resource | string; |
| | | dynamic?: boolean; |
| | | allowPicking?: boolean; |
| | | asynchronous?: boolean; |
| | | incrementallyLoadTextures?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Cartesian3; |
| | | luminanceAtZenith?: number; |
| | | sphericalHarmonicCoefficients?: Cesium.Cartesian3[]; |
| | | specularEnvironmentMaps?: string; |
| | | backFaceCulling?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugWireframe?: boolean; |
| | | startTime?: Cesium.JulianDate; |
| | | delay?: number; |
| | | stopTime?: Cesium.JulianDate; |
| | | removeOnStop?: boolean; |
| | | multiplier?: number; |
| | | reverse?: boolean; |
| | | loop?: Cesium.ModelAnimationLoop; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 大数据面集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 面信息数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有面的公共样式信息 |
| | | * @param [options.highlight] - 鼠标移入或单击后的对应高亮的部分样式 |
| | | * @param [options.highlight.type] - 触发高亮的方式,默认鼠标移入,可以指定为type:'click'为单击后高亮 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolygonCombine extends BasePolyCombine { |
| | | /** |
| | | * 大数据面集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 面信息数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有面的公共样式信息 |
| | | * @param [options.highlight] - 鼠标移入或单击后的对应高亮的部分样式 |
| | | * @param [options.highlight.type] - 触发高亮的方式,默认鼠标移入,可以指定为type:'click'为单击后高亮 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolygonCombine extends BasePolyCombine { |
| | | constructor(options: { |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | attr?: any; |
| | | }[]; |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | highlight?: { |
| | | type?: string; |
| | | }; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | attr?: any; |
| | | }[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | highlight?: { |
| | | type?: string; |
| | | }; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 大数据线集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 线信息 数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有线的公共样式信息 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineCombine extends BasePolyCombine { |
| | | /** |
| | | * 大数据线集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 线信息 数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有线的公共样式信息 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineCombine extends BasePolyCombine { |
| | | constructor(options: { |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolylinePrimitive.StyleOptions; |
| | | attr?: any; |
| | | }[]; |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolylinePrimitive.StyleOptions; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | attr?: any; |
| | | }[]; |
| | | style?: PolylinePrimitive.StyleOptions; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 大数据 水面集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 面信息数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有面的公共样式信息 |
| | | * @param [options.highlight] - 鼠标移入或单击后的对应高亮的部分样式 |
| | | * @param [options.highlight.type] - 触发高亮的方式,默认鼠标移入,可以指定为type:'click'为单击后高亮 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class WaterCombine extends PolygonCombine { |
| | | /** |
| | | * 大数据 水面集合 (合并渲染) Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.instances] - 面信息数组,单个对象包括: |
| | | * @param options.instances.positions - 坐标位置 |
| | | * @param [options.instances.style] - 样式信息 |
| | | * @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.style] - 所有面的公共样式信息 |
| | | * @param [options.highlight] - 鼠标移入或单击后的对应高亮的部分样式 |
| | | * @param [options.highlight.type] - 触发高亮的方式,默认鼠标移入,可以指定为type:'click'为单击后高亮 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class WaterCombine extends PolygonCombine { |
| | | constructor(options: { |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | attr?: any; |
| | | }[]; |
| | | instances?: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | highlight?: { |
| | | type?: string; |
| | | }; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | attr?: any; |
| | | }[]; |
| | | style?: PolygonPrimitive.StyleOptions; |
| | | highlight?: { |
| | | type?: string; |
| | | }; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace DivBoderLabel { |
| | | export namespace DivBoderLabel { |
| | | /** |
| | | * 动态边框文本 支持的样式信息 |
| | | * @property text - 文本内容 |
| | |
| | | * @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置 |
| | | */ |
| | | type StyleOptions = { |
| | | text: string; |
| | | font_size?: number; |
| | | font_family?: string; |
| | | color?: string; |
| | | boderColor?: string; |
| | | width?: number; |
| | | height?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | text: string; |
| | | font_size?: number; |
| | | font_family?: string; |
| | | color?: string; |
| | | boderColor?: string; |
| | | width?: number; |
| | | height?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 动态边框文本 DIV点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivBoderLabel extends DivGraphic { |
| | | /** |
| | | * 动态边框文本 DIV点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivBoderLabel extends DivGraphic { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivBoderLabel.StyleOptions; |
| | | attr?: any; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivBoderLabel.StyleOptions; |
| | | attr?: any; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建DivGraphic |
| | |
| | | * @returns DIV点对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): DivGraphic; |
| | | } |
| | | } |
| | | |
| | | export namespace DivGraphic { |
| | | export namespace DivGraphic { |
| | | /** |
| | | * DIV点 支持的样式信息 |
| | | * @property html - Html文本 |
| | |
| | | * @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置 |
| | | */ |
| | | type StyleOptions = { |
| | | html: string | Element | ((...params: any[]) => any); |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | html: string | Element | ((...params: any[]) => any); |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | }; |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | |
| | | * @property editStop - 停止编辑 标绘事件 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | change: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseMove: string; |
| | | editStop: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | change: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseMove: string; |
| | | editStop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * DIV点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.className] - 自定义的样式名 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = false] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为当前图层所在的DOM layer.container |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivGraphic extends BaseGraphic { |
| | | /** |
| | | * DIV点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.className] - 自定义的样式名 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = false] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.parentContainer] - 控件加入的父容器,默认为当前图层所在的DOM layer.container |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivGraphic extends BaseGraphic { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivGraphic.StyleOptions; |
| | | attr?: any; |
| | | className?: string; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivGraphic.StyleOptions; |
| | | attr?: any; |
| | | className?: string; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | parentContainer?: HTMLElement; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象 |
| | |
| | | * 中心点坐标(笛卡尔坐标) |
| | | */ |
| | | readonly center: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace DivLightPoint { |
| | | export namespace DivLightPoint { |
| | | /** |
| | | * 动画的扩散div点 支持的样式信息 |
| | | * @property [color = '#f33349'] - CSS颜色 |
| | |
| | | * @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置 |
| | | */ |
| | | type StyleOptions = { |
| | | color?: string; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | color?: string; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 动画的扩散div点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivLightPoint extends DivGraphic { |
| | | /** |
| | | * 动画的扩散div点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivLightPoint extends DivGraphic { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivLightPoint.StyleOptions; |
| | | attr?: any; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivLightPoint.StyleOptions; |
| | | attr?: any; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建DivGraphic |
| | |
| | | * @returns DIV点对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): DivGraphic; |
| | | } |
| | | } |
| | | |
| | | export namespace DivUpLabel { |
| | | export namespace DivUpLabel { |
| | | /** |
| | | * 竖立的文本 支持的样式信息 |
| | | * @property text - 文本内容 |
| | |
| | | * @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置 |
| | | */ |
| | | type StyleOptions = { |
| | | text: string; |
| | | color?: string; |
| | | font_size?: number; |
| | | font_family?: string; |
| | | lineHeight?: number; |
| | | circleSize?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | text: string; |
| | | color?: string; |
| | | font_size?: number; |
| | | font_family?: string; |
| | | lineHeight?: number; |
| | | circleSize?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 竖立的文本 DIV点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivUpLabel extends DivGraphic { |
| | | /** |
| | | * 竖立的文本 DIV点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivUpLabel extends DivGraphic { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivUpLabel.StyleOptions; |
| | | attr?: any; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DivUpLabel.StyleOptions; |
| | | attr?: any; |
| | | hasEdit?: boolean; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建DivGraphic |
| | |
| | | * @returns DIV点对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): DivGraphic; |
| | | } |
| | | } |
| | | |
| | | export namespace ParticleSystem { |
| | | export namespace ParticleSystem { |
| | | /** |
| | | * 粒子效果 支持的样式信息 |
| | | * @property [image] - 粒子的图片URL |
| | |
| | | * @property [updateCallback] - 每一帧调用一个回调函数来更新一个粒子。 |
| | | */ |
| | | type StyleOptions = { |
| | | image?: string; |
| | | emitter?: ParticleEmitter; |
| | | emissionRate?: number; |
| | | bursts?: Cesium.ParticleBurst[]; |
| | | loop?: boolean; |
| | | particleSize?: number; |
| | | imageSize?: Cesium.Cartesian2; |
| | | minimumImageSize?: Cesium.Cartesian2; |
| | | maximumImageSize?: Cesium.Cartesian2; |
| | | sizeInMeters?: boolean; |
| | | scale?: number; |
| | | startScale?: number; |
| | | endScale?: number; |
| | | color?: Cesium.Color; |
| | | startColor?: Cesium.Color; |
| | | endColor?: Cesium.Color; |
| | | speed?: number; |
| | | minimumSpeed?: number; |
| | | maximumSpeed?: number; |
| | | lifetime?: number; |
| | | particleLife?: number; |
| | | minimumParticleLife?: number; |
| | | maximumParticleLife?: number; |
| | | mass?: number; |
| | | minimumMass?: number; |
| | | maximumMass?: number; |
| | | updateCallback?: Cesium.ParticleSystem.updateCallback; |
| | | image?: string; |
| | | emitter?: ParticleEmitter; |
| | | emissionRate?: number; |
| | | bursts?: Cesium.ParticleBurst[]; |
| | | loop?: boolean; |
| | | particleSize?: number; |
| | | imageSize?: Cesium.Cartesian2; |
| | | minimumImageSize?: Cesium.Cartesian2; |
| | | maximumImageSize?: Cesium.Cartesian2; |
| | | sizeInMeters?: boolean; |
| | | scale?: number; |
| | | startScale?: number; |
| | | endScale?: number; |
| | | color?: Cesium.Color; |
| | | startColor?: Cesium.Color; |
| | | endColor?: Cesium.Color; |
| | | speed?: number; |
| | | minimumSpeed?: number; |
| | | maximumSpeed?: number; |
| | | lifetime?: number; |
| | | particleLife?: number; |
| | | minimumParticleLife?: number; |
| | | maximumParticleLife?: number; |
| | | mass?: number; |
| | | minimumMass?: number; |
| | | maximumMass?: number; |
| | | updateCallback?: Cesium.ParticleSystem.updateCallback; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 粒子效果 对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.gravity = 0] - 重力因子,会修改速度矢量以改变方向或速度(基于物理的效果) |
| | | * @param [options.target] - 粒子的方向,粒子喷射的目标方向。 |
| | | * @param [options.transZ = 0] - 离地高度,Z轴方向上的偏离距离(单位:米) |
| | | * @param [options.transX = 0] - X轴方向上的偏离距离(单位:米) |
| | | * @param [options.transY = 0] - Y轴方向上的偏离距离(单位:米) |
| | | * @param [options.maxHeight = 5000] - 最大视角高度(单位:米),超出该高度不显示粒子效果 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ParticleSystem extends BasePointPrimitive { |
| | | /** |
| | | * 粒子效果 对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.gravity = 0] - 重力因子,会修改速度矢量以改变方向或速度(基于物理的效果) |
| | | * @param [options.target] - 粒子的方向,粒子喷射的目标方向。 |
| | | * @param [options.transZ = 0] - 离地高度,Z轴方向上的偏离距离(单位:米) |
| | | * @param [options.transX = 0] - X轴方向上的偏离距离(单位:米) |
| | | * @param [options.transY = 0] - Y轴方向上的偏离距离(单位:米) |
| | | * @param [options.maxHeight = 5000] - 最大视角高度(单位:米),超出该高度不显示粒子效果 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ParticleSystem extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: ParticleSystem.StyleOptions; |
| | | attr?: any; |
| | | gravity?: number; |
| | | target?: Cesium.Cartesian3; |
| | | transZ?: number; |
| | | transX?: number; |
| | | transY?: number; |
| | | maxHeight?: number; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: ParticleSystem.StyleOptions; |
| | | attr?: any; |
| | | gravity?: number; |
| | | target?: Cesium.Cartesian3; |
| | | transZ?: number; |
| | | transX?: number; |
| | | transY?: number; |
| | | maxHeight?: number; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 最大视角高度(单位:米),超出该高度不显示粒子效果 |
| | |
| | | * 粒子图片的Size大小(单位:像素) |
| | | */ |
| | | particleSize: number; |
| | | } |
| | | } |
| | | |
| | | export namespace Popup { |
| | | export namespace Popup { |
| | | /** |
| | | * Popup对象 支持的配置信息 |
| | | * @property [html] - Html文本({content}部分,整体展示的DOM由template和html属性共同组成) |
| | |
| | | * @property [autoCenter] - 当气泡窗口有部分在地图之外时是否自动进行居中 (目前仅俯视时准确定位) |
| | | */ |
| | | type StyleOptions = { |
| | | html?: string; |
| | | template?: string; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | autoCenter?: boolean; |
| | | html?: string; |
| | | template?: string; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | autoCenter?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Popup对象div点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.animation = true] - 是否执行打开时的动画效果 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class Popup extends DivGraphic { |
| | | /** |
| | | * Popup对象div点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = true] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.animation = true] - 是否执行打开时的动画效果 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class Popup extends DivGraphic { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: Popup.StyleOptions; |
| | | attr?: any; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | animation?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: Popup.StyleOptions; |
| | | attr?: any; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | animation?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 关联的触发对象 |
| | |
| | | * @returns DIV点对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): DivGraphic; |
| | | } |
| | | } |
| | | |
| | | export namespace Tooltip { |
| | | export namespace Tooltip { |
| | | /** |
| | | * Tooltip对象 支持的配置信息 |
| | | * @property [html] - Html文本({content}部分,整体展示的DOM由template和html属性共同组成) |
| | |
| | | * @property [timeRender] - 是否实时刷新全部HTML,此时需要绑定html需传入回调方法。 |
| | | */ |
| | | type StyleOptions = { |
| | | html?: string; |
| | | template?: string | boolean; |
| | | direction?: string; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | html?: string; |
| | | template?: string | boolean; |
| | | direction?: string; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | scaleByDistance?: boolean; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | css_transform_origin?: string; |
| | | timeRender?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Tooltip对象div点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = false] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class Tooltip extends Popup { |
| | | /** |
| | | * Tooltip对象div点 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。 |
| | | * @param [options.pointerEvents = false] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。 |
| | | * @param [options.hasZIndex = true] - 是否自动调整DIV的层级顺序。 |
| | | * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面) |
| | | * @param [options.hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class Tooltip extends Popup { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: Tooltip.StyleOptions; |
| | | attr?: any; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: Tooltip.StyleOptions; |
| | | attr?: any; |
| | | testPoint?: PointEntity.StyleOptions; |
| | | pointerEvents?: boolean; |
| | | hasZIndex?: boolean; |
| | | depthTest?: boolean; |
| | | hasCache?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建DivGraphic |
| | |
| | | * @returns DIV点对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): Tooltip; |
| | | } |
| | | } |
| | | |
| | | export namespace Video3D { |
| | | export namespace Video3D { |
| | | /** |
| | | * 视频融合(投射3D,贴物体表面) 支持的样式信息 |
| | | * @property opacity - 混合系数 0.0 - 1.0 |
| | |
| | | * @property [textStyles.padding = 10] - 要在文本周围添加的填充的像素大小。 |
| | | */ |
| | | type StyleOptions = { |
| | | opacity: number; |
| | | camera: { |
| | | direction: Cesium.Cartesian3; |
| | | up: Cesium.Cartesian3; |
| | | right: Cesium.Cartesian3; |
| | | }; |
| | | aspectRatio: number; |
| | | fov: number; |
| | | fovDegree: number; |
| | | hiddenAreaColor?: Cesium.Color; |
| | | color?: Cesium.Color; |
| | | text?: string; |
| | | textStyles?: { |
| | | font?: string; |
| | | textBaseline?: string; |
| | | fill?: boolean; |
| | | stroke?: boolean; |
| | | fillColor?: Cesium.Color; |
| | | strokeColor?: Cesium.Color; |
| | | strokeWidth?: number; |
| | | backgroundColor?: Cesium.Color; |
| | | padding?: number; |
| | | }; |
| | | opacity: number; |
| | | camera: { |
| | | direction: Cesium.Cartesian3; |
| | | up: Cesium.Cartesian3; |
| | | right: Cesium.Cartesian3; |
| | | }; |
| | | aspectRatio: number; |
| | | fov: number; |
| | | fovDegree: number; |
| | | hiddenAreaColor?: Cesium.Color; |
| | | color?: Cesium.Color; |
| | | text?: string; |
| | | textStyles?: { |
| | | font?: string; |
| | | textBaseline?: string; |
| | | fill?: boolean; |
| | | stroke?: boolean; |
| | | fillColor?: Cesium.Color; |
| | | strokeColor?: Cesium.Color; |
| | | strokeWidth?: number; |
| | | backgroundColor?: Cesium.Color; |
| | | padding?: number; |
| | | }; |
| | | }; |
| | | /** |
| | | * 类型 |
| | | */ |
| | | enum Type { |
| | | Video, |
| | | Image, |
| | | Color, |
| | | Text |
| | | Video, |
| | | Image, |
| | | Color, |
| | | Text |
| | | } |
| | | /** |
| | | * 旋转的方向 |
| | | */ |
| | | enum RatateDirection { |
| | | LEFT, |
| | | RIGHT, |
| | | TOP, |
| | | BOTTOM, |
| | | ALONG, |
| | | INVERSE |
| | | LEFT, |
| | | RIGHT, |
| | | TOP, |
| | | BOTTOM, |
| | | ALONG, |
| | | INVERSE |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 视频融合(投射3D,贴物体表面) |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 视点位置 |
| | | * @param options.cameraPosition - 相机位置 |
| | | * @param options.type - 投射的类型 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.url] - 当为图片或视频类型时,传入的图片或视频的路径 |
| | | * @param [options.dom] - 当为视频类型时,传入了视频容器DOM,与url二选一 |
| | | * @param [options.showFrustum = true] - 是否显示视椎体框线 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Video3D extends BasePointPrimitive { |
| | | /** |
| | | * 视频融合(投射3D,贴物体表面) |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 视点位置 |
| | | * @param options.cameraPosition - 相机位置 |
| | | * @param options.type - 投射的类型 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.url] - 当为图片或视频类型时,传入的图片或视频的路径 |
| | | * @param [options.dom] - 当为视频类型时,传入了视频容器DOM,与url二选一 |
| | | * @param [options.showFrustum = true] - 是否显示视椎体框线 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Video3D extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | cameraPosition: LatLngPoint | Cesium.Cartesian3; |
| | | type: Video3D.Type; |
| | | style: Video3D.StyleOptions; |
| | | url?: string; |
| | | dom?: HTMLElement | any; |
| | | showFrustum?: boolean; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | cameraPosition: LatLngPoint | Cesium.Cartesian3; |
| | | type: Video3D.Type; |
| | | style: Video3D.StyleOptions; |
| | | url?: string; |
| | | dom?: HTMLElement | any; |
| | | showFrustum?: boolean; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 相机位置(笛卡尔坐标) |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyTo(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace BaseEntity { |
| | | export namespace BaseEntity { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property editStop - 停止编辑 标绘事件 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Entity实体 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 【点状】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.positions - 【线面状(多点)】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BaseEntity extends BaseGraphic { |
| | | /** |
| | | * Entity实体 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 【点状】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.positions - 【线面状(多点)】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BaseEntity extends BaseGraphic { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 加载Entity数据的内部Cesium容器 |
| | |
| | | * @returns 高亮闪烁控制 对象 |
| | | */ |
| | | startFlicker(options: { |
| | | time?: number; |
| | | color?: Cesium.Color; |
| | | maxAlpha?: number; |
| | | onEnd?: (...params: any[]) => any; |
| | | time?: number; |
| | | color?: Cesium.Color; |
| | | maxAlpha?: number; |
| | | onEnd?: (...params: any[]) => any; |
| | | }): FlickerEntity; |
| | | /** |
| | | * 停止高亮闪烁 |
| | |
| | | * @returns 无 |
| | | */ |
| | | stopEditing(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 单个坐标的点状Entity矢量数据 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.orientation] - 指定实体方向的属性。 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.entity] - 传入外部已经构造好的Entity对象 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量 |
| | | * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。 |
| | | * @param [options.frameRate = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePointEntity extends BaseEntity { |
| | | /** |
| | | * 单个坐标的点状Entity矢量数据 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.orientation] - 指定实体方向的属性。 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.entity] - 传入外部已经构造好的Entity对象 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量 |
| | | * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。 |
| | | * @param [options.frameRate = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePointEntity extends BaseEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | orientation?: Cesium.Property; |
| | | style: any; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | entity?: Cesium.Entity; |
| | | hasEdit?: boolean; |
| | | maxCacheCount?: number; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | orientation?: Cesium.Property; |
| | | style: any; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | entity?: Cesium.Entity; |
| | | hasEdit?: boolean; |
| | | maxCacheCount?: number; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 编辑处理类 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | clampToGround(options?: { |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | }): BasePointEntity; |
| | | /** |
| | | * 位置坐标(数组对象),示例[113.123456,31.123456,30.1] |
| | |
| | | * 显示隐藏状态 |
| | | */ |
| | | show: boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 多个坐标的线面状 Entity矢量数据 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePolyEntity extends BaseEntity { |
| | | /** |
| | | * 多个坐标的线面状 Entity矢量数据 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.hasEdit = true] - 是否允许编辑 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePolyEntity extends BaseEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: any; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | hasEdit?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: any; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | hasEdit?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 编辑处理类 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | clampToGround(options?: { |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | }): BasePolyEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace BillboardEntity { |
| | | export namespace BillboardEntity { |
| | | /** |
| | | * 图标点 支持的样式信息 |
| | | * @property [image] - 用于矢量对象的 图像、URI或Canvas |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | image?: string | HTMLCanvasElement; |
| | | opacity?: number; |
| | | scale?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | width?: number; |
| | | height?: number; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | color?: Cesium.Color; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | alignedAxis?: Cesium.Cartesian3; |
| | | sizeInMeters?: boolean; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | imageSubRegion?: Cesium.BoundingRectangle; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BillboardEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | image?: string | HTMLCanvasElement; |
| | | opacity?: number; |
| | | scale?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | width?: number; |
| | | height?: number; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | color?: Cesium.Color; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | alignedAxis?: Cesium.Cartesian3; |
| | | sizeInMeters?: boolean; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | imageSubRegion?: Cesium.BoundingRectangle; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BillboardEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图标点 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BillboardEntity extends BasePointEntity { |
| | | /** |
| | | * 图标点 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BillboardEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: BillboardEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: BillboardEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | startBounce(options?: { |
| | | maxHeight?: number; |
| | | step?: number; |
| | | autoStop?: boolean; |
| | | maxHeight?: number; |
| | | step?: number; |
| | | autoStop?: boolean; |
| | | }): void; |
| | | /** |
| | | * 停止弹跳动画 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): BillboardEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace BoxEntity { |
| | | export namespace BoxEntity { |
| | | /** |
| | | * 盒子 支持的样式信息 |
| | | * @property [dimensions] - 指定盒子的长度、宽度和高度。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | dimensions?: Cesium.Cartesian3; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | dimensions_z?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BoxEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | dimensions?: Cesium.Cartesian3; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | dimensions_z?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BoxEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 盒子 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BoxEntity extends BasePointEntity { |
| | | /** |
| | | * 盒子 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BoxEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: BoxEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: BoxEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): BoxEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace CircleEntity { |
| | | export namespace CircleEntity { |
| | | /** |
| | | * 圆、圆柱 支持的样式信息 |
| | | * @property [radius = 100] - 半径 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | radius?: number; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | numberOfVerticalLines?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | addHeight?: number | string; |
| | | highlight?: CircleEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | radius?: number; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | numberOfVerticalLines?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | addHeight?: number | string; |
| | | highlight?: CircleEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆、圆柱 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShowRadius = true] - 绘制时,是否显示圆的半径。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CircleEntity extends BasePointEntity { |
| | | /** |
| | | * 圆、圆柱 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShowRadius = true] - 绘制时,是否显示圆的半径。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CircleEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: CircleEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShowRadius?: boolean; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: CircleEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShowRadius?: boolean; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns GeoJSON格式规范对象 |
| | | */ |
| | | toGeoJSON(options?: { |
| | | outline?: boolean; |
| | | closure?: boolean; |
| | | count?: boolean; |
| | | noAlt?: boolean; |
| | | outline?: boolean; |
| | | closure?: boolean; |
| | | count?: boolean; |
| | | noAlt?: boolean; |
| | | }): any; |
| | | /** |
| | | * 获取圆的边线坐标集合(笛卡尔坐标) |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | /** |
| | | * 判断点是否在圆内 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseGraphic | any; |
| | | } |
| | | } |
| | | |
| | | export namespace ConeTrack { |
| | | export namespace ConeTrack { |
| | | /** |
| | | * 圆锥追踪体 支持的样式信息 |
| | | * @property [angle] - 圆锥追踪体张角(角度值,取值范围 0.01-89.99) |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | angle?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | numberOfVerticalLines?: number; |
| | | slices?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CylinderEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | angle?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | numberOfVerticalLines?: number; |
| | | slices?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CylinderEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆锥追踪体 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.targetPosition] - 追踪的目标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ConeTrack extends CylinderEntity { |
| | | /** |
| | | * 圆锥追踪体 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.targetPosition] - 追踪的目标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ConeTrack extends CylinderEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | targetPosition?: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | style: ConeTrack.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | targetPosition?: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | style: ConeTrack.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 追踪的目标位置(确定了方向和距离) |
| | |
| | | * 夹角,半场角度,取值范围 0.01-89.99 |
| | | */ |
| | | angle: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 定时闪烁高亮Entity(点、线、面) |
| | | */ |
| | | export class FlickerEntity { |
| | | /** |
| | | * 定时闪烁高亮Entity(点、线、面) |
| | | */ |
| | | export class FlickerEntity { |
| | | /** |
| | | * 高亮闪烁 Enity实体对象 |
| | | * @param entitys - entity对象或对象数组 |
| | |
| | | * @returns 高亮闪烁控制 对象 |
| | | */ |
| | | startFlicker(entitys: Cesium.Entity | Cesium.Entity[], opts?: { |
| | | time?: number; |
| | | color?: Cesium.Color; |
| | | maxAlpha?: number; |
| | | onEnd?: (...params: any[]) => any; |
| | | time?: number; |
| | | color?: Cesium.Color; |
| | | maxAlpha?: number; |
| | | onEnd?: (...params: any[]) => any; |
| | | }): FlickerEntity; |
| | | /** |
| | | * 停止高亮闪烁 |
| | | * @returns 高亮闪烁控制 对象 |
| | | */ |
| | | stopFlicker(): FlickerEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace CorridorEntity { |
| | | export namespace CorridorEntity { |
| | | /** |
| | | * 走廊 支持的样式信息 |
| | | * @property [width = 100] - 走廊宽度,指定走廊边缘之间的距离。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | width?: number; |
| | | cornerType?: string | Cesium.CornerType; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CorridorEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | width?: number; |
| | | cornerType?: string | Cesium.CornerType; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CorridorEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 走廊 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CorridorEntity extends BasePolyEntity { |
| | | /** |
| | | * 走廊 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CorridorEntity extends BasePolyEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: CorridorEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: CorridorEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 曲线 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CurveEntity extends PolylineEntity { |
| | | /** |
| | | * 曲线 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CurveEntity extends PolylineEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): CurveEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace CylinderEntity { |
| | | export namespace CylinderEntity { |
| | | /** |
| | | * 圆锥 支持的样式信息 |
| | | * @property [topRadius = 0] - 顶部半径,指定圆柱体顶部的半径,当为0时即为圆锥。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | topRadius?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | numberOfVerticalLines?: number; |
| | | slices?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CylinderEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | topRadius?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | numberOfVerticalLines?: number; |
| | | slices?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CylinderEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆锥 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CylinderEntity extends BasePointEntity { |
| | | /** |
| | | * 圆锥 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CylinderEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: CylinderEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: CylinderEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象 |
| | | */ |
| | | position: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace DivBillboardEntity { |
| | | export namespace DivBillboardEntity { |
| | | /** |
| | | * HTML转图片后的图标点Entity 支持的样式信息 |
| | | * @property html - Html内容 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | html: string; |
| | | opacity?: number; |
| | | scale?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | width?: number; |
| | | height?: number; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | color?: Cesium.Color; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | alignedAxis?: Cesium.Cartesian3; |
| | | sizeInMeters?: boolean; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | imageSubRegion?: Cesium.BoundingRectangle; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BillboardEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | html: string; |
| | | opacity?: number; |
| | | scale?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | width?: number; |
| | | height?: number; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | color?: Cesium.Color; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | alignedAxis?: Cesium.Cartesian3; |
| | | sizeInMeters?: boolean; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | imageSubRegion?: Cesium.BoundingRectangle; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BillboardEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * HTML转图片后的 图标点Entity, |
| | | * 需要引入html2canvas或domtoimage插件进行DOM转图片 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivBillboardEntity extends BillboardEntity { |
| | | /** |
| | | * HTML转图片后的 图标点Entity, |
| | | * 需要引入html2canvas或domtoimage插件进行DOM转图片 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DivBillboardEntity extends BillboardEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: DivBillboardEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: DivBillboardEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): DivBillboardEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 标绘处理对应的编辑基类 |
| | | */ |
| | | export class EditBase { |
| | | /** |
| | | * 标绘处理对应的编辑基类 |
| | | */ |
| | | export class EditBase { |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | | */ |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | disable(): EditBase; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * BoxEntity对象,标绘处理对应的编辑类 |
| | | */ |
| | | export class EditBox extends EditBase { |
| | | /** |
| | | * BoxEntity对象,标绘处理对应的编辑类 |
| | | */ |
| | | export class EditBox extends EditBase { |
| | | /** |
| | | * 位置坐标 (笛卡尔坐标) |
| | | */ |
| | | position: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Circle对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditCircle extends EditPoly { |
| | | } |
| | | /** |
| | | * Circle对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditCircle extends EditPoly { |
| | | } |
| | | |
| | | /** |
| | | * Corridor对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditCorridor extends EditPoly { |
| | | } |
| | | /** |
| | | * Corridor对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditCorridor extends EditPoly { |
| | | } |
| | | |
| | | /** |
| | | * Cylinder对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditCylinder extends EditPoly { |
| | | } |
| | | /** |
| | | * Cylinder对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditCylinder extends EditPoly { |
| | | } |
| | | |
| | | /** |
| | | * Ellipsoid对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditEllipsoid extends EditBase { |
| | | } |
| | | /** |
| | | * Ellipsoid对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditEllipsoid extends EditBase { |
| | | } |
| | | |
| | | /** |
| | | * Model对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditModel extends EditBase { |
| | | } |
| | | /** |
| | | * Model对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditModel extends EditBase { |
| | | } |
| | | |
| | | /** |
| | | * Plane对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditPlane extends EditBase { |
| | | } |
| | | /** |
| | | * Plane对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditPlane extends EditBase { |
| | | } |
| | | |
| | | /** |
| | | * Point 对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditPoint extends EditBase { |
| | | } |
| | | /** |
| | | * Point 对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditPoint extends EditBase { |
| | | } |
| | | |
| | | /** |
| | | * 线面状对象 标绘处理对应的编辑类基类 |
| | | */ |
| | | export class EditPoly extends EditBase { |
| | | } |
| | | /** |
| | | * 线面状对象 标绘处理对应的编辑类基类 |
| | | */ |
| | | export class EditPoly extends EditBase { |
| | | } |
| | | |
| | | /** |
| | | * Polygon对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditPolygon extends EditPoly { |
| | | } |
| | | /** |
| | | * Polygon对象 标绘处理对应的编辑类 |
| | | */ |
| | | export class EditPolygon extends EditPoly { |
| | | } |
| | | |
| | | /** |
| | | * Polygon对象 标绘处理对应的编辑类, |
| | | * 用于外部扩展使用,绘制的点与显示的点不一致的标号 |
| | | */ |
| | | export class EditPolygonEx extends EditPolygon { |
| | | } |
| | | /** |
| | | * Polygon对象 标绘处理对应的编辑类, |
| | | * 用于外部扩展使用,绘制的点与显示的点不一致的标号 |
| | | */ |
| | | export class EditPolygonEx extends EditPolygon { |
| | | } |
| | | |
| | | /** |
| | | * Rectangle对象 标绘处理对应的编辑类, |
| | | */ |
| | | export class EditRectangle extends EditPoly { |
| | | } |
| | | /** |
| | | * Rectangle对象 标绘处理对应的编辑类, |
| | | */ |
| | | export class EditRectangle extends EditPoly { |
| | | } |
| | | |
| | | /** |
| | | * Wall对象 标绘处理对应的编辑类, |
| | | */ |
| | | export class EditWall extends EditPoly { |
| | | } |
| | | /** |
| | | * Wall对象 标绘处理对应的编辑类, |
| | | */ |
| | | export class EditWall extends EditPoly { |
| | | } |
| | | |
| | | export namespace EllipseEntity { |
| | | export namespace EllipseEntity { |
| | | /** |
| | | * 椭圆、椭圆柱 支持的样式信息 |
| | | * @property [semiMinorAxis = 100] - 椭圆时的 短半径 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | semiMinorAxis?: number; |
| | | semiMajorAxis?: number; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | numberOfVerticalLines?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | addHeight?: number | string; |
| | | highlight?: CircleEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | semiMinorAxis?: number; |
| | | semiMajorAxis?: number; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | numberOfVerticalLines?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | addHeight?: number | string; |
| | | highlight?: CircleEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 椭圆、椭圆柱 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class EllipseEntity extends CircleEntity { |
| | | /** |
| | | * 椭圆、椭圆柱 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class EllipseEntity extends CircleEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: EllipseEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: EllipseEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): EllipseEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace EllipsoidEntity { |
| | | export namespace EllipsoidEntity { |
| | | /** |
| | | * 球、半球、椭球 支持的 样式信息 |
| | | * @property [radii] - 指定椭球半径。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | radii?: Cesium.Cartesian3; |
| | | radii_x?: number; |
| | | radii_y?: number; |
| | | radii_z?: number; |
| | | innerRadii?: Cesium.Cartesian3; |
| | | innerRadii_x?: number; |
| | | innerRadii_y?: number; |
| | | innerRadii_z?: number; |
| | | minimumClock?: number; |
| | | minimumClockDegree?: number; |
| | | maximumClock?: number; |
| | | maximumClockDegree?: number; |
| | | minimumCone?: number; |
| | | minimumConeDegree?: number; |
| | | maximumCone?: number; |
| | | maximumConeDegree?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | stackPartitions?: number; |
| | | slicePartitions?: number; |
| | | subdivisions?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: EllipsoidEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | radii?: Cesium.Cartesian3; |
| | | radii_x?: number; |
| | | radii_y?: number; |
| | | radii_z?: number; |
| | | innerRadii?: Cesium.Cartesian3; |
| | | innerRadii_x?: number; |
| | | innerRadii_y?: number; |
| | | innerRadii_z?: number; |
| | | minimumClock?: number; |
| | | minimumClockDegree?: number; |
| | | maximumClock?: number; |
| | | maximumClockDegree?: number; |
| | | minimumCone?: number; |
| | | minimumConeDegree?: number; |
| | | maximumCone?: number; |
| | | maximumConeDegree?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | stackPartitions?: number; |
| | | slicePartitions?: number; |
| | | subdivisions?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: EllipsoidEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | /** |
| | | * 动态扫描面 参数 |
| | |
| | | * @property [planeOptions.style] - 样式信息 |
| | | */ |
| | | type ScanPlaneOptions = { |
| | | planeOptions: { |
| | | type?: string; |
| | | step?: number; |
| | | style?: EllipsoidEntity.StyleOptions; |
| | | }; |
| | | planeOptions: { |
| | | type?: string; |
| | | step?: number; |
| | | style?: EllipsoidEntity.StyleOptions; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 球、半球、椭球 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param options.scanPlane - 动态扫描面 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class EllipsoidEntity extends BasePointEntity { |
| | | /** |
| | | * 球、半球、椭球 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param options.scanPlane - 动态扫描面 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class EllipsoidEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: EllipsoidEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | scanPlane: EllipsoidEntity.ScanPlaneOptions | EllipsoidEntity.ScanPlaneOptions[]; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: EllipsoidEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | scanPlane: EllipsoidEntity.ScanPlaneOptions | EllipsoidEntity.ScanPlaneOptions[]; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象 |
| | | */ |
| | | position: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace FontBillboardEntity { |
| | | export namespace FontBillboardEntity { |
| | | /** |
| | | * Font CSS字体点转图片后的图标点 Entity 支持的样式信息 |
| | | * @property [iconClass = "fa fa-automobile"] - 字体css样式 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | iconClass?: string; |
| | | iconSize?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | scale?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | width?: number; |
| | | height?: number; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | alignedAxis?: Cesium.Cartesian3; |
| | | sizeInMeters?: boolean; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | imageSubRegion?: Cesium.BoundingRectangle; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BillboardEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | iconClass?: string; |
| | | iconSize?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | scale?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | width?: number; |
| | | height?: number; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | alignedAxis?: Cesium.Cartesian3; |
| | | sizeInMeters?: boolean; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | imageSubRegion?: Cesium.BoundingRectangle; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BillboardEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Font CSS字体点转图片后的图标点 Entity, |
| | | * 需要引入html2canvas或domtoimage插件进行DOM转图片 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FontBillboardEntity extends BasePointEntity { |
| | | /** |
| | | * Font CSS字体点转图片后的图标点 Entity, |
| | | * 需要引入html2canvas或domtoimage插件进行DOM转图片 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FontBillboardEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: FontBillboardEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: FontBillboardEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): FontBillboardEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace LabelEntity { |
| | | export namespace LabelEntity { |
| | | /** |
| | | * 文本点 支持的样式信息 |
| | | * @property [text = "文字"] - 文本内容,换行可以用换行符'\n'。 |
| | |
| | | * @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置 |
| | | */ |
| | | type StyleOptions = { |
| | | text?: string; |
| | | scale?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | font_family?: string; |
| | | font_size?: number; |
| | | font_weight?: string; |
| | | font_style?: string; |
| | | font?: string; |
| | | fill?: boolean; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineWidth?: number; |
| | | background?: boolean; |
| | | backgroundColor?: string | Cesium.Color; |
| | | backgroundOpacity?: number; |
| | | backgroundPadding?: number | Cesium.Cartesian2; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | text?: string; |
| | | scale?: number; |
| | | horizontalOrigin?: Cesium.HorizontalOrigin; |
| | | verticalOrigin?: Cesium.VerticalOrigin; |
| | | font_family?: string; |
| | | font_size?: number; |
| | | font_weight?: string; |
| | | font_style?: string; |
| | | font?: string; |
| | | fill?: boolean; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineWidth?: number; |
| | | background?: boolean; |
| | | backgroundColor?: string | Cesium.Color; |
| | | backgroundOpacity?: number; |
| | | backgroundPadding?: number | Cesium.Cartesian2; |
| | | hasPixelOffset?: boolean; |
| | | pixelOffsetX?: number; |
| | | pixelOffsetY?: number; |
| | | pixelOffset?: Cesium.Cartesian2 | number[]; |
| | | pixelOffsetScaleByDistance?: Cesium.NearFarScalar; |
| | | eyeOffset?: Cesium.Cartesian3; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 文字 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class LabelEntity extends BasePointEntity { |
| | | /** |
| | | * 文字 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class LabelEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: LabelEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: LabelEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | startBounce(options?: { |
| | | maxHeight?: number; |
| | | step?: number; |
| | | autoStop?: boolean; |
| | | maxHeight?: number; |
| | | step?: number; |
| | | autoStop?: boolean; |
| | | }): void; |
| | | /** |
| | | * 停止弹跳动画 |
| | |
| | | * 附加的label文本对象 |
| | | */ |
| | | readonly label: Cesium.Label | Cesium.LabelGraphics; |
| | | } |
| | | } |
| | | |
| | | export namespace ModelEntity { |
| | | export namespace ModelEntity { |
| | | /** |
| | | * gltf小模型 支持的样式信息 |
| | | * @property [url] - glTF模型的URI的字符串或资源属性。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | url?: string | Cesium.Resource; |
| | | scale?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | noPitchRoll?: boolean; |
| | | minimumPixelSize?: number; |
| | | maximumScale?: number; |
| | | fill?: boolean; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | colorBlendMode?: Cesium.ColorBlendMode; |
| | | colorBlendAmount?: number; |
| | | silhouette?: boolean; |
| | | silhouetteColor?: string | Cesium.Color; |
| | | silhouetteSize?: number; |
| | | silhouetteAlpha?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_near?: number; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayPoint?: PointEntity.StyleOptions; |
| | | distanceDisplayBillboard?: BillboardEntity.StyleOptions; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | incrementallyLoadTextures?: boolean; |
| | | runAnimations?: boolean; |
| | | clampAnimations?: boolean; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Color; |
| | | nodeTransformations?: Cesium.PropertyBag | { |
| | | [key: string]: Cesium.TranslationRotationScale; |
| | | }; |
| | | articulations?: Cesium.PropertyBag | { |
| | | [key: string]: number; |
| | | }; |
| | | clippingPlanes?: Cesium.ClippingPlaneCollection; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: ModelEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | url?: string | Cesium.Resource; |
| | | scale?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | noPitchRoll?: boolean; |
| | | minimumPixelSize?: number; |
| | | maximumScale?: number; |
| | | fill?: boolean; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | colorBlendMode?: Cesium.ColorBlendMode; |
| | | colorBlendAmount?: number; |
| | | silhouette?: boolean; |
| | | silhouetteColor?: string | Cesium.Color; |
| | | silhouetteSize?: number; |
| | | silhouetteAlpha?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_near?: number; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayPoint?: PointEntity.StyleOptions; |
| | | distanceDisplayBillboard?: BillboardEntity.StyleOptions; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | incrementallyLoadTextures?: boolean; |
| | | runAnimations?: boolean; |
| | | clampAnimations?: boolean; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Color; |
| | | nodeTransformations?: Cesium.PropertyBag | { |
| | | [key: string]: Cesium.TranslationRotationScale; |
| | | }; |
| | | articulations?: Cesium.PropertyBag | { |
| | | [key: string]: number; |
| | | }; |
| | | clippingPlanes?: Cesium.ClippingPlaneCollection; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: ModelEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | |
| | | * @property stop - 模型addDynamicPosition添加的动态点,到时时间停止后触发 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | load: string; |
| | | stop: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | load: string; |
| | | stop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * gltf小模型 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量 |
| | | * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。 |
| | | * @param [options.frameRate = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ModelEntity extends BasePointEntity { |
| | | /** |
| | | * gltf小模型 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量 |
| | | * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。 |
| | | * @param [options.frameRate = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ModelEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: ModelEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | maxCacheCount?: number; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: ModelEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | maxCacheCount?: number; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | rotateStart(options?: { |
| | | direction?: boolean; |
| | | time?: number; |
| | | autoStopAngle?: number; |
| | | direction?: boolean; |
| | | time?: number; |
| | | autoStopAngle?: number; |
| | | }): void; |
| | | /** |
| | | * 停止运行 自旋转动画效果 |
| | |
| | | * @returns 无 |
| | | */ |
| | | moveTo(options?: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | time?: number; |
| | | onEnd?: (...params: any[]) => any; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | time?: number; |
| | | onEnd?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 飞行定位至数据所在的视角 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | scale?: number; |
| | | radius: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | scale?: number; |
| | | radius: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): ModelEntity; |
| | | /** |
| | | * 设置透明度 |
| | |
| | | * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象 |
| | | */ |
| | | position: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace PathEntity { |
| | | export namespace PathEntity { |
| | | /** |
| | | * path路径 支持的样式信息 |
| | | * @property [width = 1.0] - 以像素为单位指定宽度的数字属性。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | width?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | leadTime?: number; |
| | | trailTime?: number; |
| | | resolution?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelEntity.StyleOptions; |
| | | width?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | leadTime?: number; |
| | | trailTime?: number; |
| | | resolution?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * path路径 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置(含时序的点集合) |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.model] - 设置是否显示 gltf模型 和对应的样式 |
| | | * @param [options.point] - 设置是否显示 像素点 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PathEntity extends BasePointEntity { |
| | | /** |
| | | * path路径 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置(含时序的点集合) |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.model] - 设置是否显示 gltf模型 和对应的样式 |
| | | * @param [options.point] - 设置是否显示 像素点 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PathEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: Cesium.SampledPositionProperty; |
| | | orientation?: Cesium.Property; |
| | | style: PathEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | model?: ModelEntity.StyleOptions; |
| | | point?: PointEntity.StyleOptions; |
| | | billboard?: BillboardEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: Cesium.SampledPositionProperty; |
| | | orientation?: Cesium.Property; |
| | | style: PathEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | model?: ModelEntity.StyleOptions; |
| | | point?: PointEntity.StyleOptions; |
| | | billboard?: BillboardEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyToPoint(options?: { |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象 |
| | | */ |
| | | position: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace PlaneEntity { |
| | | export namespace PlaneEntity { |
| | | /** |
| | | * 平面 支持的样式信息 |
| | | * @property [dimensions] - 指定平面的宽度和高度。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | dimensions?: Cesium.Cartesian2; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | plane?: Cesium.Plane; |
| | | plane_normal?: string; |
| | | plane_distance?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | randomColor?: boolean; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: PlaneEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | dimensions?: Cesium.Cartesian2; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | plane?: Cesium.Plane; |
| | | plane_normal?: string; |
| | | plane_distance?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | randomColor?: boolean; |
| | | color?: string; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: PlaneEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 平面 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PlaneEntity extends BasePointEntity { |
| | | /** |
| | | * 平面 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PlaneEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: PlaneEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: PlaneEntity.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PlaneEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace PointEntity { |
| | | export namespace PointEntity { |
| | | /** |
| | | * 像素点 支持的样式信息 |
| | | * @property [pixelSize = 10] - 像素大小 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | pixelSize?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineWidth?: number; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: PointEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | pixelSize?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineWidth?: number; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: PointEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 像素点 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PointEntity extends BasePointEntity { |
| | | /** |
| | | * 像素点 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PointEntity extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: PointEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: PointEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PointEntity; |
| | | } |
| | | } |
| | | |
| | | export namespace PolygonEntity { |
| | | export namespace PolygonEntity { |
| | | /** |
| | | * 面 支持的样式信息 |
| | | * @property [fill = true] - 是否填充 |
| | |
| | | * @property [label.showAll] - MultiPolygon和MultiLineString时,是否显示所有注记,默认只在最大坐标数的面或线上显示。 |
| | | */ |
| | | type StyleOptions = { |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | granularity?: number; |
| | | closeTop?: boolean; |
| | | closeBottom?: boolean; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | perPositionHeight?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | buffer?: number; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolygonEntity.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | granularity?: number; |
| | | closeTop?: boolean; |
| | | closeBottom?: boolean; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | perPositionHeight?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | buffer?: number; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolygonEntity.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 面 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolygonEntity extends BasePolyEntity { |
| | | /** |
| | | * 面 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolygonEntity extends BasePolyEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns GeoJSON格式规范对象 |
| | | */ |
| | | toGeoJSON(options?: { |
| | | closure?: boolean; |
| | | noAlt?: boolean; |
| | | closure?: boolean; |
| | | noAlt?: boolean; |
| | | }): any; |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * 中心点坐标 (笛卡尔坐标) |
| | | */ |
| | | readonly center: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace PolylineEntity { |
| | | export namespace PolylineEntity { |
| | | /** |
| | | * 线 支持的样式信息 |
| | | * @property [materialType = "Color"] - 线型 ,可选项:{@link MaterialType} |
| | |
| | | * @property [label.showAll] - MultiPolygon和MultiLineString时,是否显示所有注记,默认只在最大坐标数的面或线上显示。 |
| | | */ |
| | | type StyleOptions = { |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | width?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | depthFailMaterial?: Cesium.MaterialProperty | Cesium.Color; |
| | | closure?: boolean; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineWidth?: number; |
| | | depthFail?: boolean; |
| | | depthFailColor?: string; |
| | | depthFailOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | arcType?: Cesium.ArcType; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolylineEntity.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | width?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | depthFailMaterial?: Cesium.MaterialProperty | Cesium.Color; |
| | | closure?: boolean; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineWidth?: number; |
| | | depthFail?: boolean; |
| | | depthFailColor?: string; |
| | | depthFailOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | arcType?: Cesium.ArcType; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolylineEntity.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 线 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineEntity extends BasePolyEntity { |
| | | /** |
| | | * 线 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineEntity extends BasePolyEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | export namespace PolylineVolumeEntity { |
| | | export namespace PolylineVolumeEntity { |
| | | /** |
| | | * 管道线 支持的样式信息 |
| | | * @property [radius = 10] - 半径 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | radius?: number; |
| | | shape?: string | Cesium.Cartesian2[]; |
| | | fill?: boolean; |
| | | color?: string; |
| | | opacity?: number; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | cornerType?: Cesium.CornerType; |
| | | granularity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolylineVolumeEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | radius?: number; |
| | | shape?: string | Cesium.Cartesian2[]; |
| | | fill?: boolean; |
| | | color?: string; |
| | | opacity?: number; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | cornerType?: Cesium.CornerType; |
| | | granularity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolylineVolumeEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 管道线 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineVolumeEntity extends BasePolyEntity { |
| | | /** |
| | | * 管道线 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineVolumeEntity extends BasePolyEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineVolumeEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineVolumeEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | export namespace RectangleEntity { |
| | | export namespace RectangleEntity { |
| | | /** |
| | | * 矩形 支持的样式信息 |
| | | * @property [fill = true] - 是否填充 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | granularity?: number; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: RectangleEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | height?: number; |
| | | heightReference?: Cesium.HeightReference; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | extrudedHeightReference?: Cesium.HeightReference; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | granularity?: number; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | zIndex?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: RectangleEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矩形 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.rectangle - 矩形范围,与positions二选一。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RectangleEntity extends BasePolyEntity { |
| | | /** |
| | | * 矩形 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.rectangle - 矩形范围,与positions二选一。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RectangleEntity extends BasePolyEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | rectangle: Cesium.Rectangle | Cesium.PositionProperty; |
| | | style: RectangleEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | rectangle: Cesium.Rectangle | Cesium.PositionProperty; |
| | | style: RectangleEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns GeoJSON格式规范对象 |
| | | */ |
| | | toGeoJSON(options?: { |
| | | outline?: boolean; |
| | | closure?: boolean; |
| | | noAlt?: boolean; |
| | | outline?: boolean; |
| | | closure?: boolean; |
| | | noAlt?: boolean; |
| | | }): any; |
| | | /** |
| | | * 获取矩形的4个边线坐标集合(笛卡尔坐标) |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | /** |
| | | * 判断点是否在矩形内 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseGraphic | any; |
| | | } |
| | | } |
| | | |
| | | export namespace RectangularSensor { |
| | | export namespace RectangularSensor { |
| | | /** |
| | | * 相控阵雷达 支持的样式信息 |
| | | * @property radius - 半径 |
| | |
| | | * @property [depthTest = true] - 是否被遮挡 |
| | | */ |
| | | type StyleOptions = { |
| | | radius: number; |
| | | xHalfAngle?: number; |
| | | xHalfAngleDegree?: number; |
| | | yHalfAngle?: number; |
| | | yHalfAngleDegree?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | lineColor?: string | Cesium.Color; |
| | | lineOpacity?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | showScanPlane?: boolean; |
| | | scanPlaneColor?: string | Cesium.Color; |
| | | scanPlaneOpacity?: number; |
| | | scanPlaneMode?: number; |
| | | scanPlaneRate?: number; |
| | | showSectorLines?: boolean; |
| | | showSectorSegmentLines?: boolean; |
| | | showLateralSurfaces?: boolean; |
| | | lateralSurfaceMaterial?: Cesium.MaterialProperty; |
| | | showDomeSurfaces?: boolean; |
| | | domeSurfaceMaterial?: Cesium.MaterialProperty; |
| | | showDomeLines?: boolean; |
| | | showIntersection?: boolean; |
| | | intersectionColor?: Cesium.Color; |
| | | intersectionWidth?: Cesium.Color; |
| | | slice?: number; |
| | | depthTest?: boolean; |
| | | radius: number; |
| | | xHalfAngle?: number; |
| | | xHalfAngleDegree?: number; |
| | | yHalfAngle?: number; |
| | | yHalfAngleDegree?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | lineColor?: string | Cesium.Color; |
| | | lineOpacity?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | showScanPlane?: boolean; |
| | | scanPlaneColor?: string | Cesium.Color; |
| | | scanPlaneOpacity?: number; |
| | | scanPlaneMode?: number; |
| | | scanPlaneRate?: number; |
| | | showSectorLines?: boolean; |
| | | showSectorSegmentLines?: boolean; |
| | | showLateralSurfaces?: boolean; |
| | | lateralSurfaceMaterial?: Cesium.MaterialProperty; |
| | | showDomeSurfaces?: boolean; |
| | | domeSurfaceMaterial?: Cesium.MaterialProperty; |
| | | showDomeLines?: boolean; |
| | | showIntersection?: boolean; |
| | | intersectionColor?: Cesium.Color; |
| | | intersectionWidth?: Cesium.Color; |
| | | slice?: number; |
| | | depthTest?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 相控阵雷达 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RectangularSensor extends BasePointEntity { |
| | | /** |
| | | * 相控阵雷达 Entity对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.orientation] - 实体方向 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RectangularSensor extends BasePointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: RectangularSensor.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: RectangularSensor.StyleOptions; |
| | | attr?: any; |
| | | orientation?: Cesium.Property; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): RectangularSensor; |
| | | } |
| | | } |
| | | |
| | | export namespace Video2D { |
| | | export namespace Video2D { |
| | | /** |
| | | * 视频融合(投射2D平面) 支持的样式信息 |
| | | * @property camera - 相机方向参数 |
| | |
| | | * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用 |
| | | */ |
| | | type StyleOptions = { |
| | | camera: { |
| | | direction: Cesium.Cartesian3; |
| | | up: Cesium.Cartesian3; |
| | | right: Cesium.Cartesian3; |
| | | }; |
| | | dis: number; |
| | | fov: number; |
| | | fovDegree: number; |
| | | aspectRatio: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | highlight?: PolygonEntity.StyleOptions; |
| | | camera: { |
| | | direction: Cesium.Cartesian3; |
| | | up: Cesium.Cartesian3; |
| | | right: Cesium.Cartesian3; |
| | | }; |
| | | dis: number; |
| | | fov: number; |
| | | fovDegree: number; |
| | | aspectRatio: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineWidth?: number; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineStyle?: PolylineEntity.StyleOptions; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | granularity?: number; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | highlight?: PolygonEntity.StyleOptions; |
| | | }; |
| | | /** |
| | | * 旋转的方向 |
| | | */ |
| | | enum RatateDirection { |
| | | LEFT, |
| | | RIGHT, |
| | | TOP, |
| | | BOTTOM, |
| | | ALONG, |
| | | INVERSE |
| | | LEFT, |
| | | RIGHT, |
| | | TOP, |
| | | BOTTOM, |
| | | ALONG, |
| | | INVERSE |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 视频融合(投射2D平面), |
| | | * 根据相机位置、方向等参数,在相机前面生成一个PolygonEntity面,然后贴视频纹理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.dom - 视频对应的video标签 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.showFrustum = true] - 是否显示视椎体框线 |
| | | * @param [options.reverse = false] - 是否反转计算得到的坐标 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Video2D extends PolygonEntity { |
| | | /** |
| | | * 视频融合(投射2D平面), |
| | | * 根据相机位置、方向等参数,在相机前面生成一个PolygonEntity面,然后贴视频纹理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.dom - 视频对应的video标签 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.showFrustum = true] - 是否显示视椎体框线 |
| | | * @param [options.reverse = false] - 是否反转计算得到的坐标 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Video2D extends PolygonEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | dom: HTMLElement; |
| | | style: Video2D.StyleOptions; |
| | | attr?: any; |
| | | showFrustum?: boolean; |
| | | reverse?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | dom: HTMLElement; |
| | | style: Video2D.StyleOptions; |
| | | attr?: any; |
| | | showFrustum?: boolean; |
| | | reverse?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象 |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 或 Cesium.PolygonHierarchy |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | export namespace WallEntity { |
| | | export namespace WallEntity { |
| | | /** |
| | | * 墙 支持的样式信息 |
| | | * @property [diffHeight = 100] - 墙高 |
| | |
| | | * @property [label.showAll] - MultiPolygon和MultiLineString时,是否显示所有注记,默认只在最大坐标数的面或线上显示。 |
| | | */ |
| | | type StyleOptions = { |
| | | diffHeight?: number; |
| | | minimumHeights?: number[]; |
| | | maximumHeights?: number[]; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | closure?: boolean; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | granularity?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: WallEntity.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | diffHeight?: number; |
| | | minimumHeights?: number[]; |
| | | maximumHeights?: number[]; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.MaterialProperty | Cesium.Color; |
| | | color?: string; |
| | | opacity?: number; |
| | | closure?: boolean; |
| | | outline?: boolean; |
| | | outlineWidth?: string; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | granularity?: number; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: WallEntity.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 墙 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class WallEntity extends BasePolyEntity { |
| | | /** |
| | | * 墙 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class WallEntity extends BasePolyEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: WallEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: WallEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据对应的 Cesium内部对象的具体类型对象 |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 攻击箭头 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AttackArrow extends PolygonEntity { |
| | | /** |
| | | * 攻击箭头 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AttackArrow extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): AttackArrow; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 攻击箭头(平尾) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AttackArrowPW extends PolygonEntity { |
| | | /** |
| | | * 攻击箭头(平尾) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AttackArrowPW extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): AttackArrowPW; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 攻击箭头(燕尾) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AttackArrowYW extends PolygonEntity { |
| | | /** |
| | | * 攻击箭头(燕尾) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AttackArrowYW extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): AttackArrowYW; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 闭合曲面(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CloseVurve extends PolygonEntity { |
| | | /** |
| | | * 闭合曲面(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CloseVurve extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): CloseVurve; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 双箭头(钳击) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DoubleArrow extends PolygonEntity { |
| | | /** |
| | | * 双箭头(钳击) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DoubleArrow extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): DoubleArrow; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 直箭头(2个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FineArrow extends PolygonEntity { |
| | | /** |
| | | * 直箭头(2个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FineArrow extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): FineArrow; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 燕尾直箭头(2个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FineArrowYW extends PolygonEntity { |
| | | /** |
| | | * 燕尾直箭头(2个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FineArrowYW extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): FineArrowYW; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 集结地(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class GatheringPlace extends PolygonEntity { |
| | | /** |
| | | * 集结地(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class GatheringPlace extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): GatheringPlace; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 等腰三角形(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class IsosTriangle extends PolygonEntity { |
| | | /** |
| | | * 等腰三角形(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class IsosTriangle extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): IsosTriangle; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 弓形面(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Lune extends PolygonEntity { |
| | | /** |
| | | * 弓形面(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Lune extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): Lune; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 正多边形 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息,还包括: |
| | | * @param [options.style.border = 3] - 边数量 |
| | | * @param options.style.radius - 区域的半径(单位:米) |
| | | * @param [options.style.startAngle = 0] - 区域的开始角度(正东方向为0,顺时针到360度) |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Regular extends PolygonEntity { |
| | | /** |
| | | * 正多边形 Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息,还包括: |
| | | * @param [options.style.border = 3] - 边数量 |
| | | * @param options.style.radius - 区域的半径(单位:米) |
| | | * @param [options.style.startAngle = 0] - 区域的开始角度(正东方向为0,顺时针到360度) |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Regular extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: { |
| | | border?: number; |
| | | radius: number; |
| | | startAngle?: number; |
| | | }; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: { |
| | | border?: number; |
| | | radius: number; |
| | | startAngle?: number; |
| | | }; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 编辑处理类 |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 或 Cesium.PolygonHierarchy |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 扇形(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息,还包括: |
| | | * @param options.style.radius - 扇形区域的半径(单位:米) |
| | | * @param options.style.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度) |
| | | * @param options.style.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度) |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Sector extends PolygonEntity { |
| | | /** |
| | | * 扇形(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息,还包括: |
| | | * @param options.style.radius - 扇形区域的半径(单位:米) |
| | | * @param options.style.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度) |
| | | * @param options.style.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度) |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Sector extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: { |
| | | radius: number; |
| | | startAngle: number; |
| | | endAngle: number; |
| | | }; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: { |
| | | radius: number; |
| | | startAngle: number; |
| | | endAngle: number; |
| | | }; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 编辑处理类 |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 或 Cesium.PolygonHierarchy |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 直箭头(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class StraightArrow extends PolygonEntity { |
| | | /** |
| | | * 直箭头(3个点) Entity矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class StraightArrow extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): StraightArrow; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 角度量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AngleMeasure extends PolylineEntity { |
| | | /** |
| | | * 角度量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AngleMeasure extends PolylineEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 测量结果 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 面积测量对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AreaMeasure extends PolygonEntity { |
| | | /** |
| | | * 面积测量对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AreaMeasure extends PolygonEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 测量结果 |
| | |
| | | * @returns 无 |
| | | */ |
| | | startDraw(layer: GraphicLayer): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 贴地面积量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AreaSurfaceMeasure extends AreaMeasure { |
| | | /** |
| | | * 贴地面积量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class AreaSurfaceMeasure extends AreaMeasure { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 距离量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DistanceMeasure extends PolylineEntity { |
| | | /** |
| | | * 距离量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DistanceMeasure extends PolylineEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 测量结果 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 贴地距离量算对象 |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DistanceSurfaceMeasure extends DistanceMeasure { |
| | | /** |
| | | * 贴地距离量算对象 |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DistanceSurfaceMeasure extends DistanceMeasure { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 高度量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class HeightMeasure extends PolylineEntity { |
| | | /** |
| | | * 高度量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class HeightMeasure extends PolylineEntity { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 测量结果 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 三角高度量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class HeightTriangleMeasure extends HeightMeasure { |
| | | /** |
| | | * 三角高度量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class HeightTriangleMeasure extends HeightMeasure { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 更新测量结果的文本 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 坐标量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PointMeasure extends PointEntity { |
| | | /** |
| | | * 坐标量算对象, |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PointMeasure extends PointEntity { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: PointEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string; |
| | | style: PointEntity.StyleOptions; |
| | | attr?: any; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | drawShow?: boolean; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 剖面量算对象 |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class SectionMeasure extends DistanceMeasure { |
| | | /** |
| | | * 剖面量算对象 |
| | | * 非直接调用,由 Measure 类统一创建及管理 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.availability] - 与该对象关联的可用性(如果有的话)。 |
| | | * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。 |
| | | * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。 |
| | | * @param [options.parent] - 要与此实体关联的父实体。 |
| | | * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。 |
| | | * @param [options.hasMoveEdit = true] - 绘制时,是否可以整体平移 |
| | | * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数 |
| | | * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数 |
| | | * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class SectionMeasure extends DistanceMeasure { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty; |
| | | style: PolylineEntity.StyleOptions; |
| | | attr?: any; |
| | | label?: LabelEntity.StyleOptions; |
| | | availability?: Cesium.TimeIntervalCollection; |
| | | description?: Cesium.Property | string; |
| | | viewFrom?: Cesium.Property; |
| | | parent?: Cesium.Entity; |
| | | onBeforeCreate?: (...params: any[]) => any; |
| | | hasMoveEdit?: boolean; |
| | | minPointNum?: number; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 通过标绘 来创建矢量对象 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 体积量算对象(方量), |
| | | * 非直接调用,由 Measure 类统一创建及管理。<br /> |
| | | * |
| | | * 1. 挖方量: 计算“基准面”到地表之间的凸出部分进行挖掉的体积。<br /> |
| | | * 2. 填方量:计算“基准面”与“墙底部”之间的缺少部分进行填平的体积。 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.polygonWallStyle] - 围墙面的样式 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.heightLabel = true] - 是否显示各边界点高度值文本 |
| | | * @param [options.offsetLabel = false] - 是否显示各边界点高度差文本 |
| | | * @param [options.labelHeight] - 各边界点高度结果文本的样式 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class VolumeMeasure extends AreaMeasure { |
| | | /** |
| | | * 体积量算对象(方量), |
| | | * 非直接调用,由 Measure 类统一创建及管理。<br /> |
| | | * |
| | | * 1. 挖方量: 计算“基准面”到地表之间的凸出部分进行挖掉的体积。<br /> |
| | | * 2. 填方量:计算“基准面”与“墙底部”之间的缺少部分进行填平的体积。 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.polygonWallStyle] - 围墙面的样式 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.heightLabel = true] - 是否显示各边界点高度值文本 |
| | | * @param [options.offsetLabel = false] - 是否显示各边界点高度差文本 |
| | | * @param [options.labelHeight] - 各边界点高度结果文本的样式 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class VolumeMeasure extends AreaMeasure { |
| | | constructor(options: { |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | polygonWallStyle?: PolygonEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | heightLabel?: boolean; |
| | | offsetLabel?: boolean; |
| | | labelHeight?: LabelEntity.StyleOptions; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | style: PolygonEntity.StyleOptions; |
| | | attr?: any; |
| | | polygonWallStyle?: PolygonEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | heightLabel?: boolean; |
| | | offsetLabel?: boolean; |
| | | labelHeight?: LabelEntity.StyleOptions; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 面内的最高地表高度 |
| | |
| | | * @returns 矢量对象 |
| | | */ |
| | | static fromDraw(layer: GraphicLayer, options: any): PolylineEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 单个坐标的点状 Primitive图元 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePointPrimitive extends BasePrimitive { |
| | | /** |
| | | * 单个坐标的点状 Primitive图元 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePointPrimitive extends BasePrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: any; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: any; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | clampToGround(options?: { |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | }): BasePointPrimitive; |
| | | /** |
| | | * 位置坐标(数组对象),示例[113.123456,31.123456,30.1] |
| | |
| | | * @returns 位置坐标(数组对象) |
| | | */ |
| | | getCoordinate(noAlt: boolean): any[]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 多个坐标的线面状 Primitive图元 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePolyPrimitive extends BasePrimitive { |
| | | /** |
| | | * 多个坐标的线面状 Primitive图元 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePolyPrimitive extends BasePrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 中心点坐标 (笛卡尔坐标) |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | clampToGround(options?: { |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | }): BasePolyPrimitive; |
| | | } |
| | | } |
| | | |
| | | export namespace BasePrimitive { |
| | | export namespace BasePrimitive { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property mouseOut - 鼠标移出 鼠标事件 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Primitive图元 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 【点状】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.positions - 【线面状(多点)】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePrimitive extends BaseGraphic { |
| | | /** |
| | | * Primitive图元 矢量对象 基类 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 【点状】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.positions - 【线面状(多点)】矢量数据时的坐标位置,具体看子类实现 |
| | | * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BasePrimitive extends BaseGraphic { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: any; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 当加载primitive数据的内部Cesium容器 |
| | |
| | | * @returns 无 |
| | | */ |
| | | closeHighlight(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace BillboardPrimitive { |
| | | export namespace BillboardPrimitive { |
| | | /** |
| | | * 图标点 Primitive矢量数据 支持的样式信息 |
| | | * @property [所有] - 与 BillboardEntity 相同 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | 所有?: BillboardEntity.StyleOptions; |
| | | highlight?: BillboardPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | 所有?: BillboardEntity.StyleOptions; |
| | | highlight?: BillboardPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图标点 Primitive矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BillboardPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 图标点 Primitive矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class BillboardPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: BillboardPrimitive.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: BillboardPrimitive.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 当加载primitive数据的内部Cesium容器 |
| | |
| | | * 图像、URI或Canvas |
| | | */ |
| | | image: string | HTMLCanvasElement; |
| | | } |
| | | } |
| | | |
| | | export namespace BoxPrimitive { |
| | | export namespace BoxPrimitive { |
| | | /** |
| | | * 盒子 支持的样式信息 |
| | | * @property [dimensions] - 指定盒子的长度、宽度和高度。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | dimensions?: Cesium.Cartesian3; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | dimensions_z?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BoxPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | dimensions?: Cesium.Cartesian3; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | dimensions_z?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: BoxPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 盒子 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class BoxPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 盒子 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class BoxPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: BoxPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: BoxPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace CirclePrimitive { |
| | | export namespace CirclePrimitive { |
| | | /** |
| | | * 圆 支持的样式信息 |
| | | * @property [radius = 100] - 半径 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | radius?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | granularity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CirclePrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | radius?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | granularity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: CirclePrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CirclePrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 圆 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CirclePrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: CirclePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: CirclePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 圆的半径(单位:米) |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | /** |
| | | * 判断点是否在圆内 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseGraphic | any; |
| | | } |
| | | } |
| | | |
| | | export namespace ConeTrackPrimitive { |
| | | export namespace ConeTrackPrimitive { |
| | | /** |
| | | * 圆锥追踪体 Primitive图元矢量对象 支持的样式信息 |
| | | * @property [angle] - 圆锥追踪体张角(角度值,取值范围 0.01-89.99) |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | angle?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | slices?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: CylinderPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | angle?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | slices?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | fill?: boolean; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: CylinderPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆锥追踪体 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置(不支持动态属性) |
| | | * @param [options.targetPosition] - 追踪的目标位置(不支持动态属性) |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ConeTrackPrimitive extends CylinderPrimitive { |
| | | /** |
| | | * 圆锥追踪体 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置(不支持动态属性) |
| | | * @param [options.targetPosition] - 追踪的目标位置(不支持动态属性) |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ConeTrackPrimitive extends CylinderPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3y; |
| | | targetPosition?: LatLngPoint | Cesium.Cartesian3; |
| | | style: ConeTrackPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3y; |
| | | targetPosition?: LatLngPoint | Cesium.Cartesian3; |
| | | style: ConeTrackPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 追踪的目标位置(确定了方向和距离) |
| | |
| | | * 夹角,半场角度,取值范围 0.01-89.99 |
| | | */ |
| | | angle: number; |
| | | } |
| | | } |
| | | |
| | | export namespace CorridorPrimitive { |
| | | export namespace CorridorPrimitive { |
| | | /** |
| | | * 走廊 Primitive图元 支持的样式信息 |
| | | * @property [width = 100] - 走廊宽度,指定走廊边缘之间的距离。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | width?: number; |
| | | cornerType?: string | Cesium.CornerType; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | width?: number; |
| | | cornerType?: string | Cesium.CornerType; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 走廊 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CorridorPrimitive extends BasePolyPrimitive { |
| | | /** |
| | | * 走廊 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CorridorPrimitive extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: CorridorPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: CorridorPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace CylinderPrimitive { |
| | | export namespace CylinderPrimitive { |
| | | /** |
| | | * 圆锥 支持的样式信息 |
| | | * @property [topRadius = 0] - 顶部半径,指定圆柱体顶部的半径,当为0时即为圆锥。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | topRadius?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | slices?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: CylinderPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | topRadius?: number; |
| | | bottomRadius?: number; |
| | | length?: number; |
| | | slices?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: CylinderPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆锥 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CylinderPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 圆锥 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CylinderPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: CylinderPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: CylinderPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace DiffuseWall { |
| | | export namespace DiffuseWall { |
| | | /** |
| | | * 立体面(或圆)散射效果 支持的样式信息 |
| | | * @property [diffHeight = 100] - 墙高 |
| | |
| | | * @property [shadows = Cesium.ShadowMode.DISABLED] - 指定对象是投射还是接收来自光源的阴影。 |
| | | */ |
| | | type StyleOptions = { |
| | | diffHeight?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | speed?: number; |
| | | shadows?: Cesium.ShadowMode; |
| | | diffHeight?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | speed?: number; |
| | | shadows?: Cesium.ShadowMode; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 立体面(或圆)散射效果 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置数组(多边形时) |
| | | * @param options.position - 坐标位置数组(圆形时),与positions二选一 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DiffuseWall extends BasePolyPrimitive { |
| | | /** |
| | | * 立体面(或圆)散射效果 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置数组(多边形时) |
| | | * @param options.position - 坐标位置数组(圆形时),与positions二选一 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DiffuseWall extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DiffuseWall.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: DiffuseWall.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 中心点坐标 (笛卡尔坐标) |
| | |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 |
| | | */ |
| | | positions: Cesium.Cartesian3[]; |
| | | } |
| | | } |
| | | |
| | | export namespace DynamicRiver { |
| | | export namespace DynamicRiver { |
| | | /** |
| | | * 动态河流 支持的样式信息 |
| | | * @property image - 图片材质URL |
| | |
| | | * @property [direction = true] - 设置流动方向 |
| | | */ |
| | | type StyleOptions = { |
| | | image: string; |
| | | opacity?: number; |
| | | width?: number; |
| | | height?: number; |
| | | speed?: number; |
| | | axisY?: boolean; |
| | | move?: boolean; |
| | | direction?: boolean; |
| | | image: string; |
| | | opacity?: number; |
| | | width?: number; |
| | | height?: number; |
| | | speed?: number; |
| | | axisY?: boolean; |
| | | move?: boolean; |
| | | direction?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 动态河流 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DynamicRiver extends BasePolyPrimitive { |
| | | /** |
| | | * 动态河流 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DynamicRiver extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: DynamicRiver.StyleOptions; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: DynamicRiver.StyleOptions; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 图片材质URL |
| | |
| | | * @returns 无 |
| | | */ |
| | | offsetHeight(height: number, time: number): void; |
| | | } |
| | | } |
| | | |
| | | export namespace EllipsoidPrimitive { |
| | | export namespace EllipsoidPrimitive { |
| | | /** |
| | | * 球体 支持的样式信息 |
| | | * @property [radii] - 指定椭球半径。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | radii?: Cesium.Cartesian3; |
| | | radii_x?: number; |
| | | radii_y?: number; |
| | | radii_z?: number; |
| | | innerRadii?: Cesium.Cartesian3; |
| | | innerRadii_x?: number; |
| | | innerRadii_y?: number; |
| | | innerRadii_z?: number; |
| | | minimumClock?: number; |
| | | minimumClockDegree?: number; |
| | | maximumClock?: number; |
| | | maximumClockDegree?: number; |
| | | minimumCone?: number; |
| | | minimumConeDegree?: number; |
| | | maximumCone?: number; |
| | | maximumConeDegree?: number; |
| | | stackPartitions?: number; |
| | | slicePartitions?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: EllipsoidPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | radii?: Cesium.Cartesian3; |
| | | radii_x?: number; |
| | | radii_y?: number; |
| | | radii_z?: number; |
| | | innerRadii?: Cesium.Cartesian3; |
| | | innerRadii_x?: number; |
| | | innerRadii_y?: number; |
| | | innerRadii_z?: number; |
| | | minimumClock?: number; |
| | | minimumClockDegree?: number; |
| | | maximumClock?: number; |
| | | maximumClockDegree?: number; |
| | | minimumCone?: number; |
| | | minimumConeDegree?: number; |
| | | maximumCone?: number; |
| | | maximumConeDegree?: number; |
| | | stackPartitions?: number; |
| | | slicePartitions?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: EllipsoidPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 球体 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class EllipsoidPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 球体 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class EllipsoidPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: EllipsoidPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: EllipsoidPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace FrustumPrimitive { |
| | | export namespace FrustumPrimitive { |
| | | /** |
| | | * 四棱锥体 支持的样式信息 |
| | | * @property [angle] - 四棱锥体张角(角度值,取值范围 0.01-89.99) |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | angle?: number; |
| | | angle2?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: FrustumPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | angle?: number; |
| | | angle2?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: FrustumPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 四棱锥体 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.targetPosition] - 追踪的目标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FrustumPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 四棱锥体 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.targetPosition] - 追踪的目标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class FrustumPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | targetPosition?: LatLngPoint | Cesium.Cartesian3; |
| | | style: FrustumPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | targetPosition?: LatLngPoint | Cesium.Cartesian3; |
| | | style: FrustumPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 圆锥追踪的目标(确定了方向和距离) |
| | |
| | | * <br/>提示:父类属性,非所有子类都具备 |
| | | */ |
| | | roll: number; |
| | | } |
| | | } |
| | | |
| | | export namespace LabelPrimitive { |
| | | export namespace LabelPrimitive { |
| | | /** |
| | | * 文字 支持的样式信息(与LabelEntity相同) |
| | | * @property [所有] - 与LabelEntity相同 |
| | | */ |
| | | type StyleOptions = { |
| | | 所有?: LabelEntity.StyleOptions; |
| | | 所有?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 文字 Primitive矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class LabelPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 文字 Primitive矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class LabelPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: LabelPrimitive.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: LabelPrimitive.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 当加载primitive数据的内部Cesium容器 |
| | |
| | | * 文本内容 |
| | | */ |
| | | readonly text: string; |
| | | } |
| | | } |
| | | |
| | | export namespace LightCone { |
| | | export namespace LightCone { |
| | | /** |
| | | * 光锥体 支持的样式信息 |
| | | * @property [color = '#00ffff'] - 颜色 |
| | |
| | | * @property [height = 1000] - 锥体高度,相对于椭球面的高度。(单位:米) |
| | | */ |
| | | type StyleOptions = { |
| | | color?: string | Cesium.Color; |
| | | radius?: number; |
| | | height?: number; |
| | | color?: string | Cesium.Color; |
| | | radius?: number; |
| | | height?: number; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 光锥体 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class LightCone extends BasePointPrimitive { |
| | | /** |
| | | * 光锥体 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class LightCone extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: LightCone.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: LightCone.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | export namespace ModelPrimitive { |
| | | export namespace ModelPrimitive { |
| | | /** |
| | | * gltf小模型 支持的样式信息 |
| | | * @property [url] - glTF模型的URI的字符串或资源属性。 |
| | |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | */ |
| | | type StyleOptions = { |
| | | url?: string | Cesium.Resource; |
| | | scale?: number; |
| | | scaleX?: number; |
| | | scaleY?: number; |
| | | scaleZ?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | minimumPixelSize?: number; |
| | | maximumScale?: number; |
| | | fill?: boolean; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | colorBlendMode?: Cesium.ColorBlendMode; |
| | | colorBlendAmount?: number; |
| | | silhouette?: boolean; |
| | | silhouetteColor?: string | Cesium.Color; |
| | | silhouetteSize?: number; |
| | | silhouetteAlpha?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_near?: number; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayPoint?: PointEntity.StyleOptions; |
| | | distanceDisplayBillboard?: BillboardEntity.StyleOptions; |
| | | customShader?: Cesium.CustomShader; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | incrementallyLoadTextures?: boolean; |
| | | runAnimations?: boolean; |
| | | clampAnimations?: boolean; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Color; |
| | | nodeTransformations?: Cesium.PropertyBag | { |
| | | [key: string]: Cesium.TranslationRotationScale; |
| | | }; |
| | | articulations?: Cesium.PropertyBag | { |
| | | [key: string]: number; |
| | | }; |
| | | clippingPlanes?: Cesium.ClippingPlaneCollection; |
| | | allowPicking?: boolean; |
| | | asynchronous?: boolean; |
| | | dequantizeInShader?: boolean; |
| | | backFaceCulling?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugWireframe?: boolean; |
| | | startTime?: Cesium.JulianDate; |
| | | delay?: number; |
| | | stopTime?: Cesium.JulianDate; |
| | | removeOnStop?: boolean; |
| | | multiplier?: number; |
| | | reverse?: boolean; |
| | | loop?: Cesium.ModelAnimationLoop; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: ModelPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | url?: string | Cesium.Resource; |
| | | scale?: number; |
| | | scaleX?: number; |
| | | scaleY?: number; |
| | | scaleZ?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | minimumPixelSize?: number; |
| | | maximumScale?: number; |
| | | fill?: boolean; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | colorBlendMode?: Cesium.ColorBlendMode; |
| | | colorBlendAmount?: number; |
| | | silhouette?: boolean; |
| | | silhouetteColor?: string | Cesium.Color; |
| | | silhouetteSize?: number; |
| | | silhouetteAlpha?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_near?: number; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayPoint?: PointEntity.StyleOptions; |
| | | distanceDisplayBillboard?: BillboardEntity.StyleOptions; |
| | | customShader?: Cesium.CustomShader; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | heightReference?: Cesium.HeightReference; |
| | | incrementallyLoadTextures?: boolean; |
| | | runAnimations?: boolean; |
| | | clampAnimations?: boolean; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Color; |
| | | nodeTransformations?: Cesium.PropertyBag | { |
| | | [key: string]: Cesium.TranslationRotationScale; |
| | | }; |
| | | articulations?: Cesium.PropertyBag | { |
| | | [key: string]: number; |
| | | }; |
| | | clippingPlanes?: Cesium.ClippingPlaneCollection; |
| | | allowPicking?: boolean; |
| | | asynchronous?: boolean; |
| | | dequantizeInShader?: boolean; |
| | | backFaceCulling?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugWireframe?: boolean; |
| | | startTime?: Cesium.JulianDate; |
| | | delay?: number; |
| | | stopTime?: Cesium.JulianDate; |
| | | removeOnStop?: boolean; |
| | | multiplier?: number; |
| | | reverse?: boolean; |
| | | loop?: Cesium.ModelAnimationLoop; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | highlight?: ModelPrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | |
| | | * @property mouseOut - 鼠标移出 鼠标事件 |
| | | */ |
| | | type EventType = { |
| | | load: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | load: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * gltf小模型 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ModelPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * gltf小模型 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ModelPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: ModelPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: ModelPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 模型整体的缩放比例 |
| | |
| | | * 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵。 |
| | | */ |
| | | readonly modelMatrix: Cesium.Matrix4; |
| | | } |
| | | } |
| | | |
| | | export namespace Pit { |
| | | export namespace Pit { |
| | | /** |
| | | * 井 支持的样式信息, |
| | | * @property image - 井墙面贴图URL |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | image: string; |
| | | imageBottom: string; |
| | | diffHeight: number; |
| | | splitNum?: number; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | image: string; |
| | | imageBottom: string; |
| | | diffHeight: number; |
| | | splitNum?: number; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 井 矢量对象 |
| | | * 用于显示地形开挖后的开挖效果。 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Pit extends BasePolyPrimitive { |
| | | /** |
| | | * 井 矢量对象 |
| | | * 用于显示地形开挖后的开挖效果。 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Pit extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: Pit.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: Pit.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 井下深度(单位:米) |
| | |
| | | * 中心点坐标 (笛卡尔坐标) |
| | | */ |
| | | readonly center: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace PlanePrimitive { |
| | | export namespace PlanePrimitive { |
| | | /** |
| | | * 平面 支持的样式信息 |
| | | * @property [dimensions] - 指定平面的宽度和高度。 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | dimensions?: Cesium.Cartesian2; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | plane_normal?: string; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: PlanePrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | dimensions?: Cesium.Cartesian2; |
| | | dimensions_x?: number; |
| | | dimensions_y?: number; |
| | | plane_normal?: string; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | materialSupport?: Cesium.MaterialAppearance.MaterialSupportType; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: PlanePrimitive.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 平面 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PlanePrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 平面 Primitive图元矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PlanePrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: PlanePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | style: PlanePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 用于指定位置的矩阵 |
| | | */ |
| | | readonly modelMatrix: Cesium.Matrix4; |
| | | } |
| | | } |
| | | |
| | | export namespace PointPrimitive { |
| | | export namespace PointPrimitive { |
| | | /** |
| | | * 像素点 支持的样式信息 |
| | | * @property [pixelSize = 10] - 像素大小 |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | pixelSize?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineWidth?: number; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | pixelSize?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | outlineWidth?: number; |
| | | scaleByDistance?: boolean | Cesium.NearFarScalar; |
| | | scaleByDistance_far?: number; |
| | | scaleByDistance_farValue?: number; |
| | | scaleByDistance_near?: number; |
| | | scaleByDistance_nearValue?: number; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | visibleDepth?: boolean; |
| | | disableDepthTestDistance?: number; |
| | | translucencyByDistance?: Cesium.NearFarScalar; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 像素点 Primitive矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.frameRate = 1] - 当postion为CallbackProperty时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class PointPrimitive extends BasePointPrimitive { |
| | | /** |
| | | * 像素点 Primitive矢量数据 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.frameRate = 1] - 当postion为CallbackProperty时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class PointPrimitive extends BasePointPrimitive { |
| | | constructor(options: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: PointPrimitive.StyleOptions; |
| | | attr?: any; |
| | | frameRate?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: PointPrimitive.StyleOptions; |
| | | attr?: any; |
| | | frameRate?: number; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 当加载primitive数据的内部Cesium容器 |
| | | */ |
| | | readonly primitiveCollection: Cesium.PointPrimitiveCollection; |
| | | } |
| | | } |
| | | |
| | | export namespace PolygonPrimitive { |
| | | export namespace PolygonPrimitive { |
| | | /** |
| | | * 面 Primitive图元 支持的样式信息 |
| | | * @property [materialType = "Color"] - 填充材质类型 ,可选项:{@link MaterialType} |
| | |
| | | * @property [label.showAll] - MultiPolygon和MultiLineString时,是否显示所有注记,默认只在最大坐标数的面或线上显示。 |
| | | */ |
| | | type StyleOptions = { |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | image?: string; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | granularity?: number; |
| | | closeTop?: boolean; |
| | | closeBottom?: boolean; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | buffer?: number; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolygonPrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | image?: string; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | granularity?: number; |
| | | closeTop?: boolean; |
| | | closeBottom?: boolean; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | buffer?: number; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolygonPrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 面 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolygonPrimitive extends BasePolyPrimitive { |
| | | /** |
| | | * 面 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolygonPrimitive extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolygonPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolygonPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 |
| | |
| | | * 中心点坐标 (笛卡尔坐标) |
| | | */ |
| | | readonly center: Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace PolylinePrimitive { |
| | | export namespace PolylinePrimitive { |
| | | /** |
| | | * 线 Primitive图元 支持的样式信息 |
| | | * @property [width = 4] - 线宽 |
| | |
| | | * @property [label.showAll] - MultiPolygon和MultiLineString时,是否显示所有注记,默认只在最大坐标数的面或线上显示。 |
| | | */ |
| | | type StyleOptions = { |
| | | width?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | colors?: Cesium.Color[]; |
| | | colorsPerVertex?: boolean; |
| | | closure?: boolean; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | arcType?: Cesium.ArcType; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolylinePrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | width?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | colors?: Cesium.Color[]; |
| | | colorsPerVertex?: boolean; |
| | | closure?: boolean; |
| | | distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition; |
| | | distanceDisplayCondition_far?: number; |
| | | distanceDisplayCondition_near?: number; |
| | | arcType?: Cesium.ArcType; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolylinePrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 线 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylinePrimitive extends BasePolyPrimitive { |
| | | /** |
| | | * 线 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylinePrimitive extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolylinePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolylinePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 简单线 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineSimplePrimitive extends BasePolyPrimitive { |
| | | /** |
| | | * 简单线 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineSimplePrimitive extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolylinePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolylinePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace PolylineVolumePrimitive { |
| | | export namespace PolylineVolumePrimitive { |
| | | /** |
| | | * 管道线 Primitive图元 支持的样式信息 |
| | | * @property [shape = "pipeline"] - 形状类型 或 定义要挤压的形状。类型可选项:pipeline (解释:空心管),circle (解释:实心管),star (解释:星状管), |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | shape?: string | Cesium.Cartesian2[]; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | cornerType?: Cesium.CornerType; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | shape?: string | Cesium.Cartesian2[]; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | cornerType?: Cesium.CornerType; |
| | | granularity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 管道线 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineVolumePrimitive extends BasePolyPrimitive { |
| | | /** |
| | | * 管道线 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class PolylineVolumePrimitive extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolylineVolumePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: PolylineVolumePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace RectanglePrimitive { |
| | | export namespace RectanglePrimitive { |
| | | /** |
| | | * 矩形 Primitive图元 支持的样式信息 |
| | | * @property [materialType = "Color"] - 填充材质类型 ,可选项:{@link MaterialType} |
| | |
| | | * @property [label] - 支持附带文字的显示 |
| | | */ |
| | | type StyleOptions = { |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | image?: string; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | image?: string; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | rotation?: number; |
| | | rotationDegree?: number; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | clampToGround?: boolean; |
| | | classificationType?: Cesium.ClassificationType; |
| | | classification?: boolean; |
| | | setHeight?: number | string; |
| | | addHeight?: number | string; |
| | | label?: LabelPrimitive.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矩形 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.rectangle - 矩形范围,与positions二选一。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RectanglePrimitive extends BasePolyPrimitive { |
| | | /** |
| | | * 矩形 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.rectangle - 矩形范围,与positions二选一。 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RectanglePrimitive extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | rectangle: Cesium.Rectangle | Cesium.PositionProperty; |
| | | style: RectanglePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | rectangle: Cesium.Rectangle | Cesium.PositionProperty; |
| | | style: RectanglePrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 坐标数据对应的矩形边界对象 |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | /** |
| | | * 判断点是否在矩形内 |
| | |
| | | * 面积(单位:平方米) |
| | | */ |
| | | readonly area: number; |
| | | } |
| | | } |
| | | |
| | | export namespace Road { |
| | | export namespace Road { |
| | | /** |
| | | * 道路 支持的样式信息 |
| | | * @property image - 图片材质URL |
| | |
| | | * @property [axisY = true] - 是否uv交换(图片横竖切换) |
| | | */ |
| | | type StyleOptions = { |
| | | image: string; |
| | | width?: number; |
| | | height?: number; |
| | | axisY?: boolean; |
| | | image: string; |
| | | width?: number; |
| | | height?: number; |
| | | axisY?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 道路 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Road extends DynamicRiver { |
| | | /** |
| | | * 道路 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Road extends DynamicRiver { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: Road.StyleOptions; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: Road.StyleOptions; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace ScrollWall { |
| | | export namespace ScrollWall { |
| | | /** |
| | | * 走马灯围墙效果 支持的样式信息 |
| | | * @property [diffHeight = 100] - 墙高 |
| | |
| | | * @property [shadows = Cesium.ShadowMode.DISABLED] - 指定对象是投射还是接收来自光源的阴影。 |
| | | */ |
| | | type StyleOptions = { |
| | | diffHeight?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | speed?: number; |
| | | reverse?: boolean; |
| | | style?: number; |
| | | shadows?: Cesium.ShadowMode; |
| | | diffHeight?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | speed?: number; |
| | | reverse?: boolean; |
| | | style?: number; |
| | | shadows?: Cesium.ShadowMode; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 走马灯围墙效果 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ScrollWall extends BasePolyPrimitive { |
| | | /** |
| | | * 走马灯围墙效果 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class ScrollWall extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: ScrollWall.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: ScrollWall.StyleOptions; |
| | | attr?: any; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace WallPrimitive { |
| | | export namespace WallPrimitive { |
| | | /** |
| | | * 墙 Primitive图元 支持的样式信息 |
| | | * @property [diffHeight = 100] - 墙高 |
| | |
| | | * @property [label.showAll] - MultiPolygon和MultiLineString时,是否显示所有注记,默认只在最大坐标数的面或线上显示。 |
| | | */ |
| | | type StyleOptions = { |
| | | diffHeight?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: WallPrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | diffHeight?: number; |
| | | materialType?: string; |
| | | material材质参数?: any; |
| | | material?: Cesium.Material; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | highlight?: WallPrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 墙 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class WallPrimitive extends BasePolyPrimitive { |
| | | /** |
| | | * 墙 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.appearance] - [cesium原生]用于渲染图元的外观。 |
| | | * @param [options.attributes] - [cesium原生]每个实例的属性。 |
| | | * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class WallPrimitive extends BasePolyPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: WallPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: WallPrimitive.StyleOptions; |
| | | attr?: any; |
| | | appearance?: Cesium.Appearance; |
| | | attributes?: Cesium.Appearance; |
| | | depthFailAppearance?: Cesium.Appearance; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace Water { |
| | | export namespace Water { |
| | | /** |
| | | * 水面 Primitive图元 支持的样式信息 |
| | | * @property [baseWaterColor = "#123e59"] - 基础颜色 |
| | |
| | | * @property [label.showAll] - MultiPolygon和MultiLineString时,是否显示所有注记,默认只在最大坐标数的面或线上显示。 |
| | | */ |
| | | type StyleOptions = { |
| | | baseWaterColor?: string; |
| | | blendColor?: string; |
| | | specularMap?: string; |
| | | normalMap?: string; |
| | | frequency?: number; |
| | | animationSpeed?: number; |
| | | amplitude?: number; |
| | | specularIntensity?: number; |
| | | fadeFactor?: number; |
| | | opacity?: number; |
| | | clampToGround?: boolean; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | granularity?: number; |
| | | closeTop?: boolean; |
| | | closeBottom?: boolean; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | classificationType?: Cesium.ClassificationType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolygonPrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | baseWaterColor?: string; |
| | | blendColor?: string; |
| | | specularMap?: string; |
| | | normalMap?: string; |
| | | frequency?: number; |
| | | animationSpeed?: number; |
| | | amplitude?: number; |
| | | specularIntensity?: number; |
| | | fadeFactor?: number; |
| | | opacity?: number; |
| | | clampToGround?: boolean; |
| | | stRotation?: number; |
| | | stRotationDegree?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | outlineOpacity?: number; |
| | | height?: number; |
| | | diffHeight?: number; |
| | | extrudedHeight?: number; |
| | | granularity?: number; |
| | | closeTop?: boolean; |
| | | closeBottom?: boolean; |
| | | arcType?: Cesium.ArcType; |
| | | hasShadows?: boolean; |
| | | shadows?: Cesium.ShadowMode; |
| | | classificationType?: Cesium.ClassificationType; |
| | | flat?: boolean; |
| | | faceForward?: boolean; |
| | | translucent?: boolean; |
| | | closed?: boolean; |
| | | vertexShaderSource?: string; |
| | | fragmentShaderSource?: string; |
| | | renderState?: any; |
| | | setHeight?: number | number[]; |
| | | addHeight?: number | number[]; |
| | | highlight?: PolygonPrimitive.StyleOptions; |
| | | label?: { |
| | | position?: string | LatLngPoint; |
| | | showAll?: boolean; |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 水域面 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Water extends PolygonPrimitive { |
| | | /** |
| | | * 水域面 Primitive图元 矢量对象 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。 |
| | | * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。 |
| | | * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。 |
| | | * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。 |
| | | * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。 |
| | | * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。 |
| | | * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。 |
| | | * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。 |
| | | * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class Water extends PolygonPrimitive { |
| | | constructor(options: { |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: Water.StyleOptions; |
| | | attr?: any; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style: Water.StyleOptions; |
| | | attr?: any; |
| | | vertexCacheOptimize?: boolean; |
| | | interleave?: boolean; |
| | | compressVertices?: boolean; |
| | | releaseGeometryInstances?: boolean; |
| | | allowPicking?: boolean; |
| | | cull?: boolean; |
| | | asynchronous?: boolean; |
| | | debugShowBoundingVolume?: boolean; |
| | | debugShowShadowVolume?: boolean; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace BaseRoamLine { |
| | | export namespace BaseRoamLine { |
| | | /** |
| | | * wall 类型shading 支持的参数, |
| | | * 效果是飞机飞行轨迹线下的投射墙体效果。 |
| | |
| | | * @property [maxDistance] - 设置保留的轨迹长度值(单位:米),不设置时保留所有的轨迹 |
| | | */ |
| | | type WallShadingOptions = { |
| | | type?: string; |
| | | 通用参数?: WallEntity.StyleOptions; |
| | | maxDistance?: number; |
| | | type?: string; |
| | | 通用参数?: WallEntity.StyleOptions; |
| | | maxDistance?: number; |
| | | }; |
| | | /** |
| | | * cylinder 类型shading 支持的参数, |
| | |
| | | * @property [通用参数] - 圆锥对象支持的所有参数 |
| | | */ |
| | | type CylinderShadingOptions = { |
| | | type?: string; |
| | | 通用参数?: CylinderEntity.StyleOptions; |
| | | type?: string; |
| | | 通用参数?: CylinderEntity.StyleOptions; |
| | | }; |
| | | /** |
| | | * circle 类型shading 支持的参数, |
| | |
| | | * @property [通用参数] - 圆锥对象支持的所有参数 |
| | | */ |
| | | type CircleShadingOptions = { |
| | | type?: string; |
| | | 通用参数?: CircleEntity.StyleOptions; |
| | | type?: string; |
| | | 通用参数?: CircleEntity.StyleOptions; |
| | | }; |
| | | /** |
| | | * polyline 类型shading 支持的参数, |
| | |
| | | * @property [maxDistance] - 设置保留的轨迹长度值(单位:米),不设置时保留所有的轨迹 |
| | | */ |
| | | type PolylineShadingOptions = { |
| | | type?: string; |
| | | 通用参数?: PolylineEntity.StyleOptions; |
| | | maxDistance?: number; |
| | | type?: string; |
| | | 通用参数?: PolylineEntity.StyleOptions; |
| | | maxDistance?: number; |
| | | }; |
| | | /** |
| | | * polylineGoing 类型shading 支持的参数, |
| | |
| | | * @property [通用参数] - 线对象支持的所有参数 |
| | | */ |
| | | type PolylineGoingShadingOptions = { |
| | | type?: string; |
| | | 通用参数?: PolylineEntity.StyleOptions; |
| | | type?: string; |
| | | 通用参数?: PolylineEntity.StyleOptions; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 漫游路线管理类 基类 |
| | | */ |
| | | export class BaseRoamLine extends BaseGraphic { |
| | | /** |
| | | * 漫游路线管理类 基类 |
| | | */ |
| | | export class BaseRoamLine extends BaseGraphic { |
| | | /** |
| | | * 动态时序坐标位置, |
| | | * Cesium原生动态属性对象 |
| | |
| | | * @returns 当前矩阵 |
| | | */ |
| | | computeModelMatrix(offest: { |
| | | x: number; |
| | | y: number; |
| | | z: number; |
| | | x: number; |
| | | y: number; |
| | | z: number; |
| | | }): Cesium.Matrix4; |
| | | /** |
| | | * 重新赋值参数,同构造方法参数一致。 |
| | |
| | | * @returns 无 |
| | | */ |
| | | updateAngle(isAuto: boolean, opts?: { |
| | | pitch?: number; |
| | | roll?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | }): void; |
| | | /** |
| | | * 清除最后一次的相机跟踪 |
| | |
| | | * @returns 无 |
| | | */ |
| | | setCameraOptions(cameraOptions: { |
| | | type: string; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | followedX?: number; |
| | | followedZ?: number; |
| | | type: string; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | followedX?: number; |
| | | followedZ?: number; |
| | | }): void; |
| | | /** |
| | | * 获取飞过的路线坐标数组 |
| | |
| | | * @returns 构造完成的投影对象 |
| | | */ |
| | | addShading(item: { |
| | | wall?: BaseRoamLine.WallShadingOptions; |
| | | cylinder?: BaseRoamLine.CylinderShadingOptions; |
| | | circle?: BaseRoamLine.CircleShadingOptions; |
| | | polyline?: BaseRoamLine.PolylineShadingOptions; |
| | | polylineGoing?: BaseRoamLine.PolylineGoingShadingOptions; |
| | | wall?: BaseRoamLine.WallShadingOptions; |
| | | cylinder?: BaseRoamLine.CylinderShadingOptions; |
| | | circle?: BaseRoamLine.CircleShadingOptions; |
| | | polyline?: BaseRoamLine.PolylineShadingOptions; |
| | | polylineGoing?: BaseRoamLine.PolylineGoingShadingOptions; |
| | | }, addOptions?: boolean): Cesium.Entity | undefined; |
| | | /** |
| | | * 移除单个投影 |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 定位至当前时间所在的位置 (非相机位置) |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyToPoint(options?: { |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 暂停 |
| | |
| | | * 当前类的构造参数 |
| | | */ |
| | | readonly options: any; |
| | | } |
| | | } |
| | | |
| | | export namespace DynamicRoamLine { |
| | | export namespace DynamicRoamLine { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property mouseOut - 鼠标移出 鼠标事件 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | change: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | change: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 动态漫游路线管理类 【动态传入的数据】 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.model] - 设置是否显示 gltf模型 和对应的样式 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.point] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.circle] - 设置是否显示 圆对象 和对应的样式 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.hasCache = true] - 是否记录缓存,提高效率 |
| | | * @param [options.maxCacheCount = 50] - 保留的坐标点数量 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * |
| | | * //以下是 clampToGround中使用的 |
| | | * @param [options.clampToTileset = false] - 是否贴3dtiles模型上(贴模型效率较慢,按需开启) |
| | | * @param [options.frameRate = 30] - 当clampToTileset:true时,控制贴模型的效率,多少帧计算一次贴模型高度, |
| | | * @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,默认是当前本身,可以是: primitives, entities, 或 3D Tiles features |
| | | * @param [options.shadow] - 设置投影或附加的对象,支持类型: |
| | | * @param [options.shadow.wall] - wall类型所支持的参数 |
| | | * @param [options.shadow.cylinder] - cylinder类型所支持的参数 |
| | | * @param [options.shadow.circle] - circle类型所支持的参数 |
| | | * @param [options.shadow.polyline] - polyline类型所支持的参数 |
| | | * @param [options.shadow.polylineGoing] - polylineGoing类型所支持的参数 |
| | | * @param [options.camera] - 视角模式设置,包括: |
| | | * @param [options.camera.type] - 视角模式类型,包括:'':无、'gs':跟随视角、'dy':第一视角、'sd':上帝视角 |
| | | * @param [options.camera.radius] - 'gs'跟随视角时的 初始俯仰距离值(单位:米) |
| | | * @param [options.camera.heading] - 'gs'跟随视角时的 初始方向角度值,绕垂直于地心的轴旋转角度, 0至360 |
| | | * @param [options.camera.pitch] - 'gs'跟随视角时的 初始俯仰角度值,绕纬度线旋转角度, 0至360 |
| | | * @param [options.camera.followedX = 50] - 'dy'锁定第一视角时,距离运动点的距离(后方) |
| | | * @param [options.camera.followedZ = 10] - 'dy'锁定第一视角或'sd'上帝视角时,距离运动点的高度(上方) |
| | | * @param [options.camera.offsetX = 0] - 'dy'锁定第一视角时,锁定点的本身的X轴方向(前后)偏移值 |
| | | * @param [options.camera.offsetY = 0] - 'dy'锁定第一视角时,锁定点的本身的Y轴方向(横向)偏移值 |
| | | * @param [options.camera.offsetZ = 0] - 'dy'锁定第一视角时,锁定点的本身的Z轴方向(高度)偏移值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DynamicRoamLine extends BaseRoamLine { |
| | | /** |
| | | * 动态漫游路线管理类 【动态传入的数据】 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param [options.model] - 设置是否显示 gltf模型 和对应的样式 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.point] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.circle] - 设置是否显示 圆对象 和对应的样式 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.hasCache = true] - 是否记录缓存,提高效率 |
| | | * @param [options.maxCacheCount = 50] - 保留的坐标点数量 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * |
| | | * //以下是 clampToGround中使用的 |
| | | * @param [options.clampToTileset = false] - 是否贴3dtiles模型上(贴模型效率较慢,按需开启) |
| | | * @param [options.frameRate = 30] - 当clampToTileset:true时,控制贴模型的效率,多少帧计算一次贴模型高度, |
| | | * @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,默认是当前本身,可以是: primitives, entities, 或 3D Tiles features |
| | | * @param [options.shadow] - 设置投影或附加的对象,支持类型: |
| | | * @param [options.shadow.wall] - wall类型所支持的参数 |
| | | * @param [options.shadow.cylinder] - cylinder类型所支持的参数 |
| | | * @param [options.shadow.circle] - circle类型所支持的参数 |
| | | * @param [options.shadow.polyline] - polyline类型所支持的参数 |
| | | * @param [options.shadow.polylineGoing] - polylineGoing类型所支持的参数 |
| | | * @param [options.camera] - 视角模式设置,包括: |
| | | * @param [options.camera.type] - 视角模式类型,包括:'':无、'gs':跟随视角、'dy':第一视角、'sd':上帝视角 |
| | | * @param [options.camera.radius] - 'gs'跟随视角时的 初始俯仰距离值(单位:米) |
| | | * @param [options.camera.heading] - 'gs'跟随视角时的 初始方向角度值,绕垂直于地心的轴旋转角度, 0至360 |
| | | * @param [options.camera.pitch] - 'gs'跟随视角时的 初始俯仰角度值,绕纬度线旋转角度, 0至360 |
| | | * @param [options.camera.followedX = 50] - 'dy'锁定第一视角时,距离运动点的距离(后方) |
| | | * @param [options.camera.followedZ = 10] - 'dy'锁定第一视角或'sd'上帝视角时,距离运动点的高度(上方) |
| | | * @param [options.camera.offsetX = 0] - 'dy'锁定第一视角时,锁定点的本身的X轴方向(前后)偏移值 |
| | | * @param [options.camera.offsetY = 0] - 'dy'锁定第一视角时,锁定点的本身的Y轴方向(横向)偏移值 |
| | | * @param [options.camera.offsetZ = 0] - 'dy'锁定第一视角时,锁定点的本身的Z轴方向(高度)偏移值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class DynamicRoamLine extends BaseRoamLine { |
| | | constructor(options: { |
| | | model?: ModelEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | billboard?: BillboardEntity.StyleOptions; |
| | | point?: PointEntity.StyleOptions; |
| | | circle?: CircleEntity.StyleOptions; |
| | | attr?: any; |
| | | hasCache?: boolean; |
| | | maxCacheCount?: number; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | objectsToExclude?: array; |
| | | shadow?: { |
| | | wall?: BaseRoamLine.WallShadingOptions; |
| | | cylinder?: BaseRoamLine.CylinderShadingOptions; |
| | | circle?: BaseRoamLine.CircleShadingOptions; |
| | | polyline?: BaseRoamLine.PolylineShadingOptions; |
| | | polylineGoing?: BaseRoamLine.PolylineGoingShadingOptions; |
| | | }[]; |
| | | camera?: { |
| | | type?: string; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | followedX?: number; |
| | | followedZ?: number; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | offsetZ?: number; |
| | | }; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | model?: ModelEntity.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | billboard?: BillboardEntity.StyleOptions; |
| | | point?: PointEntity.StyleOptions; |
| | | circle?: CircleEntity.StyleOptions; |
| | | attr?: any; |
| | | hasCache?: boolean; |
| | | maxCacheCount?: number; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | objectsToExclude?: array; |
| | | shadow?: { |
| | | wall?: BaseRoamLine.WallShadingOptions; |
| | | cylinder?: BaseRoamLine.CylinderShadingOptions; |
| | | circle?: BaseRoamLine.CircleShadingOptions; |
| | | polyline?: BaseRoamLine.PolylineShadingOptions; |
| | | polylineGoing?: BaseRoamLine.PolylineGoingShadingOptions; |
| | | }[]; |
| | | camera?: { |
| | | type?: string; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | followedX?: number; |
| | | followedZ?: number; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | offsetZ?: number; |
| | | }; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | updatePath(points: array, options?: { |
| | | timeColumn?: any; |
| | | getPosition?: (...params: any[]) => any; |
| | | timeColumn?: any; |
| | | getPosition?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 动态时序坐标位置, |
| | | * Cesium原生动态属性对象 |
| | | */ |
| | | readonly property: Cesium.SampledPositionProperty; |
| | | } |
| | | } |
| | | |
| | | export namespace RoamLine { |
| | | export namespace RoamLine { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property mouseOut - 鼠标移出 鼠标事件 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | start: string; |
| | | change: string; |
| | | endItem: string; |
| | | end: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | start: string; |
| | | change: string; |
| | | endItem: string; |
| | | end: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 飞行漫游路线管理类 【静态一次性传入的数据】 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 轨迹的 坐标数组 |
| | | * @param options.speed - 轨迹的 速度( 单位:千米/小时) |
| | | * @param [options.timeField = 'time'] - 当points数组中已有时间值,请传入该值的字段名称,同时speed将失效,已实际传入时间字段为准。 |
| | | * @param [options.model] - 设置是否显示 gltf模型 和对应的样式 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.point] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.path] - 设置是否显示 轨迹路线 和对应的样式 |
| | | * @param [options.circle] - 设置是否显示 圆对象 和对应的样式 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.offsetHeight = 0] - 轨迹偏移增加的高度 |
| | | * @param [options.startTime = clock.currentTime] - 轨迹的开始时间 |
| | | * @param [options.pauseTime = 0] - 每个点的停留时长(单位:秒) |
| | | * @param [options.multiplier = 1] - 轨迹播放的倍率 |
| | | * @param [options.hasCache = true] - 是否记录缓存,提高效率 |
| | | * @param [options.interpolation = false] - 是否LagrangePolynomialApproximation插值,对轨迹进行圆弧状插值 |
| | | * @param [options.interpolationDegree = 2] - 当interpolation为true时,使用的插值程度。 |
| | | * @param [options.showGroundHeight = false] - 是否求准确的 地面海拔 和 离地高度 (没有此需求时可以关闭,提高效率) |
| | | * @param [options.showStop = false] - 是否在start前或stop后显示模型等对象 |
| | | * @param [options.autoStop = false] - 是否自动停止 |
| | | * @param [options.clockRange] - 设定全局时钟播放的模式,可以设置到达终点后停止或循环播放 |
| | | * @param [options.clockLoop = false] - 是否循环播放,与 clockRange: Cesium.ClockRange.LOOP_STOP 效果类似,但不改变全局时钟时间。 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * |
| | | * //以下是 clampToGround中使用的 |
| | | * @param [options.splitNum = 100] - 当clampToGround计算时,插值数,等比分割的个数 |
| | | * @param [options.minDistance = null] - 当clampToGround计算时,插值最小间隔(单位:米),优先级高于splitNum |
| | | * @param [options.offset = 0] - 当clampToGround计算时,可以按需增加偏移高度(单位:米),便于可视 |
| | | * @param [options.clampToTileset = false] - 是否贴3dtiles模型上(贴模型效率较慢,按需开启) |
| | | * @param [options.frameRate = 30] - 当clampToTileset:true时,控制贴模型的效率,多少帧计算一次贴模型高度, |
| | | * @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,默认是当前本身,可以是: primitives, entities, 或 3D Tiles features |
| | | * @param [options.shadow] - 设置投影或附加的对象,支持类型: |
| | | * @param [options.shadow.wall] - wall类型所支持的参数 |
| | | * @param [options.shadow.cylinder] - cylinder类型所支持的参数 |
| | | * @param [options.shadow.circle] - circle类型所支持的参数 |
| | | * @param [options.shadow.polyline] - polyline类型所支持的参数 |
| | | * @param [options.shadow.polylineGoing] - polylineGoing类型所支持的参数 |
| | | * @param [options.camera] - 视角模式设置,包括: |
| | | * @param [options.camera.type] - 视角模式类型,包括:'':无、'gs':跟随视角、'dy':第一视角、'sd':上帝视角 |
| | | * @param [options.camera.radius] - 'gs'跟随视角时的 初始俯仰距离值(单位:米) |
| | | * @param [options.camera.heading] - 'gs'跟随视角时的 初始方向角度值,绕垂直于地心的轴旋转角度, 0至360 |
| | | * @param [options.camera.pitch] - 'gs'跟随视角时的 初始俯仰角度值,绕纬度线旋转角度, 0至360 * |
| | | * @param [options.camera.followedX = 50] - 'dy'锁定第一视角时,距离运动点的距离(后方) |
| | | * @param [options.camera.followedZ = 10] - 'dy'锁定第一视角或'sd'上帝视角时,距离运动点的高度(上方) |
| | | * @param [options.camera.offsetX = 0] - 'dy'锁定第一视角时,锁定点的本身的X轴方向(前后)偏移值 |
| | | * @param [options.camera.offsetY = 0] - 'dy'锁定第一视角时,锁定点的本身的Y轴方向(横向)偏移值 |
| | | * @param [options.camera.offsetZ = 0] - 'dy'锁定第一视角时,锁定点的本身的Z轴方向(高度)偏移值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RoamLine extends BaseRoamLine { |
| | | /** |
| | | * 飞行漫游路线管理类 【静态一次性传入的数据】 |
| | | * @param options - 参数对象,包括以下: |
| | | * @param options.positions - 轨迹的 坐标数组 |
| | | * @param options.speed - 轨迹的 速度( 单位:千米/小时) |
| | | * @param [options.timeField = 'time'] - 当points数组中已有时间值,请传入该值的字段名称,同时speed将失效,已实际传入时间字段为准。 |
| | | * @param [options.model] - 设置是否显示 gltf模型 和对应的样式 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.point] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。 |
| | | * @param [options.path] - 设置是否显示 轨迹路线 和对应的样式 |
| | | * @param [options.circle] - 设置是否显示 圆对象 和对应的样式 |
| | | * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。 |
| | | * @param [options.offsetHeight = 0] - 轨迹偏移增加的高度 |
| | | * @param [options.startTime = clock.currentTime] - 轨迹的开始时间 |
| | | * @param [options.pauseTime = 0] - 每个点的停留时长(单位:秒) |
| | | * @param [options.multiplier = 1] - 轨迹播放的倍率 |
| | | * @param [options.hasCache = true] - 是否记录缓存,提高效率 |
| | | * @param [options.interpolation = false] - 是否LagrangePolynomialApproximation插值,对轨迹进行圆弧状插值 |
| | | * @param [options.interpolationDegree = 2] - 当interpolation为true时,使用的插值程度。 |
| | | * @param [options.showGroundHeight = false] - 是否求准确的 地面海拔 和 离地高度 (没有此需求时可以关闭,提高效率) |
| | | * @param [options.showStop = false] - 是否在start前或stop后显示模型等对象 |
| | | * @param [options.autoStop = false] - 是否自动停止 |
| | | * @param [options.clockRange] - 设定全局时钟播放的模式,可以设置到达终点后停止或循环播放 |
| | | * @param [options.clockLoop = false] - 是否循环播放,与 clockRange: Cesium.ClockRange.LOOP_STOP 效果类似,但不改变全局时钟时间。 |
| | | * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。 |
| | | * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。 |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * |
| | | * //以下是 clampToGround中使用的 |
| | | * @param [options.splitNum = 100] - 当clampToGround计算时,插值数,等比分割的个数 |
| | | * @param [options.minDistance = null] - 当clampToGround计算时,插值最小间隔(单位:米),优先级高于splitNum |
| | | * @param [options.offset = 0] - 当clampToGround计算时,可以按需增加偏移高度(单位:米),便于可视 |
| | | * @param [options.clampToTileset = false] - 是否贴3dtiles模型上(贴模型效率较慢,按需开启) |
| | | * @param [options.frameRate = 30] - 当clampToTileset:true时,控制贴模型的效率,多少帧计算一次贴模型高度, |
| | | * @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,默认是当前本身,可以是: primitives, entities, 或 3D Tiles features |
| | | * @param [options.shadow] - 设置投影或附加的对象,支持类型: |
| | | * @param [options.shadow.wall] - wall类型所支持的参数 |
| | | * @param [options.shadow.cylinder] - cylinder类型所支持的参数 |
| | | * @param [options.shadow.circle] - circle类型所支持的参数 |
| | | * @param [options.shadow.polyline] - polyline类型所支持的参数 |
| | | * @param [options.shadow.polylineGoing] - polylineGoing类型所支持的参数 |
| | | * @param [options.camera] - 视角模式设置,包括: |
| | | * @param [options.camera.type] - 视角模式类型,包括:'':无、'gs':跟随视角、'dy':第一视角、'sd':上帝视角 |
| | | * @param [options.camera.radius] - 'gs'跟随视角时的 初始俯仰距离值(单位:米) |
| | | * @param [options.camera.heading] - 'gs'跟随视角时的 初始方向角度值,绕垂直于地心的轴旋转角度, 0至360 |
| | | * @param [options.camera.pitch] - 'gs'跟随视角时的 初始俯仰角度值,绕纬度线旋转角度, 0至360 * |
| | | * @param [options.camera.followedX = 50] - 'dy'锁定第一视角时,距离运动点的距离(后方) |
| | | * @param [options.camera.followedZ = 10] - 'dy'锁定第一视角或'sd'上帝视角时,距离运动点的高度(上方) |
| | | * @param [options.camera.offsetX = 0] - 'dy'锁定第一视角时,锁定点的本身的X轴方向(前后)偏移值 |
| | | * @param [options.camera.offsetY = 0] - 'dy'锁定第一视角时,锁定点的本身的Y轴方向(横向)偏移值 |
| | | * @param [options.camera.offsetZ = 0] - 'dy'锁定第一视角时,锁定点的本身的Z轴方向(高度)偏移值 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class RoamLine extends BaseRoamLine { |
| | | constructor(options: { |
| | | positions: any[][] | LatLngPoint[]; |
| | | speed: any[][] | number; |
| | | timeField?: string; |
| | | model?: ModelEntity.StyleOptions | any; |
| | | label?: LabelEntity.StyleOptions | any; |
| | | billboard?: BillboardEntity.StyleOptions | any; |
| | | point?: PointEntity.StyleOptions | any; |
| | | path?: PathEntity.StyleOptions | any; |
| | | circle?: CircleEntity.StyleOptions | any; |
| | | attr?: any; |
| | | offsetHeight?: number; |
| | | startTime?: string | Cesium.JulianDate; |
| | | pauseTime?: number | ((...params: any[]) => any); |
| | | multiplier?: number; |
| | | hasCache?: boolean; |
| | | interpolation?: boolean; |
| | | interpolationDegree?: boolean; |
| | | showGroundHeight?: boolean; |
| | | showStop?: boolean; |
| | | autoStop?: boolean; |
| | | clockRange?: Cesium.ClockRange; |
| | | clockLoop?: boolean; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | offset?: number; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | objectsToExclude?: array; |
| | | shadow?: { |
| | | wall?: BaseRoamLine.WallShadingOptions; |
| | | cylinder?: BaseRoamLine.CylinderShadingOptions; |
| | | circle?: BaseRoamLine.CircleShadingOptions; |
| | | polyline?: BaseRoamLine.PolylineShadingOptions; |
| | | polylineGoing?: BaseRoamLine.PolylineGoingShadingOptions; |
| | | }[]; |
| | | camera?: { |
| | | type?: string; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | followedX?: number; |
| | | followedZ?: number; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | offsetZ?: number; |
| | | }; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | positions: any[][] | LatLngPoint[]; |
| | | speed: any[][] | number; |
| | | timeField?: string; |
| | | model?: ModelEntity.StyleOptions | any; |
| | | label?: LabelEntity.StyleOptions | any; |
| | | billboard?: BillboardEntity.StyleOptions | any; |
| | | point?: PointEntity.StyleOptions | any; |
| | | path?: PathEntity.StyleOptions | any; |
| | | circle?: CircleEntity.StyleOptions | any; |
| | | attr?: any; |
| | | offsetHeight?: number; |
| | | startTime?: string | Cesium.JulianDate; |
| | | pauseTime?: number | ((...params: any[]) => any); |
| | | multiplier?: number; |
| | | hasCache?: boolean; |
| | | interpolation?: boolean; |
| | | interpolationDegree?: boolean; |
| | | showGroundHeight?: boolean; |
| | | showStop?: boolean; |
| | | autoStop?: boolean; |
| | | clockRange?: Cesium.ClockRange; |
| | | clockLoop?: boolean; |
| | | forwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | backwardExtrapolationType?: Cesium.ExtrapolationType; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | offset?: number; |
| | | clampToTileset?: boolean; |
| | | frameRate?: number; |
| | | objectsToExclude?: array; |
| | | shadow?: { |
| | | wall?: BaseRoamLine.WallShadingOptions; |
| | | cylinder?: BaseRoamLine.CylinderShadingOptions; |
| | | circle?: BaseRoamLine.CircleShadingOptions; |
| | | polyline?: BaseRoamLine.PolylineShadingOptions; |
| | | polylineGoing?: BaseRoamLine.PolylineGoingShadingOptions; |
| | | }[]; |
| | | camera?: { |
| | | type?: string; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | followedX?: number; |
| | | followedZ?: number; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | offsetZ?: number; |
| | | }; |
| | | popup?: string | any[] | ((...params: any[]) => any); |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: string | any[] | ((...params: any[]) => any); |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 总时长 (单位:秒) |
| | |
| | | * Cesium原生动态属性对象 |
| | | */ |
| | | readonly property: Cesium.SampledPositionProperty; |
| | | } |
| | | } |
| | | |
| | | export namespace BaseGraphicLayer { |
| | | export namespace BaseGraphicLayer { |
| | | /** |
| | | * 图层类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property tooltipClose - tooltip弹窗关闭 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据图层 Base基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BaseGraphicLayer extends BaseLayer { |
| | | /** |
| | | * 矢量数据图层 Base基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BaseGraphicLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 绑定鼠标移入或单击后的 对象高亮 |
| | |
| | | * @returns 无 |
| | | */ |
| | | bindHighlight(options?: { |
| | | type?: string; |
| | | type?: string; |
| | | }): void; |
| | | /** |
| | | * 解绑鼠标移入或单击后的高亮处理 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | bindContextMenu(content: { |
| | | text?: string; |
| | | iconCls?: string; |
| | | show?: ((...params: any[]) => any) | boolean; |
| | | callback?: (...params: any[]) => any; |
| | | children?: array; |
| | | text?: string; |
| | | iconCls?: string; |
| | | show?: ((...params: any[]) => any) | boolean; |
| | | callback?: (...params: any[]) => any; |
| | | children?: array; |
| | | }[], options?: { |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | }): BaseGraphicLayer; |
| | | /** |
| | | * 解除绑定的右键菜单 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | closeSmallTooltip(): BaseGraphicLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图层对象 的基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | */ |
| | | export class BaseLayer extends BaseClass { |
| | | /** |
| | | * 图层对象 的基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | */ |
| | | export class BaseLayer extends BaseClass { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 内置唯一标识ID |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseLayer; |
| | | /** |
| | | * 更新图层参数 |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | export namespace CzmGeoJsonLayer { |
| | | export namespace CzmGeoJsonLayer { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property addGraphic - 添加矢量数据时 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | load: string; |
| | | addGraphic: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | load: string; |
| | | addGraphic: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * GeoJSON数据图层(ceisum原生),该类中矢量数据是使用ceisum原生方法加载的entity对象。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - geojson文件或服务url地址 |
| | | * @param [options.data] - geojson格式规范数据对象,与url二选一即可。 |
| | | * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1] - 透明度,取值范围:0.0-1.0 |
| | | * @param [options.symbol] - 矢量数据的style样式 |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class CzmGeoJsonLayer extends BaseGraphicLayer { |
| | | /** |
| | | * GeoJSON数据图层(ceisum原生),该类中矢量数据是使用ceisum原生方法加载的entity对象。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - geojson文件或服务url地址 |
| | | * @param [options.data] - geojson格式规范数据对象,与url二选一即可。 |
| | | * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1] - 透明度,取值范围:0.0-1.0 |
| | | * @param [options.symbol] - 矢量数据的style样式 |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class CzmGeoJsonLayer extends BaseGraphicLayer { |
| | | constructor(options?: { |
| | | url?: string; |
| | | data?: any; |
| | | format?: (...params: any[]) => any; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: string; |
| | | data?: any; |
| | | format?: (...params: any[]) => any; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * GeoJsonDataSource 对象 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | load(newOptions?: { |
| | | url?: string; |
| | | data?: any; |
| | | 类参数?: any; |
| | | url?: string; |
| | | data?: any; |
| | | 类参数?: any; |
| | | }): CzmGeoJsonLayer; |
| | | /** |
| | | * 加载新数据 或 刷新数据 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | updateStyle(symbol: { |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | }): CzmGeoJsonLayer; |
| | | /** |
| | | * 添加label文本注记 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * CZML数据图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - CZML文件或服务url地址 |
| | | * @param [options.data] - CZML格式规范数据对象,与url二选一即可。 |
| | | * @param [options.format] - 可以对加载的CZML数据进行格式化或转换操作 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class CzmlLayer extends CzmGeoJsonLayer { |
| | | /** |
| | | * CZML数据图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - CZML文件或服务url地址 |
| | | * @param [options.data] - CZML格式规范数据对象,与url二选一即可。 |
| | | * @param [options.format] - 可以对加载的CZML数据进行格式化或转换操作 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class CzmlLayer extends CzmGeoJsonLayer { |
| | | constructor(options?: { |
| | | url?: string; |
| | | data?: any; |
| | | format?: (...params: any[]) => any; |
| | | zIndex?: number; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: string; |
| | | data?: any; |
| | | format?: (...params: any[]) => any; |
| | | zIndex?: number; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 加载新数据 或 刷新数据 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | load(newOptions?: { |
| | | data?: any; |
| | | url?: string; |
| | | 类参数?: any; |
| | | data?: any; |
| | | url?: string; |
| | | 类参数?: any; |
| | | }): CzmlLayer; |
| | | /** |
| | | * 获取Entity矢量对象上绑定的 数据 |
| | |
| | | * @returns 数据 |
| | | */ |
| | | getEntityAttr(entity: Cesium.Entity): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * KML数据图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - KML文件或服务url地址 |
| | | * @param [options.data] - 已解析的KML文档或包含二进制KMZ数据或已解析的KML文档的Blob,与url二选一即可。 |
| | | * @param [options.format] - 可以对加载的KML数据进行格式化或转换操作 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.symbol] - 矢量数据的style样式 |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class KmlLayer extends CzmGeoJsonLayer { |
| | | /** |
| | | * KML数据图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - KML文件或服务url地址 |
| | | * @param [options.data] - 已解析的KML文档或包含二进制KMZ数据或已解析的KML文档的Blob,与url二选一即可。 |
| | | * @param [options.format] - 可以对加载的KML数据进行格式化或转换操作 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.symbol] - 矢量数据的style样式 |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class KmlLayer extends CzmGeoJsonLayer { |
| | | constructor(options?: { |
| | | url?: string; |
| | | data?: Document | Blob; |
| | | format?: (...params: any[]) => any; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: string; |
| | | data?: Document | Blob; |
| | | format?: (...params: any[]) => any; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 加载新数据 或 刷新数据 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | load(newOptions?: { |
| | | data?: Document | Blob; |
| | | url?: string; |
| | | 类参数?: any; |
| | | data?: Document | Blob; |
| | | url?: string; |
| | | 类参数?: any; |
| | | }): KmlLayer; |
| | | /** |
| | | * 获取Entity矢量对象上绑定的 数据 |
| | |
| | | * @returns 数据 |
| | | */ |
| | | getEntityAttr(entity: Cesium.Entity): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ArcGIS WFS服务图层, |
| | | * 按瓦片网格分块分层加载。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS服务地址, 示例:'http://server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/37', |
| | | * @param [options.token] - 用于通过ArcGIS MapServer服务进行身份验证的ArcGIS令牌。 |
| | | * @param [options.where] - 用于筛选数据的where查询条件 |
| | | * @param [options.wkid] - 当非标准EPSG标号时,可以指定wkid值。 |
| | | * @param [options.parameters] - 要在URL中 传递给WFS服务GetFeature请求的其他参数。 |
| | | * @param [options.headers] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param [options.IdField = 'id'] - 数据中唯一标识的属性字段名称,默认读取 id或objectid或OBJECTID |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType} |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param options.clustering - 设置聚合相关参数[entity点类型时]: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素) |
| | | * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 圆形图标的背景颜色,默认自动处理 |
| | | * @param [options.clustering.colorIn = 'rgba(110, 204, 57, 0.5)'] - 圆形图标的内圆背景颜色,默认自动处理 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisWfsLayer extends LodGraphicLayer { |
| | | /** |
| | | * ArcGIS WFS服务图层, |
| | | * 按瓦片网格分块分层加载。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS服务地址, 示例:'http://server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/37', |
| | | * @param [options.token] - 用于通过ArcGIS MapServer服务进行身份验证的ArcGIS令牌。 |
| | | * @param [options.where] - 用于筛选数据的where查询条件 |
| | | * @param [options.wkid] - 当非标准EPSG标号时,可以指定wkid值。 |
| | | * @param [options.parameters] - 要在URL中 传递给WFS服务GetFeature请求的其他参数。 |
| | | * @param [options.headers] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param [options.IdField = 'id'] - 数据中唯一标识的属性字段名称,默认读取 id或objectid或OBJECTID |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType} |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param options.clustering - 设置聚合相关参数[entity点类型时]: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素) |
| | | * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 圆形图标的背景颜色,默认自动处理 |
| | | * @param [options.clustering.colorIn = 'rgba(110, 204, 57, 0.5)'] - 圆形图标的内圆背景颜色,默认自动处理 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisWfsLayer extends LodGraphicLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | token?: string; |
| | | where?: string; |
| | | wkid?: number; |
| | | parameters?: any; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | IdField?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | radiusIn?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | colorIn?: string; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: string; |
| | | token?: string; |
| | | where?: string; |
| | | wkid?: number; |
| | | parameters?: any; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | IdField?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | radiusIn?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | colorIn?: string; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 更新where条件后 刷新数据 |
| | |
| | | * @returns 无 |
| | | */ |
| | | setWhere(where: string): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ArcGIS WFS服务图层, |
| | | * 一次性请求加载,适合少量数据时使用。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS服务地址, 示例:'http://server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/37', |
| | | * @param [options.token] - 用于通过ArcGIS MapServer服务进行身份验证的ArcGIS令牌。 |
| | | * @param [options.where] - 用于筛选数据的where查询条件 |
| | | * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisWfsSingleLayer extends GeoJsonLayer { |
| | | /** |
| | | * ArcGIS WFS服务图层, |
| | | * 一次性请求加载,适合少量数据时使用。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS服务地址, 示例:'http://server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/37', |
| | | * @param [options.token] - 用于通过ArcGIS MapServer服务进行身份验证的ArcGIS令牌。 |
| | | * @param [options.where] - 用于筛选数据的where查询条件 |
| | | * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisWfsSingleLayer extends GeoJsonLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | token?: string; |
| | | where?: string; |
| | | format?: (...params: any[]) => any; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: string; |
| | | token?: string; |
| | | where?: string; |
| | | format?: (...params: any[]) => any; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 更新where条件后 刷新数据 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | load(newOptions?: { |
| | | url?: string; |
| | | data?: any; |
| | | 类参数?: any; |
| | | url?: string; |
| | | data?: any; |
| | | 类参数?: any; |
| | | }): GeoJsonLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 高德在线POI图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.gaodeArr] - 高德KEY,在实际项目中请使用自己申请的高德KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.symbol] - 矢量数据的style样式 |
| | | * @param options.symbol.styleOptions - 点的Style样式。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param options.clustering - 设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素) |
| | | * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 圆形图标的背景颜色,默认自动处理 |
| | | * @param [options.clustering.colorIn = 'rgba(110, 204, 57, 0.5)'] - 圆形图标的内圆背景颜色,默认自动处理 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GeodePoiLayer extends LodGraphicLayer { |
| | | /** |
| | | * 高德在线POI图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.gaodeArr] - 高德KEY,在实际项目中请使用自己申请的高德KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.symbol] - 矢量数据的style样式 |
| | | * @param options.symbol.styleOptions - 点的Style样式。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param options.clustering - 设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素) |
| | | * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 圆形图标的背景颜色,默认自动处理 |
| | | * @param [options.clustering.colorIn = 'rgba(110, 204, 57, 0.5)'] - 圆形图标的内圆背景颜色,默认自动处理 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GeodePoiLayer extends LodGraphicLayer { |
| | | constructor(options?: { |
| | | key?: string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PointEntity.StyleOptions; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | radiusIn?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | colorIn?: string; |
| | | }; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | key?: string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PointEntity.StyleOptions; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | radiusIn?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | colorIn?: string; |
| | | }; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 获取配置的高德Key(多个时轮询) |
| | | */ |
| | | readonly key: string; |
| | | } |
| | | } |
| | | |
| | | export namespace GeoJsonLayer { |
| | | export namespace GeoJsonLayer { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property editStop - 停止编辑 标绘事件 |
| | | */ |
| | | type EventType = { |
| | | load: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | load: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 加载展示 GeoJSON数据 的图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - geojson文件或服务url地址 |
| | | * @param [options.data] - geojson格式规范数据对象,与url二选一即可。 |
| | | * @param [options.crs] - 原始数据的坐标系,如'EPSG:3857' |
| | | * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作 |
| | | * @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象 |
| | | * @param [options.mask] - 标识是否绘制区域边界的反选遮罩层,也可以传入object配置范围: { xmin: 73.0, xmax: 136.0, ymin: 3.0, ymax: 59.0 } |
| | | * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'} |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' } |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GeoJsonLayer extends GraphicLayer { |
| | | /** |
| | | * 加载展示 GeoJSON数据 的图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - geojson文件或服务url地址 |
| | | * @param [options.data] - geojson格式规范数据对象,与url二选一即可。 |
| | | * @param [options.crs] - 原始数据的坐标系,如'EPSG:3857' |
| | | * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作 |
| | | * @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象 |
| | | * @param [options.mask] - 标识是否绘制区域边界的反选遮罩层,也可以传入object配置范围: { xmin: 73.0, xmax: 136.0, ymin: 3.0, ymax: 59.0 } |
| | | * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'} |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' } |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GeoJsonLayer extends GraphicLayer { |
| | | constructor(options?: { |
| | | url?: string; |
| | | data?: any; |
| | | crs?: string; |
| | | format?: (...params: any[]) => any; |
| | | onCreateGraphic?: (...params: any[]) => any; |
| | | mask?: boolean | any; |
| | | graphicOptions?: any; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: string; |
| | | data?: any; |
| | | crs?: string; |
| | | format?: (...params: any[]) => any; |
| | | onCreateGraphic?: (...params: any[]) => any; |
| | | mask?: boolean | any; |
| | | graphicOptions?: any; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 数据加载完成后抛出,等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | load(newOptions?: { |
| | | url?: string; |
| | | data?: any; |
| | | 类参数?: any; |
| | | url?: string; |
| | | data?: any; |
| | | 类参数?: any; |
| | | }): GeoJsonLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据图层组,主要用于 多图层的标绘 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layers] - 子图层数组,每个子图层的配置见按各类型图层配置即可。 |
| | | * @param [options.defaultLayer] - 默认图层的图层名称 |
| | | * @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑) |
| | | * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续标绘 |
| | | * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GraphicGroupLayer extends GroupLayer { |
| | | /** |
| | | * 矢量数据图层组,主要用于 多图层的标绘 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layers] - 子图层数组,每个子图层的配置见按各类型图层配置即可。 |
| | | * @param [options.defaultLayer] - 默认图层的图层名称 |
| | | * @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑) |
| | | * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续标绘 |
| | | * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GraphicGroupLayer extends GroupLayer { |
| | | constructor(options?: { |
| | | layers?: GraphicLayer[]; |
| | | defaultLayer?: string; |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | isRestorePositions?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | layers?: GraphicLayer[]; |
| | | defaultLayer?: string; |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | isRestorePositions?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 是否可以编辑 |
| | |
| | | * @returns GeoJSON格式规范对象 |
| | | */ |
| | | toGeoJSON(options?: { |
| | | noAlt?: boolean; |
| | | noAlt?: boolean; |
| | | }): any; |
| | | /** |
| | | * 加载转换GeoJSON格式规范数据为Graphic后加载到图层中。 |
| | |
| | | * @returns 转换后的Graphic对象数组 |
| | | */ |
| | | loadGeoJSON(geojson: string | any, options?: { |
| | | clear?: boolean; |
| | | flyTo?: boolean; |
| | | style?: any; |
| | | layer?: string; |
| | | clear?: boolean; |
| | | flyTo?: boolean; |
| | | style?: any; |
| | | layer?: string; |
| | | }): BaseGraphic[]; |
| | | /** |
| | | * 获取图层内所有数据的 矩形边界值 |
| | |
| | | * @returns 创建完成的矢量数据对象 |
| | | */ |
| | | startDraw(options: { |
| | | type: GraphicType | string; |
| | | style?: any; |
| | | type: GraphicType | string; |
| | | style?: any; |
| | | }): BaseGraphic | any; |
| | | /** |
| | | * 停止绘制,如有未完成的绘制会自动删除 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | disableEdit(): GraphicGroupLayer; |
| | | } |
| | | } |
| | | |
| | | export namespace GraphicLayer { |
| | | export namespace GraphicLayer { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property editStop - 停止编辑 标绘事件 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.data = null] - 需要自动加载的数据,内部自动生成Graphic对象。{@link GraphicUtil#.create} |
| | | * @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑) |
| | | * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续标绘 |
| | | * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.clustering] - Entity点数据时,设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色 |
| | | * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度 |
| | | * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示 |
| | | * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色 |
| | | * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度 |
| | | * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image} |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GraphicLayer extends BaseGraphicLayer { |
| | | /** |
| | | * 矢量数据图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.data = null] - 需要自动加载的数据,内部自动生成Graphic对象。{@link GraphicUtil#.create} |
| | | * @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑) |
| | | * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续标绘 |
| | | * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.clustering] - Entity点数据时,设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色 |
| | | * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度 |
| | | * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示 |
| | | * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色 |
| | | * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度 |
| | | * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image} |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GraphicLayer extends BaseGraphicLayer { |
| | | constructor(options?: { |
| | | data?: any | array; |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | isRestorePositions?: boolean; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | clustering?: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | getImage?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | data?: any | array; |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | isRestorePositions?: boolean; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | clustering?: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | getImage?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 是否聚合(点数据时) |
| | |
| | | * @returns GeoJSON格式规范对象 |
| | | */ |
| | | toGeoJSON(options?: { |
| | | noAlt?: boolean; |
| | | noAlt?: boolean; |
| | | }): any; |
| | | /** |
| | | * 加载转换GeoJSON格式规范数据为Graphic后加载到图层中。 |
| | |
| | | * @returns 转换后的Graphic对象数组 |
| | | */ |
| | | loadGeoJSON(geojson: string | any, options?: { |
| | | clear?: boolean; |
| | | flyTo?: boolean; |
| | | type?: GraphicType; |
| | | style?: any; |
| | | crs?: string; |
| | | clear?: boolean; |
| | | flyTo?: boolean; |
| | | type?: GraphicType; |
| | | style?: any; |
| | | crs?: string; |
| | | }): BaseGraphic[]; |
| | | /** |
| | | * 添加Graphic矢量数据 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | clampToGround(options?: { |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: (...params: any[]) => any; |
| | | endItem: (...params: any[]) => any; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: (...params: any[]) => any; |
| | | endItem: (...params: any[]) => any; |
| | | }): GraphicLayer; |
| | | /** |
| | | * 开始绘制矢量数据,绘制的数据会加载在当前图层。 |
| | |
| | | * @returns 创建完成的矢量数据对象 |
| | | */ |
| | | startDraw(options: { |
| | | type: GraphicType | string; |
| | | style?: any; |
| | | attr?: any; |
| | | name?: string; |
| | | maxPointNum?: number; |
| | | success?: (...params: any[]) => any; |
| | | type: GraphicType | string; |
| | | style?: any; |
| | | attr?: any; |
| | | name?: string; |
| | | maxPointNum?: number; |
| | | success?: (...params: any[]) => any; |
| | | }): BaseGraphic | any; |
| | | /** |
| | | * 停止绘制,如有未完成的绘制会自动删除 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | stopEditing(graphic?: BaseGraphic | any): GraphicLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 经纬网 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.numLines = 10] - 网格数 |
| | | * @param [options.lineStyle] - 线的样式 |
| | | * @param [options.labelStyle] - 文本的样式 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GraticuleLayer extends BaseLayer { |
| | | /** |
| | | * 经纬网 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.numLines = 10] - 网格数 |
| | | * @param [options.lineStyle] - 线的样式 |
| | | * @param [options.labelStyle] - 文本的样式 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GraticuleLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | numLines?: number; |
| | | lineStyle?: PolylinePrimitive.StyleOptions; |
| | | labelStyle?: LabelEntity.StyleOptions; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | numLines?: number; |
| | | lineStyle?: PolylinePrimitive.StyleOptions; |
| | | labelStyle?: LabelEntity.StyleOptions; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 对象添加到地图前创建一些对象的钩子方法, |
| | |
| | | * @returns 无 |
| | | */ |
| | | _mountedHook(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace LodGraphicLayer { |
| | | export namespace LodGraphicLayer { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property removeGraphic - 移除矢量数据时 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | addGraphic: string; |
| | | removeGraphic: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | addGraphic: string; |
| | | removeGraphic: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据LOD分层分块加载类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.IdField = 'id'] - 数据中唯一标识的属性字段名称 |
| | | * @param options.queryGridData - 获取网格内对应数据的的外部处理回调方法 |
| | | * @param options.createGraphic - 根据数据创建矢量对象的外部处理回调方法 |
| | | * @param options.updateGraphic - 根据数据更新矢量对象的外部处理回调方法,一般动态数据时可以用 |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param options.clustering - 设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素) |
| | | * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 圆形图标的背景颜色,默认自动处理 |
| | | * @param [options.clustering.colorIn = 'rgba(110, 204, 57, 0.5)'] - 圆形图标的内圆背景颜色,默认自动处理 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class LodGraphicLayer extends GraphicLayer { |
| | | /** |
| | | * 矢量数据LOD分层分块加载类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.IdField = 'id'] - 数据中唯一标识的属性字段名称 |
| | | * @param options.queryGridData - 获取网格内对应数据的的外部处理回调方法 |
| | | * @param options.createGraphic - 根据数据创建矢量对象的外部处理回调方法 |
| | | * @param options.updateGraphic - 根据数据更新矢量对象的外部处理回调方法,一般动态数据时可以用 |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param options.symbol.styleOptions - 数据的Style样式 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param options.clustering - 设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素) |
| | | * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 圆形图标的背景颜色,默认自动处理 |
| | | * @param [options.clustering.colorIn = 'rgba(110, 204, 57, 0.5)'] - 圆形图标的内圆背景颜色,默认自动处理 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class LodGraphicLayer extends GraphicLayer { |
| | | constructor(options?: { |
| | | IdField?: string; |
| | | queryGridData: (...params: any[]) => any; |
| | | createGraphic: (...params: any[]) => any; |
| | | updateGraphic: (...params: any[]) => any; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | radiusIn?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | colorIn?: string; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | IdField?: string; |
| | | queryGridData: (...params: any[]) => any; |
| | | createGraphic: (...params: any[]) => any; |
| | | updateGraphic: (...params: any[]) => any; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | opacity?: number; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | styleOptions: BillboardEntity.StyleOptions | PolylineEntity.StyleOptions | PolygonEntity.StyleOptions | any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | radiusIn?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | colorIn?: string; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 根据LOD分块信息去请求对应的Tile瓦块内的数据 |
| | |
| | | * @returns 无 |
| | | */ |
| | | reload(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * gltf小模型图层 |
| | | * @example |
| | | * //方式1:单个模型时,直接按下面传入position即可 |
| | | * let gltfLayer = new mars3d.layer.ModelLayer({ |
| | | * name: '上海浦东', |
| | | * url: 'http://data.mars3d.cn/gltf/mars/shanghai/scene.gltf', |
| | | * style: { scale: 520, heading: 215 }, //style同标绘的model类型 |
| | | * position: [121.507762, 31.233975, 200], |
| | | * }) |
| | | * map.addLayer(gltfLayer) |
| | | * |
| | | * //方式2:多个模型时,可以传入data属性构造 |
| | | * let gltfLayer = new mars3d.layer.ModelLayer({ |
| | | * name: '骨骼动画', |
| | | * data: [ |
| | | * { |
| | | * url: 'http://data.mars3d.cn/gltf/mars/fengche.gltf', |
| | | * position: [117.170624, 31.840666, 278.66], |
| | | * style: { scale: 200, heading: 270 }, |
| | | * }, |
| | | * { |
| | | * url: 'http://data.mars3d.cn/gltf/mars/firedrill/xiaofangyuan-run.gltf', |
| | | * position: [117.184442, 31.842172, 33.92], |
| | | * style: { scale: 300 }, |
| | | * }, |
| | | * ], |
| | | * }) |
| | | * map.addLayer(gltfLayer) |
| | | * |
| | | * |
| | | * //方式3: 多个同属性(url和style完全相同)模型时,可以直接简化,传入positions属性。 |
| | | * let gltfLayer = new mars3d.layer.ModelLayer({ |
| | | * name: '风力发电机', |
| | | * url: 'http://data.mars3d.cn/gltf/mars/fengche.gltf', |
| | | * style: { scale: 40, heading: 135, minimumPixelSize: 30, clampToGround: true }, |
| | | * positions: [ |
| | | * { lng: 112.227630577, lat: 39.0613382363999, alt: 1815 }, |
| | | * { lng: 112.229302206, lat: 39.0579481036999, alt: 1827 }, |
| | | * { lng: 112.226596341, lat: 39.0584773033999, alt: 1849 }, |
| | | * ], |
| | | * }) |
| | | * map.addLayer(gltfLayer) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 【方式1】模型的url地址 |
| | | * @param options.position - 模型所在位置坐标 |
| | | * @param options.style - 模型的样式配置 |
| | | * @param options.data - 【方式2】多个模型时,可以传入data数组构造{@link GraphicUtil#.create}: |
| | | * @param options.data.url - 模型的url地址 |
| | | * @param options.data.position - 模型所在位置坐标 |
| | | * @param options.data.style - 模型的样式配置 |
| | | * @param options.positions - 【方式3】多个同属性(url和style完全相同)模型时,可以直接简化,传入positions属性。 |
| | | * @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑) |
| | | * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续标绘 |
| | | * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param options.clustering - 点数据时,设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色 |
| | | * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度 |
| | | * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示 |
| | | * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色 |
| | | * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度 |
| | | * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image} |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ModelLayer extends GraphicLayer { |
| | | /** |
| | | * gltf小模型图层 |
| | | * @example |
| | | * //方式1:单个模型时,直接按下面传入position即可 |
| | | * let gltfLayer = new mars3d.layer.ModelLayer({ |
| | | * name: '上海浦东', |
| | | * url: 'http://data.mars3d.cn/gltf/mars/shanghai/scene.gltf', |
| | | * style: { scale: 520, heading: 215 }, //style同标绘的model类型 |
| | | * position: [121.507762, 31.233975, 200], |
| | | * }) |
| | | * map.addLayer(gltfLayer) |
| | | * |
| | | * //方式2:多个模型时,可以传入data属性构造 |
| | | * let gltfLayer = new mars3d.layer.ModelLayer({ |
| | | * name: '骨骼动画', |
| | | * data: [ |
| | | * { |
| | | * url: 'http://data.mars3d.cn/gltf/mars/fengche.gltf', |
| | | * position: [117.170624, 31.840666, 278.66], |
| | | * style: { scale: 200, heading: 270 }, |
| | | * }, |
| | | * { |
| | | * url: 'http://data.mars3d.cn/gltf/mars/firedrill/xiaofangyuan-run.gltf', |
| | | * position: [117.184442, 31.842172, 33.92], |
| | | * style: { scale: 300 }, |
| | | * }, |
| | | * ], |
| | | * }) |
| | | * map.addLayer(gltfLayer) |
| | | * |
| | | * |
| | | * //方式3: 多个同属性(url和style完全相同)模型时,可以直接简化,传入positions属性。 |
| | | * let gltfLayer = new mars3d.layer.ModelLayer({ |
| | | * name: '风力发电机', |
| | | * url: 'http://data.mars3d.cn/gltf/mars/fengche.gltf', |
| | | * style: { scale: 40, heading: 135, minimumPixelSize: 30, clampToGround: true }, |
| | | * positions: [ |
| | | * { lng: 112.227630577, lat: 39.0613382363999, alt: 1815 }, |
| | | * { lng: 112.229302206, lat: 39.0579481036999, alt: 1827 }, |
| | | * { lng: 112.226596341, lat: 39.0584773033999, alt: 1849 }, |
| | | * ], |
| | | * }) |
| | | * map.addLayer(gltfLayer) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 【方式1】模型的url地址 |
| | | * @param options.position - 模型所在位置坐标 |
| | | * @param options.style - 模型的样式配置 |
| | | * @param options.data - 【方式2】多个模型时,可以传入data数组构造{@link GraphicUtil#.create}: |
| | | * @param options.data.url - 模型的url地址 |
| | | * @param options.data.position - 模型所在位置坐标 |
| | | * @param options.data.style - 模型的样式配置 |
| | | * @param options.positions - 【方式3】多个同属性(url和style完全相同)模型时,可以直接简化,传入positions属性。 |
| | | * @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑) |
| | | * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续标绘 |
| | | * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param options.clustering - 点数据时,设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色 |
| | | * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度 |
| | | * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示 |
| | | * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色 |
| | | * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度 |
| | | * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image} |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ModelLayer extends GraphicLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: any; |
| | | data: { |
| | | url: string; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: any; |
| | | data: { |
| | | url: string; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: any; |
| | | }[]; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | isRestorePositions?: boolean; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | getImage?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }[]; |
| | | positions: LatLngPoint[] | Cesium.Cartesian3[]; |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | isRestorePositions?: boolean; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | clustering: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | getImage?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 加载gltf模型数据的内部Cesium容器 |
| | | */ |
| | | readonly layer: Cesium.CustomDataSource; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * OSM在线 建筑物模型 |
| | | * @param options - 参数对象,参数包括以下: |
| | | * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。数值加大,能让最终成像变模糊 |
| | | * @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计)。这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,Cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障,不过上述我们也估算过最差情况下,没有做纹理crn压缩的情况下,这个值很容易被超过,导致很多人误以为cesium的淘汰没有效果。这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。结论:这个参数要根据当前显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50 % 左右,比如我的显存是6G,这个可以设置到3000左右。那么既保证不超过显存限制,又可以最大利用显存缓存,配合crn压缩之后,这个几乎可以保证你第二次查看模型同一位置的时候,看不到加载过程,非常棒。 |
| | | * @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}. |
| | | * @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。 |
| | | * @param [options.customShader] - 自定义shader效果 |
| | | * @param [options.highlight] - 高亮及其样式配置 |
| | | * @param [options.highlight.type] - 鼠标移入高亮 或 单击高亮(type:'click') |
| | | * @param [options.highlight.all] - 是否整体高亮, true:模型整体全部高亮,false:单个构件高亮 |
| | | * @param [options.highlight.color = '#FFFF00'] - 颜色,支持rgba字符串 |
| | | * @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link OutlineEffect}方式高亮。 |
| | | * @param [options.highlight.filter] - 可以设置筛选排除一些构件, 排除的构件在filter方法内返回false |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class OsmBuildingsLayer extends TilesetLayer { |
| | | /** |
| | | * OSM在线 建筑物模型 |
| | | * @param options - 参数对象,参数包括以下: |
| | | * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。数值加大,能让最终成像变模糊 |
| | | * @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计)。这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,Cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障,不过上述我们也估算过最差情况下,没有做纹理crn压缩的情况下,这个值很容易被超过,导致很多人误以为cesium的淘汰没有效果。这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。结论:这个参数要根据当前显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50 % 左右,比如我的显存是6G,这个可以设置到3000左右。那么既保证不超过显存限制,又可以最大利用显存缓存,配合crn压缩之后,这个几乎可以保证你第二次查看模型同一位置的时候,看不到加载过程,非常棒。 |
| | | * @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}. |
| | | * @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。 |
| | | * @param [options.customShader] - 自定义shader效果 |
| | | * @param [options.highlight] - 高亮及其样式配置 |
| | | * @param [options.highlight.type] - 鼠标移入高亮 或 单击高亮(type:'click') |
| | | * @param [options.highlight.all] - 是否整体高亮, true:模型整体全部高亮,false:单个构件高亮 |
| | | * @param [options.highlight.color = '#FFFF00'] - 颜色,支持rgba字符串 |
| | | * @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link OutlineEffect}方式高亮。 |
| | | * @param [options.highlight.filter] - 可以设置筛选排除一些构件, 排除的构件在filter方法内返回false |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class OsmBuildingsLayer extends TilesetLayer { |
| | | constructor(options: { |
| | | maximumScreenSpaceError?: number; |
| | | maximumMemoryUsage?: number; |
| | | style?: any | Cesium.Cesium3DTileStyle | ((...params: any[]) => any); |
| | | marsJzwStyle?: boolean | string; |
| | | customShader?: Cesium.CustomShader; |
| | | highlight?: { |
| | | type?: string; |
| | | all?: boolean; |
| | | color?: string | ((...params: any[]) => any); |
| | | outlineEffect?: boolean; |
| | | filter?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | maximumScreenSpaceError?: number; |
| | | maximumMemoryUsage?: number; |
| | | style?: any | Cesium.Cesium3DTileStyle | ((...params: any[]) => any); |
| | | marsJzwStyle?: boolean | string; |
| | | customShader?: Cesium.CustomShader; |
| | | highlight?: { |
| | | type?: string; |
| | | all?: boolean; |
| | | color?: string | ((...params: any[]) => any); |
| | | outlineEffect?: boolean; |
| | | filter?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace TilesetLayer { |
| | | export namespace TilesetLayer { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property highlightClose - highlight关闭后 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | initialTilesLoaded: string; |
| | | allTilesLoaded: string; |
| | | loadBefore: string; |
| | | load: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | initialTilesLoaded: string; |
| | | allTilesLoaded: string; |
| | | loadBefore: string; |
| | | load: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 3dtiles 三维模型图层。 |
| | | * @param options - 参数对象, 构造参数建议从{@link http://mars3d.cn/editor.html?id=layer-tileset/manager/edit|模型编辑页面}设置后保存参数后拷贝json参数即可。参数包括以下: |
| | | * @param options.url - tileset的主JSON文件的 url |
| | | * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。数值加大,能让最终成像变模糊 |
| | | * @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计)。这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,Cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障,不过上述我们也估算过最差情况下,没有做纹理crn压缩的情况下,这个值很容易被超过,导致很多人误以为cesium的淘汰没有效果。这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。结论:这个参数要根据当前显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50 % 左右,比如我的显存是6G,这个可以设置到3000左右。那么既保证不超过显存限制,又可以最大利用显存缓存,配合crn压缩之后,这个几乎可以保证你第二次查看模型同一位置的时候,看不到加载过程,非常棒。 |
| | | * @param [options.position] - 自定义新的中心点位置(移动模型) |
| | | * @param options.position.lng - 经度值, 180 - 180 |
| | | * @param options.position.lat - 纬度值, -90 - 90 |
| | | * @param options.position.alt - 高度值(单位:米) |
| | | * @param [options.rotation] - 自定义旋转方向(旋转模型) |
| | | * @param options.rotation.x - X方向,角度值0-360 |
| | | * @param options.rotation.y - Y方向,角度值0-360 |
| | | * @param options.rotation.z - 四周方向,角度值0-360 |
| | | * @param [options.modelMatrix] - 模型的矩阵位置,内部无坐标位置的模型使用,此时position和rotation等参数均无效。 |
| | | * @param [options.updateMatrix] - 外部自定义修复模型矩阵位置 |
| | | * @param [options.scale = 1] - 自定义缩放比例 |
| | | * @param [options.axis] - 自定义轴方向 |
| | | * @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}. |
| | | * @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。 |
| | | * @param [options.customShader] - 自定义shader效果 |
| | | * @param [options.highlight] - 高亮及其样式配置 |
| | | * @param [options.highlight.type] - 鼠标移入高亮 或 单击高亮(type:'click') |
| | | * @param [options.highlight.all] - 是否整体高亮, true:模型整体全部高亮,false:单个构件高亮 |
| | | * @param [options.highlight.color = '#FFFF00'] - 颜色,支持rgba字符串 |
| | | * @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link OutlineEffect}方式高亮。 |
| | | * @param [options.highlight.filter] - 可以设置筛选排除一些构件, 排除的构件在filter方法内返回false |
| | | * @param [options.clampToGround] - 是否贴地,true时自动调用贴地计算,但此属性只适合标准的与地形数据匹配的模型,并不精确,建议通过模型编辑页面调试给具体高度值。 |
| | | * @param [options.chinaCRS] - 标识模型的国内坐标系(用于自动纠偏或加偏) |
| | | * @param [options.shadows = ShadowMode.ENABLED] - 确定tileset是否投射或接收来自光源的阴影。 |
| | | * @param [options.cullWithChildrenBounds = true] - 优化选择。是否使用子绑定卷的并集来筛选贴图。 |
| | | * @param [options.cullRequestsWhileMoving = true] - 优化选择。不要要求贴图,当他们回来的时候可能不会使用,因为相机的运动。这个优化只适用于固定瓷砖组。 |
| | | * @param [options.cullRequestsWhileMovingMultiplier = 60.0] - 优化选择。在移动时选择请求时使用的倍增器。越大的选择性越强,越小的选择性越弱。值越小能够更快的剔除。 |
| | | * @param [options.preloadWhenHidden = false] - 当true时,tileset.show是false,也去预加载数据。 |
| | | * @param [options.preloadFlightDestinations = true] - 优化选择。当摄像机在飞行时,在摄像机的飞行目的地预加载贴图。 |
| | | * @param [options.preferLeaves = false] - 优化选择。最好先加载上叶子节点数据。这个参数默认是false,同等条件下,叶子节点会优先加载。但是Cesium的tile加载优先级有很多考虑条件,这个只是其中之一,如果skipLevelOfDetail=false,这个参数几乎无意义。所以要配合skipLevelOfDetail=true来使用,此时设置preferLeaves=true。这样我们就能最快的看见符合当前视觉精度的块,对于提升大数据以及网络环境不好的前提下有一点点改善意义。 |
| | | * @param [options.dynamicScreenSpaceError = false] - 优化选择。减少远离摄像头的贴图的屏幕空间误差。true时会在真正的全屏加载完之后才清晰化模型. |
| | | * @param [options.dynamicScreenSpaceErrorDensity = 0.00278] - 密度用来调整动态画面空间误差,类似于雾密度。 |
| | | * @param [options.dynamicScreenSpaceErrorFactor = 4.0] - 用于增加计算的动态屏幕空间误差的因素。 |
| | | * @param [options.dynamicScreenSpaceErrorHeightFalloff = 0.25] - 瓷砖密度开始下降时的高度之比。 |
| | | * @param [options.progressiveResolutionHeightFraction = 0.3] - 优化选择。如果在(0.0,0.5)之间,在屏幕空间或以上的瓷砖错误降低屏幕分辨率 <code>progressiveResolutionHeightFraction*screenHeight</code> 将优先。这可以帮助得到一个快速层的瓷砖下来,而全分辨率的瓷砖继续加载。 |
| | | * @param [options.foveatedScreenSpaceError = true] - 优化选择。通过暂时提高屏幕边缘的贴图的屏幕空间误差,优先加载屏幕中央的贴图。一旦所有由{@link cesium3dtilesset#foveatedConeSize}确定的屏幕中央的贴图被加载,屏幕空间错误就会恢复正常。 |
| | | * @param [options.foveatedConeSize = 0.1] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制决定哪些贴图被延迟的锥大小。装在这个圆锥体里的瓷砖会立即被装入。锥外的贴图有可能被延迟,这取决于它们在锥外的距离和它们的屏幕空间误差。这是由{@link Cesium3DTileset#foveatedInterpolationCallback}和{@link Cesium3DTileset#foveatedMinimumScreenSpaceErrorRelaxation}控制的。设置为0.0意味着圆锥将是由相机位置和它的视图方向形成的线。将此设置为1.0意味着圆锥将包含相机的整个视场,禁用此效果。 |
| | | * @param [options.foveatedMinimumScreenSpaceErrorRelaxation = 0.0] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制中心锥形以外的贴图的初始屏幕空间误差松弛。屏幕空间错误将基于所提供的{@link Cesium3DTileset#foveatedInterpolationCallback}从tileset值开始直到{@link Cesium3DTileset#maximumScreenSpaceError}。 |
| | | * @param [options.foveatedInterpolationCallback = Math.lerp] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制中心锥形以外的贴图的初始屏幕空间误差松弛。优化选择。当{@link Cesium3DTileset#foveatedScreenSpaceError}为true时使用,以控制凸出圆锥外的贴图的屏幕空间误差提高多少,插值在{@link Cesium3DTileset#foveatedminimumscreenspaceerror}和{@link Cesium3DTileset#maximumScreenSpaceError}之间。 |
| | | * @param [options.foveatedTimeDelay = 0.2] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制中心锥形以外的贴图的初始屏幕空间误差松弛。优化选择。优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制在延迟tile开始加载前摄像机停止移动后等待多长时间(秒)。这个时间延迟阻止了在相机移动时请求屏幕边缘的贴图。将此设置为0.0将立即请求任何给定视图中的所有贴图。 |
| | | * @param [options.skipLevelOfDetail = false] - 优化选择。确定在遍历过程中是否应应用跳过详细信息的级别。是Cesium在1.5x 引入的一个优化参数,这个参数在金字塔数据加载中,可以跳过一些级别,这样整体的效率会高一些,数据占用也会小一些。但是带来的异常是:1) 加载过程中闪烁,看起来像是透过去了,数据载入完成后正常。2,有些异常的面片,这个还是因为两级LOD之间数据差异较大,导致的。当这个参数设置false,两级之间的变化更平滑,不会跳跃穿透,但是清晰的数据需要更长,而且还有个致命问题,一旦某一个tile数据无法请求到或者失败,导致一直不清晰。所以我们建议:对于网络条件好,并且数据总量较小的情况下,可以设置false,提升数据显示质量。 |
| | | * @param [options.baseScreenSpaceError = 1024] - 当skipLevelOfDetail为true时,跳过详细级别之前必须达到的屏幕空间错误。 |
| | | * @param [options.skipScreenSpaceErrorFactor = 16] - 当skipLevelOfDetail = true时,一个定义要跳过的最小屏幕空间错误的乘法器。与skipLevels一起使用,以决定加载哪些贴图。 |
| | | * @param [options.skipLevels = 1] - 当skipLevelOfDetail是true,一个常量定义了加载tiles时要跳过的最小级别数。当它为0时,不会跳过任何级别。与skipScreenSpaceErrorFactor一起使用,以决定加载哪些贴图。 |
| | | * @param [options.immediatelyLoadDesiredLevelOfDetail = false] - 当skipLevelOfDetail为true时,只有满足最大屏幕空间错误的tiles才会被下载。跳过因素将被忽略,并且只加载所需的块。 |
| | | * @param [options.loadSiblings = false] - 当skipLevelOfDetail = true时,判断遍历过程中是否总是下载可见块的兄弟块。如果为true则不会在已加载完模型后,自动从中心开始超清化模型。 |
| | | * @param [options.clippingPlanes] - {@link Cesium.ClippingPlaneCollection}用于选择性地禁用tile集的渲染。 |
| | | * @param [options.classificationType] - 确定地形、3D贴图或两者都将被这个贴图集分类。有关限制和限制的详细信息,请参阅{@link cesium3dtilesset #classificationType}。 |
| | | * @param [options.pointCloudShading] - 基于几何误差和光照构造一个{@link Cesium.PointCloudShading}对象来控制点衰减的选项。 |
| | | * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 缩放来自地球、天空、大气和星星天空盒的漫反射和高光图像照明。 |
| | | * @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。 |
| | | * @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。 |
| | | * @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。 |
| | | * @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。 |
| | | * @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。 |
| | | * @param [options.debugHeatmapTilePropertyName] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;作为热图着色的tile变量。所有渲染的贴图都将相对于其他指定的变量值着色。 |
| | | * @param [options.pickPrimitive] - 要在拾取过程中呈现的原语,而不是tile集合。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TilesetLayer extends BaseGraphicLayer { |
| | | /** |
| | | * 3dtiles 三维模型图层。 |
| | | * @param options - 参数对象, 构造参数建议从{@link http://mars3d.cn/editor.html?id=layer-tileset/manager/edit|模型编辑页面}设置后保存参数后拷贝json参数即可。参数包括以下: |
| | | * @param options.url - tileset的主JSON文件的 url |
| | | * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。数值加大,能让最终成像变模糊 |
| | | * @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计)。这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,Cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障,不过上述我们也估算过最差情况下,没有做纹理crn压缩的情况下,这个值很容易被超过,导致很多人误以为cesium的淘汰没有效果。这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。结论:这个参数要根据当前显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50 % 左右,比如我的显存是6G,这个可以设置到3000左右。那么既保证不超过显存限制,又可以最大利用显存缓存,配合crn压缩之后,这个几乎可以保证你第二次查看模型同一位置的时候,看不到加载过程,非常棒。 |
| | | * @param [options.position] - 自定义新的中心点位置(移动模型) |
| | | * @param options.position.lng - 经度值, 180 - 180 |
| | | * @param options.position.lat - 纬度值, -90 - 90 |
| | | * @param options.position.alt - 高度值(单位:米) |
| | | * @param [options.rotation] - 自定义旋转方向(旋转模型) |
| | | * @param options.rotation.x - X方向,角度值0-360 |
| | | * @param options.rotation.y - Y方向,角度值0-360 |
| | | * @param options.rotation.z - 四周方向,角度值0-360 |
| | | * @param [options.modelMatrix] - 模型的矩阵位置,内部无坐标位置的模型使用,此时position和rotation等参数均无效。 |
| | | * @param [options.updateMatrix] - 外部自定义修复模型矩阵位置 |
| | | * @param [options.scale = 1] - 自定义缩放比例 |
| | | * @param [options.axis] - 自定义轴方向 |
| | | * @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}. |
| | | * @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。 |
| | | * @param [options.customShader] - 自定义shader效果 |
| | | * @param [options.highlight] - 高亮及其样式配置 |
| | | * @param [options.highlight.type] - 鼠标移入高亮 或 单击高亮(type:'click') |
| | | * @param [options.highlight.all] - 是否整体高亮, true:模型整体全部高亮,false:单个构件高亮 |
| | | * @param [options.highlight.color = '#FFFF00'] - 颜色,支持rgba字符串 |
| | | * @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link OutlineEffect}方式高亮。 |
| | | * @param [options.highlight.filter] - 可以设置筛选排除一些构件, 排除的构件在filter方法内返回false |
| | | * @param [options.clampToGround] - 是否贴地,true时自动调用贴地计算,但此属性只适合标准的与地形数据匹配的模型,并不精确,建议通过模型编辑页面调试给具体高度值。 |
| | | * @param [options.chinaCRS] - 标识模型的国内坐标系(用于自动纠偏或加偏) |
| | | * @param [options.shadows = ShadowMode.ENABLED] - 确定tileset是否投射或接收来自光源的阴影。 |
| | | * @param [options.cullWithChildrenBounds = true] - 优化选择。是否使用子绑定卷的并集来筛选贴图。 |
| | | * @param [options.cullRequestsWhileMoving = true] - 优化选择。不要要求贴图,当他们回来的时候可能不会使用,因为相机的运动。这个优化只适用于固定瓷砖组。 |
| | | * @param [options.cullRequestsWhileMovingMultiplier = 60.0] - 优化选择。在移动时选择请求时使用的倍增器。越大的选择性越强,越小的选择性越弱。值越小能够更快的剔除。 |
| | | * @param [options.preloadWhenHidden = false] - 当true时,tileset.show是false,也去预加载数据。 |
| | | * @param [options.preloadFlightDestinations = true] - 优化选择。当摄像机在飞行时,在摄像机的飞行目的地预加载贴图。 |
| | | * @param [options.preferLeaves = false] - 优化选择。最好先加载上叶子节点数据。这个参数默认是false,同等条件下,叶子节点会优先加载。但是Cesium的tile加载优先级有很多考虑条件,这个只是其中之一,如果skipLevelOfDetail=false,这个参数几乎无意义。所以要配合skipLevelOfDetail=true来使用,此时设置preferLeaves=true。这样我们就能最快的看见符合当前视觉精度的块,对于提升大数据以及网络环境不好的前提下有一点点改善意义。 |
| | | * @param [options.dynamicScreenSpaceError = false] - 优化选择。减少远离摄像头的贴图的屏幕空间误差。true时会在真正的全屏加载完之后才清晰化模型. |
| | | * @param [options.dynamicScreenSpaceErrorDensity = 0.00278] - 密度用来调整动态画面空间误差,类似于雾密度。 |
| | | * @param [options.dynamicScreenSpaceErrorFactor = 4.0] - 用于增加计算的动态屏幕空间误差的因素。 |
| | | * @param [options.dynamicScreenSpaceErrorHeightFalloff = 0.25] - 瓷砖密度开始下降时的高度之比。 |
| | | * @param [options.progressiveResolutionHeightFraction = 0.3] - 优化选择。如果在(0.0,0.5)之间,在屏幕空间或以上的瓷砖错误降低屏幕分辨率 <code>progressiveResolutionHeightFraction*screenHeight</code> 将优先。这可以帮助得到一个快速层的瓷砖下来,而全分辨率的瓷砖继续加载。 |
| | | * @param [options.foveatedScreenSpaceError = true] - 优化选择。通过暂时提高屏幕边缘的贴图的屏幕空间误差,优先加载屏幕中央的贴图。一旦所有由{@link cesium3dtilesset#foveatedConeSize}确定的屏幕中央的贴图被加载,屏幕空间错误就会恢复正常。 |
| | | * @param [options.foveatedConeSize = 0.1] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制决定哪些贴图被延迟的锥大小。装在这个圆锥体里的瓷砖会立即被装入。锥外的贴图有可能被延迟,这取决于它们在锥外的距离和它们的屏幕空间误差。这是由{@link Cesium3DTileset#foveatedInterpolationCallback}和{@link Cesium3DTileset#foveatedMinimumScreenSpaceErrorRelaxation}控制的。设置为0.0意味着圆锥将是由相机位置和它的视图方向形成的线。将此设置为1.0意味着圆锥将包含相机的整个视场,禁用此效果。 |
| | | * @param [options.foveatedMinimumScreenSpaceErrorRelaxation = 0.0] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制中心锥形以外的贴图的初始屏幕空间误差松弛。屏幕空间错误将基于所提供的{@link Cesium3DTileset#foveatedInterpolationCallback}从tileset值开始直到{@link Cesium3DTileset#maximumScreenSpaceError}。 |
| | | * @param [options.foveatedInterpolationCallback = Math.lerp] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制中心锥形以外的贴图的初始屏幕空间误差松弛。优化选择。当{@link Cesium3DTileset#foveatedScreenSpaceError}为true时使用,以控制凸出圆锥外的贴图的屏幕空间误差提高多少,插值在{@link Cesium3DTileset#foveatedminimumscreenspaceerror}和{@link Cesium3DTileset#maximumScreenSpaceError}之间。 |
| | | * @param [options.foveatedTimeDelay = 0.2] - 优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制中心锥形以外的贴图的初始屏幕空间误差松弛。优化选择。优化选择。当{@link cesium3dtilesset#foveatedScreenSpaceError}为true时使用,以控制在延迟tile开始加载前摄像机停止移动后等待多长时间(秒)。这个时间延迟阻止了在相机移动时请求屏幕边缘的贴图。将此设置为0.0将立即请求任何给定视图中的所有贴图。 |
| | | * @param [options.skipLevelOfDetail = false] - 优化选择。确定在遍历过程中是否应应用跳过详细信息的级别。是Cesium在1.5x 引入的一个优化参数,这个参数在金字塔数据加载中,可以跳过一些级别,这样整体的效率会高一些,数据占用也会小一些。但是带来的异常是:1) 加载过程中闪烁,看起来像是透过去了,数据载入完成后正常。2,有些异常的面片,这个还是因为两级LOD之间数据差异较大,导致的。当这个参数设置false,两级之间的变化更平滑,不会跳跃穿透,但是清晰的数据需要更长,而且还有个致命问题,一旦某一个tile数据无法请求到或者失败,导致一直不清晰。所以我们建议:对于网络条件好,并且数据总量较小的情况下,可以设置false,提升数据显示质量。 |
| | | * @param [options.baseScreenSpaceError = 1024] - 当skipLevelOfDetail为true时,跳过详细级别之前必须达到的屏幕空间错误。 |
| | | * @param [options.skipScreenSpaceErrorFactor = 16] - 当skipLevelOfDetail = true时,一个定义要跳过的最小屏幕空间错误的乘法器。与skipLevels一起使用,以决定加载哪些贴图。 |
| | | * @param [options.skipLevels = 1] - 当skipLevelOfDetail是true,一个常量定义了加载tiles时要跳过的最小级别数。当它为0时,不会跳过任何级别。与skipScreenSpaceErrorFactor一起使用,以决定加载哪些贴图。 |
| | | * @param [options.immediatelyLoadDesiredLevelOfDetail = false] - 当skipLevelOfDetail为true时,只有满足最大屏幕空间错误的tiles才会被下载。跳过因素将被忽略,并且只加载所需的块。 |
| | | * @param [options.loadSiblings = false] - 当skipLevelOfDetail = true时,判断遍历过程中是否总是下载可见块的兄弟块。如果为true则不会在已加载完模型后,自动从中心开始超清化模型。 |
| | | * @param [options.clippingPlanes] - {@link Cesium.ClippingPlaneCollection}用于选择性地禁用tile集的渲染。 |
| | | * @param [options.classificationType] - 确定地形、3D贴图或两者都将被这个贴图集分类。有关限制和限制的详细信息,请参阅{@link cesium3dtilesset #classificationType}。 |
| | | * @param [options.pointCloudShading] - 基于几何误差和光照构造一个{@link Cesium.PointCloudShading}对象来控制点衰减的选项。 |
| | | * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 缩放来自地球、天空、大气和星星天空盒的漫反射和高光图像照明。 |
| | | * @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。 |
| | | * @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。 |
| | | * @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。 |
| | | * @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。 |
| | | * @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。 |
| | | * @param [options.debugHeatmapTilePropertyName] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;作为热图着色的tile变量。所有渲染的贴图都将相对于其他指定的变量值着色。 |
| | | * @param [options.pickPrimitive] - 要在拾取过程中呈现的原语,而不是tile集合。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TilesetLayer extends BaseGraphicLayer { |
| | | constructor(options: { |
| | | url: Cesium.Resource | string; |
| | | maximumScreenSpaceError?: number; |
| | | maximumMemoryUsage?: number; |
| | | position?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | }; |
| | | rotation?: { |
| | | x: number; |
| | | y: number; |
| | | z: number; |
| | | }; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | updateMatrix?: (...params: any[]) => any; |
| | | scale?: number; |
| | | axis?: string | Cesium.Axis; |
| | | style?: any | Cesium.Cesium3DTileStyle | ((...params: any[]) => any); |
| | | marsJzwStyle?: boolean | string; |
| | | customShader?: Cesium.CustomShader; |
| | | highlight?: { |
| | | type?: string; |
| | | all?: boolean; |
| | | color?: string | ((...params: any[]) => any); |
| | | outlineEffect?: boolean; |
| | | filter?: (...params: any[]) => any; |
| | | }; |
| | | clampToGround?: boolean; |
| | | chinaCRS?: ChinaCRS; |
| | | shadows?: Cesium.ShadowMode; |
| | | cullWithChildrenBounds?: boolean; |
| | | cullRequestsWhileMoving?: boolean; |
| | | cullRequestsWhileMovingMultiplier?: number; |
| | | preloadWhenHidden?: boolean; |
| | | preloadFlightDestinations?: boolean; |
| | | preferLeaves?: boolean; |
| | | dynamicScreenSpaceError?: boolean; |
| | | dynamicScreenSpaceErrorDensity?: number; |
| | | dynamicScreenSpaceErrorFactor?: number; |
| | | dynamicScreenSpaceErrorHeightFalloff?: number; |
| | | progressiveResolutionHeightFraction?: number; |
| | | foveatedScreenSpaceError?: boolean; |
| | | foveatedConeSize?: number; |
| | | foveatedMinimumScreenSpaceErrorRelaxation?: number; |
| | | foveatedInterpolationCallback?: Cesium.Cesium3DTileset.foveatedInterpolationCallback; |
| | | foveatedTimeDelay?: number; |
| | | skipLevelOfDetail?: boolean; |
| | | baseScreenSpaceError?: number; |
| | | skipScreenSpaceErrorFactor?: number; |
| | | skipLevels?: number; |
| | | immediatelyLoadDesiredLevelOfDetail?: boolean; |
| | | loadSiblings?: boolean; |
| | | clippingPlanes?: Cesium.ClippingPlaneCollection; |
| | | classificationType?: Cesium.ClassificationType; |
| | | pointCloudShading?: any; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Cartesian3; |
| | | luminanceAtZenith?: number; |
| | | sphericalHarmonicCoefficients?: Cesium.Cartesian3[]; |
| | | specularEnvironmentMaps?: string; |
| | | backFaceCulling?: boolean; |
| | | debugHeatmapTilePropertyName?: string; |
| | | pickPrimitive?: any; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | maximumScreenSpaceError?: number; |
| | | maximumMemoryUsage?: number; |
| | | position?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | }; |
| | | rotation?: { |
| | | x: number; |
| | | y: number; |
| | | z: number; |
| | | }; |
| | | modelMatrix?: Cesium.Matrix4; |
| | | updateMatrix?: (...params: any[]) => any; |
| | | scale?: number; |
| | | axis?: string | Cesium.Axis; |
| | | style?: any | Cesium.Cesium3DTileStyle | ((...params: any[]) => any); |
| | | marsJzwStyle?: boolean | string; |
| | | customShader?: Cesium.CustomShader; |
| | | highlight?: { |
| | | type?: string; |
| | | all?: boolean; |
| | | color?: string | ((...params: any[]) => any); |
| | | outlineEffect?: boolean; |
| | | filter?: (...params: any[]) => any; |
| | | }; |
| | | clampToGround?: boolean; |
| | | chinaCRS?: ChinaCRS; |
| | | shadows?: Cesium.ShadowMode; |
| | | cullWithChildrenBounds?: boolean; |
| | | cullRequestsWhileMoving?: boolean; |
| | | cullRequestsWhileMovingMultiplier?: number; |
| | | preloadWhenHidden?: boolean; |
| | | preloadFlightDestinations?: boolean; |
| | | preferLeaves?: boolean; |
| | | dynamicScreenSpaceError?: boolean; |
| | | dynamicScreenSpaceErrorDensity?: number; |
| | | dynamicScreenSpaceErrorFactor?: number; |
| | | dynamicScreenSpaceErrorHeightFalloff?: number; |
| | | progressiveResolutionHeightFraction?: number; |
| | | foveatedScreenSpaceError?: boolean; |
| | | foveatedConeSize?: number; |
| | | foveatedMinimumScreenSpaceErrorRelaxation?: number; |
| | | foveatedInterpolationCallback?: Cesium.Cesium3DTileset.foveatedInterpolationCallback; |
| | | foveatedTimeDelay?: number; |
| | | skipLevelOfDetail?: boolean; |
| | | baseScreenSpaceError?: number; |
| | | skipScreenSpaceErrorFactor?: number; |
| | | skipLevels?: number; |
| | | immediatelyLoadDesiredLevelOfDetail?: boolean; |
| | | loadSiblings?: boolean; |
| | | clippingPlanes?: Cesium.ClippingPlaneCollection; |
| | | classificationType?: Cesium.ClassificationType; |
| | | pointCloudShading?: any; |
| | | imageBasedLightingFactor?: Cesium.Cartesian2; |
| | | lightColor?: Cesium.Cartesian3; |
| | | luminanceAtZenith?: number; |
| | | sphericalHarmonicCoefficients?: Cesium.Cartesian3[]; |
| | | specularEnvironmentMaps?: string; |
| | | backFaceCulling?: boolean; |
| | | debugHeatmapTilePropertyName?: string; |
| | | pickPrimitive?: any; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 原始的旋转角度,示例:{ x: 0, y: 0, z: 0 } |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * WFS图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - WFS服务地址 |
| | | * @param [options.parameters] - 要在URL中 传递给WFS服务GetFeature请求的其他参数。 |
| | | * @param [options.headers] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param options.layer - 图层名称(命名空间:图层名称),多个图层名称用逗号隔开 |
| | | * @param [options.IdField = 'id'] - 数据中唯一标识的属性字段名称 |
| | | * @param [options.getCapabilities = true] - 是否通过服务本身的GetCapabilities来读取一些参数,减少options配置项 |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType} |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param [options.clustering] - Entity点数据时,设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色 |
| | | * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度 |
| | | * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示 |
| | | * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色 |
| | | * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度 |
| | | * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image} |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WfsLayer extends LodGraphicLayer { |
| | | /** |
| | | * WFS图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - WFS服务地址 |
| | | * @param [options.parameters] - 要在URL中 传递给WFS服务GetFeature请求的其他参数。 |
| | | * @param [options.headers] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param options.layer - 图层名称(命名空间:图层名称),多个图层名称用逗号隔开 |
| | | * @param [options.IdField = 'id'] - 数据中唯一标识的属性字段名称 |
| | | * @param [options.getCapabilities = true] - 是否通过服务本身的GetCapabilities来读取一些参数,减少options配置项 |
| | | * @param [options.minimumLevel = 0] - 图层所支持的最低层级,当地图小于该级别时,平台不去请求服务数据。【影响效率的重要参数】 |
| | | * @param [options.maximumLevel] - 图层所支持的最大层级,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param options.rectangle - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param options.debuggerTileInfo - 是否开启测试显示瓦片信息 |
| | | * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature) |
| | | * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon |
| | | * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType} |
| | | * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。 |
| | | * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。 |
| | | * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。 |
| | | * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; } |
| | | * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据 |
| | | * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight}) |
| | | * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn |
| | | * @param [options.buildings.height = 3.5] - 层高的 固定层高数值(如:10) 或 属性字段名称(如:{height}) |
| | | * @param [options.clustering] - Entity点数据时,设置聚合相关参数: |
| | | * @param [options.clustering.enabled = false] - 是否开启聚合 |
| | | * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合 |
| | | * @param [options.clustering.clampToGround = true] - 是否贴地 |
| | | * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素) |
| | | * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色 |
| | | * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色 |
| | | * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度 |
| | | * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示 |
| | | * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色 |
| | | * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度 |
| | | * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image} |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。 |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括: |
| | | * @param [options.tooltipOptions.title] - 固定的标题名称 |
| | | * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.tooltipOptions.noTitle] - 不显示标题 |
| | | * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent} |
| | | * @param options.extent.xmin - 最小经度值, -180 至 180 |
| | | * @param options.extent.xmax - 最大经度值, -180 至 180 |
| | | * @param options.extent.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.extent.ymax - 最大纬度值, -90 至 90 |
| | | * @param [options.extent.height = 0] - 矩形高度值 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WfsLayer extends LodGraphicLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | parameters?: any; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | layer: string; |
| | | IdField?: string; |
| | | getCapabilities?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | clustering?: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | getImage?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: string; |
| | | parameters?: any; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | layer: string; |
| | | IdField?: string; |
| | | getCapabilities?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | rectangle: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | debuggerTileInfo: boolean; |
| | | zIndex?: number; |
| | | symbol?: { |
| | | type?: GraphicType; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | merge?: boolean; |
| | | callback?: (...params: any[]) => any; |
| | | }; |
| | | buildings?: { |
| | | bottomHeight?: string; |
| | | cloumn?: string; |
| | | height?: string | number; |
| | | }; |
| | | clustering?: { |
| | | enabled?: boolean; |
| | | pixelRange?: number; |
| | | clampToGround?: boolean; |
| | | radius?: number; |
| | | fontColor?: string; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | getImage?: (...params: any[]) => any; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | tooltip?: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | tooltipOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | contextmenuItems?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图层组,可以用于将多个图层组合起来方便控制(比如将 卫星底图 和 文字注记层 放在一起控制管理),或用于 图层管理 的图层分组节点(虚拟节点)。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layers] - 子图层数组,每个子图层的配置见按各类型图层配置即可。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GroupLayer extends BaseGraphicLayer { |
| | | /** |
| | | * 图层组,可以用于将多个图层组合起来方便控制(比如将 卫星底图 和 文字注记层 放在一起控制管理),或用于 图层管理 的图层分组节点(虚拟节点)。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layers] - 子图层数组,每个子图层的配置见按各类型图层配置即可。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GroupLayer extends BaseGraphicLayer { |
| | | constructor(options?: { |
| | | layers?: array; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | layers?: array; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 子图层对象数组 |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(isFormat?: boolean): Cesium.Rectangle | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地形服务图层,一个地图中只会生效一个地形服务图层(单选) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.terrain - 地形服务配置 |
| | | * @param [options.terrain.type = 'xyz'] - 地形类型 |
| | | * @param options.terrain.url - 地形服务地址 |
| | | * @param [options.terrain.requestVertexNormals = true] - 是否应该从服务器请求额外的光照信息,如果可用,以每个顶点法线的形式。 |
| | | * @param [options.terrain.requestWaterMask = false] - 是否应该向服务器请求每个瓦的水掩膜(如果有的话)。 |
| | | * @param [options.terrain.requestMetadata = true] - 是否应该从服务器请求每个块元数据(如果可用)。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示(多个地形服务时,请只设置一个TerrainLayer图层的show为tue) |
| | | */ |
| | | export class TerrainLayer extends BaseLayer { |
| | | /** |
| | | * 地形服务图层,一个地图中只会生效一个地形服务图层(单选) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.terrain - 地形服务配置 |
| | | * @param [options.terrain.type = 'xyz'] - 地形类型 |
| | | * @param options.terrain.url - 地形服务地址 |
| | | * @param [options.terrain.requestVertexNormals = true] - 是否应该从服务器请求额外的光照信息,如果可用,以每个顶点法线的形式。 |
| | | * @param [options.terrain.requestWaterMask = false] - 是否应该向服务器请求每个瓦的水掩膜(如果有的话)。 |
| | | * @param [options.terrain.requestMetadata = true] - 是否应该从服务器请求每个块元数据(如果可用)。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示(多个地形服务时,请只设置一个TerrainLayer图层的show为tue) |
| | | */ |
| | | export class TerrainLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | terrain: { |
| | | type?: TerrainType; |
| | | url: string | Cesium.Resource; |
| | | requestVertexNormals?: boolean; |
| | | requestWaterMask?: boolean; |
| | | requestMetadata?: boolean; |
| | | }; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | terrain: { |
| | | type?: TerrainType; |
| | | url: string | Cesium.Resource; |
| | | requestVertexNormals?: boolean; |
| | | requestWaterMask?: boolean; |
| | | requestMetadata?: boolean; |
| | | }; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * AraGIS生成的金字塔瓦片数据 |
| | | * @example |
| | | * let tileLayer = new mars3d.layer.ArcGisCacheLayer({ |
| | | * url: 'http://data.mars3d.cn/tile/hf/guihua/_alllayers/{z}/{y}/{x}.png', |
| | | * minimumLevel: 1, |
| | | * maximumLevel: 17, |
| | | * minimumTerrainLevel: 1, |
| | | * // "maximumTerrainLevel": 17, //如果需要大于maximumTerrainLevel层时不显示瓦片,则取消注释 |
| | | * rectangle: { xmin: 116.846, xmax: 117.642, ymin: 31.533, ymax: 32.185 }, // 控制切片如果在矩形坐标内才显示,如果不在矩形坐标内不显示 |
| | | * }) |
| | | * map.addLayer(tileLayer) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 用于请求瓦片图块的URL模板。它具有以下关键字: |
| | | * <ul> |
| | | * <li><code>{z}</code>: 切片方案中切片的级别。零级是四叉树金字塔的根。</li> |
| | | * <li><code>{x}</code>:切片方案中的图块X坐标,其中0是最西端的图块。</li> |
| | | * <li><code>{y}</code>: 切片方案中的图块Y坐标,其中0是最北的图块。</li> |
| | | * <li><code>{s}</code>:可用的子域之一,用于克服浏览器对每个主机的并发请求数的限制。</li> |
| | | * </ul> |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.upperCase] - url请求的瓦片图片名称是否大写。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisCacheLayer extends BaseTileLayer { |
| | | /** |
| | | * AraGIS生成的金字塔瓦片数据 |
| | | * @example |
| | | * let tileLayer = new mars3d.layer.ArcGisCacheLayer({ |
| | | * url: 'http://data.mars3d.cn/tile/hf/guihua/_alllayers/{z}/{y}/{x}.png', |
| | | * minimumLevel: 1, |
| | | * maximumLevel: 17, |
| | | * minimumTerrainLevel: 1, |
| | | * // "maximumTerrainLevel": 17, //如果需要大于maximumTerrainLevel层时不显示瓦片,则取消注释 |
| | | * rectangle: { xmin: 116.846, xmax: 117.642, ymin: 31.533, ymax: 32.185 }, // 控制切片如果在矩形坐标内才显示,如果不在矩形坐标内不显示 |
| | | * }) |
| | | * map.addLayer(tileLayer) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 用于请求瓦片图块的URL模板。它具有以下关键字: |
| | | * <ul> |
| | | * <li><code>{z}</code>: 切片方案中切片的级别。零级是四叉树金字塔的根。</li> |
| | | * <li><code>{x}</code>:切片方案中的图块X坐标,其中0是最西端的图块。</li> |
| | | * <li><code>{y}</code>: 切片方案中的图块Y坐标,其中0是最北的图块。</li> |
| | | * <li><code>{s}</code>:可用的子域之一,用于克服浏览器对每个主机的并发请求数的限制。</li> |
| | | * </ul> |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.upperCase] - url请求的瓦片图片名称是否大写。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisCacheLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | upperCase?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | upperCase?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | export namespace ArcGisLayer { |
| | | export namespace ArcGisLayer { |
| | | /** |
| | | * ArcGIS服务图层支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property click - 鼠标单击事件【enablePickFeatures:true时,支持单击获取对应的矢量对象】 |
| | | */ |
| | | type EventType = { |
| | | loadConfig: string; |
| | | click: string; |
| | | loadConfig: string; |
| | | click: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ArcGIS标准服务图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS MapServer服务的网址。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.layers] - 要显示的图层的逗号分隔列表,如果应显示所有图层,则未定义。 |
| | | * @param [options.layerDefs] - 可以对动态服务加条件筛选数据,示例:"{\"0\":\"用地编号 = 'R'\"}",具体可以参阅arcgis官方帮助文档理解layerDefs参数。 |
| | | * @param [options.usePreCachedTilesIfAvailable = true] - 如果为true,则表示优先使用服务的瓦片图片,没有瓦片时再使用动态服务。如果为false,则将忽略所有瓦片,直接使用动态服务。 |
| | | * @param [options.maxTileLevel] - 指定在小于此层级时用瓦片加载,大于该层级用动态服务.可以在瓦片服务类型时,同时使用瓦片和动态服务。 |
| | | * @param [options.wkid] - 当非标准EPSG标号时,可以指定wkid值。 |
| | | * @param [options.token] - 用于通过ArcGIS MapServer服务进行身份验证的ArcGIS令牌。 |
| | | * @param [options.tileDiscardPolicy] - 于确定图块是否为 无效,应将其丢弃。如果未指定此值,则为默认 {@link DiscardMissingTileImagePolicy} 用于平铺的地图服务器,并且{@link NeverTileDiscardPolicy} 用于非平铺地图服务器。在前一种情况下, 我们要求最大图块级别的图块0,0并检查像素(0,0),(200,20),(20,200), (80,110)和(160,130)。如果所有这些像素都是透明的,则丢弃检查为 禁用,并且不会丢弃任何图块。如果它们中的任何一种具有不透明的颜色, 在这些像素位置具有相同值的图块将被丢弃。的最终结果 对于标准ArcGIS Server,这些默认值应该是正确的图块丢弃。确保 不会丢弃任何图块,为此构造并传递 {@link NeverTileDiscardPolicy} 参数。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。 |
| | | * @param [options.maxLength = 5000] - 单击获取到的数据,最大数据长度。大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿。传-1时不限制 |
| | | * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.highlight.type] - 构造成的矢量数据类型。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisLayer extends BaseTileLayer { |
| | | /** |
| | | * ArcGIS标准服务图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS MapServer服务的网址。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.layers] - 要显示的图层的逗号分隔列表,如果应显示所有图层,则未定义。 |
| | | * @param [options.layerDefs] - 可以对动态服务加条件筛选数据,示例:"{\"0\":\"用地编号 = 'R'\"}",具体可以参阅arcgis官方帮助文档理解layerDefs参数。 |
| | | * @param [options.usePreCachedTilesIfAvailable = true] - 如果为true,则表示优先使用服务的瓦片图片,没有瓦片时再使用动态服务。如果为false,则将忽略所有瓦片,直接使用动态服务。 |
| | | * @param [options.maxTileLevel] - 指定在小于此层级时用瓦片加载,大于该层级用动态服务.可以在瓦片服务类型时,同时使用瓦片和动态服务。 |
| | | * @param [options.wkid] - 当非标准EPSG标号时,可以指定wkid值。 |
| | | * @param [options.token] - 用于通过ArcGIS MapServer服务进行身份验证的ArcGIS令牌。 |
| | | * @param [options.tileDiscardPolicy] - 于确定图块是否为 无效,应将其丢弃。如果未指定此值,则为默认 {@link DiscardMissingTileImagePolicy} 用于平铺的地图服务器,并且{@link NeverTileDiscardPolicy} 用于非平铺地图服务器。在前一种情况下, 我们要求最大图块级别的图块0,0并检查像素(0,0),(200,20),(20,200), (80,110)和(160,130)。如果所有这些像素都是透明的,则丢弃检查为 禁用,并且不会丢弃任何图块。如果它们中的任何一种具有不透明的颜色, 在这些像素位置具有相同值的图块将被丢弃。的最终结果 对于标准ArcGIS Server,这些默认值应该是正确的图块丢弃。确保 不会丢弃任何图块,为此构造并传递 {@link NeverTileDiscardPolicy} 参数。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。 |
| | | * @param [options.maxLength = 5000] - 单击获取到的数据,最大数据长度。大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿。传-1时不限制 |
| | | * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.highlight.type] - 构造成的矢量数据类型。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | layers?: string; |
| | | layerDefs?: string; |
| | | usePreCachedTilesIfAvailable?: boolean; |
| | | maxTileLevel?: number; |
| | | wkid?: number; |
| | | token?: string; |
| | | tileDiscardPolicy?: Cesium.TileDiscardPolicy; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | enablePickFeatures?: boolean; |
| | | maxLength?: number; |
| | | highlight?: { |
| | | type?: GraphicType; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | layers?: string; |
| | | layerDefs?: string; |
| | | usePreCachedTilesIfAvailable?: boolean; |
| | | maxTileLevel?: number; |
| | | wkid?: number; |
| | | token?: string; |
| | | tileDiscardPolicy?: Cesium.TileDiscardPolicy; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | enablePickFeatures?: boolean; |
| | | maxLength?: number; |
| | | highlight?: { |
| | | type?: GraphicType; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 绑定鼠标单击对象后的弹窗。 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * AraGIS瓦片服务(使用XYZ瓦片方式请求读取),可用于ArcGisLayer读取异常时。 |
| | | * @example |
| | | * let tileLayer = new mars3d.layer.ArcGisTileLayer({ |
| | | * url: 'http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer', |
| | | * minimumLevel: 1, |
| | | * maximumLevel: 17, |
| | | * minimumTerrainLevel: 1, |
| | | * // "maximumTerrainLevel": 17, //如果需要大于maximumTerrainLevel层时不显示瓦片,则取消注释 |
| | | * rectangle: { xmin: 116.846, xmax: 117.642, ymin: 31.533, ymax: 32.185 }, // 控制切片如果在矩形坐标内才显示,如果不在矩形坐标内不显示 |
| | | * }) |
| | | * map.addLayer(tileLayer) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 用于请求瓦片图块的URL模板,比如:"http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer" |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisTileLayer extends BaseTileLayer { |
| | | /** |
| | | * AraGIS瓦片服务(使用XYZ瓦片方式请求读取),可用于ArcGisLayer读取异常时。 |
| | | * @example |
| | | * let tileLayer = new mars3d.layer.ArcGisTileLayer({ |
| | | * url: 'http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer', |
| | | * minimumLevel: 1, |
| | | * maximumLevel: 17, |
| | | * minimumTerrainLevel: 1, |
| | | * // "maximumTerrainLevel": 17, //如果需要大于maximumTerrainLevel层时不显示瓦片,则取消注释 |
| | | * rectangle: { xmin: 116.846, xmax: 117.642, ymin: 31.533, ymax: 32.185 }, // 控制切片如果在矩形坐标内才显示,如果不在矩形坐标内不显示 |
| | | * }) |
| | | * map.addLayer(tileLayer) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 用于请求瓦片图块的URL模板,比如:"http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer" |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ArcGisTileLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 百度地图 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>custom</code>: 自定义样式图层</li> |
| | | * <li><code>time</code>: 实时路况信息</li> |
| | | * <li><code>streetview</code>: 街景覆盖图层</li> |
| | | * </ul> |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.bigfont] - 当layer为vec或img_z时,来标识使用是否大写字体。 |
| | | * @param [options.style] - 当layer为custom时,标识的样式,可选值:dark,midnight,grayscale,hardedge,light,redalert,googlelite,grassgreen,pink,darkgreen,bluish |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS = ChinaCRS.BAIDU] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BaiduLayer extends BaseTileLayer { |
| | | /** |
| | | * 百度地图 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>custom</code>: 自定义样式图层</li> |
| | | * <li><code>time</code>: 实时路况信息</li> |
| | | * <li><code>streetview</code>: 街景覆盖图层</li> |
| | | * </ul> |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.bigfont] - 当layer为vec或img_z时,来标识使用是否大写字体。 |
| | | * @param [options.style] - 当layer为custom时,标识的样式,可选值:dark,midnight,grayscale,hardedge,light,redalert,googlelite,grassgreen,pink,darkgreen,bluish |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS = ChinaCRS.BAIDU] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BaiduLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | layer?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | bigfont?: boolean; |
| | | style?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | layer?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | bigfont?: boolean; |
| | | style?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | export namespace BaseTileLayer { |
| | | export namespace BaseTileLayer { |
| | | /** |
| | | * 当前栅格瓦片图层支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property highlightClose - highlight关闭后 |
| | | */ |
| | | type EventType = { |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | load: string; |
| | | addTile: string; |
| | | addTileSuccess: string; |
| | | addTileError: string; |
| | | click: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | load: string; |
| | | addTile: string; |
| | | addTileSuccess: string; |
| | | addTileError: string; |
| | | click: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | highlightOpen: string; |
| | | highlightClose: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 栅格Tile瓦片图层 基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BaseTileLayer extends BaseLayer { |
| | | /** |
| | | * 栅格Tile瓦片图层 基类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BaseTileLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 瓦片图层对应的内部ImageryLayer对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | bindHighlight(options?: { |
| | | type?: string; |
| | | type?: string; |
| | | }): void; |
| | | /** |
| | | * 解绑鼠标移入或单击后的高亮处理 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 微软bing地图 |
| | | * @property [options.key = mars3d.Token.bing] - 您的应用程序的Bing Maps密钥,可以在{@link https://www.bingmapsportal.com/}中创建 |
| | | * @property [mapStyle = Cesium.BingMapsStyle.AERIAL] - 要加载的必应地图图像的类型。 |
| | | * @property [tileProtocol] - 加载图块时要使用的协议,例如' http'或' https'。 默认情况下,将使用与页面相同的协议来加载图块。 |
| | | * @property [culture = 'zh-Hans'] - 请求Bing Maps图像时要使用的区域性标记。不支持所有文化。请参阅 {@link http://msdn.microsoft.com/en-us/library/hh441729.aspx}了解有关支持的文化的信息。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://dev.virtualearth.net'] - 托管影像图像的Bing Maps服务器的网址。 |
| | | * @param [options.tileDiscardPolicy] - 于确定图块是否为无效,应将其丢弃。如果未指定此值,则为默认 {@link DiscardMissingTileImagePolicy} 用于平铺的地图服务器,并且{@link NeverTileDiscardPolicy} 用于非平铺地图服务器。在前一种情况下, 我们要求最大图块级别的图块0,0并检查像素(0,0),(200,20),(20,200), (80,110)和(160,130)。如果所有这些像素都是透明的,则丢弃检查为 禁用,并且不会丢弃任何图块。如果它们中的任何一种具有不透明的颜色, 在这些像素位置具有相同值的图块将被丢弃。的最终结果 对于标准ArcGIS Server,这些默认值应该是正确的图块丢弃。确保 不会丢弃任何图块,为此构造并传递 {@link NeverTileDiscardPolicy} 参数。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BingLayer extends BaseTileLayer { |
| | | /** |
| | | * 微软bing地图 |
| | | * @property [options.key = mars3d.Token.bing] - 您的应用程序的Bing Maps密钥,可以在{@link https://www.bingmapsportal.com/}中创建 |
| | | * @property [mapStyle = Cesium.BingMapsStyle.AERIAL] - 要加载的必应地图图像的类型。 |
| | | * @property [tileProtocol] - 加载图块时要使用的协议,例如' http'或' https'。 默认情况下,将使用与页面相同的协议来加载图块。 |
| | | * @property [culture = 'zh-Hans'] - 请求Bing Maps图像时要使用的区域性标记。不支持所有文化。请参阅 {@link http://msdn.microsoft.com/en-us/library/hh441729.aspx}了解有关支持的文化的信息。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://dev.virtualearth.net'] - 托管影像图像的Bing Maps服务器的网址。 |
| | | * @param [options.tileDiscardPolicy] - 于确定图块是否为无效,应将其丢弃。如果未指定此值,则为默认 {@link DiscardMissingTileImagePolicy} 用于平铺的地图服务器,并且{@link NeverTileDiscardPolicy} 用于非平铺地图服务器。在前一种情况下, 我们要求最大图块级别的图块0,0并检查像素(0,0),(200,20),(20,200), (80,110)和(160,130)。如果所有这些像素都是透明的,则丢弃检查为 禁用,并且不会丢弃任何图块。如果它们中的任何一种具有不透明的颜色, 在这些像素位置具有相同值的图块将被丢弃。的最终结果 对于标准ArcGIS Server,这些默认值应该是正确的图块丢弃。确保 不会丢弃任何图块,为此构造并传递 {@link NeverTileDiscardPolicy} 参数。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class BingLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url?: Cesium.Resource | string; |
| | | tileDiscardPolicy?: Cesium.TileDiscardPolicy; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: Cesium.Resource | string; |
| | | tileDiscardPolicy?: Cesium.TileDiscardPolicy; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * 请求Bing Maps图像时要使用的区域性标记。不支持所有文化。请参阅 {@link http://msdn.microsoft.com/en-us/library/hh441729.aspx}了解有关支持的文化的信息。 |
| | | */ |
| | | culture?: string; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 空白图层,目前主要在Lod矢量数据加载作为事件触发使用。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class EmptyTileLayer extends BaseTileLayer { |
| | | /** |
| | | * 空白图层,目前主要在Lod矢量数据加载作为事件触发使用。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class EmptyTileLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 判断级别是否在当前图层的最大最小层级范围内 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 高德 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>time</code>: 实时路况信息</li> |
| | | * </ul> |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.bigfont] - 当layer为vec时,来标识使用是否大写字体。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS = ChinaCRS.GCJ02] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GaodeLayer extends BaseTileLayer { |
| | | /** |
| | | * 高德 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>time</code>: 实时路况信息</li> |
| | | * </ul> |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.bigfont] - 当layer为vec时,来标识使用是否大写字体。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS = ChinaCRS.GCJ02] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GaodeLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | layer?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | bigfont?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | layer?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | bigfont?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * GoogleEarth Enterprise企业版本 影像服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 承载瓦片服务的谷歌地球企业服务器的url |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GeeLayer extends BaseTileLayer { |
| | | /** |
| | | * GoogleEarth Enterprise企业版本 影像服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 承载瓦片服务的谷歌地球企业服务器的url |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GeeLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 谷歌 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>ter</code>: 地形渲染图</li> |
| | | * </ul> |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS = 'GCJ02'] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GoogleLayer extends BaseTileLayer { |
| | | /** |
| | | * 谷歌 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>ter</code>: 地形渲染图</li> |
| | | * </ul> |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS = 'GCJ02'] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GoogleLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | layer?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | layer?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 网格线 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.cells = 2] - 网格单元格的数量。 |
| | | * @param [options.color = rgba(255,255,255,1)] - 绘制网格线的颜色。 |
| | | * @param [options.glowColor = color.withAlpha(0.3)] - 为网格线绘制渲染线发光效果的颜色。 |
| | | * @param [options.glowWidth = 3] - 用于渲染线发光效果的线的宽度。 |
| | | * @param [options.backgroundColor = 'rgba(0,0,0,0)'] - 背景填充颜色。 |
| | | * @param [options.canvasSize = 256] - 用于渲染的画布的大小。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GridLayer extends BaseTileLayer { |
| | | /** |
| | | * 网格线 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.cells = 2] - 网格单元格的数量。 |
| | | * @param [options.color = rgba(255,255,255,1)] - 绘制网格线的颜色。 |
| | | * @param [options.glowColor = color.withAlpha(0.3)] - 为网格线绘制渲染线发光效果的颜色。 |
| | | * @param [options.glowWidth = 3] - 用于渲染线发光效果的线的宽度。 |
| | | * @param [options.backgroundColor = 'rgba(0,0,0,0)'] - 背景填充颜色。 |
| | | * @param [options.canvasSize = 256] - 用于渲染的画布的大小。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class GridLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | cells?: number; |
| | | color?: string; |
| | | glowColor?: string; |
| | | glowWidth?: number; |
| | | backgroundColor?: string; |
| | | canvasSize?: number; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | cells?: number; |
| | | color?: string; |
| | | glowColor?: string; |
| | | glowWidth?: number; |
| | | backgroundColor?: string; |
| | | canvasSize?: number; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建瓦片图层对应的ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 单张图片图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 图片url地址 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ImageLayer extends BaseTileLayer { |
| | | /** |
| | | * 单张图片图层 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 图片url地址 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class ImageLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * cesium ion资源地图,官网: {@link https://cesium.com/ion/signin/} |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.assetId - ION服务 assetId |
| | | * @param [options.accessToken = mars3d.Token.ion] - ION服务 token令牌 |
| | | * @param [options.server = Ion.defaultServer] - Cesium ion API服务器的资源。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class IonLayer extends BaseTileLayer { |
| | | /** |
| | | * cesium ion资源地图,官网: {@link https://cesium.com/ion/signin/} |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.assetId - ION服务 assetId |
| | | * @param [options.accessToken = mars3d.Token.ion] - ION服务 token令牌 |
| | | * @param [options.server = Ion.defaultServer] - Cesium ion API服务器的资源。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class IonLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | assetId: number; |
| | | accessToken?: string; |
| | | server?: string | Cesium.Resource; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | assetId: number; |
| | | accessToken?: string; |
| | | server?: string | Cesium.Resource; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Mapbox地图服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://api.mapbox.com/styles/v1/'] - Mapbox服务器网址。 |
| | | * @param [options.username = 'marsgis'] - 地图帐户的用户名。 |
| | | * @param options.styleId - Mapbox样式ID。 |
| | | * @param [options.accessToken = mars3d.Token.mapbox] - 图像的Token公共访问令牌。 |
| | | * @param [options.tilesize = 512] - 图像块的大小。 |
| | | * @param [options.scaleFactor = true] - 确定贴图是否以 @2x 比例因子渲染。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class MapboxLayer extends BaseTileLayer { |
| | | /** |
| | | * Mapbox地图服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://api.mapbox.com/styles/v1/'] - Mapbox服务器网址。 |
| | | * @param [options.username = 'marsgis'] - 地图帐户的用户名。 |
| | | * @param options.styleId - Mapbox样式ID。 |
| | | * @param [options.accessToken = mars3d.Token.mapbox] - 图像的Token公共访问令牌。 |
| | | * @param [options.tilesize = 512] - 图像块的大小。 |
| | | * @param [options.scaleFactor = true] - 确定贴图是否以 @2x 比例因子渲染。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class MapboxLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url?: Cesium.Resource | string; |
| | | username?: string; |
| | | styleId: string; |
| | | accessToken?: string; |
| | | tilesize?: number; |
| | | scaleFactor?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: Cesium.Resource | string; |
| | | username?: string; |
| | | styleId: string; |
| | | accessToken?: string; |
| | | tilesize?: number; |
| | | scaleFactor?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * OSM开源地图 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'] - 服务url地址 |
| | | * @param [options.subdomains = 'abc'] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel = 18] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class OsmLayer extends BaseTileLayer { |
| | | /** |
| | | * OSM开源地图 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'] - 服务url地址 |
| | | * @param [options.subdomains = 'abc'] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel = 18] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class OsmLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url?: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 天地图 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec_d</code>: 电子图层</li> |
| | | * <li><code>vec_z</code>: 电子注记</li> |
| | | * <li><code>vec_e</code>: 电子注记英文</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>img_e</code>: 影像注记英文</li> |
| | | * <li><code>ter_d</code>: 地形渲染图</li> |
| | | * <li><code>ter_z</code>: 地形渲染图注记</li> |
| | | * </ul> |
| | | * @param [options.key = mars3d.Token.tiandituArr] - 天地图服务Token,可以自行注册官网: {@link https://console.tianditu.gov.cn/api/key} |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影,也支持传入EPSG4490坐标系 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains = '01234567'] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TdtLayer extends BaseTileLayer { |
| | | /** |
| | | * 天地图 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec_d</code>: 电子图层</li> |
| | | * <li><code>vec_z</code>: 电子注记</li> |
| | | * <li><code>vec_e</code>: 电子注记英文</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>img_e</code>: 影像注记英文</li> |
| | | * <li><code>ter_d</code>: 地形渲染图</li> |
| | | * <li><code>ter_z</code>: 地形渲染图注记</li> |
| | | * </ul> |
| | | * @param [options.key = mars3d.Token.tiandituArr] - 天地图服务Token,可以自行注册官网: {@link https://console.tianditu.gov.cn/api/key} |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影,也支持传入EPSG4490坐标系 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.subdomains = '01234567'] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TdtLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | layer?: string; |
| | | key?: string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | layer?: string; |
| | | key?: string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | subdomains?: string | string[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 腾讯 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>custom</code>: 地形渲染图</li> |
| | | * </ul> |
| | | * @param [options.style] - 当layer为custom时,标识的样式,可选值:灰白地图:3,暗色地图:4 |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS = ChinaCRS.GCJ02] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TencentLayer extends BaseTileLayer { |
| | | /** |
| | | * 腾讯 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.layer] - 图层类型,以及以下内容:<br /> |
| | | * <ul> |
| | | * <li><code>vec</code>: 电子图层</li> |
| | | * <li><code>img_d</code>: 卫星影像</li> |
| | | * <li><code>img_z</code>: 影像注记</li> |
| | | * <li><code>custom</code>: 地形渲染图</li> |
| | | * </ul> |
| | | * @param [options.style] - 当layer为custom时,标识的样式,可选值:灰白地图:3,暗色地图:4 |
| | | * @param [options.url] - 当未指定layer类型时,可以传入外部指定url的服务地址,常用于离线服务。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS = ChinaCRS.GCJ02] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TencentLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | layer?: string; |
| | | style?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | layer?: string; |
| | | style?: string; |
| | | url?: string; |
| | | subdomains?: string | string[]; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 瓦片信息,一般用于测试 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = rgba(255,0,0,1)] - 画瓦片边框线和标签的颜色 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TileInfoLayer extends BaseTileLayer { |
| | | /** |
| | | * 瓦片信息,一般用于测试 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = rgba(255,0,0,1)] - 画瓦片边框线和标签的颜色 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TileInfoLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | color?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | color?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建瓦片图层对应的ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * TMS服务,比如由MapTiler,GDAL2Tiles等生成的切片图像的加载。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - 服务地址 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.fileExtension = 'png'] - 服务器上图像的文件扩展名。 |
| | | * @param [options.flipXY] - gdal2tiles.py的旧版本将tilemapresource.xml中的X和Y值翻转了。指定此选项将执行相同的操作,从而允许加载这些不正确的图块集。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TmsLayer extends BaseTileLayer { |
| | | /** |
| | | * TMS服务,比如由MapTiler,GDAL2Tiles等生成的切片图像的加载。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url] - 服务地址 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.fileExtension = 'png'] - 服务器上图像的文件扩展名。 |
| | | * @param [options.flipXY] - gdal2tiles.py的旧版本将tilemapresource.xml中的X和Y值翻转了。指定此选项将执行相同的操作,从而允许加载这些不正确的图块集。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TmsLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url?: Cesium.Resource | string | Promise<Cesium.Resource> | Promise<string>; |
| | | subdomains?: string | string[]; |
| | | fileExtension?: string; |
| | | flipXY?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: Cesium.Resource | string | Promise<Cesium.Resource> | Promise<string>; |
| | | subdomains?: string | string[]; |
| | | fileExtension?: string; |
| | | flipXY?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * WMS服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - WMS服务的URL。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param options.layers - 要包含的图层,用逗号分隔。 |
| | | * @param [options.parameters = Cesium.WebMapServiceImageryProvider.DefaultParameters] - 要在URL中 传递给WMS服务GetMap请求的其他参数。 |
| | | * @param [options.crs = 'EPSG:3857'] - 瓦片数据的坐标系信息,默认为墨卡托投影,CRS规范,用于WMS规范>= 1.3.0。 |
| | | * @param [options.srs] - SRS规范,与WMS规范1.1.0或1.1.1一起使用 |
| | | * @param [options.getCapabilities = true] - 是否通过服务本身的GetCapabilities来读取一些参数,减少options配置项 |
| | | * @param [options.clock] - 一个时钟实例,用于确定时间维度的值。指定' times '时需要。 |
| | | * @param [options.times] - TimeIntervalCollection 的数据属性是一个包含时间动态维度及其值的对象。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。 |
| | | * @param [options.maxLength = 5000] - 单击获取到的数据,最大数据长度。大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿。 |
| | | * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.highlight.type] - 构造成的矢量数据类型。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WmsLayer extends BaseTileLayer { |
| | | /** |
| | | * WMS服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - WMS服务的URL。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param options.layers - 要包含的图层,用逗号分隔。 |
| | | * @param [options.parameters = Cesium.WebMapServiceImageryProvider.DefaultParameters] - 要在URL中 传递给WMS服务GetMap请求的其他参数。 |
| | | * @param [options.crs = 'EPSG:3857'] - 瓦片数据的坐标系信息,默认为墨卡托投影,CRS规范,用于WMS规范>= 1.3.0。 |
| | | * @param [options.srs] - SRS规范,与WMS规范1.1.0或1.1.1一起使用 |
| | | * @param [options.getCapabilities = true] - 是否通过服务本身的GetCapabilities来读取一些参数,减少options配置项 |
| | | * @param [options.clock] - 一个时钟实例,用于确定时间维度的值。指定' times '时需要。 |
| | | * @param [options.times] - TimeIntervalCollection 的数据属性是一个包含时间动态维度及其值的对象。 |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。 |
| | | * @param [options.maxLength = 5000] - 单击获取到的数据,最大数据长度。大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿。 |
| | | * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.highlight.type] - 构造成的矢量数据类型。 |
| | | * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板 |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括: |
| | | * @param [options.popupOptions.title] - 固定的标题名称 |
| | | * @param [options.popupOptions.titleField] - 标题对应的属性字段名称 |
| | | * @param [options.popupOptions.noTitle] - 不显示标题 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WmsLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | layers: string; |
| | | parameters?: any; |
| | | crs?: string | CRS; |
| | | srs?: string; |
| | | getCapabilities?: boolean; |
| | | clock?: Cesium.Clock; |
| | | times?: Cesium.TimeIntervalCollection; |
| | | enablePickFeatures?: boolean; |
| | | maxLength?: number; |
| | | highlight?: { |
| | | type?: GraphicType; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | layers: string; |
| | | parameters?: any; |
| | | crs?: string | CRS; |
| | | srs?: string; |
| | | getCapabilities?: boolean; |
| | | clock?: Cesium.Clock; |
| | | times?: Cesium.TimeIntervalCollection; |
| | | enablePickFeatures?: boolean; |
| | | maxLength?: number; |
| | | highlight?: { |
| | | type?: GraphicType; |
| | | }; |
| | | popup?: string | getTemplateHtml_template[] | ((...params: any[]) => any); |
| | | popupOptions?: { |
| | | title?: string; |
| | | titleField?: string; |
| | | noTitle?: string; |
| | | }; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | chinaCRS?: ChinaCRS; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 绑定鼠标单击对象后的弹窗。 |
| | |
| | | * @returns 无 |
| | | */ |
| | | _addedHook(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * WMTS服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - WMTS GetTile操作(用于kvp编码的请求)或tile-URL模板(用于RESTful请求)的基本URL。tile-URL模板应该包含以下变量:{style}, {TileMatrixSet}, {TileMatrix}, {TileRow}, {TileCol} 前两个是可选的,如果实际值是硬编码的或者服务器不需要。 {s}关键字可用于指定子域。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.format = 'image/jpeg'] - 要从服务器检索的瓦片图像的MIME类型。 |
| | | * @param options.layer - WMTS请求的层名。 |
| | | * @param options.style - WMTS请求的样式名称。 |
| | | * @param options.tileMatrixSetID - 用于WMTS请求的TileMatrixSet的标识符。 |
| | | * @param [options.tileMatrixLabels] - 瓦片矩阵中用于WMTS请求的标识符列表,每个瓦片矩阵级别一个。 |
| | | * @param [options.clock] - 一个时钟实例,用于确定时间维度的值。指定' times '时需要。 |
| | | * @param [options.times] - TimeIntervalCollection 的数据属性是一个包含时间动态维度及其值的对象。 |
| | | * @param [options.getCapabilities = true] - 是否通过服务本身的GetCapabilities来读取一些参数,减少options配置项 |
| | | * @param [options.enablePickFeatures = false] - 如果为true,则请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * @param [options.pickFeaturesUrl] - enablePickFeatures为true时,用于单击查看矢量对象功能的对应wms服务url。 |
| | | * @param [options.pickFeatures] - 外部自定义单击请求对应矢量数据的处理。与pickFeaturesUrl二选一 |
| | | * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.highlight.type] - 构造成的矢量数据类型。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WmtsLayer extends BaseTileLayer { |
| | | /** |
| | | * WMTS服务 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - WMTS GetTile操作(用于kvp编码的请求)或tile-URL模板(用于RESTful请求)的基本URL。tile-URL模板应该包含以下变量:{style}, {TileMatrixSet}, {TileMatrix}, {TileRow}, {TileCol} 前两个是可选的,如果实际值是硬编码的或者服务器不需要。 {s}关键字可用于指定子域。 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.format = 'image/jpeg'] - 要从服务器检索的瓦片图像的MIME类型。 |
| | | * @param options.layer - WMTS请求的层名。 |
| | | * @param options.style - WMTS请求的样式名称。 |
| | | * @param options.tileMatrixSetID - 用于WMTS请求的TileMatrixSet的标识符。 |
| | | * @param [options.tileMatrixLabels] - 瓦片矩阵中用于WMTS请求的标识符列表,每个瓦片矩阵级别一个。 |
| | | * @param [options.clock] - 一个时钟实例,用于确定时间维度的值。指定' times '时需要。 |
| | | * @param [options.times] - TimeIntervalCollection 的数据属性是一个包含时间动态维度及其值的对象。 |
| | | * @param [options.getCapabilities = true] - 是否通过服务本身的GetCapabilities来读取一些参数,减少options配置项 |
| | | * @param [options.enablePickFeatures = false] - 如果为true,则请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * @param [options.pickFeaturesUrl] - enablePickFeatures为true时,用于单击查看矢量对象功能的对应wms服务url。 |
| | | * @param [options.pickFeatures] - 外部自定义单击请求对应矢量数据的处理。与pickFeaturesUrl二选一 |
| | | * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。 |
| | | * @param [options.highlight.type] - 构造成的矢量数据类型。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WmtsLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | format?: string; |
| | | layer: string; |
| | | style: string; |
| | | tileMatrixSetID: string; |
| | | tileMatrixLabels?: string[]; |
| | | clock?: Cesium.Clock; |
| | | times?: Cesium.TimeIntervalCollection; |
| | | getCapabilities?: boolean; |
| | | enablePickFeatures?: boolean; |
| | | pickFeaturesUrl?: Cesium.Resource | string; |
| | | pickFeatures?: (...params: any[]) => any; |
| | | highlight?: { |
| | | type?: GraphicType; |
| | | }; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | subdomains?: string | string[]; |
| | | format?: string; |
| | | layer: string; |
| | | style: string; |
| | | tileMatrixSetID: string; |
| | | tileMatrixLabels?: string[]; |
| | | clock?: Cesium.Clock; |
| | | times?: Cesium.TimeIntervalCollection; |
| | | getCapabilities?: boolean; |
| | | enablePickFeatures?: boolean; |
| | | pickFeaturesUrl?: Cesium.Resource | string; |
| | | pickFeatures?: (...params: any[]) => any; |
| | | highlight?: { |
| | | type?: GraphicType; |
| | | }; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | _addedHook(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 标准xyz金字塔 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 用于请求瓦片图块的URL模板。它具有以下关键字: |
| | | * <ul> |
| | | * <li><code>{z}</code>: 切片方案中切片的级别。零级是四叉树金字塔的根。</li> |
| | | * <li><code>{x}</code>:切片方案中的图块X坐标,其中0是最西端的图块。</li> |
| | | * <li><code>{y}</code>: 切片方案中的图块Y坐标,其中0是最北的图块。</li> |
| | | * <li><code>{s}</code>:可用的子域之一,用于克服浏览器对每个主机的并发请求数的限制。</li> |
| | | * <li><code>{reverseX}</code>: 切片方案中的图块X坐标,其中0是最东的图块。</li> |
| | | * <li><code>{reverseY}</code>:切片方案中的图块Y坐标,其中0是最南端的图块,用于TMS服务。</li> |
| | | * <li><code>{reverseZ}</code>:在切片方案中切片的级别,其中级别0是四叉树金字塔的最大级别。为了使用reverseZ,必须定义maximumLevel。</li> |
| | | * <li><code>{westDegrees}</code>: 瓦片图块在测地角度上的西边缘。</li> |
| | | * <li><code>{southDegrees}</code>:瓦片图块在测地角度上的南边缘。</li> |
| | | * <li><code>{eastDegrees}</code>:以大地测量度表示的图块的东边缘。</li> |
| | | * <li><code>{northDegrees}</code>: 瓦片图块在测地角度上的北边缘。</li> |
| | | * <li><code>{westProjected}</code>:图块方案的墨卡托投影坐标中图块的西边缘。</li> |
| | | * <li><code>{southProjected}</code>: 图块方案的墨卡托投影坐标中图块的南边缘。</li> |
| | | * <li><code>{eastProjected}</code>: :图块方案的墨卡托投影坐标中图块的东边缘。</li> |
| | | * <li><code>{northProjected}</code>:图块方案的墨卡托投影坐标中图块的北边缘。</li> |
| | | * <li><code>{width}</code>:每个图块的宽度(以像素为单位)。</li> |
| | | * <li><code>{height}</code>: 每个图块的高度(以像素为单位)。</li> |
| | | * </ul> |
| | | * @param [options.urlSchemeZeroPadding] - 为每个图块坐标获取URL方案零填充。格式为' 000',其中每个坐标将在左侧用零填充,以匹配传递的零字符串的宽度。例如设置: |
| | | * urlSchemeZeroPadding:{'{x}':'0000'}将导致'x'值为12,以在生成的URL中返回{x}的字符串'0012'。传递的对象具有以下关键字: |
| | | * <ul> |
| | | * <li> <code>{z}</code>: 切片方案中图块级别的零填充。</li> |
| | | * <li> <code>{x}</code>: 切片方案中图块X坐标的零填充。</li> |
| | | * <li> <code>{y}</code>: 切片方案中图块Y坐标的零填充。</li> |
| | | * <li> <code>{reverseX}</code>: 在平铺方案中图块reverseX坐标的零填充。</li> |
| | | * <li> <code>{reverseY}</code>: 在切片方案中,图块反向Y坐标的零填充,用于TMS服务。</li> |
| | | * <li> <code>{reverseZ}</code>: 在切片方案中,图块的reverseZ坐标的零填充。</li> |
| | | * </ul> |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.tms] - 如果此值为true,反转切片Y轴的编号(对于TMS服务需可将将此项打开) |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.pickFeaturesUrl] - 用于选择功能的URL模板。如果未指定此属性, |
| | | * {@link Cesium.UrlTemplateImageryProvider#pickFeatures} 会立即返回undefined,表示没有 功能选择。 |
| | | * 网址模板支持 <code>url</code>参数支持的所有关键字参数,以及以下内容: |
| | | * <ul> |
| | | * <li><code>{i}</code>: 所选位置的像素列(水平坐标),其中最西端的像素为0。</li> |
| | | * <li><code>{j}</code>: 所选位置的像素行(垂直坐标),其中最北端的像素为0。</li> |
| | | * <li><code>{reverseI}</code>: 所选位置的像素列(水平坐标),其中最东端的像素为0。</li> |
| | | * <li><code>{reverseJ}</code>: 所选位置的像素行(垂直坐标),其中最南端的像素为0。</li> |
| | | * <li><code>{longitudeDegrees}</code>: 所选位置的经度(以度为单位)。</li> |
| | | * <li><code>{latitudeDegrees}</code>: 所选位置的纬度(以度为单位)。</li> |
| | | * <li><code>{longitudeProjected}</code>:在平铺方案的投影坐标中所拾取位置的经度。</li> |
| | | * <li><code>{latitudeProjected}</code>: 在平铺方案的投影坐标中所拾取位置的纬度。</li> |
| | | * <li><code>{format}</code>: 获取功能信息的格式,如 {@link GetFeatureInfoFormat}中所指定。</li> |
| | | * </ul> |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class XyzLayer extends BaseTileLayer { |
| | | /** |
| | | * 标准xyz金字塔 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 用于请求瓦片图块的URL模板。它具有以下关键字: |
| | | * <ul> |
| | | * <li><code>{z}</code>: 切片方案中切片的级别。零级是四叉树金字塔的根。</li> |
| | | * <li><code>{x}</code>:切片方案中的图块X坐标,其中0是最西端的图块。</li> |
| | | * <li><code>{y}</code>: 切片方案中的图块Y坐标,其中0是最北的图块。</li> |
| | | * <li><code>{s}</code>:可用的子域之一,用于克服浏览器对每个主机的并发请求数的限制。</li> |
| | | * <li><code>{reverseX}</code>: 切片方案中的图块X坐标,其中0是最东的图块。</li> |
| | | * <li><code>{reverseY}</code>:切片方案中的图块Y坐标,其中0是最南端的图块,用于TMS服务。</li> |
| | | * <li><code>{reverseZ}</code>:在切片方案中切片的级别,其中级别0是四叉树金字塔的最大级别。为了使用reverseZ,必须定义maximumLevel。</li> |
| | | * <li><code>{westDegrees}</code>: 瓦片图块在测地角度上的西边缘。</li> |
| | | * <li><code>{southDegrees}</code>:瓦片图块在测地角度上的南边缘。</li> |
| | | * <li><code>{eastDegrees}</code>:以大地测量度表示的图块的东边缘。</li> |
| | | * <li><code>{northDegrees}</code>: 瓦片图块在测地角度上的北边缘。</li> |
| | | * <li><code>{westProjected}</code>:图块方案的墨卡托投影坐标中图块的西边缘。</li> |
| | | * <li><code>{southProjected}</code>: 图块方案的墨卡托投影坐标中图块的南边缘。</li> |
| | | * <li><code>{eastProjected}</code>: :图块方案的墨卡托投影坐标中图块的东边缘。</li> |
| | | * <li><code>{northProjected}</code>:图块方案的墨卡托投影坐标中图块的北边缘。</li> |
| | | * <li><code>{width}</code>:每个图块的宽度(以像素为单位)。</li> |
| | | * <li><code>{height}</code>: 每个图块的高度(以像素为单位)。</li> |
| | | * </ul> |
| | | * @param [options.urlSchemeZeroPadding] - 为每个图块坐标获取URL方案零填充。格式为' 000',其中每个坐标将在左侧用零填充,以匹配传递的零字符串的宽度。例如设置: |
| | | * urlSchemeZeroPadding:{'{x}':'0000'}将导致'x'值为12,以在生成的URL中返回{x}的字符串'0012'。传递的对象具有以下关键字: |
| | | * <ul> |
| | | * <li> <code>{z}</code>: 切片方案中图块级别的零填充。</li> |
| | | * <li> <code>{x}</code>: 切片方案中图块X坐标的零填充。</li> |
| | | * <li> <code>{y}</code>: 切片方案中图块Y坐标的零填充。</li> |
| | | * <li> <code>{reverseX}</code>: 在平铺方案中图块reverseX坐标的零填充。</li> |
| | | * <li> <code>{reverseY}</code>: 在切片方案中,图块反向Y坐标的零填充,用于TMS服务。</li> |
| | | * <li> <code>{reverseZ}</code>: 在切片方案中,图块的reverseZ坐标的零填充。</li> |
| | | * </ul> |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.tms] - 如果此值为true,反转切片Y轴的编号(对于TMS服务需可将将此项打开) |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.pickFeaturesUrl] - 用于选择功能的URL模板。如果未指定此属性, |
| | | * {@link Cesium.UrlTemplateImageryProvider#pickFeatures} 会立即返回undefined,表示没有 功能选择。 |
| | | * 网址模板支持 <code>url</code>参数支持的所有关键字参数,以及以下内容: |
| | | * <ul> |
| | | * <li><code>{i}</code>: 所选位置的像素列(水平坐标),其中最西端的像素为0。</li> |
| | | * <li><code>{j}</code>: 所选位置的像素行(垂直坐标),其中最北端的像素为0。</li> |
| | | * <li><code>{reverseI}</code>: 所选位置的像素列(水平坐标),其中最东端的像素为0。</li> |
| | | * <li><code>{reverseJ}</code>: 所选位置的像素行(垂直坐标),其中最南端的像素为0。</li> |
| | | * <li><code>{longitudeDegrees}</code>: 所选位置的经度(以度为单位)。</li> |
| | | * <li><code>{latitudeDegrees}</code>: 所选位置的纬度(以度为单位)。</li> |
| | | * <li><code>{longitudeProjected}</code>:在平铺方案的投影坐标中所拾取位置的经度。</li> |
| | | * <li><code>{latitudeProjected}</code>: 在平铺方案的投影坐标中所拾取位置的纬度。</li> |
| | | * <li><code>{format}</code>: 获取功能信息的格式,如 {@link GetFeatureInfoFormat}中所指定。</li> |
| | | * </ul> |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class XyzLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: Cesium.Resource | string; |
| | | urlSchemeZeroPadding?: any; |
| | | subdomains?: string | string[]; |
| | | tms?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | pickFeaturesUrl?: Cesium.Resource | string; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: Cesium.Resource | string; |
| | | urlSchemeZeroPadding?: any; |
| | | subdomains?: string | string[]; |
| | | tms?: boolean; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | pickFeaturesUrl?: Cesium.Resource | string; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 创建完成的 ImageryProvider 对象 |
| | | */ |
| | | _createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 右键菜单 控件 |
| | | */ |
| | | export class ContextMenu extends BaseControl { |
| | | /** |
| | | * 右键菜单 控件 |
| | | */ |
| | | export class ContextMenu extends BaseControl { |
| | | /** |
| | | * 设置DOM容器的显示隐藏 |
| | | */ |
| | | show: boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 键盘漫游控制类 |
| | | */ |
| | | export class KeyboardRoam extends BaseControl { |
| | | /** |
| | | * 键盘漫游控制类 |
| | | */ |
| | | export class KeyboardRoam extends BaseControl { |
| | | /** |
| | | * 平移步长 (米) |
| | | */ |
| | |
| | | * 相机旋转的类型 |
| | | */ |
| | | static MoveType: MoveType; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地图鼠标事件 统一管理类 |
| | | */ |
| | | export class MouseEvent { |
| | | /** |
| | | * 地图鼠标事件 统一管理类 |
| | | */ |
| | | export class MouseEvent { |
| | | /** |
| | | * 鼠标移动事件的延迟毫秒数 |
| | | */ |
| | |
| | | * @returns 获取拾取到的Cesium选中对象 |
| | | */ |
| | | getPicked(event: any): any | undefined; |
| | | } |
| | | } |
| | | |
| | | export namespace Map { |
| | | export namespace Map { |
| | | /** |
| | | * 场景参数 |
| | | * @property [center] - 默认相机视角 |
| | |
| | | * @property [clock.multiplier = 1.0] - 当前的速度 |
| | | */ |
| | | type sceneOptions = { |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | removeDblClick?: boolean; |
| | | ionToken?: string; |
| | | resolutionScale?: number; |
| | | showSun?: boolean; |
| | | showMoon?: boolean; |
| | | showSkyBox?: boolean; |
| | | showSkyAtmosphere?: boolean; |
| | | fog?: boolean; |
| | | fxaa?: boolean; |
| | | highDynamicRange?: boolean; |
| | | backgroundColor?: string; |
| | | sceneMode?: Cesium.SceneMode; |
| | | scene3DOnly?: boolean; |
| | | mapProjection?: Cesium.MapProjection; |
| | | shouldAnimate?: boolean; |
| | | shadows?: boolean; |
| | | useDefaultRenderLoop?: boolean; |
| | | targetFrameRate?: number; |
| | | useBrowserRecommendedResolution?: boolean; |
| | | automaticallyTrackDataSourceClocks?: boolean; |
| | | contextOptions?: any; |
| | | orderIndependentTranslucency?: boolean; |
| | | terrainShadows?: Cesium.ShadowMode; |
| | | mapMode2D?: Cesium.MapMode2D; |
| | | requestRenderMode?: boolean; |
| | | maximumRenderTimeChange?: number; |
| | | globe?: { |
| | | show?: boolean; |
| | | baseColor?: string; |
| | | depthTestAgainstTerrain?: boolean; |
| | | showGroundAtmosphere?: boolean; |
| | | enableLighting?: boolean; |
| | | tileCacheSize?: number; |
| | | terrainExaggeration?: number; |
| | | terrainExaggerationRelativeHeight?: number; |
| | | }; |
| | | cameraController?: { |
| | | zoomFactor?: number; |
| | | constrainedAxis?: boolean; |
| | | minimumZoomDistance?: number; |
| | | maximumZoomDistance?: number; |
| | | minimumCollisionTerrainHeight?: number; |
| | | enableRotate?: boolean; |
| | | enableTranslate?: boolean; |
| | | enableTilt?: boolean; |
| | | enableZoom?: boolean; |
| | | enableCollisionDetection?: boolean; |
| | | }; |
| | | clock?: { |
| | | currentTime?: string | Cesium.JulianDate; |
| | | multiplier?: number; |
| | | }; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | }; |
| | | extent?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | removeDblClick?: boolean; |
| | | ionToken?: string; |
| | | resolutionScale?: number; |
| | | showSun?: boolean; |
| | | showMoon?: boolean; |
| | | showSkyBox?: boolean; |
| | | showSkyAtmosphere?: boolean; |
| | | fog?: boolean; |
| | | fxaa?: boolean; |
| | | highDynamicRange?: boolean; |
| | | backgroundColor?: string; |
| | | sceneMode?: Cesium.SceneMode; |
| | | scene3DOnly?: boolean; |
| | | mapProjection?: Cesium.MapProjection; |
| | | shouldAnimate?: boolean; |
| | | shadows?: boolean; |
| | | useDefaultRenderLoop?: boolean; |
| | | targetFrameRate?: number; |
| | | useBrowserRecommendedResolution?: boolean; |
| | | automaticallyTrackDataSourceClocks?: boolean; |
| | | contextOptions?: any; |
| | | orderIndependentTranslucency?: boolean; |
| | | terrainShadows?: Cesium.ShadowMode; |
| | | mapMode2D?: Cesium.MapMode2D; |
| | | requestRenderMode?: boolean; |
| | | maximumRenderTimeChange?: number; |
| | | globe?: { |
| | | show?: boolean; |
| | | baseColor?: string; |
| | | depthTestAgainstTerrain?: boolean; |
| | | showGroundAtmosphere?: boolean; |
| | | enableLighting?: boolean; |
| | | tileCacheSize?: number; |
| | | terrainExaggeration?: number; |
| | | terrainExaggerationRelativeHeight?: number; |
| | | }; |
| | | cameraController?: { |
| | | zoomFactor?: number; |
| | | constrainedAxis?: boolean; |
| | | minimumZoomDistance?: number; |
| | | maximumZoomDistance?: number; |
| | | minimumCollisionTerrainHeight?: number; |
| | | enableRotate?: boolean; |
| | | enableTranslate?: boolean; |
| | | enableTilt?: boolean; |
| | | enableZoom?: boolean; |
| | | enableCollisionDetection?: boolean; |
| | | }; |
| | | clock?: { |
| | | currentTime?: string | Cesium.JulianDate; |
| | | multiplier?: number; |
| | | }; |
| | | }; |
| | | /** |
| | | * 添加到地图的控件 参数 |
| | |
| | | * @property [showRenderLoopErrors = true] - 如果为true,则在发生渲染循环错误时,此小部件将自动向包含错误的用户显示HTML面板。 |
| | | */ |
| | | type controlOptions = { |
| | | defaultContextMenu?: boolean; |
| | | mouseDownView?: boolean; |
| | | locationBar?: { |
| | | fps?: boolean; |
| | | format?: string | ((...params: any[]) => any); |
| | | }; |
| | | compass?: any; |
| | | distanceLegend?: any; |
| | | clockAnimate?: any; |
| | | zoom?: any; |
| | | overviewMap?: any; |
| | | mapSplit?: any; |
| | | infoBox?: boolean; |
| | | selectionIndicator?: boolean; |
| | | animation?: boolean; |
| | | timeline?: boolean; |
| | | baseLayerPicker?: boolean; |
| | | fullscreenButton?: boolean; |
| | | vrButton?: boolean; |
| | | geocoder?: boolean | Cesium.GeocoderService[]; |
| | | homeButton?: boolean; |
| | | sceneModePicker?: boolean; |
| | | projectionPicker?: boolean; |
| | | navigationHelpButton?: boolean; |
| | | navigationInstructionsInitiallyVisible?: boolean; |
| | | showRenderLoopErrors?: boolean; |
| | | defaultContextMenu?: boolean; |
| | | mouseDownView?: boolean; |
| | | locationBar?: { |
| | | fps?: boolean; |
| | | format?: string | ((...params: any[]) => any); |
| | | }; |
| | | compass?: any; |
| | | distanceLegend?: any; |
| | | clockAnimate?: any; |
| | | zoom?: any; |
| | | overviewMap?: any; |
| | | mapSplit?: any; |
| | | infoBox?: boolean; |
| | | selectionIndicator?: boolean; |
| | | animation?: boolean; |
| | | timeline?: boolean; |
| | | baseLayerPicker?: boolean; |
| | | fullscreenButton?: boolean; |
| | | vrButton?: boolean; |
| | | geocoder?: boolean | Cesium.GeocoderService[]; |
| | | homeButton?: boolean; |
| | | sceneModePicker?: boolean; |
| | | projectionPicker?: boolean; |
| | | navigationHelpButton?: boolean; |
| | | navigationInstructionsInitiallyVisible?: boolean; |
| | | showRenderLoopErrors?: boolean; |
| | | }; |
| | | /** |
| | | * 添加到地图的特效 参数 |
| | |
| | | * @property [snowCover] - 地面积雪 特效,对应{@link SnowCoverEffect }构造参数 |
| | | */ |
| | | type effectOptions = { |
| | | blackAndWhite?: any; |
| | | bloom?: any; |
| | | brightness?: any; |
| | | depthOfField?: any; |
| | | fog?: any; |
| | | inverted?: any; |
| | | mosaic?: any; |
| | | nightVision?: any; |
| | | outline?: any; |
| | | rain?: any; |
| | | snow?: any; |
| | | snowCover?: any; |
| | | blackAndWhite?: any; |
| | | bloom?: any; |
| | | brightness?: any; |
| | | depthOfField?: any; |
| | | fog?: any; |
| | | inverted?: any; |
| | | mosaic?: any; |
| | | nightVision?: any; |
| | | outline?: any; |
| | | rain?: any; |
| | | snow?: any; |
| | | snowCover?: any; |
| | | }; |
| | | /** |
| | | * 地形服务配置 |
| | |
| | | * @property [requestMetadata = true] - 是否应该从服务器请求每个块元数据(如果可用)。 |
| | | */ |
| | | type terrainOptions = { |
| | | type?: TerrainType; |
| | | url: string | Cesium.Resource; |
| | | show?: boolean; |
| | | requestVertexNormals?: boolean; |
| | | requestWaterMask?: boolean; |
| | | requestMetadata?: boolean; |
| | | type?: TerrainType; |
| | | url: string | Cesium.Resource; |
| | | show?: boolean; |
| | | requestVertexNormals?: boolean; |
| | | requestWaterMask?: boolean; |
| | | requestMetadata?: boolean; |
| | | }; |
| | | /** |
| | | * 底图图层配置 |
| | |
| | | * @property [其他参数] - 每种不同type都有自己的不同属性,具体参考{@link LayerType}找到type对应的BaseTileLayer子类图层类,查看其构造参数 |
| | | */ |
| | | type basemapOptions = { |
| | | type: string; |
| | | 其他参数?: any; |
| | | type: string; |
| | | 其他参数?: any; |
| | | }; |
| | | /** |
| | | * 可以叠加显示的图层配置, |
| | |
| | | * @property [其他参数] - 每种type都有自己的不同属性,具体参考{@link LayerType}找到type对应的图层类,查看其构造参数 |
| | | */ |
| | | type layerOptions = { |
| | | type: string; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | center?: any; |
| | | popup?: any; |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: any; |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | 其他参数?: any; |
| | | type: string; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | center?: any; |
| | | popup?: any; |
| | | popupOptions?: Popup.StyleOptions; |
| | | tooltip?: any; |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | 其他参数?: any; |
| | | }; |
| | | /** |
| | | * Map支持的{@link EventType}事件类型 |
| | |
| | | * @property contextMenuClick - 右键菜单 单击某一项后 |
| | | */ |
| | | type EventType = { |
| | | addLayer: string; |
| | | removeLayer: string; |
| | | cameraMoveStart: string; |
| | | cameraMoveEnd: string; |
| | | cameraChanged: string; |
| | | preUpdate: string; |
| | | postUpdate: string; |
| | | preRender: string; |
| | | postRender: string; |
| | | morphStart: string; |
| | | morphComplete: string; |
| | | clockTick: string; |
| | | renderError: string; |
| | | click: string; |
| | | clickGraphic: string; |
| | | clickTileGraphic: string; |
| | | clickMap: string; |
| | | dblClick: string; |
| | | leftDown: string; |
| | | leftUp: string; |
| | | mouseMove: string; |
| | | mouseMoveTarget: string; |
| | | wheel: string; |
| | | rightClick: string; |
| | | rightDown: string; |
| | | rightUp: string; |
| | | middleClick: string; |
| | | middleDown: string; |
| | | middleUp: string; |
| | | pinchStart: string; |
| | | pinchEnd: string; |
| | | pinchMove: string; |
| | | mouseDown: string; |
| | | mouseUp: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | keydown: string; |
| | | keyup: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | addLayer: string; |
| | | removeLayer: string; |
| | | cameraMoveStart: string; |
| | | cameraMoveEnd: string; |
| | | cameraChanged: string; |
| | | preUpdate: string; |
| | | postUpdate: string; |
| | | preRender: string; |
| | | postRender: string; |
| | | morphStart: string; |
| | | morphComplete: string; |
| | | clockTick: string; |
| | | renderError: string; |
| | | click: string; |
| | | clickGraphic: string; |
| | | clickTileGraphic: string; |
| | | clickMap: string; |
| | | dblClick: string; |
| | | leftDown: string; |
| | | leftUp: string; |
| | | mouseMove: string; |
| | | mouseMoveTarget: string; |
| | | wheel: string; |
| | | rightClick: string; |
| | | rightDown: string; |
| | | rightUp: string; |
| | | middleClick: string; |
| | | middleDown: string; |
| | | middleUp: string; |
| | | pinchStart: string; |
| | | pinchEnd: string; |
| | | pinchMove: string; |
| | | mouseDown: string; |
| | | mouseUp: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | keydown: string; |
| | | keyup: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地图类 ,这是构造三维地球的一切的开始起点。 |
| | | * @param id - 地图div容器的id 或 已构造好的Viewer对象 |
| | | * @param [options = {}] - 参数对象: |
| | | * @param options.scene - 场景参数 |
| | | * @param options.control - 添加的控件 |
| | | * @param options.effect - 添加的特效 |
| | | * @param options.terrain - 地形服务配置 |
| | | * @param options.basemaps - 底图图层配置 |
| | | * @param options.layers - 可以叠加显示的图层配置 |
| | | * @param [options.templateValues] - 图层中统一的url模版,。比如可以将服务url前缀统一使用模板,方便修改或动态配置。 |
| | | * @param [options.chinaCRS = ChinaCRS.WGS84] - 标识当前三维场景的国内坐标系(用于部分图层内对比判断来自动纠偏或加偏) |
| | | * @param [options.lang] - 使用的语言(如中文、英文等)。 |
| | | */ |
| | | export class Map extends BaseClass { |
| | | /** |
| | | * 地图类 ,这是构造三维地球的一切的开始起点。 |
| | | * @param id - 地图div容器的id 或 已构造好的Viewer对象 |
| | | * @param [options = {}] - 参数对象: |
| | | * @param options.scene - 场景参数 |
| | | * @param options.control - 添加的控件 |
| | | * @param options.effect - 添加的特效 |
| | | * @param options.terrain - 地形服务配置 |
| | | * @param options.basemaps - 底图图层配置 |
| | | * @param options.layers - 可以叠加显示的图层配置 |
| | | * @param [options.templateValues] - 图层中统一的url模版,。比如可以将服务url前缀统一使用模板,方便修改或动态配置。 |
| | | * @param [options.chinaCRS = ChinaCRS.WGS84] - 标识当前三维场景的国内坐标系(用于部分图层内对比判断来自动纠偏或加偏) |
| | | * @param [options.lang] - 使用的语言(如中文、英文等)。 |
| | | */ |
| | | export class Map extends BaseClass { |
| | | constructor(id: string | Cesium.Viewer, options?: { |
| | | scene: Map.sceneOptions; |
| | | control: Map.controlOptions; |
| | | effect: Map.effectOptions; |
| | | terrain: Map.terrainOptions; |
| | | basemaps: Map.basemapOptions[]; |
| | | layers: Map.layerOptions[]; |
| | | templateValues?: any; |
| | | chinaCRS?: ChinaCRS; |
| | | lang?: LangType; |
| | | scene: Map.sceneOptions; |
| | | control: Map.controlOptions; |
| | | effect: Map.effectOptions; |
| | | terrain: Map.terrainOptions; |
| | | basemaps: Map.basemapOptions[]; |
| | | layers: Map.layerOptions[]; |
| | | templateValues?: any; |
| | | chinaCRS?: ChinaCRS; |
| | | lang?: LangType; |
| | | }); |
| | | /** |
| | | * 当前类的构造参数 |
| | |
| | | * @returns 当前视域边界 |
| | | */ |
| | | getExtent(options?: { |
| | | formatNum?: boolean; |
| | | scale?: number; |
| | | formatNum?: boolean; |
| | | scale?: number; |
| | | }): any; |
| | | /** |
| | | * 截图,导出地图场景图片 |
| | |
| | | * @returns 无 |
| | | */ |
| | | expImage(options?: { |
| | | download?: boolean; |
| | | filename?: string; |
| | | width?: number; |
| | | height?: number; |
| | | type?: string; |
| | | encoderOptions?: number; |
| | | callback?: (...params: any[]) => any; |
| | | download?: boolean; |
| | | filename?: string; |
| | | width?: number; |
| | | height?: number; |
| | | type?: string; |
| | | encoderOptions?: number; |
| | | callback?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 设置鼠标状态为“+”号效果,比如标绘时切换 |
| | |
| | | * @returns 图层数组 |
| | | */ |
| | | getLayers(options?: { |
| | | basemaps?: boolean; |
| | | layers?: boolean; |
| | | filter?: boolean; |
| | | basemaps?: boolean; |
| | | layers?: boolean; |
| | | filter?: boolean; |
| | | }): BaseLayer[] | any[]; |
| | | /** |
| | | * 获取所有basemps底图图层 |
| | |
| | | * @returns 无 |
| | | */ |
| | | setPitch(pitch: number, options?: { |
| | | heading?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | heading?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | }): void; |
| | | /** |
| | | * 停止视角定位等操作 |
| | |
| | | * @returns 当前相机视角参数 |
| | | */ |
| | | getCameraView(options?: { |
| | | simplify?: boolean; |
| | | simplify?: boolean; |
| | | }): any; |
| | | /** |
| | | * 将相机本身定位至指定位置 |
| | |
| | | * @returns 无 |
| | | */ |
| | | setCameraView(cameraView: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }, options?: { |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 将相机本身定位至指定位置,同 setCameraView 方法 |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyHome(options?: { |
| | | duration?: number; |
| | | duration?: number; |
| | | }): void; |
| | | /** |
| | | * 定位到多个相机视角位置,按数组顺序播放 |
| | |
| | | * @returns 无 |
| | | */ |
| | | setCameraViewList(arr: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | duration?: number; |
| | | stop?: number; |
| | | onStart?: (...params: any[]) => any; |
| | | onEnd?: (...params: any[]) => any; |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | duration?: number; |
| | | stop?: number; |
| | | onStart?: (...params: any[]) => any; |
| | | onEnd?: (...params: any[]) => any; |
| | | }[], options?: { |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 飞行至Cesium相关矢量对象处,是Cesium本身的flyTo方法。 |
| | |
| | | * @returns 如果飞行成功则解析为true的承诺,如果当前未在场景中可视化目标或取消飞行,则为false的Promise。 //TODO:清理实体提及 |
| | | */ |
| | | flyTo(target: any, options?: { |
| | | duration?: number; |
| | | maximumHeight?: number; |
| | | offset?: Cesium.HeadingPitchRange; |
| | | duration?: number; |
| | | maximumHeight?: number; |
| | | offset?: Cesium.HeadingPitchRange; |
| | | }): Promise<boolean>; |
| | | /** |
| | | * 飞行定位到 Graphic矢量对象 处 |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyToGraphic(graphic: BaseGraphic | BaseGraphic[], options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 定位至坐标数组 |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyToPositions(positions: Cesium.Cartesian3[], options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 相机飞行定位至矩形区域 |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyToExtent(extent: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | height?: number; |
| | | }, options?: { |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | scale?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 定位至目标点(非相机位置) |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyToPoint(point: LatLngPoint | Cesium.Cartesian3, options?: { |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | clampToGround?: boolean; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | clampToGround?: boolean; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 是否在调用了openFlyAnimation正在进行开场动画 |
| | |
| | | * @returns 无 |
| | | */ |
| | | openFlyAnimation(options?: { |
| | | center?: any; |
| | | callback?: (...params: any[]) => any; |
| | | center?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 执行旋转地球动画 |
| | |
| | | * @returns 无 |
| | | */ |
| | | rotateAnimation(options?: { |
| | | duration?: number; |
| | | center?: any; |
| | | callback?: (...params: any[]) => any; |
| | | duration?: number; |
| | | center?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 清除已高亮的矢量对象 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | bindContextMenu(content: { |
| | | text?: string; |
| | | iconCls?: string; |
| | | show?: ((...params: any[]) => any) | boolean; |
| | | callback?: (...params: any[]) => any; |
| | | children?: array; |
| | | text?: string; |
| | | iconCls?: string; |
| | | show?: ((...params: any[]) => any) | boolean; |
| | | callback?: (...params: any[]) => any; |
| | | children?: array; |
| | | }[], options?: { |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | offsetX?: number; |
| | | offsetY?: number; |
| | | }): Map; |
| | | /** |
| | | * 解除绑定的右键菜单 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | off(types?: EventType | string | EventType[], fn?: (...params: any[]) => any, context?: any): BaseClass; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 材质属性(Entity使用) 基础类 |
| | | * @param options - 参数对象 |
| | | */ |
| | | export class BaseMaterialProperty { |
| | | /** |
| | | * 材质属性(Entity使用) 基础类 |
| | | * @param options - 参数对象 |
| | | */ |
| | | export class BaseMaterialProperty { |
| | | constructor(options: any); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * @returns 两者是同一个对象 |
| | | */ |
| | | equals(other?: Cesium.Property): boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆形扫描效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 0.5))] - 颜色 |
| | | */ |
| | | export class CircleScanMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 圆形扫描效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 0.5))] - 颜色 |
| | | */ |
| | | export class CircleScanMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | image: string; |
| | | color?: string | Cesium.Color; |
| | | image: string; |
| | | color?: string | Cesium.Color; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 背景图片URL |
| | | */ |
| | | image: string; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆形扩散波纹效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = Cesium.Color.YELLOW] - 颜色 |
| | | * @param [options.speed = 10] - 速度 |
| | | * @param [options.count = 1] - 圆圈个数 |
| | | * @param [options.gradient = 0.1] - 透明度的幂方(0-1),0表示无虚化效果,1表示虚化成均匀渐变 |
| | | */ |
| | | export class CircleWaveMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 圆形扩散波纹效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = Cesium.Color.YELLOW] - 颜色 |
| | | * @param [options.speed = 10] - 速度 |
| | | * @param [options.count = 1] - 圆圈个数 |
| | | * @param [options.gradient = 0.1] - 透明度的幂方(0-1),0表示无虚化效果,1表示虚化成均匀渐变 |
| | | */ |
| | | export class CircleWaveMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: string | Cesium.Color; |
| | | speed?: number; |
| | | count?: number; |
| | | gradient?: number; |
| | | color?: string | Cesium.Color; |
| | | speed?: number; |
| | | count?: number; |
| | | gradient?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 透明度的幂方(0-1),0表示无虚化效果,1表示虚化成均匀渐变 |
| | | */ |
| | | gradient: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆锥 波纹扩散效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色 |
| | | * @param [options.repeat = 30] - 圈数量 |
| | | * @param [options.thickness = 0.3] - 圈的宽度比例 |
| | | * @param [options.frameRate = 60] - 每秒刷新次数 |
| | | */ |
| | | export class CylinderWaveMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 圆锥 波纹扩散效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色 |
| | | * @param [options.repeat = 30] - 圈数量 |
| | | * @param [options.thickness = 0.3] - 圈的宽度比例 |
| | | * @param [options.frameRate = 60] - 每秒刷新次数 |
| | | */ |
| | | export class CylinderWaveMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: string | Cesium.Color; |
| | | repeat?: number; |
| | | thickness?: number; |
| | | frameRate?: number; |
| | | color?: string | Cesium.Color; |
| | | repeat?: number; |
| | | thickness?: number; |
| | | frameRate?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 重复次数 |
| | | */ |
| | | repeat: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 球体: 电弧球体效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class EllipsoidElectricMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 球体: 电弧球体效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class EllipsoidElectricMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 球体: 波纹球体效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class EllipsoidWaveMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 球体: 波纹球体效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class EllipsoidWaveMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 通用:图片 材质2 材质属性, 没有加载完成前的白色闪烁,但也不支持纯白色的图片 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.opacity = 1] - 透明度 |
| | | * @param [options.color = Cesium.Color.WHITE] - 颜色 |
| | | */ |
| | | export class Image2MaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 通用:图片 材质2 材质属性, 没有加载完成前的白色闪烁,但也不支持纯白色的图片 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.opacity = 1] - 透明度 |
| | | * @param [options.color = Cesium.Color.WHITE] - 颜色 |
| | | */ |
| | | export class Image2MaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | image: string; |
| | | opacity?: number; |
| | | color?: string | Cesium.Color; |
| | | image: string; |
| | | opacity?: number; |
| | | color?: string | Cesium.Color; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 背景图片URL |
| | | */ |
| | | image: string; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 线状: 闪烁线 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 2] - 速度,值越大越快 |
| | | */ |
| | | export class LineFlickerMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 线状: 闪烁线 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 2] - 速度,值越大越快 |
| | | */ |
| | | export class LineFlickerMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 线状 流动效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 2] - 速度,值越大越快 |
| | | * @param [options.percent = 0.04] - 比例 |
| | | * @param [options.alpha = 0.1] - 透明程度 0.0-1.0 |
| | | * @param [options.startTime = 0] - 开始的时间系数 |
| | | */ |
| | | export class LineFlowColorMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 线状 流动效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 2] - 速度,值越大越快 |
| | | * @param [options.percent = 0.04] - 比例 |
| | | * @param [options.alpha = 0.1] - 透明程度 0.0-1.0 |
| | | * @param [options.startTime = 0] - 开始的时间系数 |
| | | */ |
| | | export class LineFlowColorMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | percent?: number; |
| | | alpha?: number; |
| | | startTime?: number; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | percent?: number; |
| | | alpha?: number; |
| | | startTime?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 线状 流动效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色 |
| | | * @param [options.repeat = new Cesium.Cartesian2(1.0, 1.0)] - 横纵方向重复次数 |
| | | * @param [options.axisY = false] - 是否Y轴朝上 |
| | | * @param [options.speed = 10] - 速度,建议取值范围1-100 |
| | | * @param [options.hasImage2 = false] - 是否有2张图片的混合模式 |
| | | * @param [options.image2] - 第2张背景图片URL地址 |
| | | * @param [options.color2 = new Cesium.Color(1, 1, 1)] - 第2张背景图片颜色 |
| | | */ |
| | | export class LineFlowMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 线状 流动效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色 |
| | | * @param [options.repeat = new Cesium.Cartesian2(1.0, 1.0)] - 横纵方向重复次数 |
| | | * @param [options.axisY = false] - 是否Y轴朝上 |
| | | * @param [options.speed = 10] - 速度,建议取值范围1-100 |
| | | * @param [options.hasImage2 = false] - 是否有2张图片的混合模式 |
| | | * @param [options.image2] - 第2张背景图片URL地址 |
| | | * @param [options.color2 = new Cesium.Color(1, 1, 1)] - 第2张背景图片颜色 |
| | | */ |
| | | export class LineFlowMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | image: string; |
| | | color?: string | Cesium.Color; |
| | | repeat?: Cesium.Cartesian2; |
| | | axisY?: boolean; |
| | | speed?: number; |
| | | hasImage2?: boolean; |
| | | image2?: string; |
| | | color2?: string | Cesium.Color; |
| | | image: string; |
| | | color?: string | Cesium.Color; |
| | | repeat?: Cesium.Cartesian2; |
| | | axisY?: boolean; |
| | | speed?: number; |
| | | hasImage2?: boolean; |
| | | image2?: string; |
| | | color2?: string | Cesium.Color; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 线状: 轨迹线 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.bgColor] - 线的背景颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class LineTrailMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 线状: 轨迹线 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.bgColor] - 线的背景颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class LineTrailMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: Cesium.Color; |
| | | bgColor?: string | Cesium.Color; |
| | | speed?: number; |
| | | color?: Cesium.Color; |
| | | bgColor?: string | Cesium.Color; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 背景颜色 |
| | | */ |
| | | bgColor: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 线状 OD线效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = 随机色] - 运动对象的颜色 |
| | | * @param [options.bgColor] - 线的背景颜色 |
| | | * @param [options.speed = 20 + 10 * Math.random()] - 速度 |
| | | * @param [options.startTime = Math.random] - 开始的时间系数 |
| | | * @param [options.bidirectional = 0] - 运行形式:0 正向运动 1 反向运动 2 双向运动 |
| | | */ |
| | | export class ODLineMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 线状 OD线效果 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = 随机色] - 运动对象的颜色 |
| | | * @param [options.bgColor] - 线的背景颜色 |
| | | * @param [options.speed = 20 + 10 * Math.random()] - 速度 |
| | | * @param [options.startTime = Math.random] - 开始的时间系数 |
| | | * @param [options.bidirectional = 0] - 运行形式:0 正向运动 1 反向运动 2 双向运动 |
| | | */ |
| | | export class ODLineMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: string | Cesium.Color; |
| | | bgColor?: string | Cesium.Color; |
| | | speed?: number; |
| | | startTime?: number; |
| | | bidirectional?: number; |
| | | color?: string | Cesium.Color; |
| | | bgColor?: string | Cesium.Color; |
| | | speed?: number; |
| | | startTime?: number; |
| | | bidirectional?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 速度 |
| | | */ |
| | | speed: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 面状: 渐变面 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1.0, 1.0, 0.0, 0.5)] - 颜色 |
| | | * @param [options.alphaPower = 1.5] - 透明度系数 |
| | | * @param [options.diffusePower = 1.6] - 漫射系数 |
| | | */ |
| | | export class PolyGradientMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 面状: 渐变面 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1.0, 1.0, 0.0, 0.5)] - 颜色 |
| | | * @param [options.alphaPower = 1.5] - 透明度系数 |
| | | * @param [options.diffusePower = 1.6] - 漫射系数 |
| | | */ |
| | | export class PolyGradientMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: string | Cesium.Color; |
| | | alphaPower?: number; |
| | | diffusePower?: number; |
| | | color?: string | Cesium.Color; |
| | | alphaPower?: number; |
| | | diffusePower?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆形: 雷达线(圆+旋转半径线) 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class RadarLineMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 圆形: 雷达线(圆+旋转半径线) 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class RadarLineMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆形: 雷达线(圆+旋转半径线) 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class RadarWaveMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 圆形: 雷达线(圆+旋转半径线) 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色 |
| | | * @param [options.speed = 5.0] - 速度,值越大越快 |
| | | */ |
| | | export class RadarWaveMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矩形面: 轮播图 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 图片URL |
| | | * @param [options.color = Cesium.Color.WHITE] - 颜色和透明度 |
| | | * @param [options.speed = 1] - 速度,值越大越快 |
| | | * @param [options.pure = false] - 是否纯色 |
| | | */ |
| | | export class RectSlideMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 矩形面: 轮播图 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 图片URL |
| | | * @param [options.color = Cesium.Color.WHITE] - 颜色和透明度 |
| | | * @param [options.speed = 1] - 速度,值越大越快 |
| | | * @param [options.pure = false] - 是否纯色 |
| | | */ |
| | | export class RectSlideMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | image: string; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | pure?: boolean; |
| | | image: string; |
| | | color?: Cesium.Color; |
| | | speed?: number; |
| | | pure?: boolean; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 面状: 用于面状对象的 扫描线放大效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = Cesium.Color.YELLOW] - 颜色 |
| | | * @param [options.speed = 10] - 速度 |
| | | */ |
| | | export class ScanLineMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 面状: 用于面状对象的 扫描线放大效果 材质属性 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = Cesium.Color.YELLOW] - 颜色 |
| | | * @param [options.speed = 10] - 速度 |
| | | */ |
| | | export class ScanLineMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | color?: string | Cesium.Color; |
| | | speed?: number; |
| | | color?: string | Cesium.Color; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 速度 |
| | | */ |
| | | speed: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 文字贴图 entity材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.text] - 文本内容 |
| | | * @param [options.font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体, |
| | | * @param [options.font_size = 30] - 字体大小 |
| | | * @param [options.font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否), |
| | | * @param [options.font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否), |
| | | * @param [options.font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。 |
| | | * @param [options.fill = true] - 是否填充 |
| | | * @param [options.color = "#ffff00"] - 文本颜色 |
| | | * @param [options.stroke = true] - 是否描边文本。 |
| | | * @param [options.strokeColor = new Cesium.Color(1.0, 1.0, 1.0, 0.8)] - 描边的颜色。 |
| | | * @param [options.strokeWidth = 2] - 描边的宽度。 |
| | | * @param [options.backgroundColor = new Cesium.Color(1.0, 1.0, 1.0, 0.1)] - 画布的背景色。 |
| | | * @param [options.outlineWidth] - 边框的宽度。 |
| | | * @param [options.outlineColor = fillColor] - 矩形边框的颜色。 |
| | | * @param [options.padding = 10] - 要在文本周围添加的填充的像素大小。 |
| | | * @param [options.textBaseline = 'top'] - 文本的基线。 |
| | | * @param [options.onCustomCanvas] - 支持对生成后的Canvas做自定义处理。 |
| | | */ |
| | | export class TextMaterialProperty extends Image2MaterialProperty { |
| | | /** |
| | | * 文字贴图 entity材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.text] - 文本内容 |
| | | * @param [options.font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体, |
| | | * @param [options.font_size = 30] - 字体大小 |
| | | * @param [options.font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否), |
| | | * @param [options.font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否), |
| | | * @param [options.font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。 |
| | | * @param [options.fill = true] - 是否填充 |
| | | * @param [options.color = "#ffff00"] - 文本颜色 |
| | | * @param [options.stroke = true] - 是否描边文本。 |
| | | * @param [options.strokeColor = new Cesium.Color(1.0, 1.0, 1.0, 0.8)] - 描边的颜色。 |
| | | * @param [options.strokeWidth = 2] - 描边的宽度。 |
| | | * @param [options.backgroundColor = new Cesium.Color(1.0, 1.0, 1.0, 0.1)] - 画布的背景色。 |
| | | * @param [options.outlineWidth] - 边框的宽度。 |
| | | * @param [options.outlineColor = fillColor] - 矩形边框的颜色。 |
| | | * @param [options.padding = 10] - 要在文本周围添加的填充的像素大小。 |
| | | * @param [options.textBaseline = 'top'] - 文本的基线。 |
| | | * @param [options.onCustomCanvas] - 支持对生成后的Canvas做自定义处理。 |
| | | */ |
| | | export class TextMaterialProperty extends Image2MaterialProperty { |
| | | constructor(options?: { |
| | | text?: string; |
| | | font_family?: string; |
| | | font_size?: number; |
| | | font_weight?: string; |
| | | font_style?: string; |
| | | font?: string; |
| | | fill?: boolean; |
| | | color?: string; |
| | | stroke?: boolean; |
| | | strokeColor?: Cesium.Color; |
| | | strokeWidth?: number; |
| | | backgroundColor?: Cesium.Color; |
| | | outlineWidth?: number; |
| | | outlineColor?: Cesium.Color; |
| | | padding?: number; |
| | | textBaseline?: string; |
| | | onCustomCanvas?: (...params: any[]) => any; |
| | | text?: string; |
| | | font_family?: string; |
| | | font_size?: number; |
| | | font_weight?: string; |
| | | font_style?: string; |
| | | font?: string; |
| | | fill?: boolean; |
| | | color?: string; |
| | | stroke?: boolean; |
| | | strokeColor?: Cesium.Color; |
| | | strokeWidth?: number; |
| | | backgroundColor?: Cesium.Color; |
| | | outlineWidth?: number; |
| | | outlineColor?: Cesium.Color; |
| | | padding?: number; |
| | | textBaseline?: string; |
| | | onCustomCanvas?: (...params: any[]) => any; |
| | | }); |
| | | /** |
| | | * 文本内容 |
| | |
| | | * 文本样式 |
| | | */ |
| | | textStyles: any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 墙体: 走马灯围墙 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色 |
| | | * @param [options.count = 1] - 数量 |
| | | * @param [options.speed = 5.0] - 速度 |
| | | */ |
| | | export class WallScrollMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 墙体: 走马灯围墙 材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.image - 背景图片URL |
| | | * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色 |
| | | * @param [options.count = 1] - 数量 |
| | | * @param [options.speed = 5.0] - 速度 |
| | | */ |
| | | export class WallScrollMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | image: string; |
| | | color?: string | Cesium.Color; |
| | | count?: number; |
| | | speed?: number; |
| | | image: string; |
| | | color?: string | Cesium.Color; |
| | | count?: number; |
| | | speed?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 颜色 |
| | | */ |
| | | color: Cesium.Color; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 水面效果材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.baseWaterColor = new Cesium.Color(0.2, 0.3, 0.6, 1.0)] - 基础颜色 |
| | | * @param [options.blendColor = new Cesium.Color(0.0, 1.0, 0.699, 1.0)] - 从水中混合到非水域时使用的rgba颜色对象。 |
| | | * @param [options.specularMap] - 单一通道纹理用来指示水域的面积。 |
| | | * @param [options.normalMap] - 水正常扰动的法线图。 |
| | | * @param [options.frequency = 100] - 控制波数的数字。 |
| | | * @param [options.animationSpeed = 0.01] - 控制水的动画速度的数字。 |
| | | * @param [options.amplitude = 10] - 控制水波振幅的数字。 |
| | | * @param [options.specularIntensity = 0.5] - 控制镜面反射强度的数字。 |
| | | * @param [options.fadeFactor = 1.0] - fadeFactor |
| | | */ |
| | | export class WaterMaterialProperty extends BaseMaterialProperty { |
| | | /** |
| | | * 水面效果材质 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.baseWaterColor = new Cesium.Color(0.2, 0.3, 0.6, 1.0)] - 基础颜色 |
| | | * @param [options.blendColor = new Cesium.Color(0.0, 1.0, 0.699, 1.0)] - 从水中混合到非水域时使用的rgba颜色对象。 |
| | | * @param [options.specularMap] - 单一通道纹理用来指示水域的面积。 |
| | | * @param [options.normalMap] - 水正常扰动的法线图。 |
| | | * @param [options.frequency = 100] - 控制波数的数字。 |
| | | * @param [options.animationSpeed = 0.01] - 控制水的动画速度的数字。 |
| | | * @param [options.amplitude = 10] - 控制水波振幅的数字。 |
| | | * @param [options.specularIntensity = 0.5] - 控制镜面反射强度的数字。 |
| | | * @param [options.fadeFactor = 1.0] - fadeFactor |
| | | */ |
| | | export class WaterMaterialProperty extends BaseMaterialProperty { |
| | | constructor(options?: { |
| | | baseWaterColor?: string | Cesium.Color; |
| | | blendColor?: string | Cesium.Color; |
| | | specularMap?: string; |
| | | normalMap?: string; |
| | | frequency?: number; |
| | | animationSpeed?: number; |
| | | amplitude?: number; |
| | | specularIntensity?: number; |
| | | fadeFactor?: number; |
| | | baseWaterColor?: string | Cesium.Color; |
| | | blendColor?: string | Cesium.Color; |
| | | specularMap?: string; |
| | | normalMap?: string; |
| | | frequency?: number; |
| | | animationSpeed?: number; |
| | | amplitude?: number; |
| | | specularIntensity?: number; |
| | | fadeFactor?: number; |
| | | }); |
| | | /** |
| | | * 获取 材质名称 |
| | |
| | | * 水正常扰动的法线图。 |
| | | */ |
| | | normalMap: string; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆锥 波纹扩散效果 材质 |
| | | * @example |
| | | * let primitive = new mars3d.graphic.CylinderPrimitive({ |
| | | * position: [116.328775, 30.954602, 5000], |
| | | * style: { |
| | | * topRadius: 0.0, |
| | | * bottomRadius: 1500.0, |
| | | * length: 10000.0, |
| | | * material: new mars3d.material.CylinderWaveMaterial({ |
| | | * color: 'rgba(255,0,0,0.7)', |
| | | * repeat: 30.0, |
| | | * }), |
| | | * faceForward: false, |
| | | * closed: true, |
| | | * }, |
| | | * }) |
| | | * graphicLayer.addGraphic(primitive) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色 |
| | | * @param [options.repeat = 30] - 圈数量 |
| | | * @param [options.thickness = 0.3] - 圈的宽度比例 |
| | | * @param [options.frameRate = 60] - 每秒刷新次数 |
| | | */ |
| | | export class CylinderWaveMaterial extends Cesium.Material { |
| | | /** |
| | | * 圆锥 波纹扩散效果 材质 |
| | | * @example |
| | | * let primitive = new mars3d.graphic.CylinderPrimitive({ |
| | | * position: [116.328775, 30.954602, 5000], |
| | | * style: { |
| | | * topRadius: 0.0, |
| | | * bottomRadius: 1500.0, |
| | | * length: 10000.0, |
| | | * material: new mars3d.material.CylinderWaveMaterial({ |
| | | * color: 'rgba(255,0,0,0.7)', |
| | | * repeat: 30.0, |
| | | * }), |
| | | * faceForward: false, |
| | | * closed: true, |
| | | * }, |
| | | * }) |
| | | * graphicLayer.addGraphic(primitive) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色 |
| | | * @param [options.repeat = 30] - 圈数量 |
| | | * @param [options.thickness = 0.3] - 圈的宽度比例 |
| | | * @param [options.frameRate = 60] - 每秒刷新次数 |
| | | */ |
| | | export class CylinderWaveMaterial extends Cesium.Material { |
| | | constructor(options?: { |
| | | color?: string | Cesium.Color; |
| | | repeat?: number; |
| | | thickness?: number; |
| | | frameRate?: number; |
| | | color?: string | Cesium.Color; |
| | | repeat?: number; |
| | | thickness?: number; |
| | | frameRate?: number; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 文字贴图 primitive材质 |
| | | * @example |
| | | * let primitive = new mars3d.graphic.WallPrimitive({ |
| | | * positions: [ |
| | | * [121.479343, 29.791419, 25], |
| | | * [121.479197, 29.791474, 25], |
| | | * ], |
| | | * style: { |
| | | * diffHeight: 5, |
| | | * material: new mars3d.material.TextMaterial({ |
| | | * text: "火星科技", |
| | | * fillColor: "#3388cc", |
| | | * outlineWidth: 4, |
| | | * }), |
| | | * }, |
| | | * }) |
| | | * graphicLayer.addGraphic(primitive) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.text] - 文本内容 |
| | | * @param [options.font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体, |
| | | * @param [options.font_size = 30] - 字体大小 |
| | | * @param [options.font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否), |
| | | * @param [options.font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否), |
| | | * @param [options.font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。 |
| | | * @param [options.fill = true] - 是否填充 |
| | | * @param [options.fillColor = new Cesium.Color(1.0, 1.0, 0.0, 1.0)] - 填充颜色。 |
| | | * @param [options.stroke = true] - 是否描边文本。 |
| | | * @param [options.strokeColor = new Cesium.Color(1.0, 1.0, 1.0, 0.8)] - 描边的颜色。 |
| | | * @param [options.strokeWidth = 2] - 描边的宽度。 |
| | | * @param [options.backgroundColor = new Cesium.Color(1.0, 1.0, 1.0, 0.1)] - 画布的背景色。 |
| | | * @param [options.outlineWidth] - 边框的宽度。 |
| | | * @param [options.outlineColor = fillColor] - 矩形边框的颜色。 |
| | | * @param [options.padding = 10] - 要在文本周围添加的填充的像素大小。 |
| | | * @param [options.textBaseline = 'top'] - 文本的基线。 |
| | | */ |
| | | export class TextMaterial extends Cesium.Material { |
| | | /** |
| | | * 文字贴图 primitive材质 |
| | | * @example |
| | | * let primitive = new mars3d.graphic.WallPrimitive({ |
| | | * positions: [ |
| | | * [121.479343, 29.791419, 25], |
| | | * [121.479197, 29.791474, 25], |
| | | * ], |
| | | * style: { |
| | | * diffHeight: 5, |
| | | * material: new mars3d.material.TextMaterial({ |
| | | * text: "火星科技", |
| | | * fillColor: "#3388cc", |
| | | * outlineWidth: 4, |
| | | * }), |
| | | * }, |
| | | * }) |
| | | * graphicLayer.addGraphic(primitive) |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.text] - 文本内容 |
| | | * @param [options.font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体, |
| | | * @param [options.font_size = 30] - 字体大小 |
| | | * @param [options.font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否), |
| | | * @param [options.font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否), |
| | | * @param [options.font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。 |
| | | * @param [options.fill = true] - 是否填充 |
| | | * @param [options.fillColor = new Cesium.Color(1.0, 1.0, 0.0, 1.0)] - 填充颜色。 |
| | | * @param [options.stroke = true] - 是否描边文本。 |
| | | * @param [options.strokeColor = new Cesium.Color(1.0, 1.0, 1.0, 0.8)] - 描边的颜色。 |
| | | * @param [options.strokeWidth = 2] - 描边的宽度。 |
| | | * @param [options.backgroundColor = new Cesium.Color(1.0, 1.0, 1.0, 0.1)] - 画布的背景色。 |
| | | * @param [options.outlineWidth] - 边框的宽度。 |
| | | * @param [options.outlineColor = fillColor] - 矩形边框的颜色。 |
| | | * @param [options.padding = 10] - 要在文本周围添加的填充的像素大小。 |
| | | * @param [options.textBaseline = 'top'] - 文本的基线。 |
| | | */ |
| | | export class TextMaterial extends Cesium.Material { |
| | | constructor(options?: { |
| | | text?: string; |
| | | font_family?: string; |
| | | font_size?: number; |
| | | font_weight?: string; |
| | | font_style?: string; |
| | | font?: string; |
| | | fill?: boolean; |
| | | fillColor?: Cesium.Color; |
| | | stroke?: boolean; |
| | | strokeColor?: Cesium.Color; |
| | | strokeWidth?: number; |
| | | backgroundColor?: Cesium.Color; |
| | | outlineWidth?: number; |
| | | outlineColor?: Cesium.Color; |
| | | padding?: number; |
| | | textBaseline?: string; |
| | | text?: string; |
| | | font_family?: string; |
| | | font_size?: number; |
| | | font_weight?: string; |
| | | font_style?: string; |
| | | font?: string; |
| | | fill?: boolean; |
| | | fillColor?: Cesium.Color; |
| | | stroke?: boolean; |
| | | strokeColor?: Cesium.Color; |
| | | strokeWidth?: number; |
| | | backgroundColor?: Cesium.Color; |
| | | outlineWidth?: number; |
| | | outlineColor?: Cesium.Color; |
| | | padding?: number; |
| | | textBaseline?: string; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace CanvasWindLayer { |
| | | export namespace CanvasWindLayer { |
| | | /** |
| | | * Canvas风场图层, data数据结构 |
| | | * @property [rows] - 行总数 |
| | |
| | | * @property [vdata] - V值一维数组, 数组长度应该是 rows*cols 。也支持按rows行cols列构建好的二维数组。 |
| | | */ |
| | | type DataOptions = { |
| | | rows?: number; |
| | | cols?: number; |
| | | xmin?: number; |
| | | xmax?: number; |
| | | ymin?: number; |
| | | ymax?: number; |
| | | udata?: number[] | any[][]; |
| | | vdata?: number[] | any[][]; |
| | | rows?: number; |
| | | cols?: number; |
| | | xmin?: number; |
| | | xmax?: number; |
| | | ymin?: number; |
| | | ymax?: number; |
| | | udata?: number[] | any[][]; |
| | | vdata?: number[] | any[][]; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Canvas风场图层, |
| | | * 基于Canvas绘制,【需要引入 mars3d-wind 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.data] - 风场数据 |
| | | * @param [options.speedRate = 50] - 风前进速率,意思是将当前风场横向纵向分成100份,再乘以风速就能得到移动位置,无论地图缩放到哪一级别都是一样的速度,可以用该数值控制线流动的快慢,值越大,越慢, |
| | | * @param [options.particlesNumber = 20000] - 初始粒子总数 |
| | | * @param [options.maxAge = 120] - 每个粒子的最大生存周期 |
| | | * @param [options.frameRate = 10] - 每秒刷新次数,因为requestAnimationFrame固定每秒60次的渲染,所以如果不想这么快,就把该数值调小一些 |
| | | * @param [options.color = '#ffffff'] - 线颜色 |
| | | * @param [options.lineWidth = 1] - 线宽度 |
| | | * @param [options.fixedHeight = 0] - 点的固定的海拔高度 |
| | | * @param [options.reverseY = false] - 是否翻转纬度数组顺序,正常数据是从北往南的(纬度从大到小),如果反向时请传reverseY为true |
| | | * @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class CanvasWindLayer extends BaseLayer { |
| | | /** |
| | | * Canvas风场图层, |
| | | * 基于Canvas绘制,【需要引入 mars3d-wind 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.data] - 风场数据 |
| | | * @param [options.speedRate = 50] - 风前进速率,意思是将当前风场横向纵向分成100份,再乘以风速就能得到移动位置,无论地图缩放到哪一级别都是一样的速度,可以用该数值控制线流动的快慢,值越大,越慢, |
| | | * @param [options.particlesNumber = 20000] - 初始粒子总数 |
| | | * @param [options.maxAge = 120] - 每个粒子的最大生存周期 |
| | | * @param [options.frameRate = 10] - 每秒刷新次数,因为requestAnimationFrame固定每秒60次的渲染,所以如果不想这么快,就把该数值调小一些 |
| | | * @param [options.color = '#ffffff'] - 线颜色 |
| | | * @param [options.lineWidth = 1] - 线宽度 |
| | | * @param [options.fixedHeight = 0] - 点的固定的海拔高度 |
| | | * @param [options.reverseY = false] - 是否翻转纬度数组顺序,正常数据是从北往南的(纬度从大到小),如果反向时请传reverseY为true |
| | | * @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class CanvasWindLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | data?: CanvasWindLayer.DataOptions; |
| | | speedRate?: number; |
| | | particlesNumber?: number; |
| | | maxAge?: number; |
| | | frameRate?: number; |
| | | color?: string; |
| | | lineWidth?: number; |
| | | fixedHeight?: number; |
| | | reverseY?: boolean; |
| | | pointerEvents?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | data?: CanvasWindLayer.DataOptions; |
| | | speedRate?: number; |
| | | particlesNumber?: number; |
| | | maxAge?: number; |
| | | frameRate?: number; |
| | | color?: string; |
| | | lineWidth?: number; |
| | | fixedHeight?: number; |
| | | reverseY?: boolean; |
| | | pointerEvents?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 线颜色 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 风场相关 静态方法,【需要引入 mars3d-wind 插件库】 |
| | | */ |
| | | namespace WindUtil { |
| | | /** |
| | | * 风场相关 静态方法,【需要引入 mars3d-wind 插件库】 |
| | | */ |
| | | namespace WindUtil { |
| | | /** |
| | | * 风速风向 转 U值 |
| | | * @param speed - 风速 |
| | |
| | | * @returns 风向 |
| | | */ |
| | | function getDirection(u: number, v: number): number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Echarts图层, |
| | | * 【需要引入 echarts 库 和 mars3d-echarts 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.Echarts本身] - 支持Echarts本身所有Options参数,具体查阅 [Echarts配置项手册]{@link https://echarts.apache.org/zh/option.html} |
| | | * @param [options.depthTest = true] - 是否进行计算深度判断,在地球背面或被遮挡时不显示(大数据时,需要关闭) |
| | | * @param [options.fixedHeight = 0] - 点的固定的海拔高度 |
| | | * @param [options.clampToGround = false] - 点是否贴地 |
| | | * @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class EchartsLayer extends BaseLayer { |
| | | /** |
| | | * Echarts图层, |
| | | * 【需要引入 echarts 库 和 mars3d-echarts 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.Echarts本身] - 支持Echarts本身所有Options参数,具体查阅 [Echarts配置项手册]{@link https://echarts.apache.org/zh/option.html} |
| | | * @param [options.depthTest = true] - 是否进行计算深度判断,在地球背面或被遮挡时不显示(大数据时,需要关闭) |
| | | * @param [options.fixedHeight = 0] - 点的固定的海拔高度 |
| | | * @param [options.clampToGround = false] - 点是否贴地 |
| | | * @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class EchartsLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | Echarts本身?: any; |
| | | depthTest?: boolean; |
| | | fixedHeight?: number; |
| | | clampToGround?: boolean; |
| | | pointerEvents?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | Echarts本身?: any; |
| | | depthTest?: boolean; |
| | | fixedHeight?: number; |
| | | clampToGround?: boolean; |
| | | pointerEvents?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * echarts对象,是echarts.init方法返回的 echartsInstance 实例 |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 热力图图层,基于heatmap.js库渲染。 |
| | | * 【需要引入 heatmap.js 库 和 mars3d-heatmap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.positions] - 坐标位置数组,有热力值时,传入LatLngPoint数组,热力值为value字段。示例:[{lat:31.123,lng:103.568,value:1.2},{lat:31.233,lng:103.938,value:2.3}] |
| | | * @param [options.heatStyle] - heatmap热力图本身configObject参数,详情也可查阅 [heatmap文档]{@link https://www.patrick-wied.at/static/heatmapjs/docs.html} |
| | | * @param [options.heatStyle.maxOpacity = 0.8] - 最大不透明度,取值范围0.0-1.0。 |
| | | * @param [options.heatStyle.minOpacity = 0.1] - 最小不透明度,取值范围0.0-1.0。 |
| | | * @param [options.heatStyle.blur = 0.85] - 将应用于所有数据点的模糊因子。模糊因子越高,渐变将越平滑 |
| | | * @param [options.heatStyle.radius = 25] - 每个数据点将具有的半径(如果未在数据点本身上指定) |
| | | * @param [options.heatStyle.gradient] - 色带,表示渐变的对象,示例:{ 0.4: 'blue', 0.6: 'green',0.8: 'yellow',0.9: 'red' } |
| | | * @param [options.style] - 矢量对象样式参数,还包括: |
| | | * @param [options.style.矩形] - rectangle矩形支持的样式 |
| | | * @param [options.style.opacity = 1] - 透明度 |
| | | * @param [options.style.arc = false] - 是否显示曲面热力图 |
| | | * @param [options.style.arcRadiusScale = 1.5] - 曲面热力图时,radius扩大比例 |
| | | * @param [options.style.arcBlurScale = 1.5] - 曲面热力图时,blur扩大比例 |
| | | * @param [options.maxCanvasSize = 5000] - Canvas最大尺寸(单位:像素),调大精度更高,但过大容易内存溢出 |
| | | * @param [options.minCanvasSize = 700] - Canvas最小尺寸(单位:像素) |
| | | * @param [options.delayTime = 2] - 显示数据时的过渡动画时长(单位:秒) |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class HeatLayer extends BaseLayer { |
| | | /** |
| | | * 热力图图层,基于heatmap.js库渲染。 |
| | | * 【需要引入 heatmap.js 库 和 mars3d-heatmap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.positions] - 坐标位置数组,有热力值时,传入LatLngPoint数组,热力值为value字段。示例:[{lat:31.123,lng:103.568,value:1.2},{lat:31.233,lng:103.938,value:2.3}] |
| | | * @param [options.heatStyle] - heatmap热力图本身configObject参数,详情也可查阅 [heatmap文档]{@link https://www.patrick-wied.at/static/heatmapjs/docs.html} |
| | | * @param [options.heatStyle.maxOpacity = 0.8] - 最大不透明度,取值范围0.0-1.0。 |
| | | * @param [options.heatStyle.minOpacity = 0.1] - 最小不透明度,取值范围0.0-1.0。 |
| | | * @param [options.heatStyle.blur = 0.85] - 将应用于所有数据点的模糊因子。模糊因子越高,渐变将越平滑 |
| | | * @param [options.heatStyle.radius = 25] - 每个数据点将具有的半径(如果未在数据点本身上指定) |
| | | * @param [options.heatStyle.gradient] - 色带,表示渐变的对象,示例:{ 0.4: 'blue', 0.6: 'green',0.8: 'yellow',0.9: 'red' } |
| | | * @param [options.style] - 矢量对象样式参数,还包括: |
| | | * @param [options.style.矩形] - rectangle矩形支持的样式 |
| | | * @param [options.style.opacity = 1] - 透明度 |
| | | * @param [options.style.arc = false] - 是否显示曲面热力图 |
| | | * @param [options.style.arcRadiusScale = 1.5] - 曲面热力图时,radius扩大比例 |
| | | * @param [options.style.arcBlurScale = 1.5] - 曲面热力图时,blur扩大比例 |
| | | * @param [options.maxCanvasSize = 5000] - Canvas最大尺寸(单位:像素),调大精度更高,但过大容易内存溢出 |
| | | * @param [options.minCanvasSize = 700] - Canvas最小尺寸(单位:像素) |
| | | * @param [options.delayTime = 2] - 显示数据时的过渡动画时长(单位:秒) |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class HeatLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | positions?: LatLngPoint[] | any[][] | string[] | Cesium.Cartesian3[]; |
| | | heatStyle?: { |
| | | maxOpacity?: number; |
| | | minOpacity?: number; |
| | | blur?: number; |
| | | radius?: number; |
| | | gradient?: any; |
| | | }; |
| | | style?: { |
| | | 矩形?: RectanglePrimitive.StyleOptions; |
| | | opacity?: boolean; |
| | | arc?: boolean; |
| | | arcRadiusScale?: boolean; |
| | | arcBlurScale?: boolean; |
| | | }; |
| | | maxCanvasSize?: number; |
| | | minCanvasSize?: number; |
| | | delayTime?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | positions?: LatLngPoint[] | any[][] | string[] | Cesium.Cartesian3[]; |
| | | heatStyle?: { |
| | | maxOpacity?: number; |
| | | minOpacity?: number; |
| | | blur?: number; |
| | | radius?: number; |
| | | gradient?: any; |
| | | }; |
| | | style?: { |
| | | 矩形?: RectanglePrimitive.StyleOptions; |
| | | opacity?: boolean; |
| | | arc?: boolean; |
| | | arcRadiusScale?: boolean; |
| | | arcBlurScale?: boolean; |
| | | }; |
| | | maxCanvasSize?: number; |
| | | minCanvasSize?: number; |
| | | delayTime?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 矢量数据图层 |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * MapV图层 |
| | | * 【需要引入 heatmap.js 库 和 mars3d-heatmap 插件库】 |
| | | * @param options - 图层参数,包括: |
| | | * @param [options.mapV本身] - 支持mapv本身所有drawOptions图层样式参数,具体查阅 [mapv库drawOptions文档]{@link https://github.com/huiyan-fe/mapv/wiki/%E7%B1%BB%E5%8F%82%E8%80%83} ,也可以 [在线编辑图层样式]{@link https://mapv.baidu.com/editor/} |
| | | * @param [options.depthTest = true] - 是否进行计算深度判断,在地球背面或被遮挡时不显示(大数据时,需要关闭) |
| | | * @param [options.fixedHeight = 0] - 点的固定的海拔高度 |
| | | * @param [options.clampToGround = false] - 点是否贴地 |
| | | * @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | * @param dataSet - mapv.DataSet数据集,可以参考[ MapV数据集对象说明]{@link https://github.com/huiyan-fe/mapv/blob/master/src/data/DataSet.md} |
| | | */ |
| | | export class MapVLayer extends BaseLayer { |
| | | /** |
| | | * MapV图层 |
| | | * 【需要引入 heatmap.js 库 和 mars3d-heatmap 插件库】 |
| | | * @param options - 图层参数,包括: |
| | | * @param [options.mapV本身] - 支持mapv本身所有drawOptions图层样式参数,具体查阅 [mapv库drawOptions文档]{@link https://github.com/huiyan-fe/mapv/wiki/%E7%B1%BB%E5%8F%82%E8%80%83} ,也可以 [在线编辑图层样式]{@link https://mapv.baidu.com/editor/} |
| | | * @param [options.depthTest = true] - 是否进行计算深度判断,在地球背面或被遮挡时不显示(大数据时,需要关闭) |
| | | * @param [options.fixedHeight = 0] - 点的固定的海拔高度 |
| | | * @param [options.clampToGround = false] - 点是否贴地 |
| | | * @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | * @param dataSet - mapv.DataSet数据集,可以参考[ MapV数据集对象说明]{@link https://github.com/huiyan-fe/mapv/blob/master/src/data/DataSet.md} |
| | | */ |
| | | export class MapVLayer extends BaseLayer { |
| | | constructor(options: { |
| | | mapV本身?: any; |
| | | depthTest?: boolean; |
| | | fixedHeight?: number; |
| | | clampToGround?: boolean; |
| | | pointerEvents?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | mapV本身?: any; |
| | | depthTest?: boolean; |
| | | fixedHeight?: number; |
| | | clampToGround?: boolean; |
| | | pointerEvents?: boolean; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }, dataSet: any); |
| | | /** |
| | | * 图层对应的Canvas对象 |
| | |
| | | * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象 |
| | | */ |
| | | getRectangle(options?: { |
| | | isFormat?: boolean; |
| | | isFormat?: boolean; |
| | | }): Cesium.Rectangle | any; |
| | | /** |
| | | * 从地图上移除,同map.removeThing |
| | |
| | | * @returns 无 |
| | | */ |
| | | remove(destroy?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 视锥体的类型 |
| | | */ |
| | | export const enum SensorType { |
| | | /** |
| | | * 视锥体的类型 |
| | | */ |
| | | export const enum SensorType { |
| | | /** |
| | | * 四棱锥 |
| | | */ |
| | |
| | | * 圆锥 |
| | | */ |
| | | Conic = 1 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 卫星TLE和SGP4相关算法类 |
| | | * @param tle1 - 卫星两行轨道数(TLE) 的tle1,每行69个字符, 示例:'1 39150U 13018A 18309.20646405 .00000034 00000-0 12253-4 0 9993' |
| | | * @param tle2 - 卫星两行轨道数(TLE) 的tle2,每行69个字符, 示例:'2 39150 97.9189 29.2064 0018076 220.9170 139.0692 14.76532215297913' |
| | | * @param [name] - 卫星名称 |
| | | */ |
| | | export class Tle { |
| | | /** |
| | | * 卫星TLE和SGP4相关算法类 |
| | | * @param tle1 - 卫星两行轨道数(TLE) 的tle1,每行69个字符, 示例:'1 39150U 13018A 18309.20646405 .00000034 00000-0 12253-4 0 9993' |
| | | * @param tle2 - 卫星两行轨道数(TLE) 的tle2,每行69个字符, 示例:'2 39150 97.9189 29.2064 0018076 220.9170 139.0692 14.76532215297913' |
| | | * @param [name] - 卫星名称 |
| | | */ |
| | | export class Tle { |
| | | constructor(tle1: string, tle2: string, name?: string); |
| | | /** |
| | | * COSPAR国际代号,国际空间研究委员会制定. |
| | |
| | | * @returns ECI(地心惯性坐标系)坐标 |
| | | */ |
| | | static ecfToEci(positionEcf: Cesium.Cartesian3, datetime: Date | Cesium.JulianDate | number): Cesium.Cartesian3; |
| | | } |
| | | } |
| | | |
| | | export namespace Tle { |
| | | export namespace Tle { |
| | | /** |
| | | * 从地面上某点的天文观测角度等值。 |
| | | * @property position - 卫星的当前位置 |
| | |
| | | * @property elevation - 仰角,角度值 |
| | | */ |
| | | type LookAngles = { |
| | | position: Cesium.Cartesian3; |
| | | range: number; |
| | | azimuth: number; |
| | | elevation: number; |
| | | position: Cesium.Cartesian3; |
| | | range: number; |
| | | azimuth: number; |
| | | elevation: number; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | export namespace CamberRadar { |
| | | export namespace CamberRadar { |
| | | /** |
| | | * 双曲面拱形雷达 支持的样式信息 |
| | | * @property [color = "#00FF00"] - 颜色 |
| | |
| | | * @property [roll = 0] - 翻滚角(度数值,0-360度) |
| | | */ |
| | | type StyleOptions = { |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | startRadius: number; |
| | | radius: number; |
| | | startFovH?: number; |
| | | endFovH?: number; |
| | | startFovV?: number; |
| | | endFovV?: number; |
| | | segmentH?: number; |
| | | segmentV?: number; |
| | | subSegmentH?: number; |
| | | subSegmentV?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | startRadius: number; |
| | | radius: number; |
| | | startFovH?: number; |
| | | endFovH?: number; |
| | | startFovV?: number; |
| | | endFovV?: number; |
| | | segmentH?: number; |
| | | segmentV?: number; |
| | | subSegmentH?: number; |
| | | subSegmentV?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 双曲面拱形雷达, |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CamberRadar extends BasePointPrimitive { |
| | | /** |
| | | * 双曲面拱形雷达, |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件 |
| | | */ |
| | | export class CamberRadar extends BasePointPrimitive { |
| | | constructor(options?: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: CamberRadar.StyleOptions; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: CamberRadar.StyleOptions; |
| | | attr?: any; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | }); |
| | | /** |
| | | * 内曲面半径 (单位:米) |
| | |
| | | * 垂直结束角度(弧度值) |
| | | */ |
| | | endFovH: number; |
| | | } |
| | | } |
| | | |
| | | export namespace ConicSensor { |
| | | export namespace ConicSensor { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property postUpdate - 更新后 |
| | | */ |
| | | type EventType = { |
| | | preUpdate: string; |
| | | postUpdate: string; |
| | | preUpdate: string; |
| | | postUpdate: string; |
| | | }; |
| | | /** |
| | | * 圆锥体(单目标雷达) 支持的样式信息 |
| | |
| | | * @property [hideRayEllipsoid = false] - 在地球相交时 是否隐藏 |
| | | */ |
| | | type StyleOptions = { |
| | | angle?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | topShow?: boolean; |
| | | topOutlineShow?: boolean; |
| | | shadowShow?: boolean; |
| | | rayEllipsoid?: boolean; |
| | | hideRayEllipsoid?: boolean; |
| | | angle?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | topShow?: boolean; |
| | | topOutlineShow?: boolean; |
| | | shadowShow?: boolean; |
| | | rayEllipsoid?: boolean; |
| | | hideRayEllipsoid?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 圆锥体(单目标雷达), |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.lookAt] - 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * @param [options.revers = false] - 是否反转朝向 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class ConicSensor extends BasePointPrimitive { |
| | | /** |
| | | * 圆锥体(单目标雷达), |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.lookAt] - 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * @param [options.revers = false] - 是否反转朝向 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class ConicSensor extends BasePointPrimitive { |
| | | constructor(options?: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: ConicSensor.StyleOptions; |
| | | attr?: any; |
| | | lookAt?: Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | revers?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: ConicSensor.StyleOptions; |
| | | attr?: any; |
| | | lookAt?: Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | revers?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | export namespace RectSensor { |
| | | export namespace RectSensor { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property postUpdate - 更新后 |
| | | */ |
| | | type EventType = { |
| | | preUpdate: string; |
| | | postUpdate: string; |
| | | preUpdate: string; |
| | | postUpdate: string; |
| | | }; |
| | | /** |
| | | * 四棱锥体 支持的样式信息 |
| | |
| | | * @property [hideRayEllipsoid = false] - 在地球相交时 是否隐藏 |
| | | */ |
| | | type StyleOptions = { |
| | | angle1?: number; |
| | | angle2?: number; |
| | | angle?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | topShow?: boolean; |
| | | topOutlineShow?: boolean; |
| | | topSteps?: number; |
| | | rayEllipsoid?: boolean; |
| | | hideRayEllipsoid?: boolean; |
| | | angle1?: number; |
| | | angle2?: number; |
| | | angle?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | topShow?: boolean; |
| | | topOutlineShow?: boolean; |
| | | topSteps?: number; |
| | | rayEllipsoid?: boolean; |
| | | hideRayEllipsoid?: boolean; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 四棱锥体, |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.lookAt] - 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * @param [options.revers = false] - 是否反转朝向 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class RectSensor extends BasePointPrimitive { |
| | | /** |
| | | * 四棱锥体, |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.lookAt] - 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | | * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系 |
| | | * @param [options.revers = false] - 是否反转朝向 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class RectSensor extends BasePointPrimitive { |
| | | constructor(options?: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: RectSensor.StyleOptions; |
| | | attr?: any; |
| | | lookAt?: Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | revers?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: RectSensor.StyleOptions; |
| | | attr?: any; |
| | | lookAt?: Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | revers?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | export namespace Satellite { |
| | | export namespace Satellite { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property change - 卫星位置变化了 |
| | | */ |
| | | type EventType = { |
| | | change: string; |
| | | change: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 卫星综合体 对象类【统一管理卫星模型、轨道、视锥体】, |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.tle1 - 卫星两行轨道数(TLE) 的tle1, 示例:'1 39150U 13018A 18309.20646405 .00000034 00000-0 12253-4 0 9993' |
| | | * @param options.tle2 - 卫星两行轨道数(TLE) 的tle2, 示例:'2 39150 97.9189 29.2064 0018076 220.9170 139.0692 14.76532215297913' |
| | | * @param [options.period] - 卫星运行周期(单位:分钟), 未传值时自动在tle2中解析 |
| | | * @param options.position - 当没有tle时,自定义传入动态坐标位置(含时序的点集合) |
| | | * @param [options.orientation] - 当没有tle时,自定义传入实体方向 |
| | | * @param [options.model] - 设置是否显示 gltf卫星模型 和对应的样式,属性还包含: |
| | | * @param [options.model.autoHeading = true] - heading是否自动为轨道的方向 |
| | | * @param [options.cone] - 设置是否显示 卫星视锥体 和对应的样式 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.billboard] - 设置是否显示 图标点 和对应的样式 |
| | | * @param [options.point] - 设置是否显示 像素点 和对应的样式 |
| | | * @param [options.path] - 设置是否显示 卫星轨迹路线 和对应的样式,属性还包含: |
| | | * @param [options.path.closure = false] - 是否闭合轨道圆 |
| | | * @param [options.shadingLine] - 设置是否显示 星下轨迹 和对应的样式 |
| | | * @param [options.fixedFrameTransform] - 参考系 |
| | | * @param [options.frameRate = 50] - 多少帧刷新1次,控制效率,如果卡顿就把该数值调大一些。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class Satellite extends BaseGraphic { |
| | | /** |
| | | * 卫星综合体 对象类【统一管理卫星模型、轨道、视锥体】, |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.tle1 - 卫星两行轨道数(TLE) 的tle1, 示例:'1 39150U 13018A 18309.20646405 .00000034 00000-0 12253-4 0 9993' |
| | | * @param options.tle2 - 卫星两行轨道数(TLE) 的tle2, 示例:'2 39150 97.9189 29.2064 0018076 220.9170 139.0692 14.76532215297913' |
| | | * @param [options.period] - 卫星运行周期(单位:分钟), 未传值时自动在tle2中解析 |
| | | * @param options.position - 当没有tle时,自定义传入动态坐标位置(含时序的点集合) |
| | | * @param [options.orientation] - 当没有tle时,自定义传入实体方向 |
| | | * @param [options.model] - 设置是否显示 gltf卫星模型 和对应的样式,属性还包含: |
| | | * @param [options.model.autoHeading = true] - heading是否自动为轨道的方向 |
| | | * @param [options.cone] - 设置是否显示 卫星视锥体 和对应的样式 |
| | | * @param [options.label] - 设置是否显示 文本 和对应的样式 |
| | | * @param [options.billboard] - 设置是否显示 图标点 和对应的样式 |
| | | * @param [options.point] - 设置是否显示 像素点 和对应的样式 |
| | | * @param [options.path] - 设置是否显示 卫星轨迹路线 和对应的样式,属性还包含: |
| | | * @param [options.path.closure = false] - 是否闭合轨道圆 |
| | | * @param [options.shadingLine] - 设置是否显示 星下轨迹 和对应的样式 |
| | | * @param [options.fixedFrameTransform] - 参考系 |
| | | * @param [options.frameRate = 50] - 多少帧刷新1次,控制效率,如果卡顿就把该数值调大一些。 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class Satellite extends BaseGraphic { |
| | | constructor(options?: { |
| | | tle1: string; |
| | | tle2: string; |
| | | period?: number; |
| | | position: Cesium.SampledPositionProperty; |
| | | orientation?: Cesium.Property; |
| | | model?: { |
| | | autoHeading?: boolean; |
| | | }; |
| | | cone?: SatelliteSensor.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | billboard?: BillboardEntity.StyleOptions; |
| | | point?: PointEntity.StyleOptions; |
| | | path?: { |
| | | closure?: boolean; |
| | | }; |
| | | shadingLine?: BillboardEntity.StyleOptions; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | frameRate?: number; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | tle1: string; |
| | | tle2: string; |
| | | period?: number; |
| | | position: Cesium.SampledPositionProperty; |
| | | orientation?: Cesium.Property; |
| | | model?: { |
| | | autoHeading?: boolean; |
| | | }; |
| | | cone?: SatelliteSensor.StyleOptions; |
| | | label?: LabelEntity.StyleOptions; |
| | | billboard?: BillboardEntity.StyleOptions; |
| | | point?: PointEntity.StyleOptions; |
| | | path?: { |
| | | closure?: boolean; |
| | | }; |
| | | shadingLine?: BillboardEntity.StyleOptions; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | frameRate?: number; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 加载Entity数据的内部Cesium容器 |
| | |
| | | * @returns 无 |
| | | */ |
| | | updateOrientation(newangle?: { |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | }): void; |
| | | /** |
| | | * 定位到卫星当前所在位置 |
| | |
| | | * @returns 无 |
| | | */ |
| | | flyTo(options?: { |
| | | scale?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | scale?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): void; |
| | | /** |
| | | * 对象的id标识 |
| | |
| | | * 当前类的构造参数 |
| | | */ |
| | | readonly options: any; |
| | | } |
| | | } |
| | | |
| | | export namespace SatelliteSensor { |
| | | export namespace SatelliteSensor { |
| | | /** |
| | | * 卫星视锥综合体(圆锥或四凌锥) 支持的样式信息 |
| | | * @property [sensorType = SatelliteSensor.Type.Rect] - 视锥类型 |
| | |
| | | * @property [rayEllipsoid = false] - 是否求交地球计算 |
| | | */ |
| | | type StyleOptions = { |
| | | sensorType?: SatelliteSensor.Type; |
| | | angle1?: number; |
| | | angle2?: number; |
| | | angle?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | rayEllipsoid?: boolean; |
| | | sensorType?: SatelliteSensor.Type; |
| | | angle1?: number; |
| | | angle2?: number; |
| | | angle?: number; |
| | | length?: number; |
| | | heading?: number; |
| | | pitch?: number; |
| | | roll?: number; |
| | | color?: string | Cesium.Color; |
| | | opacity?: number; |
| | | outline?: boolean; |
| | | outlineColor?: string | Cesium.Color; |
| | | rayEllipsoid?: boolean; |
| | | }; |
| | | /** |
| | | * 视锥体类型 |
| | | */ |
| | | enum Type { |
| | | Conic, |
| | | Rect |
| | | Conic, |
| | | Rect |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 卫星视锥综合体(圆锥或四凌锥), |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.lookAt] - 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | | * @param [options.trackedEntity] - 椎体跟随的卫星(椎体位置跟随变化,方向不变) |
| | | * @param [options.autoHeading] - 是否自动追踪trackedEntity目标的heading方向 |
| | | * @param [options.fixedFrameTransform] - 参考系 |
| | | * @param [options.revers = false] - 是否反转朝向 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class SatelliteSensor extends BasePointPrimitive { |
| | | /** |
| | | * 卫星视锥综合体(圆锥或四凌锥), |
| | | * 【需要引入 mars3d-space 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.position - 坐标位置 |
| | | * @param options.style - 样式信息 |
| | | * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。 |
| | | * @param [options.lookAt] - 椎体方向追踪的目标(椎体方向跟随变化,位置不变) |
| | | * @param [options.trackedEntity] - 椎体跟随的卫星(椎体位置跟随变化,方向不变) |
| | | * @param [options.autoHeading] - 是否自动追踪trackedEntity目标的heading方向 |
| | | * @param [options.fixedFrameTransform] - 参考系 |
| | | * @param [options.revers = false] - 是否反转朝向 |
| | | * @param [options.id = uuid()] - 矢量数据id标识 |
| | | * @param [options.name = ''] - 矢量数据名称 |
| | | * @param [options.show = true] - 矢量数据是否显示 |
| | | */ |
| | | export class SatelliteSensor extends BasePointPrimitive { |
| | | constructor(options?: { |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: SatelliteSensor.StyleOptions; |
| | | attr?: any; |
| | | lookAt?: Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | trackedEntity?: Cesium.Entity; |
| | | autoHeading?: boolean; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | revers?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | position: LatLngPoint | Cesium.Cartesian3; |
| | | style: SatelliteSensor.StyleOptions; |
| | | attr?: any; |
| | | lookAt?: Cesium.Cartesian3 | Cesium.PositionProperty; |
| | | trackedEntity?: Cesium.Entity; |
| | | autoHeading?: boolean; |
| | | fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame; |
| | | revers?: boolean; |
| | | id?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | }); |
| | | /** |
| | | * 椎体类型 |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 超图S3M三维模型图层, |
| | | * 【需要引入 mars3d-supermap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - supermap的S3M服务地址,示例:"url": "http://www.supermapol.com/realspace/services/3D-Olympic/rest/realspace" |
| | | * @param [options.layername] - 指定图层名称,未指定时,打开iserver场景服务下所有图层 |
| | | * @param [options.sceneName] - 工作空间中有多个场景,需要指定场景名称;设置为undefined,默认打开第一个 |
| | | * @param [options.s3mOptions] - [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer} ,示例: {"selectEnabled":false}, |
| | | * @param [options.position] - 模型新的中心点位置(移动模型) |
| | | * @param options.position.alt - 获取或设置底部高程。(单位:米) |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class S3MLayer extends BaseLayer { |
| | | /** |
| | | * 超图S3M三维模型图层, |
| | | * 【需要引入 mars3d-supermap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - supermap的S3M服务地址,示例:"url": "http://www.supermapol.com/realspace/services/3D-Olympic/rest/realspace" |
| | | * @param [options.layername] - 指定图层名称,未指定时,打开iserver场景服务下所有图层 |
| | | * @param [options.sceneName] - 工作空间中有多个场景,需要指定场景名称;设置为undefined,默认打开第一个 |
| | | * @param [options.s3mOptions] - [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer} ,示例: {"selectEnabled":false}, |
| | | * @param [options.position] - 模型新的中心点位置(移动模型) |
| | | * @param options.position.alt - 获取或设置底部高程。(单位:米) |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class S3MLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | layername?: string; |
| | | sceneName?: string; |
| | | s3mOptions?: any; |
| | | position?: { |
| | | alt: number; |
| | | }; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: string; |
| | | layername?: string; |
| | | sceneName?: string; |
| | | s3mOptions?: any; |
| | | position?: { |
| | | alt: number; |
| | | }; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 模型对应的Cesium.S3MTilesLayer图层组 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 超图影像瓦片服务图层, |
| | | * 【需要引入 mars3d-supermap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - supermap的影像服务地址 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.tileFormat] - 影像图片格式,默认为png。 |
| | | * @param [options.transparent = true] - 设置请求的地图服务的参数是否为transparent。 |
| | | * @param [options.transparentBackColor] - 设置影像透明色。 |
| | | * @param [options.transparentBackColorTolerance] - 去黑边,设置影像透明色容限,取值范围为0.0~1.0。0.0表示完全透明,1.0表示完全不透明。 |
| | | * @param [options.cacheKey] - 影像的三维缓存密钥。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class SmImgLayer extends BaseTileLayer { |
| | | /** |
| | | * 超图影像瓦片服务图层, |
| | | * 【需要引入 mars3d-supermap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - supermap的影像服务地址 |
| | | * @param [options.subdomains] - URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。 |
| | | * @param [options.tileFormat] - 影像图片格式,默认为png。 |
| | | * @param [options.transparent = true] - 设置请求的地图服务的参数是否为transparent。 |
| | | * @param [options.transparentBackColor] - 设置影像透明色。 |
| | | * @param [options.transparentBackColorTolerance] - 去黑边,设置影像透明色容限,取值范围为0.0~1.0。0.0表示完全透明,1.0表示完全不透明。 |
| | | * @param [options.cacheKey] - 影像的三维缓存密钥。 |
| | | * @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。 |
| | | * @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。 |
| | | * @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。 |
| | | * @param [options.maximumTerrainLevel] - 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。 |
| | | * @param [options.rectangle] - 瓦片数据的矩形区域范围 |
| | | * @param options.rectangle.xmin - 最小经度值, -180 至 180 |
| | | * @param options.rectangle.xmax - 最大纬度值, -180 至 180 |
| | | * @param options.rectangle.ymin - 最小纬度值, -90 至 90 |
| | | * @param options.rectangle.ymax - 最大纬度值, -90 至 90 |
| | | * @param options.bbox - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。 |
| | | * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。 |
| | | * @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影 |
| | | * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。 |
| | | * @param [options.proxy] - 加载资源时要使用的代理服务url。 |
| | | * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对 |
| | | * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}, |
| | | * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }, |
| | | * @param [options.enablePickFeatures = true] - 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。 |
| | | * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。 |
| | | * @param [options.getFeatureInfoFormats] - 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。 |
| | | * @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。 |
| | | * @param [options.alpha = 1.0] - 同opacity。 |
| | | * @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.dayAlpha = 1.0] - 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。 |
| | | * @param [options.brightness = 1.0] - 亮度 |
| | | * @param [options.contrast = 1.0] - 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。 |
| | | * @param [options.hue = 0.0] - 色调。 0.0 时未修改的图像颜色。 |
| | | * @param [options.saturation = 1.0] - 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。 |
| | | * @param [options.gamma = 1.0] - 伽马校正值。 1.0使用未修改的图像颜色。 |
| | | * @param [options.maximumAnisotropy = maximum supported] - 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。 |
| | | * @param [options.cutoutRectangle] - 制图矩形,用于裁剪此ImageryLayer的一部分。 |
| | | * @param [options.colorToAlpha] - 用作Alpha的颜色。 |
| | | * @param [options.colorToAlphaThreshold = 0.004] - 颜色到Alpha的阈值。 |
| | | * @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。 |
| | | * @param [options.tileWidth = 256] - 图像图块的像素宽度。 |
| | | * @param [options.tileHeight = 256] - 图像图块的像素高度。 |
| | | * @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class SmImgLayer extends BaseTileLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | subdomains?: string | string[]; |
| | | tileFormat?: string; |
| | | transparent?: boolean; |
| | | transparentBackColor?: string | Cesium.Color; |
| | | transparentBackColorTolerance?: number; |
| | | cacheKey?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: string; |
| | | subdomains?: string | string[]; |
| | | tileFormat?: string; |
| | | transparent?: boolean; |
| | | transparentBackColor?: string | Cesium.Color; |
| | | transparentBackColorTolerance?: number; |
| | | cacheKey?: string; |
| | | minimumLevel?: number; |
| | | maximumLevel?: number; |
| | | minimumTerrainLevel?: number; |
| | | maximumTerrainLevel?: number; |
| | | rectangle?: { |
| | | xmin: number; |
| | | xmax: number; |
| | | ymin: number; |
| | | ymax: number; |
| | | }; |
| | | bbox: number[]; |
| | | zIndex?: number; |
| | | crs?: CRS; |
| | | chinaCRS?: ChinaCRS; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | enablePickFeatures?: boolean; |
| | | getFeatureInfoFormats?: Cesium.GetFeatureInfoFormat[]; |
| | | opacity?: number; |
| | | alpha?: number | ((...params: any[]) => any); |
| | | nightAlpha?: number | ((...params: any[]) => any); |
| | | dayAlpha?: number | ((...params: any[]) => any); |
| | | brightness?: number | ((...params: any[]) => any); |
| | | contrast?: number | ((...params: any[]) => any); |
| | | hue?: number | ((...params: any[]) => any); |
| | | saturation?: number | ((...params: any[]) => any); |
| | | gamma?: number | ((...params: any[]) => any); |
| | | maximumAnisotropy?: number; |
| | | cutoutRectangle?: Cesium.Rectangle; |
| | | colorToAlpha?: Cesium.Color; |
| | | colorToAlphaThreshold?: number; |
| | | hasAlphaChannel?: boolean; |
| | | tileWidth?: number; |
| | | tileHeight?: number; |
| | | customTags?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 创建用于图层的 ImageryProvider对象 |
| | |
| | | * @returns 无 |
| | | */ |
| | | _addedHook(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 超图MVT矢量瓦片图层, |
| | | * 【需要引入 mars3d-supermap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 适用于通过SuperMap桌面软件生成mvt数据,经iServer发布为rest风格的地图服务,只需提供服务地址。 |
| | | * @param options.layer - 图层名称,适用于第三方发布的WMTS服务。 |
| | | * @param [options.canvasWidth] - 用来绘制矢量的纹理边长。默认是512,越大越精细,越小性能越高。 |
| | | * @param [options.format = 'mvt'] - 适用于第三方发布的WMTS服务。 |
| | | * @param [options.mapboxStyle] - 使用的mapBox风格。 |
| | | * @param [options.其他] - 参考[supermap官方API]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html#addVectorTilesLayer} |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class SmMvtLayer extends BaseLayer { |
| | | /** |
| | | * 超图MVT矢量瓦片图层, |
| | | * 【需要引入 mars3d-supermap 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - 适用于通过SuperMap桌面软件生成mvt数据,经iServer发布为rest风格的地图服务,只需提供服务地址。 |
| | | * @param options.layer - 图层名称,适用于第三方发布的WMTS服务。 |
| | | * @param [options.canvasWidth] - 用来绘制矢量的纹理边长。默认是512,越大越精细,越小性能越高。 |
| | | * @param [options.format = 'mvt'] - 适用于第三方发布的WMTS服务。 |
| | | * @param [options.mapboxStyle] - 使用的mapBox风格。 |
| | | * @param [options.其他] - 参考[supermap官方API]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html#addVectorTilesLayer} |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class SmMvtLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | url: string; |
| | | layer: string; |
| | | canvasWidth?: number; |
| | | format?: string; |
| | | mapboxStyle?: any; |
| | | 其他?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url: string; |
| | | layer: string; |
| | | canvasWidth?: number; |
| | | format?: string; |
| | | mapboxStyle?: any; |
| | | 其他?: any; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 对应的supermap图层 Cesium.VectorTilesLayer |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | flyTo(options?: { |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | radius?: number; |
| | | scale?: number; |
| | | duration?: number; |
| | | complete?: Cesium.Camera.FlightCompleteCallback; |
| | | cancel?: Cesium.Camera.FlightCancelledCallback; |
| | | endTransform?: Cesium.Matrix4; |
| | | maximumHeight?: number; |
| | | pitchAdjustHeight?: number; |
| | | flyOverLongitude?: number; |
| | | flyOverLongitudeWeight?: number; |
| | | convert?: boolean; |
| | | easingFunction?: Cesium.EasingFunction.Callback; |
| | | }): BaseLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 天地图 三维地名服务图层 |
| | | * 【需要引入 mars3d-tdt 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://t{s}.tianditu.gov.cn/mapservice/GetTiles'] - 天地图服务地址 |
| | | * @param [options.subdomains = '01234567'] - 服务负载子域 |
| | | * @param [options.key = mars3d.Token.tianditu] - 天地图服务token令牌 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TdtDmLayer extends BaseLayer { |
| | | /** |
| | | * 天地图 三维地名服务图层 |
| | | * 【需要引入 mars3d-tdt 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://t{s}.tianditu.gov.cn/mapservice/GetTiles'] - 天地图服务地址 |
| | | * @param [options.subdomains = '01234567'] - 服务负载子域 |
| | | * @param [options.key = mars3d.Token.tianditu] - 天地图服务token令牌 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class TdtDmLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | url?: string; |
| | | subdomains?: string; |
| | | key?: string; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | url?: string; |
| | | subdomains?: string; |
| | | key?: string; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 对象添加到地图上的创建钩子方法, |
| | |
| | | * @returns 无 |
| | | */ |
| | | _removedHook(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 天地图 地形服务 |
| | | * 【需要引入 mars3d-tdt 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://t{s}.tianditu.gov.cn/DataServer'] - 天地图服务地址 |
| | | * @param [options.subdomains = '01234567'] - 服务负载子域 |
| | | * @param [options.key = mars3d.Token.tianditu] - 天地图服务token令牌 |
| | | */ |
| | | export class TdtTerrainProvider extends Cesium.TerrainProvider { |
| | | /** |
| | | * 天地图 地形服务 |
| | | * 【需要引入 mars3d-tdt 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.url = 'https://t{s}.tianditu.gov.cn/DataServer'] - 天地图服务地址 |
| | | * @param [options.subdomains = '01234567'] - 服务负载子域 |
| | | * @param [options.key = mars3d.Token.tianditu] - 天地图服务token令牌 |
| | | */ |
| | | export class TdtTerrainProvider extends Cesium.TerrainProvider { |
| | | constructor(options?: { |
| | | url?: string; |
| | | subdomains?: string; |
| | | key?: string; |
| | | url?: string; |
| | | subdomains?: string; |
| | | key?: string; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export namespace BaseWidget { |
| | | export namespace BaseWidget { |
| | | /** |
| | | * widget 配置参数 |
| | | * @property name - 必须,中文名称,用于标识和弹窗标题。 |
| | |
| | | * @property [其他] - 传入数据等,定义的任意参数在widget内部方法中都可以通过this.config获取到 |
| | | */ |
| | | type widgetOptions = { |
| | | name: string; |
| | | uri: string; |
| | | id?: string; |
| | | autoDisable?: boolean; |
| | | disableOther?: boolean; |
| | | group?: string; |
| | | windowOptions?: { |
| | | width?: number | string; |
| | | height?: number | string; |
| | | position?: { |
| | | top?: number | string; |
| | | bottom?: number | string; |
| | | left?: number | string; |
| | | right?: number | string; |
| | | }; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | minWidth?: number; |
| | | maxWidth?: number; |
| | | maxmin?: boolean; |
| | | shade?: number | any[]; |
| | | shadeClose?: boolean; |
| | | closeBtn?: number; |
| | | noTitle?: number; |
| | | name: string; |
| | | uri: string; |
| | | id?: string; |
| | | autoDisable?: boolean; |
| | | disableOther?: boolean; |
| | | group?: string; |
| | | windowOptions?: { |
| | | width?: number | string; |
| | | height?: number | string; |
| | | position?: { |
| | | top?: number | string; |
| | | bottom?: number | string; |
| | | left?: number | string; |
| | | right?: number | string; |
| | | }; |
| | | openAtStart?: boolean; |
| | | style?: string; |
| | | css?: any; |
| | | show?: boolean; |
| | | 其他?: any; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | minWidth?: number; |
| | | maxWidth?: number; |
| | | maxmin?: boolean; |
| | | shade?: number | any[]; |
| | | shadeClose?: boolean; |
| | | closeBtn?: number; |
| | | noTitle?: number; |
| | | }; |
| | | openAtStart?: boolean; |
| | | style?: string; |
| | | css?: any; |
| | | show?: boolean; |
| | | 其他?: any; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * widget基础类, |
| | | * 需要继承后使用,不用手动实例化,框架内部自动实例化及相关处理。 |
| | | * 【需要引入 mars3d-widget 插件库】 |
| | | * @example |
| | | * //使用示例 |
| | | * class MyWidget extends mars3d.widget.BaseWidget { |
| | | * //外部资源配置 |
| | | * get resources() { |
| | | * return [ |
| | | * 'js/test.js', //当前同目录下 |
| | | * './lib/dom2img/dom-to-image.js', //主页面相同目录下 |
| | | * ] |
| | | * } |
| | | * //弹窗配置 |
| | | * get view() { |
| | | * return { |
| | | * type: 'window', |
| | | * url: 'view.html', |
| | | * windowOptions: { width: 250 }, |
| | | * } |
| | | * } |
| | | * //初始化[仅执行1次] |
| | | * create() {} |
| | | * //每个窗口创建完成后调用 |
| | | * winCreateOK(opt, result) { |
| | | * this.viewWindow = result |
| | | * } |
| | | * //打开激活 |
| | | * activate() {} |
| | | * //关闭释放 |
| | | * disable() { |
| | | * this.viewWindow = null |
| | | * } |
| | | * } |
| | | * |
| | | * //注册到widget管理器中。 |
| | | * mars3d.widget.bindClass(MyWidget) |
| | | * @param map - 地图对象 |
| | | * @param options - 配置参数 |
| | | */ |
| | | export class BaseWidget extends BaseClass { |
| | | /** |
| | | * widget基础类, |
| | | * 需要继承后使用,不用手动实例化,框架内部自动实例化及相关处理。 |
| | | * 【需要引入 mars3d-widget 插件库】 |
| | | * @example |
| | | * //使用示例 |
| | | * class MyWidget extends mars3d.widget.BaseWidget { |
| | | * //外部资源配置 |
| | | * get resources() { |
| | | * return [ |
| | | * 'js/test.js', //当前同目录下 |
| | | * './lib/dom2img/dom-to-image.js', //主页面相同目录下 |
| | | * ] |
| | | * } |
| | | * //弹窗配置 |
| | | * get view() { |
| | | * return { |
| | | * type: 'window', |
| | | * url: 'view.html', |
| | | * windowOptions: { width: 250 }, |
| | | * } |
| | | * } |
| | | * //初始化[仅执行1次] |
| | | * create() {} |
| | | * //每个窗口创建完成后调用 |
| | | * winCreateOK(opt, result) { |
| | | * this.viewWindow = result |
| | | * } |
| | | * //打开激活 |
| | | * activate() {} |
| | | * //关闭释放 |
| | | * disable() { |
| | | * this.viewWindow = null |
| | | * } |
| | | * } |
| | | * |
| | | * //注册到widget管理器中。 |
| | | * mars3d.widget.bindClass(MyWidget) |
| | | * @param map - 地图对象 |
| | | * @param options - 配置参数 |
| | | */ |
| | | export class BaseWidget extends BaseClass { |
| | | constructor(map: Map, options: BaseWidget.widgetOptions); |
| | | /** |
| | | * 获取当前地图 |
| | |
| | | * @returns 无 |
| | | */ |
| | | getHtml(url: string, callback: (...params: any[]) => any): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * widget事件类型枚举, mars3d.widget.EventType |
| | | * 【需要引入 mars3d-widget 插件库】 |
| | | */ |
| | | export const enum WidgetEventType { |
| | | /** |
| | | * widget事件类型枚举, mars3d.widget.EventType |
| | | * 【需要引入 mars3d-widget 插件库】 |
| | | */ |
| | | export const enum WidgetEventType { |
| | | /** |
| | | * 在实例初始化之后、创建之前执行 |
| | | */ |
| | |
| | | * 加载完成,执行所有内部处理后 |
| | | */ |
| | | load = "load" |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * widget模块化框架,公共处理类 |
| | | * 【需要引入 mars3d-widget 插件库】 |
| | | */ |
| | | namespace widget { |
| | | /** |
| | | * widget模块化框架,公共处理类 |
| | | * 【需要引入 mars3d-widget 插件库】 |
| | | */ |
| | | namespace widget { |
| | | /** |
| | | * 初始化widget管理器,在构造完成map后调用一次即可。 |
| | | * @example |
| | |
| | | * @returns 无 |
| | | */ |
| | | function init(map: Map, widgetcfg?: { |
| | | defaultOptions?: BaseWidget.widgetOptions; |
| | | openAtStart?: BaseWidget.widgetOptions[]; |
| | | widgets?: BaseWidget.widgetOptions[]; |
| | | version?: string; |
| | | debugger?: boolean; |
| | | defaultOptions?: BaseWidget.widgetOptions; |
| | | openAtStart?: BaseWidget.widgetOptions[]; |
| | | widgets?: BaseWidget.widgetOptions[]; |
| | | version?: string; |
| | | debugger?: boolean; |
| | | }, _basePath?: string): void; |
| | | /** |
| | | * 获取默认init时中传入配置的 windowOptions 参数 |
| | |
| | | * @returns 指widget模块对象 |
| | | */ |
| | | function activate(item: { |
| | | map?: Map; |
| | | map?: Map; |
| | | }, noDisableOther?: boolean): BaseWidget.widgetOptions; |
| | | /** |
| | | * 获取指定的widget配置信息 |
| | |
| | | * @returns 是否存在 |
| | | */ |
| | | function listens(type: WidgetEventType, propagate?: BaseClass): boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 风场图层,基于粒子实现, |
| | | * 【需要引入 mars3d-wind 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.maxParticles = 4096] - 初始粒子总数 |
| | | * @param [options.particleHeight = 100] - 粒子的高度 |
| | | * @param [options.fadeOpacity = 0.996] - 消失不透明度 |
| | | * @param [options.dropRate = 0.003] - 下降率 |
| | | * @param [options.dropRateBump = 0.01] - 下降速度 |
| | | * @param [options.speedFactor = 0.5] - 速度系数 |
| | | * @param [options.lineWidth = 2.0] - 线宽度 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WindLayer extends BaseLayer { |
| | | /** |
| | | * 风场图层,基于粒子实现, |
| | | * 【需要引入 mars3d-wind 插件库】 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.maxParticles = 4096] - 初始粒子总数 |
| | | * @param [options.particleHeight = 100] - 粒子的高度 |
| | | * @param [options.fadeOpacity = 0.996] - 消失不透明度 |
| | | * @param [options.dropRate = 0.003] - 下降率 |
| | | * @param [options.dropRateBump = 0.01] - 下降速度 |
| | | * @param [options.speedFactor = 0.5] - 速度系数 |
| | | * @param [options.lineWidth = 2.0] - 线宽度 |
| | | * @param [options.id = uuid()] - 图层id标识 |
| | | * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 图层名称 |
| | | * @param [options.show = true] - 图层是否显示 |
| | | * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡 |
| | | * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView} |
| | | * @param options.center.lng - 经度值, 180 - 180 |
| | | * @param options.center.lat - 纬度值, -90 - 90 |
| | | * @param options.center.alt - 高度值 |
| | | * @param options.center.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360 |
| | | * @param options.center.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360 |
| | | * @param options.center.roll - 翻滚角度值,绕经度线旋转角度, 0-360 |
| | | * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。 |
| | | */ |
| | | export class WindLayer extends BaseLayer { |
| | | constructor(options?: { |
| | | maxParticles?: number; |
| | | particleHeight?: number; |
| | | fadeOpacity?: number; |
| | | dropRate?: number; |
| | | dropRateBump?: number; |
| | | speedFactor?: number; |
| | | lineWidth?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | maxParticles?: number; |
| | | particleHeight?: number; |
| | | fadeOpacity?: number; |
| | | dropRate?: number; |
| | | dropRateBump?: number; |
| | | speedFactor?: number; |
| | | lineWidth?: number; |
| | | id?: string | number; |
| | | pid?: string | number; |
| | | name?: string; |
| | | show?: boolean; |
| | | eventParent?: BaseClass | boolean; |
| | | center?: { |
| | | lng: number; |
| | | lat: number; |
| | | alt: number; |
| | | heading: number; |
| | | pitch: number; |
| | | roll: number; |
| | | }; |
| | | flyTo?: boolean; |
| | | }); |
| | | /** |
| | | * 存放风场粒子对象的容器 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | setOptions(options: any): WindLayer; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 百度 POI查询 工具类 , |
| | | * 参考文档: https://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-placeapi |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.baiduArr] - 百度KEY,实际项目中请使用自己申请的百度KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.city = '全国'] - 限定查询的区域,支持城市及对应百度编码(Citycode)(指定的区域的返回结果加权,可能返回其他城市高权重结果。若要对返回结果区域严格限制,请使用city_limit参数) |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | */ |
| | | export class BaiduPOI { |
| | | /** |
| | | * 百度 POI查询 工具类 , |
| | | * 参考文档: https://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-placeapi |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.baiduArr] - 百度KEY,实际项目中请使用自己申请的百度KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.city = '全国'] - 限定查询的区域,支持城市及对应百度编码(Citycode)(指定的区域的返回结果加权,可能返回其他城市高权重结果。若要对返回结果区域严格限制,请使用city_limit参数) |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | */ |
| | | export class BaiduPOI { |
| | | constructor(options?: { |
| | | key?: string[]; |
| | | city?: string; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | key?: string[]; |
| | | city?: string; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | }); |
| | | /** |
| | | * 百度key数组,内部轮询使用 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | getAddress(queryOptions: { |
| | | location?: LatLngPoint; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | location?: LatLngPoint; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): BaiduPOI; |
| | | /** |
| | | * 搜索提示查询 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | autoTip(queryOptions: { |
| | | text: string; |
| | | location?: LatLngPoint; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text: string; |
| | | location?: LatLngPoint; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): BaiduPOI; |
| | | /** |
| | | * 关键字搜索 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | queryText(queryOptions: { |
| | | text: string; |
| | | types?: string; |
| | | location?: { |
| | | lat: number; |
| | | lng: number; |
| | | }; |
| | | radius?: number; |
| | | radiuslimit?: boolean; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | page?: number; |
| | | count?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text: string; |
| | | types?: string; |
| | | location?: { |
| | | lat: number; |
| | | lng: number; |
| | | }; |
| | | radius?: number; |
| | | radiuslimit?: boolean; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | page?: number; |
| | | count?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): BaiduPOI; |
| | | /** |
| | | * 周边搜索(圆形搜索) |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | queryCircle(queryOptions: { |
| | | text: string; |
| | | types?: string; |
| | | location?: LatLngPoint; |
| | | radius?: number; |
| | | limit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text: string; |
| | | types?: string; |
| | | location?: LatLngPoint; |
| | | radius?: number; |
| | | limit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): BaiduPOI; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 高德 POI查询 工具类, |
| | | * 参考文档: https://lbs.amap.com/api/webservice/guide/api/search |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.gaodeArr] - 百度KEY,在实际项目中请使用自己申请的高德KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | */ |
| | | export class GaodePOI { |
| | | /** |
| | | * 高德 POI查询 工具类, |
| | | * 参考文档: https://lbs.amap.com/api/webservice/guide/api/search |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.gaodeArr] - 百度KEY,在实际项目中请使用自己申请的高德KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | */ |
| | | export class GaodePOI { |
| | | constructor(options?: { |
| | | key?: string[]; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | key?: string[]; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | }); |
| | | /** |
| | | * 高德key数组,内部轮询使用 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | getAddress(queryOptions: { |
| | | location?: LatLngPoint; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | location?: LatLngPoint; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): GaodePOI; |
| | | /** |
| | | * 高德搜索提示 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | autoTip(queryOptions: { |
| | | text: string; |
| | | location?: LatLngPoint; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text: string; |
| | | location?: LatLngPoint; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): GaodePOI; |
| | | /** |
| | | * 按限定区域搜索 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | query(queryOptions: { |
| | | text: string; |
| | | types?: string; |
| | | graphic?: BaseGraphic | any; |
| | | limit?: boolean; |
| | | page?: number; |
| | | count?: number; |
| | | error?: (...params: any[]) => any; |
| | | success?: (...params: any[]) => any; |
| | | text: string; |
| | | types?: string; |
| | | graphic?: BaseGraphic | any; |
| | | limit?: boolean; |
| | | page?: number; |
| | | count?: number; |
| | | error?: (...params: any[]) => any; |
| | | success?: (...params: any[]) => any; |
| | | }): GaodePOI; |
| | | /** |
| | | * 关键字搜索 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | queryText(queryOptions: { |
| | | text: string; |
| | | types?: string; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text: string; |
| | | types?: string; |
| | | city?: string; |
| | | citylimit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): GaodePOI; |
| | | /** |
| | | * 周边搜索(圆形搜索) |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | queryCircle(queryOptions: { |
| | | text: string; |
| | | types?: string; |
| | | location?: LatLngPoint; |
| | | radius?: number; |
| | | limit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text: string; |
| | | types?: string; |
| | | location?: LatLngPoint; |
| | | radius?: number; |
| | | limit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): GaodePOI; |
| | | /** |
| | | * 多边形搜索 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | queryPolygon(queryOptions: { |
| | | text: string; |
| | | types?: string; |
| | | polygon: any[][]; |
| | | limit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text: string; |
| | | types?: string; |
| | | polygon: any[][]; |
| | | limit?: boolean; |
| | | count?: number; |
| | | page?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): GaodePOI; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 高德 路径规划 工具类, |
| | | * 参考文档:https://lbs.amap.com/api/webservice/guide/api/direction |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.gaodeArr] - 百度KEY,在实际项目中请使用自己申请的高德KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | */ |
| | | export class GaodeRoute { |
| | | /** |
| | | * 高德 路径规划 工具类, |
| | | * 参考文档:https://lbs.amap.com/api/webservice/guide/api/direction |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.key = mars3d.Token.gaodeArr] - 百度KEY,在实际项目中请使用自己申请的高德KEY,因为我们的key不保证长期有效。 |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | */ |
| | | export class GaodeRoute { |
| | | constructor(options?: { |
| | | key?: string[]; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | key?: string[]; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | }); |
| | | /** |
| | | * 高德key数组,内部轮询使用 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | query(queryOptions: { |
| | | type: GaodeRoute.RouteType; |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | type: GaodeRoute.RouteType; |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): GaodeRoute; |
| | | /** |
| | | * 按指定类别自动查询(多个路线数组,递归处理) |
| | |
| | | * @returns 无 |
| | | */ |
| | | queryArr(queryOptions: { |
| | | type: GaodeRoute.RouteType; |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | type: GaodeRoute.RouteType; |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 计算结果中的最短距离的导航路径 |
| | |
| | | * @returns 无 |
| | | */ |
| | | queryWalking(queryOptions: { |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 骑行路径查询 (单个查询) |
| | |
| | | * @returns 无 |
| | | */ |
| | | queryBicycling(queryOptions: { |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | points: any[][]; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): void; |
| | | /** |
| | | * 驾车路径规划查询 |
| | |
| | | * @returns 无 |
| | | */ |
| | | queryDriving(queryOptions: { |
| | | points: any[][]; |
| | | avoidpolygons: any[][]; |
| | | extensions?: string; |
| | | strategy?: string; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | points: any[][]; |
| | | avoidpolygons: any[][]; |
| | | extensions?: string; |
| | | strategy?: string; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): void; |
| | | } |
| | | } |
| | | |
| | | export namespace GaodeRoute { |
| | | export namespace GaodeRoute { |
| | | /** |
| | | * 路径规划方式 |
| | | */ |
| | | enum RouteType { |
| | | Walking, |
| | | Bicycling, |
| | | Driving |
| | | Walking, |
| | | Bicycling, |
| | | Driving |
| | | } |
| | | } |
| | | } |
| | | |
| | | export namespace QueryArcServer { |
| | | export namespace QueryArcServer { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property load - 完成加载,执行所有内部处理后 |
| | | */ |
| | | type EventType = { |
| | | click: string; |
| | | load: string; |
| | | click: string; |
| | | load: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ArcGIS WFS矢量服务查询类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS服务地址, 示例:'http://server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/37', * |
| | | * @param [options.pageSize = 10] - 每页条数 * |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param [options.图层参数] - layer属性获取的图层对应的构造参数,参考{@link GeoJsonLayer} |
| | | */ |
| | | export class QueryArcServer extends BaseClass { |
| | | /** |
| | | * ArcGIS WFS矢量服务查询类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.url - ArcGIS服务地址, 示例:'http://server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/37', * |
| | | * @param [options.pageSize = 10] - 每页条数 * |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param [options.图层参数] - layer属性获取的图层对应的构造参数,参考{@link GeoJsonLayer} |
| | | */ |
| | | export class QueryArcServer extends BaseClass { |
| | | constructor(options?: { |
| | | url: string; |
| | | pageSize?: number; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | 图层参数?: any; |
| | | url: string; |
| | | pageSize?: number; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | 图层参数?: any; |
| | | }); |
| | | /** |
| | | * ArcGIS服务地址 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | query(queryOptions: { |
| | | text?: string; |
| | | column?: string; |
| | | like?: boolean; |
| | | where?: string; |
| | | graphic?: BaseGraphic | any; |
| | | page?: boolean; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text?: string; |
| | | column?: string; |
| | | like?: boolean; |
| | | where?: string; |
| | | graphic?: BaseGraphic | any; |
| | | page?: boolean; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): QueryArcServer; |
| | | /** |
| | | * 清除 |
| | |
| | | * 当前类的构造参数 |
| | | */ |
| | | readonly options: any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * GeoServer WFS服务查询类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.layer - 图层名称(命名空间:图层名称),多个图层名称用逗号隔开 |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param [options.图层参数] - layer属性获取的图层对应的构造参数,参考{@link GeoJsonLayer} |
| | | */ |
| | | export class QueryGeoServer extends BaseClass { |
| | | /** |
| | | * GeoServer WFS服务查询类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param options.layer - 图层名称(命名空间:图层名称),多个图层名称用逗号隔开 |
| | | * @param [options.headers = {}] - 将被添加到HTTP请求头。 |
| | | * @param [options.proxy] - 加载资源时使用的代理。 |
| | | * @param [options.图层参数] - layer属性获取的图层对应的构造参数,参考{@link GeoJsonLayer} |
| | | */ |
| | | export class QueryGeoServer extends BaseClass { |
| | | constructor(options?: { |
| | | layer: string; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | 图层参数?: any; |
| | | layer: string; |
| | | headers?: any; |
| | | proxy?: Cesium.Proxy; |
| | | 图层参数?: any; |
| | | }); |
| | | /** |
| | | * 用于显示查询结果的GeoJsonLayer图层,图层参数在当前类构造方法中传入 |
| | |
| | | * @returns 当前对象本身,可以链式调用 |
| | | */ |
| | | query(queryOptions: { |
| | | text?: string; |
| | | column?: string; |
| | | like?: boolean; |
| | | graphic?: BaseGraphic | any; |
| | | geoColumn?: string; |
| | | maxFeatures?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | text?: string; |
| | | column?: string; |
| | | like?: boolean; |
| | | graphic?: BaseGraphic | any; |
| | | geoColumn?: string; |
| | | maxFeatures?: number; |
| | | success?: (...params: any[]) => any; |
| | | error?: (...params: any[]) => any; |
| | | }): QueryGeoServer; |
| | | /** |
| | | * 清除 |
| | |
| | | * 当前类的构造参数 |
| | | */ |
| | | readonly options: any; |
| | | } |
| | | } |
| | | |
| | | export namespace Measure { |
| | | export namespace Measure { |
| | | /** |
| | | * @example |
| | | * //绑定监听事件 |
| | |
| | | * @property editStop - 停止编辑 标绘事件 |
| | | */ |
| | | type EventType = { |
| | | change: string; |
| | | start: string; |
| | | end: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | change: string; |
| | | start: string; |
| | | end: string; |
| | | add: string; |
| | | remove: string; |
| | | show: string; |
| | | hide: string; |
| | | click: string; |
| | | rightClick: string; |
| | | mouseOver: string; |
| | | mouseOut: string; |
| | | popupOpen: string; |
| | | popupClose: string; |
| | | tooltipOpen: string; |
| | | tooltipClose: string; |
| | | contextMenuOpen: string; |
| | | contextMenuClose: string; |
| | | contextMenuClick: string; |
| | | drawStart: string; |
| | | drawMouseMove: string; |
| | | drawAddPoint: string; |
| | | drawRemovePoint: string; |
| | | drawCreated: string; |
| | | editStart: string; |
| | | editMouseDown: string; |
| | | editMouseMove: string; |
| | | editMovePoint: string; |
| | | editRemovePoint: string; |
| | | editStyle: string; |
| | | editStop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图上量算 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.hasEdit = false] - 是否可编辑 |
| | | * @param [options.isAutoEditing = true] - 完成测量时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续测量 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.pid = -1] - 量算对应的图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 量算对应的图层名称 |
| | | */ |
| | | export class Measure extends BaseThing { |
| | | /** |
| | | * 图上量算 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.hasEdit = false] - 是否可编辑 |
| | | * @param [options.isAutoEditing = true] - 完成测量时是否自动启动编辑(需要hasEdit:true时) |
| | | * @param [options.isContinued = false] - 是否连续测量 |
| | | * @param [options.label] - 测量结果文本的样式 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.pid = -1] - 量算对应的图层父级的id,一般图层管理中使用 |
| | | * @param [options.name = ''] - 量算对应的图层名称 |
| | | */ |
| | | export class Measure extends BaseThing { |
| | | constructor(options?: { |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | label?: LabelEntity.StyleOptions; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | pid?: string | number; |
| | | name?: string; |
| | | hasEdit?: boolean; |
| | | isAutoEditing?: boolean; |
| | | isContinued?: boolean; |
| | | label?: LabelEntity.StyleOptions; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | pid?: string | number; |
| | | name?: string; |
| | | }); |
| | | /** |
| | | * 对应的矢量图层 |
| | |
| | | * @returns 长度测量控制类 对象 |
| | | */ |
| | | distance(options?: { |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | showAddText?: boolean; |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | showAddText?: boolean; |
| | | }): MeasureDistance; |
| | | /** |
| | | * 测量 贴地长度 |
| | |
| | | * @returns 贴地长度测量控制类 对象 |
| | | */ |
| | | distanceSurface(options?: { |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | showAddText?: boolean; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | showAddText?: boolean; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | }): MeasureDistanceSurface; |
| | | /** |
| | | * 剖面分析,测量线插值点的高程数据 |
| | |
| | | * @returns 剖面分析控制类 对象 |
| | | */ |
| | | section(options?: { |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | maxPointNum?: number; |
| | | addHeight?: number; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | }): MeasureDistanceSection; |
| | | /** |
| | | * 面积测量(水平面) |
| | |
| | | * @returns 面积测量控制类 对象 |
| | | */ |
| | | area(options?: { |
| | | style?: PolygonEntity.StyleOptions; |
| | | unit?: string; |
| | | style?: PolygonEntity.StyleOptions; |
| | | unit?: string; |
| | | }): MeasureArea; |
| | | /** |
| | | * 贴地面积测量 |
| | |
| | | * @returns 面积测量控制类 对象 |
| | | */ |
| | | areaSurface(options?: { |
| | | style?: PolygonEntity.StyleOptions; |
| | | unit?: string; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | style?: PolygonEntity.StyleOptions; |
| | | unit?: string; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | }): MeasureArea; |
| | | /** |
| | | * 体积测量(方量分析) |
| | |
| | | * @returns 体积测量控制类 对象 |
| | | */ |
| | | volume(options?: { |
| | | style?: PolygonEntity.StyleOptions; |
| | | unit?: string; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | height?: number; |
| | | heightLabel?: boolean; |
| | | offsetLabel?: boolean; |
| | | polygon?: PolygonEntity.StyleOptions; |
| | | polygonJzmStyle?: PolygonEntity.StyleOptions; |
| | | labelHeight?: LabelEntity.StyleOptions; |
| | | style?: PolygonEntity.StyleOptions; |
| | | unit?: string; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | height?: number; |
| | | heightLabel?: boolean; |
| | | offsetLabel?: boolean; |
| | | polygon?: PolygonEntity.StyleOptions; |
| | | polygonJzmStyle?: PolygonEntity.StyleOptions; |
| | | labelHeight?: LabelEntity.StyleOptions; |
| | | }): MeasureVolume; |
| | | /** |
| | | * 高度测量 |
| | |
| | | * @returns 高度测量控制类 对象 |
| | | */ |
| | | height(options?: { |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | }): MeasureHeight; |
| | | /** |
| | | * 三角高度测量, |
| | |
| | | * @returns 三角高度测量控制类 对象 |
| | | */ |
| | | heightTriangle(options?: { |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | style?: PolylineEntity.StyleOptions; |
| | | unit?: string; |
| | | }): MeasureHeightTriangle; |
| | | /** |
| | | * 角度测量 |
| | |
| | | * @returns 角度测量控制类 对象 |
| | | */ |
| | | angle(options?: { |
| | | style?: PolylineEntity.StyleOptions; |
| | | style?: PolylineEntity.StyleOptions; |
| | | }): MeasureAngle; |
| | | /** |
| | | * 坐标测量 |
| | |
| | | * @returns 坐标测量控制类 对象 |
| | | */ |
| | | point(options?: { |
| | | style?: PointEntity.StyleOptions; |
| | | style?: PointEntity.StyleOptions; |
| | | }): MeasurePoint; |
| | | /** |
| | | * 取消并停止绘制,如有未完成的绘制会自动删除 |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | export namespace Shadows { |
| | | export namespace Shadows { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property change - 变化了 |
| | | */ |
| | | type EventType = { |
| | | change: string; |
| | | change: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 日照分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.multiplier = 1600] - 时钟倍率,控制速度 |
| | | * @param [options.time] - 当前时间 |
| | | * @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭 |
| | | * @param [options.lighting = true] - 是否启用地球昼夜区域的覆盖效果 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class Shadows extends BaseThing { |
| | | /** |
| | | * 日照分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.multiplier = 1600] - 时钟倍率,控制速度 |
| | | * @param [options.time] - 当前时间 |
| | | * @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭 |
| | | * @param [options.lighting = true] - 是否启用地球昼夜区域的覆盖效果 |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | */ |
| | | export class Shadows extends BaseThing { |
| | | constructor(options?: { |
| | | multiplier?: number; |
| | | time?: Date; |
| | | terrain?: boolean; |
| | | lighting?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | multiplier?: number; |
| | | time?: Date; |
| | | terrain?: boolean; |
| | | lighting?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | }); |
| | | /** |
| | | * 当前时间 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace Sightline { |
| | | export namespace Sightline { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property end - 完成分析 |
| | | */ |
| | | type EventType = { |
| | | start: string; |
| | | end: string; |
| | | start: string; |
| | | end: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 通视分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.visibleColor = new Cesium.Color(0, 1, 0, 1)] - 可视区域颜色 |
| | | * @param [options.hiddenColor = new Cesium.Color(1, 0, 0, 1)] - 不可视区域颜色 |
| | | * @param [options.depthFailColor] - 当线位于地形或被遮挡时的区域颜色 |
| | | */ |
| | | export class Sightline extends BaseThing { |
| | | /** |
| | | * 通视分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.visibleColor = new Cesium.Color(0, 1, 0, 1)] - 可视区域颜色 |
| | | * @param [options.hiddenColor = new Cesium.Color(1, 0, 0, 1)] - 不可视区域颜色 |
| | | * @param [options.depthFailColor] - 当线位于地形或被遮挡时的区域颜色 |
| | | */ |
| | | export class Sightline extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | visibleColor?: Cesium.Color; |
| | | hiddenColor?: Cesium.Color; |
| | | depthFailColor?: Cesium.Color; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | visibleColor?: Cesium.Color; |
| | | hiddenColor?: Cesium.Color; |
| | | depthFailColor?: Cesium.Color; |
| | | }); |
| | | /** |
| | | * 可视区域颜色 |
| | |
| | | * @returns 分析结果 |
| | | */ |
| | | add(origin: Cesium.Cartesian3, target: Cesium.Cartesian3, options?: { |
| | | offsetHeight?: number; |
| | | offsetHeight?: number; |
| | | }): any; |
| | | /** |
| | | * 添加通视分析,插值异步分析 |
| | |
| | | * @returns 无, 分析结果在end事件中返回 |
| | | */ |
| | | addAsync(origin: Cesium.Cartesian3, target: Cesium.Cartesian3, options?: { |
| | | offsetHeight?: number; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | offsetHeight?: number; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | }): void; |
| | | /** |
| | | * 清除分析 |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 天际线 描边 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.color = new Cesium.Color(1.0, 0.0, 0.0)] - 边际线颜色 |
| | | * @param [options.width = 2] - 天际线宽度 |
| | | */ |
| | | export class Skyline extends BaseThing { |
| | | /** |
| | | * 天际线 描边 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.color = new Cesium.Color(1.0, 0.0, 0.0)] - 边际线颜色 |
| | | * @param [options.width = 2] - 天际线宽度 |
| | | */ |
| | | export class Skyline extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | color?: Cesium.Color; |
| | | width?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | color?: Cesium.Color; |
| | | width?: number; |
| | | }); |
| | | /** |
| | | * 边际线颜色 |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地下模式类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.alpha = 0.5] - 透明度 0.0-1.0 |
| | | * @param [options.color = Cesium.Color.BLAC] - 当相机在地下或球体是半透明时,渲染球体背面的颜色 |
| | | */ |
| | | export class Underground extends BaseThing { |
| | | /** |
| | | * 地下模式类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.alpha = 0.5] - 透明度 0.0-1.0 |
| | | * @param [options.color = Cesium.Color.BLAC] - 当相机在地下或球体是半透明时,渲染球体背面的颜色 |
| | | */ |
| | | export class Underground extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | alpha?: number; |
| | | color?: Cesium.Color; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | alpha?: number; |
| | | color?: Cesium.Color; |
| | | }); |
| | | /** |
| | | * 控制球体透明度的Cesium内部对象 |
| | |
| | | * 当相机在椭球上方时,距离计算从椭球上最近的点而不是相机的位置。 |
| | | */ |
| | | colorAlphaByDistance: Cesium.NearFarScalar; |
| | | } |
| | | } |
| | | |
| | | export namespace ViewShed3D { |
| | | export namespace ViewShed3D { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property end - 完成分析 |
| | | */ |
| | | type EventType = { |
| | | drawStart: string; |
| | | drawAddPoint: string; |
| | | drawMouseMove: string; |
| | | drawCreated: string; |
| | | end: string; |
| | | drawStart: string; |
| | | drawAddPoint: string; |
| | | drawMouseMove: string; |
| | | drawCreated: string; |
| | | end: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 可视域分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.position] - 视点位置,未传入值时自动激活鼠标绘制 |
| | | * @param [options.cameraPosition] - 相机位置 |
| | | * @param [options.horizontalAngle = 120] - 水平张角(度数),取值范围 0-120 |
| | | * @param [options.verticalAngle = 90] - 垂直张角(度数),取值范围 0-90 |
| | | * @param [options.visibleAreaColor = new Cesium.Color(0, 1, 0, 1)] - 可视区域颜色 |
| | | * @param [options.hiddenAreaColor = new Cesium.Color(1, 0, 0, 1)] - 不可视区域颜色 |
| | | * @param [options.alpha = 0.5] - 混合系数 0.0-1.0 |
| | | * @param [options.offsetHeight = 1.5] - 在起点增加的高度值,比如加上人的身高 |
| | | * @param [options.showFrustum = true] - 是否显示视椎体框线 |
| | | * @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭 |
| | | */ |
| | | export class ViewShed3D extends BaseThing { |
| | | /** |
| | | * 可视域分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.position] - 视点位置,未传入值时自动激活鼠标绘制 |
| | | * @param [options.cameraPosition] - 相机位置 |
| | | * @param [options.horizontalAngle = 120] - 水平张角(度数),取值范围 0-120 |
| | | * @param [options.verticalAngle = 90] - 垂直张角(度数),取值范围 0-90 |
| | | * @param [options.visibleAreaColor = new Cesium.Color(0, 1, 0, 1)] - 可视区域颜色 |
| | | * @param [options.hiddenAreaColor = new Cesium.Color(1, 0, 0, 1)] - 不可视区域颜色 |
| | | * @param [options.alpha = 0.5] - 混合系数 0.0-1.0 |
| | | * @param [options.offsetHeight = 1.5] - 在起点增加的高度值,比如加上人的身高 |
| | | * @param [options.showFrustum = true] - 是否显示视椎体框线 |
| | | * @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭 |
| | | */ |
| | | export class ViewShed3D extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | position?: LatLngPoint | Cesium.Cartesian3; |
| | | cameraPosition?: LatLngPoint | Cesium.Cartesian3; |
| | | horizontalAngle?: number; |
| | | verticalAngle?: number; |
| | | visibleAreaColor?: Cesium.Color; |
| | | hiddenAreaColor?: Cesium.Color; |
| | | alpha?: number; |
| | | offsetHeight?: number; |
| | | showFrustum?: boolean; |
| | | terrain?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | position?: LatLngPoint | Cesium.Cartesian3; |
| | | cameraPosition?: LatLngPoint | Cesium.Cartesian3; |
| | | horizontalAngle?: number; |
| | | verticalAngle?: number; |
| | | visibleAreaColor?: Cesium.Color; |
| | | hiddenAreaColor?: Cesium.Color; |
| | | alpha?: number; |
| | | offsetHeight?: number; |
| | | showFrustum?: boolean; |
| | | terrain?: boolean; |
| | | }); |
| | | /** |
| | | * 水平张角(度数),取值范围 0-120 |
| | |
| | | * 视点位置 |
| | | */ |
| | | readonly point: LatLngPoint; |
| | | } |
| | | } |
| | | |
| | | export namespace CameraHistory { |
| | | export namespace CameraHistory { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property change - 变化了 |
| | | */ |
| | | type EventType = { |
| | | change: string; |
| | | change: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 相机视角记录及处理类,含 上一视图 下一视图 等 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.maxCacheCount = 99] - 保留的历史记录最多个数 |
| | | * @param [options.limit] - 限定视角范围参数,包括以下: |
| | | * @param options.limit.position - 中心点坐标 |
| | | * @param options.limit.radius - 半径(单位:米) |
| | | * @param [options.limit.debugExtent] - 是否显示限定范围的边界 |
| | | */ |
| | | export class CameraHistory extends BaseThing { |
| | | /** |
| | | * 相机视角记录及处理类,含 上一视图 下一视图 等 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.maxCacheCount = 99] - 保留的历史记录最多个数 |
| | | * @param [options.limit] - 限定视角范围参数,包括以下: |
| | | * @param options.limit.position - 中心点坐标 |
| | | * @param options.limit.radius - 半径(单位:米) |
| | | * @param [options.limit.debugExtent] - 是否显示限定范围的边界 |
| | | */ |
| | | export class CameraHistory extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | maxCacheCount?: number; |
| | | limit?: { |
| | | position: Cesium.Cartesian3; |
| | | radius: number; |
| | | debugExtent?: boolean; |
| | | }; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | maxCacheCount?: number; |
| | | limit?: { |
| | | position: Cesium.Cartesian3; |
| | | radius: number; |
| | | debugExtent?: boolean; |
| | | }; |
| | | }); |
| | | /** |
| | | * 是否显示限定范围的边界 |
| | |
| | | * @returns 是否成功切换 |
| | | */ |
| | | goFirst(): boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 第一人称贴地漫游, |
| | | * 键盘漫游时,先单击地图激活后 按 W前进、 S后退、A左移、D右移 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.speed = 1.5] - 速度 |
| | | * @param [options.rotateSpeed = -5] - 旋转速度 |
| | | * @param [options.height = 10] - 高度 |
| | | * @param [options.maxPitch = 88] - 最大pitch角度(度数值) |
| | | */ |
| | | export class FirstPersonRoam extends BaseThing { |
| | | /** |
| | | * 第一人称贴地漫游, |
| | | * 键盘漫游时,先单击地图激活后 按 W前进、 S后退、A左移、D右移 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.speed = 1.5] - 速度 |
| | | * @param [options.rotateSpeed = -5] - 旋转速度 |
| | | * @param [options.height = 10] - 高度 |
| | | * @param [options.maxPitch = 88] - 最大pitch角度(度数值) |
| | | */ |
| | | export class FirstPersonRoam extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | speed?: number; |
| | | rotateSpeed?: number; |
| | | height?: number; |
| | | maxPitch?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | speed?: number; |
| | | rotateSpeed?: number; |
| | | height?: number; |
| | | maxPitch?: number; |
| | | }); |
| | | /** |
| | | * 速度 |
| | |
| | | * @returns 无 |
| | | */ |
| | | stopAutoForward(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace RotateOut { |
| | | export namespace RotateOut { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property stop - 停止了旋转 |
| | | */ |
| | | type EventType = { |
| | | start: string; |
| | | change: string; |
| | | stop: string; |
| | | start: string; |
| | | change: string; |
| | | stop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 相机位置不动,对外四周旋转 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.direction = false] - 旋转方向, true逆时针,false顺时针 |
| | | * @param [options.time = 60] - 飞行一周所需时间(单位 秒),控制速度 |
| | | * @param [options.autoStopAngle] - 自动停止的角度值(0-360度),未设置时不自动停止 |
| | | */ |
| | | export class RotateOut extends BaseThing { |
| | | /** |
| | | * 相机位置不动,对外四周旋转 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.direction = false] - 旋转方向, true逆时针,false顺时针 |
| | | * @param [options.time = 60] - 飞行一周所需时间(单位 秒),控制速度 |
| | | * @param [options.autoStopAngle] - 自动停止的角度值(0-360度),未设置时不自动停止 |
| | | */ |
| | | export class RotateOut extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | direction?: boolean; |
| | | time?: number; |
| | | autoStopAngle?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | direction?: boolean; |
| | | time?: number; |
| | | autoStopAngle?: number; |
| | | }); |
| | | /** |
| | | * 是否在旋转中 |
| | |
| | | * @returns 无 |
| | | */ |
| | | stop(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace RotatePoint { |
| | | export namespace RotatePoint { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property stop - 停止了旋转 |
| | | */ |
| | | type EventType = { |
| | | start: string; |
| | | change: string; |
| | | stop: string; |
| | | start: string; |
| | | change: string; |
| | | stop: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 相机绕 固定中心点 旋转 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.direction = false] - 旋转方向, true逆时针,false顺时针 |
| | | * @param [options.time = 60] - 飞行一周所需时间(单位 秒),控制速度 |
| | | * @param [options.autoStopAngle] - 自动停止的角度值(0-360度),未设置时不自动停止 |
| | | * @param [options.distance] - 可以指定旋转时相机到中心点的距离,默认不改变相对距离。 |
| | | */ |
| | | export class RotatePoint extends BaseThing { |
| | | /** |
| | | * 相机绕 固定中心点 旋转 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.direction = false] - 旋转方向, true逆时针,false顺时针 |
| | | * @param [options.time = 60] - 飞行一周所需时间(单位 秒),控制速度 |
| | | * @param [options.autoStopAngle] - 自动停止的角度值(0-360度),未设置时不自动停止 |
| | | * @param [options.distance] - 可以指定旋转时相机到中心点的距离,默认不改变相对距离。 |
| | | */ |
| | | export class RotatePoint extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | direction?: boolean; |
| | | time?: number; |
| | | autoStopAngle?: number; |
| | | distance?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | direction?: boolean; |
| | | time?: number; |
| | | autoStopAngle?: number; |
| | | distance?: number; |
| | | }); |
| | | /** |
| | | * 是否在旋转中 |
| | |
| | | * @returns 无 |
| | | */ |
| | | stop(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 街景视角模式控制, |
| | | * 1、右键拖拽,以相机视角为中心进行旋转; |
| | | * 2、中键拖拽,可以升高或降低相机高度; |
| | | * 3、左键双击,飞行定位到该点; |
| | | * 4、右键双击,围绕该点旋转。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.rotateSpeed = 30] - 右键拖拽时,旋转速度,正负控制方向。 |
| | | * @param [options.heightStep = 0.2] - 中键拖拽时,高度移动比例,控制升高或降低相机高度的速度 |
| | | * @param [options.moveStep = 0.1] - 双击定位到点时,距离目标点的距离的移动比例 0.0-1.0 |
| | | * @param [options.moveDuration] - 双击定位到点时,飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。 |
| | | * @param [options.rotatePoint] - 右键双击,围绕该点旋转时的参考,具体同{@link RotatePoint}类的构造参数。 |
| | | */ |
| | | export class StreetView extends BaseThing { |
| | | /** |
| | | * 街景视角模式控制, |
| | | * 1、右键拖拽,以相机视角为中心进行旋转; |
| | | * 2、中键拖拽,可以升高或降低相机高度; |
| | | * 3、左键双击,飞行定位到该点; |
| | | * 4、右键双击,围绕该点旋转。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.rotateSpeed = 30] - 右键拖拽时,旋转速度,正负控制方向。 |
| | | * @param [options.heightStep = 0.2] - 中键拖拽时,高度移动比例,控制升高或降低相机高度的速度 |
| | | * @param [options.moveStep = 0.1] - 双击定位到点时,距离目标点的距离的移动比例 0.0-1.0 |
| | | * @param [options.moveDuration] - 双击定位到点时,飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。 |
| | | * @param [options.rotatePoint] - 右键双击,围绕该点旋转时的参考,具体同{@link RotatePoint}类的构造参数。 |
| | | */ |
| | | export class StreetView extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | rotateSpeed?: number; |
| | | heightStep?: number; |
| | | moveStep?: number; |
| | | moveDuration?: number; |
| | | rotatePoint?: any; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | rotateSpeed?: number; |
| | | heightStep?: number; |
| | | moveStep?: number; |
| | | moveDuration?: number; |
| | | rotatePoint?: any; |
| | | }); |
| | | /** |
| | | * 右键拖拽时,旋转速度,正负控制方向。 |
| | |
| | | * 双击定位到点时,距离目标点的距离的移动比例 0.0-1.0 |
| | | */ |
| | | moveStep: number; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 等高线 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | * @param [options.contourShow = true] - 是否显示等高线 |
| | | * @param [options.spacing = 100.0] - 等高线 间隔(单位:米) |
| | | * @param [options.width = 1.5] - 等高线 线宽(单位:像素) |
| | | * @param [options.color = Cesium.Color.RED] - 等高线 颜色 |
| | | * @param [options.shadingType = 'none'] - 地表渲染效果,可选值: 无none, 高程 elevation, 坡度slope, 坡向aspect |
| | | * @param [options.colorScheme] - 地表渲染配色方案,默认值为: |
| | | * { |
| | | * elevation: { |
| | | * step: [0.0, 0.045, 0.1, 0.15, 0.37, 0.54, 1.0], |
| | | * color: ['#000000', '#2747E0', '#D33B7D', '#D33038', '#FF9742', '#FF9742', '#ffd700'], |
| | | * }, |
| | | * slope: { |
| | | * step: [0.0, 0.29, 0.5, Math.sqrt(2) / 2, 0.87, 0.91, 1.0], |
| | | * color: ['#000000', '#2747E0', '#D33B7D', '#D33038', '#FF9742', '#FF9742', '#ffd700'], |
| | | * }, |
| | | * aspect: { |
| | | * step: [0.0, 0.2, 0.4, 0.6, 0.8, 0.9, 1.0], |
| | | * color: ['#000000', '#2747E0', '#D33B7D', '#D33038', '#FF9742', '#FF9742', '#ffd700'], |
| | | * }, |
| | | * } |
| | | * @param [options.showElseArea = true] - 是否显示区域外的地图 |
| | | * @param [options.minHeight = -414.0] - 地表渲染配色方案中的 最低海拔高度 |
| | | * @param [options.maxHeight = 8777] - 地表渲染配色方案中的 最高海拔高度 |
| | | */ |
| | | export class ContourLine extends TerrainEditBase { |
| | | /** |
| | | * 等高线 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | * @param [options.contourShow = true] - 是否显示等高线 |
| | | * @param [options.spacing = 100.0] - 等高线 间隔(单位:米) |
| | | * @param [options.width = 1.5] - 等高线 线宽(单位:像素) |
| | | * @param [options.color = Cesium.Color.RED] - 等高线 颜色 |
| | | * @param [options.shadingType = 'none'] - 地表渲染效果,可选值: 无none, 高程 elevation, 坡度slope, 坡向aspect |
| | | * @param [options.colorScheme] - 地表渲染配色方案,默认值为: |
| | | * { |
| | | * elevation: { |
| | | * step: [0.0, 0.045, 0.1, 0.15, 0.37, 0.54, 1.0], |
| | | * color: ['#000000', '#2747E0', '#D33B7D', '#D33038', '#FF9742', '#FF9742', '#ffd700'], |
| | | * }, |
| | | * slope: { |
| | | * step: [0.0, 0.29, 0.5, Math.sqrt(2) / 2, 0.87, 0.91, 1.0], |
| | | * color: ['#000000', '#2747E0', '#D33B7D', '#D33038', '#FF9742', '#FF9742', '#ffd700'], |
| | | * }, |
| | | * aspect: { |
| | | * step: [0.0, 0.2, 0.4, 0.6, 0.8, 0.9, 1.0], |
| | | * color: ['#000000', '#2747E0', '#D33B7D', '#D33038', '#FF9742', '#FF9742', '#ffd700'], |
| | | * }, |
| | | * } |
| | | * @param [options.showElseArea = true] - 是否显示区域外的地图 |
| | | * @param [options.minHeight = -414.0] - 地表渲染配色方案中的 最低海拔高度 |
| | | * @param [options.maxHeight = 8777] - 地表渲染配色方案中的 最高海拔高度 |
| | | */ |
| | | export class ContourLine extends TerrainEditBase { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | contourShow?: boolean; |
| | | spacing?: number; |
| | | width?: number; |
| | | color?: Cesium.Color | string; |
| | | shadingType?: string; |
| | | colorScheme?: any; |
| | | showElseArea?: boolean; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | contourShow?: boolean; |
| | | spacing?: number; |
| | | width?: number; |
| | | color?: Cesium.Color | string; |
| | | shadingType?: string; |
| | | colorScheme?: any; |
| | | showElseArea?: boolean; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | }); |
| | | /** |
| | | * 是否显示等高线 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace FloodByGraphic { |
| | | export namespace FloodByGraphic { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property end - 完成分析 |
| | | */ |
| | | type EventType = { |
| | | start: string; |
| | | change: string; |
| | | end: string; |
| | | start: string; |
| | | change: string; |
| | | end: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 淹没分析, |
| | | * 基于polygon矢量面抬高模拟,只支持单个区域 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 区域位置,坐标位置数组 |
| | | * @param [options.style] - 淹没区域的样式 |
| | | * @param [options.speed] - 淹没速度 |
| | | * @param [options.minHeight] - 淹没起始的海拔高度(单位:米) |
| | | * @param [options.maxHeight] - 淹没结束的海拔高度(单位:米) |
| | | * @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准),未设置时根据坐标自动判断(判断可能不准确) |
| | | */ |
| | | export class FloodByGraphic extends BaseThing { |
| | | /** |
| | | * 淹没分析, |
| | | * 基于polygon矢量面抬高模拟,只支持单个区域 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 区域位置,坐标位置数组 |
| | | * @param [options.style] - 淹没区域的样式 |
| | | * @param [options.speed] - 淹没速度 |
| | | * @param [options.minHeight] - 淹没起始的海拔高度(单位:米) |
| | | * @param [options.maxHeight] - 淹没结束的海拔高度(单位:米) |
| | | * @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准),未设置时根据坐标自动判断(判断可能不准确) |
| | | */ |
| | | export class FloodByGraphic extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonEntity.StyleOptions; |
| | | speed?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | has3dtiles?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | style?: PolygonEntity.StyleOptions; |
| | | speed?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | has3dtiles?: boolean; |
| | | }); |
| | | /** |
| | | * 淹没区域 坐标位置数组 |
| | |
| | | * @returns 无 |
| | | */ |
| | | destroy(noDel?: boolean): void; |
| | | } |
| | | } |
| | | |
| | | export namespace FloodByMaterial { |
| | | export namespace FloodByMaterial { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property end - 完成分析 |
| | | */ |
| | | type EventType = { |
| | | start: string; |
| | | change: string; |
| | | end: string; |
| | | start: string; |
| | | change: string; |
| | | end: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 淹没分析 , |
| | | * 基于地球材质,可以多个区域 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | * @param [options.speed] - 淹没速度 |
| | | * @param [options.minHeight] - 淹没起始的海拔高度(单位:米) |
| | | * @param [options.maxHeight] - 淹没结束的海拔高度(单位:米) |
| | | * @param [options.showElseArea = true] - 是否显示区域外的地图 |
| | | */ |
| | | export class FloodByMaterial extends TerrainEditBase { |
| | | /** |
| | | * 淹没分析 , |
| | | * 基于地球材质,可以多个区域 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | * @param [options.speed] - 淹没速度 |
| | | * @param [options.minHeight] - 淹没起始的海拔高度(单位:米) |
| | | * @param [options.maxHeight] - 淹没结束的海拔高度(单位:米) |
| | | * @param [options.showElseArea = true] - 是否显示区域外的地图 |
| | | */ |
| | | export class FloodByMaterial extends TerrainEditBase { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | speed?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | showElseArea?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | speed?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | showElseArea?: boolean; |
| | | }); |
| | | /** |
| | | * 淹没高度(单位:米) |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | export namespace Slope { |
| | | export namespace Slope { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property end - 多个数据异步分析时,完成所有的回调事件 |
| | | */ |
| | | type EventType = { |
| | | endItem: string; |
| | | end: string; |
| | | endItem: string; |
| | | end: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 坡度坡向分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 分析区域 坐标位置数组 |
| | | * @param [options.arrow] - 箭头线的样式,包括以下: |
| | | * @param [options.arrow.show = true] - 是否显示箭头线 |
| | | * @param [options.arrow.scale = 0.3] - 箭头长度的比例(网格大小),根据绘制区域的大小和插值数来计算实际长度值。 |
| | | * @param [options.arrow.color = Cesium.Color.YELLOW] - 颜色 |
| | | * @param [options.arrow.length = 40] - 箭头长度值 |
| | | * @param [options.arrow.width = 15] - 箭头宽度值 |
| | | * @param [options.point] - 点的样式,包括以下: |
| | | * @param [options.point.show = true] - 是否显示点 |
| | | * @param [options.point.pixelSize = 9] - 像素大小 |
| | | * @param [options.point.color = Cesium.Color.RED.withAlpha(0.5)] - 颜色 |
| | | * @param [options.tooltip] - 可以指定绑定tooltip |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.popup] - 可以指定绑定popup |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | */ |
| | | export class Slope extends BaseThing { |
| | | /** |
| | | * 坡度坡向分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 分析区域 坐标位置数组 |
| | | * @param [options.arrow] - 箭头线的样式,包括以下: |
| | | * @param [options.arrow.show = true] - 是否显示箭头线 |
| | | * @param [options.arrow.scale = 0.3] - 箭头长度的比例(网格大小),根据绘制区域的大小和插值数来计算实际长度值。 |
| | | * @param [options.arrow.color = Cesium.Color.YELLOW] - 颜色 |
| | | * @param [options.arrow.length = 40] - 箭头长度值 |
| | | * @param [options.arrow.width = 15] - 箭头宽度值 |
| | | * @param [options.point] - 点的样式,包括以下: |
| | | * @param [options.point.show = true] - 是否显示点 |
| | | * @param [options.point.pixelSize = 9] - 像素大小 |
| | | * @param [options.point.color = Cesium.Color.RED.withAlpha(0.5)] - 颜色 |
| | | * @param [options.tooltip] - 可以指定绑定tooltip |
| | | * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数 |
| | | * @param [options.popup] - 可以指定绑定popup |
| | | * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数 |
| | | */ |
| | | export class Slope extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | arrow?: { |
| | | show?: boolean; |
| | | scale?: number; |
| | | color?: Cesium.Color; |
| | | length?: number; |
| | | width?: number; |
| | | }; |
| | | point?: { |
| | | show?: boolean; |
| | | pixelSize?: number; |
| | | color?: Cesium.Color; |
| | | }; |
| | | tooltip?: (...params: any[]) => any; |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | popup?: (...params: any[]) => any; |
| | | popupOptions?: Popup.StyleOptions; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | arrow?: { |
| | | show?: boolean; |
| | | scale?: number; |
| | | color?: Cesium.Color; |
| | | length?: number; |
| | | width?: number; |
| | | }; |
| | | point?: { |
| | | show?: boolean; |
| | | pixelSize?: number; |
| | | color?: Cesium.Color; |
| | | }; |
| | | tooltip?: (...params: any[]) => any; |
| | | tooltipOptions?: Tooltip.StyleOptions; |
| | | popup?: (...params: any[]) => any; |
| | | popupOptions?: Popup.StyleOptions; |
| | | }); |
| | | /** |
| | | * 添加计算的 位置 |
| | |
| | | * @returns 无,计算结果在 end事件中返回 |
| | | */ |
| | | add(positions: any[][] | LatLngPoint[] | Cesium.Cartesian3[] | LatLngPoint | Cesium.Cartesian3, options?: { |
| | | splitNum?: number; |
| | | radius?: number; |
| | | count?: number; |
| | | has3dtiles?: boolean; |
| | | splitNum?: number; |
| | | radius?: number; |
| | | count?: number; |
| | | has3dtiles?: boolean; |
| | | }): void; |
| | | /** |
| | | * 计算两点之间的坡度 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地形开挖, |
| | | * 基于地球材质,可以多个区域开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | * @param [options.clipOutSide = false] - 是否外切开挖 |
| | | * @param [options.image] - 开挖区域的井墙面贴图URL。未传入该值时,不显示开挖区域的井。 |
| | | * @param [options.imageBottom] - 当显示开挖区域的井时,井底面贴图URL |
| | | * @param [options.diffHeight] - 当显示开挖区域的井时,设置所有区域的挖掘深度(单位:米) |
| | | * @param [options.splitNum = 30] - 当显示开挖区域的井时,井墙面每两点之间插值个数 |
| | | */ |
| | | export class TerrainClip extends TerrainEditBase { |
| | | /** |
| | | * 地形开挖, |
| | | * 基于地球材质,可以多个区域开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | * @param [options.clipOutSide = false] - 是否外切开挖 |
| | | * @param [options.image] - 开挖区域的井墙面贴图URL。未传入该值时,不显示开挖区域的井。 |
| | | * @param [options.imageBottom] - 当显示开挖区域的井时,井底面贴图URL |
| | | * @param [options.diffHeight] - 当显示开挖区域的井时,设置所有区域的挖掘深度(单位:米) |
| | | * @param [options.splitNum = 30] - 当显示开挖区域的井时,井墙面每两点之间插值个数 |
| | | */ |
| | | export class TerrainClip extends TerrainEditBase { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | clipOutSide?: boolean; |
| | | image?: string; |
| | | imageBottom?: string; |
| | | diffHeight?: number; |
| | | splitNum?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | clipOutSide?: boolean; |
| | | image?: string; |
| | | imageBottom?: string; |
| | | diffHeight?: number; |
| | | splitNum?: number; |
| | | }); |
| | | /** |
| | | * 是否外切开挖 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地形开挖、淹没等分析 基础类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | */ |
| | | export class TerrainEditBase extends BaseThing { |
| | | /** |
| | | * 地形开挖、淹没等分析 基础类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 坐标位置数组,只显示单个区域【单个区域场景时使用】 |
| | | */ |
| | | export class TerrainEditBase extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | }); |
| | | /** |
| | | * 区域 列表 |
| | |
| | | * @returns 添加区域的记录对象 |
| | | */ |
| | | addArea(positions: string[] | any[][] | LatLngPoint[] | Cesium.Cartesian3[], options?: { |
| | | diffHeight?: any; |
| | | diffHeight?: any; |
| | | }): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 地形开挖 , |
| | | * 基于clippingPlanes接口,只支持单个开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 开挖区域的 坐标位置数组 |
| | | * @param [options.clipOutSide = false] - 是否外切开挖 |
| | | * @param [options.image] - 开挖区域的井墙面贴图URL。未传入该值时,不显示开挖区域的井。 |
| | | * @param [options.imageBottom] - 当显示开挖区域的井时,井底面贴图URL |
| | | * @param [options.diffHeight] - 当显示开挖区域的井时,设置区域的挖掘深度(单位:米) |
| | | * @param [splitNum = 30] - 当显示开挖区域的井时,井墙面每两点之间插值个数 |
| | | */ |
| | | export class TerrainPlanClip extends BaseThing { |
| | | /** |
| | | * 地形开挖 , |
| | | * 基于clippingPlanes接口,只支持单个开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param [options.positions] - 开挖区域的 坐标位置数组 |
| | | * @param [options.clipOutSide = false] - 是否外切开挖 |
| | | * @param [options.image] - 开挖区域的井墙面贴图URL。未传入该值时,不显示开挖区域的井。 |
| | | * @param [options.imageBottom] - 当显示开挖区域的井时,井底面贴图URL |
| | | * @param [options.diffHeight] - 当显示开挖区域的井时,设置区域的挖掘深度(单位:米) |
| | | * @param [splitNum = 30] - 当显示开挖区域的井时,井墙面每两点之间插值个数 |
| | | */ |
| | | export class TerrainPlanClip extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | clipOutSide?: boolean; |
| | | image?: string; |
| | | imageBottom?: string; |
| | | diffHeight?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | clipOutSide?: boolean; |
| | | image?: string; |
| | | imageBottom?: string; |
| | | diffHeight?: number; |
| | | }, splitNum?: number); |
| | | /** |
| | | * 开挖区域的 坐标位置数组 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 限高分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.positions] - 限高区域坐标数组 |
| | | * @param [options.height] - 限高高度(单位米),相对于bottomHeight模型地面的海拔高度的相对高度。 |
| | | * @param [options.bottomHeight] - 模型地面的海拔高度(单位米) |
| | | * @param [options.color = "#3388ff"] - 颜色 |
| | | */ |
| | | export class LimitHeight extends BaseThing { |
| | | /** |
| | | * 限高分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.positions] - 限高区域坐标数组 |
| | | * @param [options.height] - 限高高度(单位米),相对于bottomHeight模型地面的海拔高度的相对高度。 |
| | | * @param [options.bottomHeight] - 模型地面的海拔高度(单位米) |
| | | * @param [options.color = "#3388ff"] - 颜色 |
| | | */ |
| | | export class LimitHeight extends BaseThing { |
| | | constructor(options?: { |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | bottomHeight?: number; |
| | | color?: string | Cesium.Color; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | bottomHeight?: number; |
| | | color?: string | Cesium.Color; |
| | | }); |
| | | /** |
| | | * 矢量数据图层 |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Gltf模型剖切, |
| | | * 基于clippingPlanes接口,只支持单个开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.graphic - 需要裁剪的对象(gltf模型) |
| | | * @param [options.positions] - 裁剪区域坐标数组(按面或线裁剪) |
| | | * @param [options.height] - 当有裁剪区域挖时,底面的高度(单位米),未设置时不显示底面。 |
| | | * @param [options.type] - 裁剪类型(按方向类型正方向单面裁剪) |
| | | * @param [options.distance = 0] - 裁剪的距离 |
| | | * @param [options.clipOutSide = false] - 是否外裁剪 |
| | | * @param [options.edgeWidth = 0] - 裁剪区域边线宽度,0时不显示 |
| | | * @param [options.edgeColor = Cesium.Color.WHITE] - 裁剪区域边线颜色 |
| | | */ |
| | | export class ModelPlanClip extends TilesetPlanClip { |
| | | /** |
| | | * Gltf模型剖切, |
| | | * 基于clippingPlanes接口,只支持单个开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.graphic - 需要裁剪的对象(gltf模型) |
| | | * @param [options.positions] - 裁剪区域坐标数组(按面或线裁剪) |
| | | * @param [options.height] - 当有裁剪区域挖时,底面的高度(单位米),未设置时不显示底面。 |
| | | * @param [options.type] - 裁剪类型(按方向类型正方向单面裁剪) |
| | | * @param [options.distance = 0] - 裁剪的距离 |
| | | * @param [options.clipOutSide = false] - 是否外裁剪 |
| | | * @param [options.edgeWidth = 0] - 裁剪区域边线宽度,0时不显示 |
| | | * @param [options.edgeColor = Cesium.Color.WHITE] - 裁剪区域边线颜色 |
| | | */ |
| | | export class ModelPlanClip extends TilesetPlanClip { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | graphic: ModelEntity; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | type?: TilesetPlanClip.Type; |
| | | distance?: number; |
| | | clipOutSide?: boolean; |
| | | edgeWidth?: number; |
| | | edgeColor?: Cesium.Color; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | graphic: ModelEntity; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | type?: TilesetPlanClip.Type; |
| | | distance?: number; |
| | | clipOutSide?: boolean; |
| | | edgeWidth?: number; |
| | | edgeColor?: Cesium.Color; |
| | | }); |
| | | /** |
| | | * 需要裁剪的对象(gltf模型) |
| | |
| | | * 用于 局部坐标系 与 世界坐标系 的转换。 |
| | | */ |
| | | readonly inverseMatrix: Cesium.Matrix4; |
| | | } |
| | | } |
| | | |
| | | export namespace ModelPlanClip { |
| | | export namespace ModelPlanClip { |
| | | /** |
| | | * 裁剪模型 类型 枚举 同{@link TilesetPlanClip.Type} |
| | | */ |
| | | enum Type { |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 3dtiles模型裁剪 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要裁剪的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只裁剪单个区域【单个区域场景时使用】 |
| | | * @param [options.clipOutSide = false] - 是否外裁剪 |
| | | */ |
| | | export class TilesetClip extends TilesetEditBase { |
| | | /** |
| | | * 3dtiles模型裁剪 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要裁剪的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只裁剪单个区域【单个区域场景时使用】 |
| | | * @param [options.clipOutSide = false] - 是否外裁剪 |
| | | */ |
| | | export class TilesetClip extends TilesetEditBase { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | clipOutSide?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | clipOutSide?: boolean; |
| | | }); |
| | | /** |
| | | * 是否外裁剪 |
| | | */ |
| | | clipOutSide: boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 3dtiles模型分析(裁剪、压平、淹没) 基础类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要模型分析的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只分析的单个区域【单个区域场景时使用】 |
| | | */ |
| | | export class TilesetEditBase extends BaseThing { |
| | | /** |
| | | * 3dtiles模型分析(裁剪、压平、淹没) 基础类 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要模型分析的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只分析的单个区域【单个区域场景时使用】 |
| | | */ |
| | | export class TilesetEditBase extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | }); |
| | | /** |
| | | * 区域 列表 |
| | |
| | | * @returns 添加区域的记录对象 |
| | | */ |
| | | addArea(positions: string[] | any[][] | LatLngPoint[] | Cesium.Cartesian3[]): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 3dtiles模型压平 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要压平的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只压平单个区域【单个区域场景时使用】 |
| | | * @param [options.height] - 压平高度 (单位:米),基于压平区域最低点高度的偏移量 |
| | | */ |
| | | export class TilesetFlat extends TilesetEditBase { |
| | | /** |
| | | * 3dtiles模型压平 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要压平的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只压平单个区域【单个区域场景时使用】 |
| | | * @param [options.height] - 压平高度 (单位:米),基于压平区域最低点高度的偏移量 |
| | | */ |
| | | export class TilesetFlat extends TilesetEditBase { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | }); |
| | | /** |
| | | * 压平高度 (单位:米),基于压平区域最低点高度的偏移量 |
| | | */ |
| | | height: number; |
| | | } |
| | | } |
| | | |
| | | export namespace TilesetFlood { |
| | | export namespace TilesetFlood { |
| | | /** |
| | | * 当前类支持的{@link EventType}事件类型 |
| | | * @example |
| | |
| | | * @property end - 完成分析 |
| | | */ |
| | | type EventType = { |
| | | start: string; |
| | | change: string; |
| | | end: string; |
| | | start: string; |
| | | change: string; |
| | | end: string; |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 3dtiles模型淹没分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要裁剪的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只淹没单个区域【单个区域场景时使用】 |
| | | * @param [options.speed] - 淹没速度,米/秒(默认刷新频率为55Hz) |
| | | * @param [options.minHeight] - 淹没起始的海拔高度(单位:米) |
| | | * @param [options.maxHeight] - 淹没结束的海拔高度(单位:米) |
| | | * @param [options.color = new Cesium.Color(0.15, 0.7, 0.95, 0.5)] - 淹没颜色 |
| | | * @param [options.floodAll] - 是否对整个模型进行分析 |
| | | */ |
| | | export class TilesetFlood extends TilesetEditBase { |
| | | /** |
| | | * 3dtiles模型淹没分析 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要裁剪的对象(3dtiles图层) |
| | | * @param [options.positions] - 坐标位置数组,只淹没单个区域【单个区域场景时使用】 |
| | | * @param [options.speed] - 淹没速度,米/秒(默认刷新频率为55Hz) |
| | | * @param [options.minHeight] - 淹没起始的海拔高度(单位:米) |
| | | * @param [options.maxHeight] - 淹没结束的海拔高度(单位:米) |
| | | * @param [options.color = new Cesium.Color(0.15, 0.7, 0.95, 0.5)] - 淹没颜色 |
| | | * @param [options.floodAll] - 是否对整个模型进行分析 |
| | | */ |
| | | export class TilesetFlood extends TilesetEditBase { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | speed?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | color?: Cesium.Color; |
| | | floodAll?: boolean; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | speed?: number; |
| | | minHeight?: number; |
| | | maxHeight?: number; |
| | | color?: Cesium.Color; |
| | | floodAll?: boolean; |
| | | }); |
| | | /** |
| | | * 淹没速度,米/秒(默认刷新频率为55Hz) |
| | |
| | | * @returns 无 |
| | | */ |
| | | clear(): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 3dtiles模型裁剪, |
| | | * 基于clippingPlanes接口,只支持单个开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要裁剪的对象(3dtiles图层) |
| | | * @param [options.positions] - 裁剪区域坐标数组(按面或线裁剪) |
| | | * @param [options.height] - 当有裁剪区域挖时,底面的高度(单位米),未设置时不显示底面。 |
| | | * @param [options.type] - 裁剪类型(按方向类型正方向单面裁剪) |
| | | * @param [options.distance = 0] - 裁剪的距离 |
| | | * @param [options.clipOutSide = false] - 是否外裁剪 |
| | | * @param [options.edgeWidth = 0] - 裁剪区域边线宽度,0时不显示 |
| | | * @param [options.edgeColor = Cesium.Color.WHITE] - 裁剪区域边线颜色 |
| | | */ |
| | | export class TilesetPlanClip extends BaseThing { |
| | | /** |
| | | * 3dtiles模型裁剪, |
| | | * 基于clippingPlanes接口,只支持单个开挖。 |
| | | * @param [options] - 参数对象,包括以下: |
| | | * @param [options.id = uuid()] - 对象的id标识 |
| | | * @param [options.enabled = true] - 对象的启用状态 |
| | | * @param options.layer - 需要裁剪的对象(3dtiles图层) |
| | | * @param [options.positions] - 裁剪区域坐标数组(按面或线裁剪) |
| | | * @param [options.height] - 当有裁剪区域挖时,底面的高度(单位米),未设置时不显示底面。 |
| | | * @param [options.type] - 裁剪类型(按方向类型正方向单面裁剪) |
| | | * @param [options.distance = 0] - 裁剪的距离 |
| | | * @param [options.clipOutSide = false] - 是否外裁剪 |
| | | * @param [options.edgeWidth = 0] - 裁剪区域边线宽度,0时不显示 |
| | | * @param [options.edgeColor = Cesium.Color.WHITE] - 裁剪区域边线颜色 |
| | | */ |
| | | export class TilesetPlanClip extends BaseThing { |
| | | constructor(options?: { |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | type?: ClipType; |
| | | distance?: number; |
| | | clipOutSide?: boolean; |
| | | edgeWidth?: number; |
| | | edgeColor?: Cesium.Color; |
| | | id?: string | number; |
| | | enabled?: boolean; |
| | | layer: TilesetLayer; |
| | | positions?: any[][] | string[] | LatLngPoint[] | Cesium.Cartesian3[]; |
| | | height?: number; |
| | | type?: ClipType; |
| | | distance?: number; |
| | | clipOutSide?: boolean; |
| | | edgeWidth?: number; |
| | | edgeColor?: Cesium.Color; |
| | | }); |
| | | /** |
| | | * 需要裁剪的对象(3dtiles图层) |
| | |
| | | * @returns 无 |
| | | */ |
| | | updateAllNormalZ(val: number): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 控件相关 静态方法 |
| | | */ |
| | | namespace ControlUtil { |
| | | /** |
| | | * 控件相关 静态方法 |
| | | */ |
| | | namespace ControlUtil { |
| | | /** |
| | | * 注册控件类 |
| | | * @param type - 控件类型 |
| | |
| | | * @returns 创建完成的控件对象 |
| | | */ |
| | | function create(type: ControlType, options: any): BaseControl; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 通用材质 转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BaseMaterialConver extends BaseOptsConver { |
| | | /** |
| | | * 通用材质 转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BaseMaterialConver extends BaseOptsConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换为Cesium相关属性值 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图片材质 转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class ImageOptsConver extends BaseMaterialConver { |
| | | /** |
| | | * 图片材质 转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class ImageOptsConver extends BaseMaterialConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据style转换处理基类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BaseStyleConver extends BaseOptsConver { |
| | | /** |
| | | * 矢量数据style转换处理基类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BaseStyleConver extends BaseOptsConver { |
| | | constructor(options?: any); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Billboard 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BillboardStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Billboard 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BillboardStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Box矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BoxStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Box矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class BoxStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Circle 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class CircleStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Circle 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class CircleStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Corridor 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class CorridorStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Corridor 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class CorridorStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Cylinder 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class CylinderStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Cylinder 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class CylinderStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * DivGraphic 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class DivGraphicStyleConver extends BaseStyleConver { |
| | | /** |
| | | * DivGraphic 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class DivGraphicStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Ellipsoid 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class EllipsoidStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Ellipsoid 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class EllipsoidStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Label 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class LabelStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Label 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class LabelStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换Ceium对象为json简单对象,用于导出 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Model 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class ModelStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Model 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class ModelStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Path 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PathStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Path 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PathStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Plane 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PlaneStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Plane 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PlaneStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Point 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PointStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Point 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PointStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Polygon 矢量数据style转换处理类 |
| | | */ |
| | | export class PolygonStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Polygon 矢量数据style转换处理类 |
| | | */ |
| | | export class PolygonStyleConver extends BaseStyleConver { |
| | | /** |
| | | * style样式属性赋值到 entity |
| | | * @param style - 样式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Polyline 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PolylineStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Polyline 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PolylineStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * PolylineVolume 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PolylineVolumeStyleConver extends BaseStyleConver { |
| | | /** |
| | | * PolylineVolume 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class PolylineVolumeStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Rectangle 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class RectangleStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Rectangle 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class RectangleStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * RectangularSensor 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class RectangularSensorStyleConver extends BaseStyleConver { |
| | | /** |
| | | * RectangularSensor 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class RectangularSensorStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Wall 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class WallStyleConver extends BaseStyleConver { |
| | | /** |
| | | * Wall 矢量数据style转换处理类 |
| | | * @param [options] - 控制参数 |
| | | */ |
| | | export class WallStyleConver extends BaseStyleConver { |
| | | constructor(options?: any); |
| | | /** |
| | | * 转换style到Cesium对象需要的格式 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | static toJSON(czmVal: any, style?: any, isEntity?: boolean): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * DOM操作 相关静态方法类 |
| | | */ |
| | | namespace DomUtil { |
| | | /** |
| | | * DOM操作 相关静态方法类 |
| | | */ |
| | | namespace DomUtil { |
| | | /** |
| | | * 创建一个tagName的HTML元素,将其class设置为className,并可选择将其添加到container元素中 |
| | | * @param tagName - 元素类型,比如 div |
| | |
| | | * @returns 是否执行 |
| | | */ |
| | | function exitFullscreen(): boolean; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据标绘编辑相关常量 |
| | | */ |
| | | namespace DrawUtil { |
| | | /** |
| | | * 矢量数据标绘编辑相关常量 |
| | | */ |
| | | namespace DrawUtil { |
| | | /** |
| | | * 拖拽点分类 |
| | | */ |
| | |
| | | * @returns 无 |
| | | */ |
| | | function setPointStyle(value: PointPrimitive.StyleOptions): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 特效相关 静态方法 |
| | | */ |
| | | namespace EffectUtil { |
| | | /** |
| | | * 特效相关 静态方法 |
| | | */ |
| | | namespace EffectUtil { |
| | | /** |
| | | * 注册特效类 |
| | | * @param type - 特效类型 |
| | |
| | | * @returns 创建完成的特效对象 |
| | | */ |
| | | function create(type: EffectType, options: any): BaseEffect; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据 相关静态方法 |
| | | */ |
| | | namespace GraphicUtil { |
| | | /** |
| | | * 矢量数据 相关静态方法 |
| | | */ |
| | | namespace GraphicUtil { |
| | | /** |
| | | * 是否有指定类型矢量对象 |
| | | * @param type - 矢量数据类型 |
| | |
| | | * @returns 创建完成的矢量数据对象 |
| | | */ |
| | | function fromDraw(layer: GraphicLayer, options: { |
| | | type: GraphicType | string; |
| | | style?: any; |
| | | attr?: any; |
| | | name?: string; |
| | | type: GraphicType | string; |
| | | style?: any; |
| | | attr?: any; |
| | | name?: string; |
| | | }): BaseGraphic | any; |
| | | /** |
| | | * 根据cesium的entity生成Graphic的工厂方法 |
| | |
| | | * @returns 创建完成的矢量数据对象 |
| | | */ |
| | | function fromEntity(entity: Cesium.Entity, options: { |
| | | type: GraphicType | string; |
| | | style: any; |
| | | attr?: any; |
| | | type: GraphicType | string; |
| | | style: any; |
| | | attr?: any; |
| | | }): BaseEntity; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图层相关 静态方法 |
| | | */ |
| | | namespace LayerUtil { |
| | | /** |
| | | * 图层相关 静态方法 |
| | | */ |
| | | namespace LayerUtil { |
| | | /** |
| | | * 注册图层类 |
| | | * @param type - 图层类型 |
| | |
| | | * @returns 创建完成的图层对象 |
| | | */ |
| | | function create(options: { |
| | | type: LayerType; |
| | | 其他: any; |
| | | type: LayerType; |
| | | 其他: any; |
| | | }, templateValues?: any): BaseLayer; |
| | | /** |
| | | * 注册ImageryProvider类 |
| | |
| | | * @returns 地形对象 |
| | | */ |
| | | function createTerrainProvider(options: { |
| | | type: TerrainType; |
| | | url: string | Cesium.Resource; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | requestVertexNormals?: boolean; |
| | | requestWaterMask?: boolean; |
| | | requestMetadata?: boolean; |
| | | type: TerrainType; |
| | | url: string | Cesium.Resource; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | requestVertexNormals?: boolean; |
| | | requestWaterMask?: boolean; |
| | | requestMetadata?: boolean; |
| | | }, templateValues?: any): Cesium.CesiumTerrainProvider; |
| | | /** |
| | | * 获取baseLayerPicker使用的绑定地形列表 |
| | |
| | | * @returns 地形列表 |
| | | */ |
| | | function getTerrainProviderViewModels(options: any): Cesium.ProviderViewModel[]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * SDK内部统一调用console.* 打印日志的控制类,在外部可以按需开启和关闭。 |
| | | */ |
| | | namespace Log { |
| | | /** |
| | | * SDK内部统一调用console.* 打印日志的控制类,在外部可以按需开启和关闭。 |
| | | */ |
| | | namespace Log { |
| | | /** |
| | | * 是否 console.log 打印普通日志信息,可以按需关闭或开启 |
| | | * @param val - 是否打印 |
| | |
| | | * @returns 无 |
| | | */ |
| | | function logError(sources: string | any): void; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 矢量数据材质 |
| | | */ |
| | | namespace MaterialUtil { |
| | | /** |
| | | * 矢量数据材质 |
| | | */ |
| | | namespace MaterialUtil { |
| | | /** |
| | | * 创建 材质属性(用于Entity) |
| | | * @param type - 材质类型 |
| | |
| | | * @returns json简单对象 |
| | | */ |
| | | function toJSON(material: Cesium.Material | BaseMaterialProperty, style: any): any; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 图上量算 的 常用静态方法 |
| | | */ |
| | | namespace MeasureUtil { |
| | | /** |
| | | * 图上量算 的 常用静态方法 |
| | | */ |
| | | namespace MeasureUtil { |
| | | /** |
| | | * 求坐标数组的空间距离 |
| | | * @param positions - 坐标数组 |
| | |
| | | * @param options.all_distance - 已计算完成从第0点到index点的 贴地距离 |
| | | */ |
| | | type getClampDistance_endItem = (options: { |
| | | index: number; |
| | | positions: Cesium.Cartesian3[]; |
| | | distance: number; |
| | | arrDistance: number[]; |
| | | all_distance: number; |
| | | index: number; |
| | | positions: Cesium.Cartesian3[]; |
| | | distance: number; |
| | | arrDistance: number[]; |
| | | all_distance: number; |
| | | }) => void; |
| | | /** |
| | | * 异步计算贴地距离完成 的回调方法 |
| | |
| | | * @returns 无 |
| | | */ |
| | | function getClampDistance(positions: Cesium.Cartesian3[] | LatLngPoint[], options: { |
| | | scene: Cesium.Scene; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | endItem: getClampDistance_endItem; |
| | | callback: getClampDistance_callback; |
| | | scene: Cesium.Scene; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | endItem: getClampDistance_endItem; |
| | | callback: getClampDistance_callback; |
| | | }): void; |
| | | /** |
| | | * 计算面积(空间平面) |
| | |
| | | * @returns 仅 asyn:false 时返回面积,单位:平方米 |
| | | */ |
| | | function getClampArea(positions: Cesium.Cartesian3[] | LatLngPoint[], options: { |
| | | asyn: boolean; |
| | | scene: Cesium.Scene; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | callback: getClampArea_callback; |
| | | asyn: boolean; |
| | | scene: Cesium.Scene; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | callback: getClampArea_callback; |
| | | }): number | void; |
| | | /** |
| | | * 计算2点的角度值,角度已正北为0度,顺时针为正方向 |
| | |
| | | * @param event.data.direction - 坡向值(0-360度) |
| | | */ |
| | | type getSlope_endItem = (event: { |
| | | index: number; |
| | | data: { |
| | | position: Cesium.Cartesian3; |
| | | slope: number; |
| | | slopeStr1: string; |
| | | slopeStr2: string; |
| | | direction: number; |
| | | }; |
| | | index: number; |
| | | data: { |
| | | position: Cesium.Cartesian3; |
| | | slope: number; |
| | | slopeStr1: string; |
| | | slopeStr2: string; |
| | | direction: number; |
| | | }; |
| | | }) => void; |
| | | /** |
| | | * 异步计算完成所有点的坡度坡向后 的回调方法 |
| | |
| | | * @param event.data.direction - 坡向值(0-360度) |
| | | */ |
| | | type getSlope_callback = (event: { |
| | | data: { |
| | | position: Cesium.Cartesian3; |
| | | slope: number; |
| | | slopeStr1: string; |
| | | slopeStr2: string; |
| | | direction: number; |
| | | }[]; |
| | | data: { |
| | | position: Cesium.Cartesian3; |
| | | slope: number; |
| | | slopeStr1: string; |
| | | slopeStr2: string; |
| | | direction: number; |
| | | }[]; |
| | | }) => void; |
| | | /** |
| | | * 异步计算点的坡度坡向 |
| | |
| | | * @returns 坡度坡向分析类对象,分析完成方法内部会自动释放 |
| | | */ |
| | | function getSlope(options: { |
| | | map: Map; |
| | | positions: Cesium.Cartesian3[]; |
| | | radius: number; |
| | | count: number; |
| | | has3dtiles: boolean; |
| | | endItem: getSlope_endItem; |
| | | callback: getSlope_callback; |
| | | map: Map; |
| | | positions: Cesium.Cartesian3[]; |
| | | radius: number; |
| | | count: number; |
| | | has3dtiles: boolean; |
| | | endItem: getSlope_endItem; |
| | | callback: getSlope_callback; |
| | | }): Slope; |
| | | /** |
| | | * 格式化显示距离值, 可指定单位 |
| | |
| | | * @returns 带单位的格式化体积值字符串,如:20.21 方 |
| | | */ |
| | | function formatVolume(val: number, unit?: string, lang?: LangType): string; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 坐标点的转换 相关静态方法。 |
| | | * 提供了cesium内部不同坐标系之间的坐标转换、提供了国内偏移坐标系与标准坐标的转换。 |
| | | */ |
| | | namespace PointTrans { |
| | | /** |
| | | * 坐标点的转换 相关静态方法。 |
| | | * 提供了cesium内部不同坐标系之间的坐标转换、提供了国内偏移坐标系与标准坐标的转换。 |
| | | */ |
| | | namespace PointTrans { |
| | | /** |
| | | * 经度/纬度 十进制 转为 度分秒格式 |
| | | * @param value - 经度或纬度值 |
| | |
| | | * @returns 经纬度坐标数据,示例:[117.220101,31.834907] |
| | | */ |
| | | function mct2jwd(arrdata: number[]): number[]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 单个坐标或位置矩阵相关的处理 静态方法 |
| | | */ |
| | | namespace PointUtil { |
| | | /** |
| | | * 单个坐标或位置矩阵相关的处理 静态方法 |
| | | */ |
| | | namespace PointUtil { |
| | | /** |
| | | * 获取PointTrans中对应的坐标转换方法 |
| | | * srcCoordType 转 dstCoordType 对应的方法名称 |
| | |
| | | * @returns 仅 asyn:false 时返回高度值 |
| | | */ |
| | | function getSurfaceHeight(scene: Cesium.Scene, position: Cesium.Cartesian3, options?: { |
| | | asyn: boolean; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | asyn: boolean; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | }): number | void; |
| | | /** |
| | | * 获取 坐标 的 贴3dtiles模型高度 |
| | |
| | | * @returns 仅 asyn:false 时返回高度值 |
| | | */ |
| | | function getSurface3DTilesHeight(scene: Cesium.Scene, position: Cesium.Cartesian3, options?: { |
| | | asyn: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | asyn: boolean; |
| | | objectsToExclude?: array; |
| | | callback: getSurfaceHeight_callback; |
| | | }): number | void; |
| | | /** |
| | | * 获取 坐标 的 贴地高度 |
| | |
| | | * @returns 仅 asyn:false 时返回高度值 |
| | | */ |
| | | function getSurfaceTerrainHeight(scene: Cesium.Scene, position: Cesium.Cartesian3, options?: { |
| | | asyn: boolean; |
| | | callback: getSurfaceHeight_callback; |
| | | asyn: boolean; |
| | | callback: getSurfaceHeight_callback; |
| | | }): number | void; |
| | | /** |
| | | * 计算 贴地(或贴模型)高度 坐标 |
| | |
| | | * @returns 贴地坐标 |
| | | */ |
| | | function getSurfacePosition(scene: Cesium.Scene, position: Cesium.Cartesian3, options?: { |
| | | relativeHeight?: boolean; |
| | | maxHeight?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | relativeHeight?: boolean; |
| | | maxHeight?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | }): Cesium.Cartesian3; |
| | | /** |
| | | * 获取 屏幕XY坐标 对应的 笛卡尔三维坐标 |
| | |
| | | * @returns Heading Pitch Roll方向 |
| | | */ |
| | | function getHeadingPitchRollForLine(localStart: Cesium.Cartesian3, localEnd: Cesium.Cartesian3, ellipsoid?: Cesium.Ellipsoid, fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame): Cesium.HeadingPitchRoll; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 多个点 或 线面数据 相关处理 静态方法 |
| | | */ |
| | | namespace PolyUtil { |
| | | /** |
| | | * 多个点 或 线面数据 相关处理 静态方法 |
| | | */ |
| | | namespace PolyUtil { |
| | | /** |
| | | * 求坐标数组的中心点 |
| | | * @param arr - 坐标数组 |
| | |
| | | * @param options.list - 三角网对象数组,每个对象包含三角形的3个顶点(point1\point2\point3)相关值 |
| | | */ |
| | | type interPolygon_callback = (options?: { |
| | | granularity: number; |
| | | maxHeight: number; |
| | | minHeight: number; |
| | | list: array; |
| | | granularity: number; |
| | | maxHeight: number; |
| | | minHeight: number; |
| | | list: array; |
| | | }) => void; |
| | | /** |
| | | * 面内进行贴地(或贴模型)插值, 返回三角网等计算结果 |
| | |
| | | * @returns 仅 asyn:false 时返回计算结果值 |
| | | */ |
| | | function interPolygon(options?: { |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3[]; |
| | | callback: interPolygon_callback; |
| | | splitNum?: number; |
| | | asyn?: boolean; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | onlyPoint?: boolean; |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3[]; |
| | | callback: interPolygon_callback; |
| | | splitNum?: number; |
| | | asyn?: boolean; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | onlyPoint?: boolean; |
| | | }): any | void; |
| | | /** |
| | | * 计算面内最大、最小高度值 |
| | |
| | | * @returns 计算面内最大、最小高度值对象,结果示例:{ maxHeight: 100, minHeight: 21 } |
| | | */ |
| | | function getHeightRange(positions: Cesium.Cartesian3[], scene: Cesium.Scene, options?: { |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | splitNum?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | }): any; |
| | | /** |
| | | * 体积计算 |
| | |
| | | * @returns 仅 asyn:false 时返回计算结果值 |
| | | */ |
| | | function computeVolume(options?: { |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3[]; |
| | | callback: VolumeResult; |
| | | splitNum?: number; |
| | | asyn?: boolean; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3[]; |
| | | callback: VolumeResult; |
| | | splitNum?: number; |
| | | asyn?: boolean; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | }): VolumeResult | void; |
| | | /** |
| | | * 面内进行贴地(或贴模型)插值, 返回三角网等计算结果 的回调方法 |
| | |
| | | * @param options.fillVolume - 填方体积,执行updateVolume后赋值 |
| | | */ |
| | | type VolumeResult = (options?: { |
| | | granularity: number; |
| | | maxHeight: number; |
| | | minHeight: number; |
| | | list: array; |
| | | totalArea: number; |
| | | totalVolume: number; |
| | | digVolume: number; |
| | | fillVolume: number; |
| | | granularity: number; |
| | | maxHeight: number; |
| | | minHeight: number; |
| | | list: array; |
| | | totalArea: number; |
| | | totalVolume: number; |
| | | digVolume: number; |
| | | fillVolume: number; |
| | | }) => void; |
| | | /** |
| | | * 根据 minHeight最低底面高度 计算(或重新计算)填挖方体积 |
| | |
| | | * @returns 边线上的坐标点数组 |
| | | */ |
| | | function getEllipseOuterPositions(options?: { |
| | | position: Cesium.Cartesian3 | LatLngPoint; |
| | | radius: number; |
| | | semiMajorAxis: number; |
| | | semiMinorAxis: number; |
| | | count?: number; |
| | | granularity?: number; |
| | | rotation?: number; |
| | | position: Cesium.Cartesian3 | LatLngPoint; |
| | | radius: number; |
| | | semiMajorAxis: number; |
| | | semiMinorAxis: number; |
| | | count?: number; |
| | | granularity?: number; |
| | | rotation?: number; |
| | | }): Cesium.Cartesian3[]; |
| | | /** |
| | | * 格式化Rectangle矩形对象,返回经纬度值 |
| | |
| | | * @returns 边线上的4个顶点坐标点数组 |
| | | */ |
| | | function getRectangleOuterPositions(options?: { |
| | | rectangle: Cesium.Rectangle; |
| | | rotation?: number; |
| | | height?: number; |
| | | granularity?: number; |
| | | ellipsoid?: Cesium.Ellipsoid; |
| | | rectangle: Cesium.Rectangle; |
| | | rotation?: number; |
| | | height?: number; |
| | | granularity?: number; |
| | | ellipsoid?: Cesium.Ellipsoid; |
| | | }): Cesium.Cartesian3[]; |
| | | /** |
| | | * 根据传入中心点、高宽或角度,计算矩形面的顶点坐标。 |
| | |
| | | * @returns 矩形面的顶点坐标数组 |
| | | */ |
| | | function getRectPositionsByCenter(options?: { |
| | | center: Cesium.Cartesian3; |
| | | width?: number; |
| | | height?: number; |
| | | rotation?: number; |
| | | originX?: number; |
| | | originY?: number; |
| | | center: Cesium.Cartesian3; |
| | | width?: number; |
| | | height?: number; |
| | | rotation?: number; |
| | | originX?: number; |
| | | originY?: number; |
| | | }): Cesium.Cartesian3[]; |
| | | /** |
| | | * 判断点是否 多边形内 |
| | |
| | | * @returns 插值后的路线坐标数组 |
| | | */ |
| | | function interPolyline(options?: { |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | height?: number; |
| | | surfaceHeight?: boolean; |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | height?: number; |
| | | surfaceHeight?: boolean; |
| | | }): Cesium.Cartesian3[]; |
| | | /** |
| | | * 对路线进行按空间等比插值,高度:高度值按各点的高度等比计算 |
| | |
| | | * @returns 插值后的坐标对象 |
| | | */ |
| | | function interLine(positions: Cesium.Cartesian3[], options?: { |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | }): Cesium.Cartesian3[]; |
| | | /** |
| | | * 面内进行贴地(或贴模型)插值, 返回三角网等计算结果 的回调方法 |
| | |
| | | * @returns 无 |
| | | */ |
| | | function computeSurfaceLine(options?: { |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | }): void; |
| | | /** |
| | | * 求 多个点 的的贴地新坐标(不插值) |
| | |
| | | * @returns 无 |
| | | */ |
| | | function computeSurfacePoints(options?: { |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | callback: surfaceLineWork_callback; |
| | | }): void; |
| | | /** |
| | | * 异步分段分步计算贴地距离中,每计算完成2个点之间的距离后 的回调方法 |
| | |
| | | * @returns 无 |
| | | */ |
| | | function computeStepSurfaceLine(options?: { |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | endItem: computeStepSurfaceLine_endItem; |
| | | end: computeStepSurfaceLine_end; |
| | | callback: computeStepSurfaceLine_end; |
| | | scene: Cesium.Scene; |
| | | positions: Cesium.Cartesian3; |
| | | splitNum?: number; |
| | | minDistance?: number; |
| | | has3dtiles?: boolean; |
| | | objectsToExclude?: array; |
| | | offset?: number; |
| | | endItem: computeStepSurfaceLine_endItem; |
| | | end: computeStepSurfaceLine_end; |
| | | callback: computeStepSurfaceLine_end; |
| | | }): void; |
| | | /** |
| | | * 计算2点间的 曲线链路的点集(空中曲线) |
| | |
| | | * @returns 指定长度的坐标数组 ,options.point为true时,只返回数组的第1个点。 |
| | | */ |
| | | function sliceByMaxDistance(positions: Cesium.Cartesian3[], maxDistance: number, options?: { |
| | | point?: boolean; |
| | | point?: boolean; |
| | | }): Cesium.Cartesian3[] | Cesium.Cartesian3; |
| | | /** |
| | | * 求 坐标点 的 外包围凸体面(简化只保留边界线坐标) |
| | |
| | | * @returns 经纬度坐标数组,示例:[ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ] |
| | | */ |
| | | function convex(coordinates: any[][]): any[][]; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 常用静态方法 |
| | | */ |
| | | namespace Util { |
| | | /** |
| | | * 常用静态方法 |
| | | */ |
| | | namespace Util { |
| | | /** |
| | | * 判断对象是否为Number类型 |
| | | * @param obj - 对象 |
| | |
| | | * @returns Html字符串 |
| | | */ |
| | | function getTemplateHtml(options?: { |
| | | attr: any; |
| | | template: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | title: string; |
| | | edit?: boolean; |
| | | width?: number; |
| | | attr: any; |
| | | template: string | getTemplateHtml_template[] | ((...params: any[]) => any) | any; |
| | | title: string; |
| | | edit?: boolean; |
| | | width?: number; |
| | | }): string; |
| | | /** |
| | | * 获取Cesium对象值的最终value值, |
| | |
| | | * @returns 颜色值 |
| | | */ |
| | | function getColorByStyle(style: { |
| | | color: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | color: string | Cesium.Color; |
| | | opacity?: number; |
| | | randomColor?: boolean; |
| | | }, defval?: Cesium.Color): Cesium.Color; |
| | | /** |
| | | * 取属性值,简化Cesium内的属性,去掉getValue等,取最简的键值对。 |
| | |
| | | * @returns 最简的键值对属性对象 |
| | | */ |
| | | function getAttrVal(attr: any, options?: { |
| | | onlySimpleType: boolean; |
| | | onlySimpleType: boolean; |
| | | }): any; |
| | | /** |
| | | * 合并对象,对二级子属性为Object的对象也会进行融合。 |
| | |
| | | * @returns style样式 |
| | | */ |
| | | function getSymbolStyle(symbol: { |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }, attr?: any, mergeStyle?: any): any; |
| | | /** |
| | | * geojson格式 转 arcgis服务的json格式 |
| | |
| | | * @returns Graphic构造参数数组(用于创建{@link BaseGraphic}) |
| | | */ |
| | | function geoJsonToGraphics(geojson: any, options?: { |
| | | style?: any; |
| | | crs?: string; |
| | | hasEdit?: boolean; |
| | | style?: any; |
| | | crs?: string; |
| | | hasEdit?: boolean; |
| | | }, symbol?: { |
| | | type?: GraphicType; |
| | | merge?: boolean; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | type?: GraphicType; |
| | | merge?: boolean; |
| | | styleOptions: any; |
| | | styleField?: string; |
| | | styleFieldOptions?: any; |
| | | callback?: (...params: any[]) => any; |
| | | }): array; |
| | | /** |
| | | * GeoJSON格式的Feature单个对象转为 Graphic构造参数(用于创建{@link BaseGraphic}) |
| | |
| | | * @returns Graphic构造参数(用于创建{@link BaseGraphic}) |
| | | */ |
| | | function featureToGraphic(feature: any, options?: { |
| | | type?: GraphicType; |
| | | style?: any; |
| | | crs?: string; |
| | | hasEdit?: boolean; |
| | | type?: GraphicType; |
| | | style?: any; |
| | | crs?: string; |
| | | hasEdit?: boolean; |
| | | }): any; |
| | | /** |
| | | * 根据当前高度获取地图层级 |
| | |
| | | * @returns Resource对象 |
| | | */ |
| | | function getUrlResource(config: { |
| | | url: string; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | url: string; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | queryParameters?: any; |
| | | headers?: any; |
| | | }): Cesium.Resource; |
| | | /** |
| | | * 文字转base64图片 |
| | |
| | | * @returns canvas对象 |
| | | */ |
| | | function getTextImage(text: string, textStyle?: { |
| | | font?: string; |
| | | textBaseline?: string; |
| | | fill?: boolean; |
| | | fillColor?: Cesium.Color; |
| | | stroke?: boolean; |
| | | strokeWidth?: number; |
| | | strokeColor?: Cesium.Color; |
| | | backgroundColor?: Cesium.Color; |
| | | padding?: number; |
| | | outlineWidth?: number; |
| | | outlineColor?: Cesium.Color; |
| | | font?: string; |
| | | textBaseline?: string; |
| | | fill?: boolean; |
| | | fillColor?: Cesium.Color; |
| | | stroke?: boolean; |
| | | strokeWidth?: number; |
| | | strokeColor?: Cesium.Color; |
| | | backgroundColor?: Cesium.Color; |
| | | padding?: number; |
| | | outlineWidth?: number; |
| | | outlineColor?: Cesium.Color; |
| | | }): HTMLCanvasElement; |
| | | /** |
| | | * 获取用于EntityCluster聚合的圆形图标对象 |
| | |
| | | * @returns base64图片对象,包含 data URI 的DOMString。 |
| | | */ |
| | | function getCircleImage(count: number, options?: { |
| | | radius?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | fontColor?: string; |
| | | radius?: number; |
| | | color?: string; |
| | | opacity?: number; |
| | | borderWidth?: number; |
| | | borderColor?: string; |
| | | borderOpacity?: number; |
| | | fontColor?: string; |
| | | }): string; |
| | | /** |
| | | * 导出下载图片文件 |
| | |
| | | * @returns 返回Promise异步处理结果,对象为JSON数据 |
| | | */ |
| | | function fetchJson(options: { |
| | | url: string; |
| | | queryParameters?: any; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | headers?: any; |
| | | url: string; |
| | | queryParameters?: any; |
| | | proxy?: string; |
| | | templateValues?: any; |
| | | headers?: any; |
| | | }): Promise<any>; |
| | | /** |
| | | * 根据设置的lang参数,获取当前key对应语言的文本内容。 |
| | |
| | | * @returns lang参数指定的对应文本内容 |
| | | */ |
| | | function getLangText(key: string, langType: LangType): void; |
| | | } |
| | | } |
| | | |
| | | |
| | | |