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