GoogleMaps/API/doc/ClassReference/48-GPolygon の変更点-N☆E 学習帳

[ リロード ]   [ ソース ]  [ トップ | 一覧 | 単語検索 | 最新 | バックアップ | ヘルプ ]


// author:1
// author_ucd:dRyZ3ZII0gc6 wye
*GPolygon [class]

http://www.google.com/apis/maps/documentation/

**Version2 (&font(Red){2007.1新規};)

>This is very similar to a GPolyline, except that you can additionally specify a fill color and opacity.

***Constructor

|TLEFT:97%||c
|Constructor |Description|h
|GPolygon(points, strokeColor?, strokeWeight?, strokeOpacity?, fillColor?, fillOpacity?) |Creates a polygon from an array of vertices. The colors are given as a string that contains the color in hexadecimal numeric HTML style, i.e. #RRGGBB. The weight is the width of the line in pixels. The opacities is given as a number between 0 and 1. The line will be antialiased and semitransparent. (&font(Fuchsia){Since 2.69};)|

***Methods

|TLEFT:97%||c
|Methods |Return Value |Description|h
|getVertexCount() |Number |Returns the number of vertices in the polygon. (&font(Fuchsia){Since 2.69};)|
|getVertex(index) |GLatLng |Returns the vertex with the given index in the polygon. (&font(Fuchsia){Since 2.69};)|


***Events

|TLEFT:97%||c
|Events |Arguments |Description|h
|remove |none |This event is fired when the polygon is removed from the map, using GMap2.removeOverlay() or GMap2.clearOverlays().|