Constructor
new Migration(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);
 //构造迁徙图层
 var migration = new GeoGlobe.Visuals.Custom.Migration({
    id: "migration_1",
    data: [{
        "type": "Feature",
        "properties": {name: "湖北省", value: 666},
        "geometry": {
            "type": "Point",
            "coordinates": [112.26577320468478, 30.98857642486671]
        }
    },{
        "type": "Feature",
        "properties": {name: "山东省", value: 299},
        "geometry": {
            "type": "Point",
            "coordinates": [118.15725615843111,36.354896713378366]
        }
    }],
    visibility: true,
    direction: "out",
    location: {
        name: "香港特别行政区",
        lonLat: [114.12694391453464, 22.380716926328258]
    },
    rendererOptions: {
        markLine: {
            hoverable: true,
            curveness: 0.6,
            effect: {
                color: '#fff',
                scaleSize: 3,
                period: 25
            },
            itemStyle: {
                width: 1,
                dash: [5, 5]
            }
        },
        markPoint: {
            symbol: "ring",
            symbolMinSize: 20,
            symbolMaxSize: 40,
            effect: {
                scaleSize: 3,
                period: 20
            },
            itemStyle: {
                color: {
                    "0": "rgba(58, 200, 0, 0.5)",
                    "0.5": "rgba(243, 255, 0, 0.5)",
                    "1": "rgba(255, 20, 0, 0.5)"
                }//"rgba(255,0,0,0.5)"
            },
            label: {
                show: false
            }
        }
    }
 });
 //添加到可视化定制图层
 migration.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
 
MarkLine :function
    标线类
    Type:
- function
 
markLines :Array
    标线对象集
    Type:
- Array
 
MarkPoint :function
    标注类
    Type:
- function
 
markPoints :Array
    标注对象集
    Type:
- Array
 
visibility :Boolean
    图层默认是否显示
    Type:
- Boolean
 
Methods
addTo(custom)
    关联可视化定制图层对象
    Parameters:
| Name | Type | Description | 
|---|---|---|
custom | 
            
            GeoGlobe.Visuals.Custom | 
clearCanvas()
    画布清空
        
            
    
    destroy()
    销毁图层
        
            
    
    draw()
    图层绘制
        
            
    
    drawCanvas1()
    将标线、标注静态部分绘制到画布1
        
            
    
    drawCanvas2()
    将标线动画部分绘制到画布2
        
            
    
    drawCanvas3()
    将标注动画部分绘制到画布3
        
            
    
    hideTooltip()
    关闭悬浮提示
        
            
    
    hover(x, y)
    鼠标悬浮时触发
    Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            Number | 鼠标在主画布上的位置(x轴方向) | 
y | 
            
            Number | 鼠标在主画布上的位置(y轴方向) | 
onMouseMove(event)
    鼠标指针悬停事件
    Parameters:
| Name | Type | Description | 
|---|---|---|
event | 
            
            Object | 事件参数 | 
onMove()
    图层(地图)移动时触发
        
            
    
    onMoveEnd()
    图层(地图)移动结束触发
        
            
    
    onResize()
    图层自适应
        
            
    
    redraw()
    图层重绘
        
            
    
    render()
    渲染图层
        
            
    
    setData(data)
    数据的处理,构造标注、标线对象
    Parameters:
| Name | Type | Description | 
|---|---|---|
data | 
            
            Array | 数据 | 
setVisible(visibility)
    图层的显示与隐藏
    Parameters:
| Name | Type | Description | 
|---|---|---|
visibility | 
            
            Boolean | 可见性 | 
stopDraw()
    停止绘制
        
            
    
    updateXY()
    重新计算标线、标注的屏幕坐标