Package | com.google.maps.interfaces |
Interface | public interface IPolygon extends IOverlay, IWrappableEventDispatcher, flash.events.IEventDispatcher, IWrappable |
Implementors | Polygon |
Method | Defined by | ||
---|---|---|---|
![]() |
getBaseEventDispatcher():Object
Retrieves the base event dispatcher object that allows access to event
dispatching capability for cross-domain objects.
| IWrappableEventDispatcher | |
![]() |
Retrieves the default pane that this overlay should be placed on
if none is explicitly specified (when the overlay is added through the
IMap.addOverlay() call).
| IOverlay | |
getInnerPolylineCount():Number
Returns the number of polylines that make up the inner boundaries of
this polygon.
| IPolygon | ||
getInnerVertex(line:Number, index:Number):LatLng
Returns the LatLng of the vertex with the specified index from the
specified inner polyline boundary.
| IPolygon | ||
getInnerVertexCount(line:Number):Number
Returns the number of vertices in a specified inner line.
| IPolygon | ||
Returns the LatLngBounds of this polygon, or null if the polygon
contains no points.
| IPolygon | ||
Retrieves the polygon's options.
| IPolygon | ||
getOuterVertex(index:Number):LatLng
Returns the vertex from the outer boundary with the specified index.
| IPolygon | ||
getOuterVertexCount():Number
Returns the number of vertices in the outer line.
| IPolygon | ||
![]() |
positionOverlay(zoomChanged:Boolean):void
Reposition the overlay on the screen.
| IOverlay | |
setOptions(options:PolygonOptions):void
Updates the polygon's options.
| IPolygon |
getInnerPolylineCount | () | method |
public function getInnerPolylineCount():Number
Returns the number of polylines that make up the inner boundaries of this polygon.
ReturnsNumber — Number of polylines making up the inner polygon boundaries.
|
getInnerVertex | () | method |
public function getInnerVertex(line:Number, index:Number):LatLng
Returns the LatLng of the vertex with the specified index from the specified inner polyline boundary.
Parametersline:Number — Index of the inner polyline.
|
|
index:Number — Index of the target vertex within the specified polyline.
|
LatLng —
Lat-lng of the specified vertex.
|
getInnerVertexCount | () | method |
public function getInnerVertexCount(line:Number):Number
Returns the number of vertices in a specified inner line.
Parametersline:Number — Index of the inner line.
|
Number — Number of vertices.
|
getLatLngBounds | () | method |
public function getLatLngBounds():LatLngBounds
Returns the LatLngBounds of this polygon, or null if the polygon contains no points.
ReturnsLatLngBounds |
getOptions | () | method |
public function getOptions():PolygonOptions
Retrieves the polygon's options. Use the setOptions() method to modify options on the polygon.
ReturnsPolygonOptions —
Full set of options on the polygon.
|
See also
getOuterVertex | () | method |
public function getOuterVertex(index:Number):LatLng
Returns the vertex from the outer boundary with the specified index.
Parametersindex:Number — Index of the target vertex.
|
LatLng —
Lat-lng of the specified vertex.
|
getOuterVertexCount | () | method |
public function getOuterVertexCount():Number
Returns the number of vertices in the outer line.
ReturnsNumber — Number of vertices.
|
setOptions | () | method |
public function setOptions(options:PolygonOptions):void
Updates the polygon's options.
The options
parameter may specify a complete or partial set
of polygon options. If a partial set of options is specified, it will
supplement the existing polygon options, overriding only the values that
were set explicitly and leaving the rest unchanged.
For example, the following piece of code will modify the polygon's
fill alpha, leaving the rest of its options unchanged.
var options:PolygonOptions =
new PolygonOptions( { fillStyle: { alpha: 0.2 }} );
myPolygon.setOptions(options);
options:PolygonOptions — New full or partial set of options for the polygon.
|