Class: CanvasLayer
new CanvasLayer(options)
Parameters:
Name |
Type |
Description |
options |
Object
|
源相关选项设置。 |
- Source:
-
View2D/Layer/CanvasLayer.js
Members
-
context :string
-
canvas上下文对象.
Type:
- Source:
-
View2D/Layer/CanvasLayer.js
-
drawOnMove
-
地图移动时执行的方法.
- Source:
-
View2D/Layer/CanvasLayer.js
-
map :string
-
添加的地图容器
Type:
- Source:
-
View2D/Layer/CanvasLayer.js
Methods
-
_drawLayer()
-
_drawLayer
- Source:
-
View2D/Layer/CanvasLayer.js
-
_prepareDrawParams()
-
prepareDrawParams
- Source:
-
View2D/Layer/CanvasLayer.js
-
addTo(map)
-
与地图对象关联.
Parameters:
Name |
Type |
Description |
map |
object
|
map对象. |
- Source:
-
View2D/Layer/CanvasLayer.js
-
clear()
-
清除
- Source:
-
View2D/Layer/CanvasLayer.js
-
draw()
-
draw
- Source:
-
View2D/Layer/CanvasLayer.js
-
pause()
-
暂停
- Source:
-
View2D/Layer/CanvasLayer.js
-
play()
-
播放
- Source:
-
View2D/Layer/CanvasLayer.js
-
prepareToDraw()
-
prepareToDraw
- Source:
-
View2D/Layer/CanvasLayer.js
-
remove()
-
移除并销毁。
- Source:
-
View2D/Layer/CanvasLayer.js
-
setOpacity()
-
设置透明度
- Source:
-
View2D/Layer/CanvasLayer.js