google.maps.Rectangle
類
構(gòu)造方法 | |
---|---|
Rectangle( | 以給定的樣式創(chuàng)建一個(gè)正文式覆蓋物 |
方法 | |
---|---|
getBounds() | Return Value: 返回矩形的邊界 |
getDraggable() | Return Value: 返回拖拽的狀態(tài) |
getEditable() | Return Value: 返回編輯的狀態(tài) |
getMap() | Return Value: 返回矩形的Map對(duì)象 |
getVisible() | Return Value: 返回矩形的可見(jiàn)狀態(tài) |
setBounds( | Return Value: 設(shè)置矩形的邊 |
setDraggable( | Return Value: 設(shè)置是否允許拖動(dòng) |
setEditable( | Return Value: 設(shè)置是否允許編輯 |
setMap( | Return Value: 設(shè)置矩形的Map對(duì)象 |
setOptions( | Return Value: 設(shè)置矩形的選項(xiàng) |
setVisible( | Return Value: 設(shè)置可見(jiàn)狀態(tài) |
事件 | |
---|---|
bounds_changed | Arguments: 當(dāng)矩形的邊界改變時(shí)觸發(fā) |
click | Arguments: 當(dāng)鼠標(biāo)單擊矩形時(shí)觸發(fā) |
dblclick | Arguments: 當(dāng)鼠標(biāo)雙擊矩形時(shí)觸發(fā) |
drag | Arguments: 在拖動(dòng)矩形的時(shí)候反復(fù)觸發(fā) |
dragend | Arguments: 當(dāng)拖動(dòng)完成后觸發(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í)觸發(fā) |
mouseup | Arguments: 當(dāng)鼠彈起時(shí)觸發(fā) |
rightclick | Arguments: 當(dāng)鼠標(biāo)右擊矩形時(shí)觸發(fā) |
google.maps.RectangleOptions
object specification
屬性 | |
---|---|
bounds | Type: 邊界 |
clickable | Type: 是否允許單擊 |
draggable | Type: 是否允許拖拽 |
editable | Type: 是否允許編輯 |
fillColor | Type: 填充顏色 所有 CSS3顏色都可使用 |
fillOpacity | Type: 填充透明度,從0.0到1.0 |
map | Type: 矩形的Map對(duì)象 |
strokeColor | Type: 描邊顏色,所有 CSS3 顏色都可用 |
strokeOpacity | Type: 描邊透明度,從0.0到1.0 |
strokePosition | Type: 描邊屬性 可用值如下: |
strokeWeight | Type: 描邊大小,以像素為單位 |
visible | Type: 可見(jiàn)性 |
zIndex | Type: 層級(jí) |