# MapGIS Client for JavaScript API

Common Cesium-Plugin MapboxGL-Plugin Leaflet-Plugin OpenLayers-Plugin Video-Plugin
API文档

#### # new createColorTexture(options)

天际线分析

#### 参数:

名称 | 类型 | 默认值 | 描述
--- | --- | --- | ---
`options` | Object |  | 附加选项
`scene` | Object |  | 场景
`color` | Cesium.Color | new Cesium.Color(1.0,0.0,0.0,1.0) | 天际线颜色
`analysisEndCallBack` | function |  | 回调函数,返回天际线点坐标数组,点坐标为世界坐标

##### 示例

    const { SkyLineAnalysis } = zondy.cesium
    // ES6引入方式
    import { SkyLineAnalysis } from "@mapgis/webclient-cesium-plugin"
    const manager = scene.VisualAnalysisManager;
    const skyLineAn = new SkyLineAnalysis(
         {
              scene: scene,
              color: new Cesium.Color(0.5, 0.8, 0.3),
              analysisEndCallBack: getPositionCallBack
         });
      manager.add(skyLineAn);
      function getPositionCallBack(result) {}

构造函数
成员变量
方法
事件