Constructor
new Scatter(options)
Example
//构造地图对象
 var map = new GeoGlobe.Map({
    style: Cfg.style,
    container: 'map',
    zoom: 16,
    bearing: 0,
	pitch: 0,
    units: "degrees",
    center: [114.20509630753577, 30.776055193053764]
 });
 //构造可视化定制图层
 var custom = new GeoGlobe.Visuals.Custom();
 //添加到地图中
 custom.addTo(map);
 //通过jquery加载json数据
 $.getJSON('../../data/xuzhou.json', function (result) {
    //构造地域分布(散点)图层
    var scatter = new GeoGlobe.Visuals.Custom.Scatter({
        id: "scatter_1",
        data: result.features,
        visibility: true,
        legend:{
            show: true,
            left: 10,
            top: 10,
            col: 1,
            itemSize: 10,
            itemColors: ["#4f19c7","#c71969","#1984c7","#8419c7","#c76919","#c78419","#199fc7","#9f19c7",
                "#69c719","#b9c719","#3419c7","#19b9c7","#19c74f","#c79f19","#19c7b9","#34c719",
                "#FFD7AA","#8DD7FF","#FFD766"],
            itemStatuses: [1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0],
            padding: 5
        },
        rendererOptions: {
            markPoint: {
                unactivatedDrawable: false,
                symbol: 'square',
                symbolSize: 1
            }
        }
    });
    //添加到可视化定制图层
    scatter.addTo(custom);
    //绘制
    custom.render();
 });
    Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            Object | 
                Properties
  | 
        
Members
cacheCanvas :Array
    离屏画布集合
    Type:
- Array
 
cacheCanvasContext :Array
    离屏画布的上下文集合
    Type:
- Array
 
canvas :Array
    画布集合,使用分层画布分别绘制
    Type:
- Array
 
canvasContext :Array
    画布的上下文集合
    Type:
- Array
 
legendLabels :Array
    图例标签名数组
    Type:
- Array
 
MarkPointsSet :function
    标注对象集类
    Type:
- function
 
markPointsSets :Array
    标注对象集
    Type:
- Array
 
visibility :Boolean
    图层默认是否显示
    Type:
- Boolean
 
Methods
addTo(custom)
    关联可视化定制图层对象
    Parameters:
| Name | Type | Description | 
|---|---|---|
custom | 
            
            GeoGlobe.Visuals.Custom | 
clearCanvas()
    画布清空
        
            
    
    destroy()
    销毁图层
        
            
    
    draw()
    图层绘制
        
            
    
    drawCanvas()
    绘制标注集到画布
        
            
    
    drawLegend(index)
    绘制图例
    Parameters:
| Name | Type | Description | 
|---|---|---|
index | 
            
            Number | 当前绘制的类型索引 | 
lazydraw()
    图层懒绘制
        
            
    
    onMove()
    图层(地图)移动时触发
        
            
    
    onMoveEnd()
    图层(地图)移动结束触发
        
            
    
    onResize()
    图层自适应
        
            
    
    redraw()
    图层重绘
        
            
    
    render()
    渲染图层
        
            
    
    setData(data)
    数据的处理,构造标注对象集对象
    Parameters:
| Name | Type | Description | 
|---|---|---|
data | 
            
            Array | 数据 | 
setVisible(visibility)
    图层、图例的显示与隐藏
    Parameters:
| Name | Type | Description | 
|---|---|---|
visibility | 
            
            Boolean | 可见性 | 
stopDraw()
    停止绘制
        
            
    
    updateXY()
    重新计算标注集的屏幕坐标