<< Click to Display Table of Contents >>
new sg.controls.LayerSwipe()
Description
此控制項會建立一個可拖曳的按鈕,使用者能夠透過此按鈕來控制圖層在地圖上的顯示範圍。
Position
controls.js
Parameters
Parameter |
Type |
Description |
||||||||||||||||||
param |
Object |
控制項設定物件 set object
|
||||||||||||||||||
node |
DOMNODE |
控制項節點 |
Properties
Properties |
Type |
Description |
layers |
Array.<Object> |
加入的圖層 |
left |
Number |
拖曳條水平位置,只在type為vertical有作用 |
map |
MapBase |
目標MapBase |
top |
Number |
拖曳條垂直位置,只在type為horizontal有作用 |
node |
DOMNODE |
控制項節點 |
type |
String |
控制項樣式,設定拖曳條的方向。垂直為vertical (預設值),水平為horizontal |
Methods
Methods |
Type |
Description |
destroy() |
none |
移除控制項 |
hide() |
none |
隱藏控制項 |
show() |
none |
顯示控制項 |
startup() |
none |
初始化控制項 |
Example
|
©2015 Supergeo Technologies Inc.