| Package | com.yahoo.maps.api.overlays |
| Class | public class CircleOverlay |
| Inheritance | CircleOverlay Overlay flash.display.Sprite |
var centerLatLon:LatLon = _map.centerLatLon.clone(); var overlay:CircleOverlay = new CircleOverlay(centerLatLon, 5000); _map.overlayManager.addOverlay(overlay);
| Property | Defined by | ||
|---|---|---|---|
| centerLatLon : LatLon
The center location of the circle.
| CircleOverlay | ||
![]() | container : Sprite
A reference to the maps overlay container.
| Overlay | |
| fillAlpha : Number = 1
The alpha value for the fill area.
| CircleOverlay | ||
| fillColor : uint
The hexidecimal color value for the fill area.
| CircleOverlay | ||
| lineAlpha : Number
The alpha value for the line.
| CircleOverlay | ||
| lineColor : uint
The hexidecimal color value for the line.
| CircleOverlay | ||
| lineThickness : Number
The thickness of the polyline in pixels
| CircleOverlay | ||
| map : IYahooMap
[write-only]
| CircleOverlay | ||
| pixelRadius : Number [read-only]
The radius of the circle in pixels given the center latitude and zoom level.
| CircleOverlay | ||
| radiusMeters : Number
The radius in meters of the circle.
| CircleOverlay | ||
| Method | Defined by | ||
|---|---|---|---|
|
CircleOverlay(centerLatLon:LatLon, radiusMeters:Number, fillColor:uint = 0x0000FF, fillAlpha:Number = 1, lineColor:uint = 0x000000, lineAlpha:Number = 1, lineThickness:Number = 1)
Creates a new CircleOverlay object.
| CircleOverlay | ||
![]() |
destroy():void
Frees the overlays resources in preparation for garbage collection.
| Overlay | |
![]() |
getLatLonToLocalPoint(latlon:LatLon):Point
Converts a LatLon point to a local XY Point
| Overlay | |
![]() |
getLocalPointToLatLon(point:Point):LatLon
Converts a local XY point to a LatLon object.
| Overlay | |
![]() |
lineToLatLon(latlon:LatLon):void
Draws a line using the current line style from the current drawing position to the specified LatLon location; the current drawing position is then set to the LatLon location.
| Overlay | |
![]() |
moveToLatLon(latlon:LatLon):void
Moves the current drawing position to the specified latitude and longitude point.
| Overlay | |
![]() |
onMapMove(event:YahooMapEvent):void
Map move event handler.
| Overlay | |
![]() |
onMapResize(event:YahooMapEvent):void
Map resize event handler.
| Overlay | |
|
onMapZoom(event:YahooMapEvent):void
Map zoom event handler.
| CircleOverlay | ||
![]() |
onTypeChanged(event:YahooMapEvent):void
Map type change event handler.
| Overlay | |
|
redraw():void
Redraws the polyline using the assigned location.
| CircleOverlay | ||
| centerLatLon | property |
centerLatLon:LatLon [read-write]The center location of the circle.
Implementation public function get centerLatLon():LatLon
public function set centerLatLon(value:LatLon):void
| fillAlpha | property |
public var fillAlpha:Number = 1The alpha value for the fill area.
| fillColor | property |
public var fillColor:uintThe hexidecimal color value for the fill area.
| lineAlpha | property |
public var lineAlpha:NumberThe alpha value for the line.
| lineColor | property |
public var lineColor:uintThe hexidecimal color value for the line.
| lineThickness | property |
public var lineThickness:NumberThe thickness of the polyline in pixels
| map | property |
| pixelRadius | property |
pixelRadius:Number [read-only]The radius of the circle in pixels given the center latitude and zoom level.
Implementation public function get pixelRadius():Number
| radiusMeters | property |
radiusMeters:Number [read-write]The radius in meters of the circle.
Implementation public function get radiusMeters():Number
public function set radiusMeters(value:Number):void
| CircleOverlay | () | constructor |
public function CircleOverlay(centerLatLon:LatLon, radiusMeters:Number, fillColor:uint = 0x0000FF, fillAlpha:Number = 1, lineColor:uint = 0x000000, lineAlpha:Number = 1, lineThickness:Number = 1)Creates a new CircleOverlay object.
ParameterscenterLatLon:LatLon — The center location of the circle.
|
|
radiusMeters:Number — The radius in meters of the circle.
|
|
fillColor:uint (default = 0x0000FF) — The hexidecimal color value for the fill area.
|
|
fillAlpha:Number (default = 1) — The alpha value for the fill area.
|
|
lineColor:uint (default = 0x000000) — The hexidecimal color value for the line.
|
|
lineAlpha:Number (default = 1) — The alpha value for the line.
|
|
lineThickness:Number (default = 1) — The thickness of the polyline in pixels
|
| onMapZoom | () | method |
public override function onMapZoom(event:YahooMapEvent):voidMap zoom event handler.
Parametersevent:YahooMapEvent |
| redraw | () | method |
public function redraw():voidRedraws the polyline using the assigned location.