| Package | com.yahoo.maps.api.markers |
| Class | public class Marker |
| Inheritance | Marker flash.display.Sprite |
| Implements | IMarker |
| Subclasses | LoaderMarker, SearchMarker, SimpleMarker |
See also
| Property | Defined by | ||
|---|---|---|---|
| address : Address
The markers location as an Address
| Marker | ||
| container : Sprite
The container in which all markers are children of.
| Marker | ||
| dragEnabled : Boolean
Determines whether the marker is draggable.
| Marker | ||
| groupId : String
An ID which you can assign to the marker, to enable you to fetch a group of markers using the MarkerManager.
| Marker | ||
| latlon : LatLon
The markers location as a latitude and longitude.
| Marker | ||
| manager : MarkerManager | Marker | ||
| map : IYahooMap
A reference to the owning YahooMap instance.
| Marker | ||
| maxZoom : int
The maximum zoom level this marker should be shown at.
| Marker | ||
| minZoom : int
The minimum zoom level this marker should be shown at.
| Marker | ||
| Method | Defined by | ||
|---|---|---|---|
|
Marker()
Creates a new Marker object.
| Marker | ||
|
Returns the markers current position as a LatLon object by converting the markers local XY point.
| Marker | ||
|
destroy():void
Frees the markers resources in preparation for garbage collection.
| Marker | ||
|
getLatLonToLocalPoint(latlon:LatLon):Point
Converts a LatLon object to a local XY point.
| Marker | ||
|
getLocalPointToLatLon(point:Point):LatLon
Converts a local XY point to a LatLon object.
| Marker | ||
|
promoteToTop():void
Sets the marker child index (its depth) to the top in the marker container.
| Marker | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Marker | ||||
| Marker | ||||
| Marker | ||||
| Marker | ||||
| Marker | ||||
| Marker | ||||
| Marker | ||||
| address | property |
address:Address [read-write]The markers location as an Address
Implementation public function get address():Address
public function set address(value:Address):void
See also
| container | property |
container:Sprite [read-write]The container in which all markers are children of.
Implementation public function get container():Sprite
public function set container(value:Sprite):void
| dragEnabled | property |
dragEnabled:Boolean [read-write]Determines whether the marker is draggable.
Implementation public function get dragEnabled():Boolean
public function set dragEnabled(value:Boolean):void
| groupId | property |
public var groupId:StringAn ID which you can assign to the marker, to enable you to fetch a group of markers using the MarkerManager.
| latlon | property |
latlon:LatLon [read-write]The markers location as a latitude and longitude.
Implementation public function get latlon():LatLon
public function set latlon(value:LatLon):void
See also
| manager | property |
manager:MarkerManager [read-write]Implementation
public function get manager():MarkerManager
public function set manager(value:MarkerManager):void
| map | property |
map:IYahooMap [read-write]A reference to the owning YahooMap instance.
Implementation public function get map():IYahooMap
public function set map(value:IYahooMap):void
| maxZoom | property |
public var maxZoom:intThe maximum zoom level this marker should be shown at.
| minZoom | property |
public var minZoom:intThe minimum zoom level this marker should be shown at.
| Marker | () | constructor |
public function Marker()Creates a new Marker object.
| calcLatLon | () | method |
public function calcLatLon():LatLonReturns the markers current position as a LatLon object by converting the markers local XY point.
ReturnsLatLon |
| destroy | () | method |
public function destroy():voidFrees the markers resources in preparation for garbage collection.
| getLatLonToLocalPoint | () | method |
public function getLatLonToLocalPoint(latlon:LatLon):PointConverts a LatLon object to a local XY point.
Parameterslatlon:LatLon |
Point |
| getLocalPointToLatLon | () | method |
public function getLocalPointToLatLon(point:Point):LatLonConverts a local XY point to a LatLon object.
Parameterspoint:Point |
LatLon |
| promoteToTop | () | method |
public function promoteToTop():voidSets the marker child index (its depth) to the top in the marker container.
| markerAdded | event |
| markerDrag | event |
| markerDragStart | event |
| markerDragStop | event |
| markerGeocodeError | event |
| markerGeocodeSuccess | event |
| markerRemoved | event |