google.maps.Polyline
類
構造函數 | |
---|---|
Polyline( | 創建一個多線段覆蓋物 |
方法 | |
---|---|
getDraggable() | Return Value: 返回是否允許拖拽 |
getEditable() | Return Value: 返回是否允許編輯 |
getMap() | Return Value: 返回Map 對象 |
getPath() | Return Value: 返回 多線段的 路徑 |
getVisible() | Return Value: 返回可見狀態 |
setDraggable( | Return Value: 設置是否允許拖拽 |
setEditable( | Return Value: 設置是否允許編輯 |
setMap( | Return Value: 設置顯示的Map對象 |
setOptions( | Return Value: 設置多線段的屬性 |
setPath( | Return Value: 設置多線段的路徑 |
setVisible( | Return Value: 設置多線段的是否可見 |
事件 | |
---|---|
click | Arguments: 當鼠標單擊時觸發 |
dblclick | Arguments: 當鼠標雙擊時觸發 |
drag | Arguments: 當多線段拖動時觸發 |
dragend | Arguments: 當多線段拖動結束后觸發 |
dragstart | Arguments: 當多線段開始拖動時觸發 |
mousedown | Arguments: 當鼠標在多線段上按下時觸發 |
mousemove | Arguments: 當鼠標在多段上移動時觸發 |
mouseout | Arguments: 當鼠標移出 多線段時觸發 |
mouseover | Arguments: 當鼠標移入時多線段時觸發 |
mouseup | Arguments: 當鼠標在多線段上彈起時觸發 |
rightclick | Arguments: 當鼠標在多線段右擊時觸發 |
google.maps.PolylineOptions
對象
屬性 | |
---|---|
clickable | Type: 是否允許單擊 |
draggable | Type: 是否允許拖拽 |
editable | Type: 是否允許編輯 |
geodesic | Type: 是否根據當前投影進行變換 |
icons | Type: Array<IconSequence> 上線段上顯示的圖標 |
map | Type: 多線段展示的Map 對象 |
path | Type: 多線段的路徑 |
strokeColor | Type: 描邊顏色 |
strokeOpacity | Type: 透明度,從0.0到1.0 |
strokeWeight | Type: 描邊的大小,單位 px |
visible | Type: 是否可見 |
zIndex | Type: 多線段的層級 |
google.maps.IconSequence
對象
屬性 | |
---|---|
fixedRotation | Type: 是否將所以的圖標的朝向一致 |
icon | Type: 圖標 |
offset | Type: 偏移量,可使用百分比,也可使用長度,單位:px,默認:100% |
repeat | Type: 多長重復,默認是 0,可接收百分比,也可使用長度,單位:px |