google.maps.Polygon
類
構(gòu)造函數(shù) | |
---|---|
Polygon( | 創(chuàng)建一個(gè)多邊形 |
方法 | |
---|---|
getDraggable() | Return Value: 返回是否允許拖拽 |
getEditable() | Return Value: 返回是否允許編輯 |
getMap() | Return Value: 返回多邊形的Map對(duì)象 |
getPath() | Return Value: 返回多邊形的路徑 |
getPaths() | Return Value: 返回多邊形的所有路徑 |
getVisible() | Return Value: 返回多邊形的可見狀態(tài) |
setDraggable( | Return Value: 設(shè)置是否允許拖動(dòng) |
setEditable( | Return Value: 設(shè)置是否允許編輯 |
setMap( | Return Value: 設(shè)置多邊形的Map對(duì)象,傳入null,表示將多邊形移除 |
setOptions( | Return Value: 設(shè)置多邊形的相關(guān)屬性 |
setPath( | Return Value: 設(shè)置多邊形的路徑 |
setPaths( | Return Value: 設(shè)置多個(gè)路徑 |
setVisible( | Return Value: 設(shè)置可見狀態(tài) |
事件 | |
---|---|
click | Arguments: 當(dāng)鼠標(biāo)單擊多邊形時(shí)觸發(fā) |
dblclick | Arguments: 當(dāng)鼠標(biāo)雙擊多邊形時(shí)觸發(fā) |
drag | Arguments: 當(dāng)鼠標(biāo)拖動(dòng)時(shí)反復(fù)觸發(fā) |
dragend | Arguments: 當(dāng)拖動(dòng)結(jié)束后 |
dragstart | Arguments: 當(dāng)拖動(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)移出多邊形區(qū)域時(shí)觸發(fā) |
mouseover | Arguments: 當(dāng)鼠標(biāo)在多邊形上移動(dòng)時(shí)觸發(fā) |
mouseup | Arguments: 當(dāng)鼠標(biāo)在多邊形上彈起時(shí)觸發(fā) |
rightclick | Arguments: 當(dāng)鼠標(biāo)在多邊形右擊時(shí)觸發(fā) |
google.maps.PolygonOptions
對(duì)象
屬性 | |
---|---|
clickable | Type: 是否允許單擊 |
draggable | Type: 是否允許拖動(dòng) |
editable | Type: 是否允許編輯 |
fillColor | Type: 填充顏色 |
fillOpacity | Type: 透明度,從0.0到1.0 |
geodesic | Type: 是否允許多邊形根據(jù)投影相應(yīng)的就換 |
map | Type: 多邊形的Map對(duì)象 |
paths | Type: 多邊形的路徑 |
strokeColor | Type: 描邊顏色,支持所以 CSS3 顏色 |
strokeOpacity | Type: 描邊透明度 0.0到1.0 |
strokePosition | Type: String 描邊的位置,可用的值: google.maps.StrokePosition.INSIDE google.maps.StrokePosition.CENTER google.maps.StrokePosition.OUTSIDE IE8及更早瀏覽器不支持 |
strokeWeight | Type: 描邊的寬度 |
visible | Type: 是否可見 |
zIndex | Type: 多邊形的層級(jí) |