| Package | com.yahoo.maps.api.managers |
| Class | public class MarkerManager |
| Property | Defined by | ||
|---|---|---|---|
| markerContainer : Sprite [read-only]
Returns the marker container in which markers are shown on.
| MarkerManager | ||
| markers : Array [read-only]
An Array of the markers currently active on the map.
| MarkerManager | ||
| Method | Defined by | ||
|---|---|---|---|
|
MarkerManager(container:Sprite, map:IYahooMap)
Creates a new MarkerManager object.
| MarkerManager | ||
|
Adds a marker to the markerContainer, placed on the map based on its latlon or address property.
| MarkerManager | ||
|
destroy():void
Prepares this object for garbage-collection.
| MarkerManager | ||
|
Returns a BoundingBox object that contains all the markers currently active in the manager.
| MarkerManager | ||
|
getMarkersById(groupId:String):Array
Returns an array of markers whose
groupId property match the provided groupId search string. | MarkerManager | ||
|
getMarkersOnStage():Array
Returns an array of markers currently added to the stage.
| MarkerManager | ||
|
getVisibleMarkers():Array
Returns an array of markers that are visible on the stage.
| MarkerManager | ||
|
refresh():void
Refreshes the position of all markers based on its stored latitude and longitude.
| MarkerManager | ||
|
removeAllMarkers():void
Removes all markers from the markerContainer and the manager, and prepares the marker for garbage collection.
| MarkerManager | ||
|
removeMarker(marker:Marker):void
Removes a marker from the map and the manager.
| MarkerManager | ||
|
resetPosition(marker:Marker):void
Resets the position of the marker on the map based on its stored latitude and longitude, then sets the visibility of the marker based on its minZoom and maxZoom properties.
| MarkerManager | ||
| markerContainer | property |
markerContainer:Sprite [read-only]Returns the marker container in which markers are shown on.
Implementation public function get markerContainer():Sprite
| markers | property |
markers:Array [read-only]An Array of the markers currently active on the map.
Implementation public function get markers():Array
| MarkerManager | () | constructor |
public function MarkerManager(container:Sprite, map:IYahooMap)Creates a new MarkerManager object.
Parameterscontainer:Sprite |
|
map:IYahooMap |
| addMarker | () | method |
public function addMarker(marker:Marker):voidAdds a marker to the markerContainer, placed on the map based on its latlon or address property. The location in which the marker is placed is based on priority, if a latlon value exists, the marker will use that over an address. If no latlon or address is present, an error will be thrown.
Parametersmarker:Marker |
| destroy | () | method |
public function destroy():voidPrepares this object for garbage-collection.
| getMarkerBounds | () | method |
public function getMarkerBounds():BoundingBoxReturns a BoundingBox object that contains all the markers currently active in the manager.
ReturnsBoundingBox |
| getMarkersById | () | method |
public function getMarkersById(groupId:String):Array
Returns an array of markers whose groupId property match the provided groupId search string.
groupId:String |
Array |
| getMarkersOnStage | () | method |
public function getMarkersOnStage():ArrayReturns an array of markers currently added to the stage.
ReturnsArray |
| getVisibleMarkers | () | method |
public function getVisibleMarkers():ArrayReturns an array of markers that are visible on the stage.
ReturnsArray |
| refresh | () | method |
public function refresh():voidRefreshes the position of all markers based on its stored latitude and longitude.
| removeAllMarkers | () | method |
public function removeAllMarkers():voidRemoves all markers from the markerContainer and the manager, and prepares the marker for garbage collection.
| removeMarker | () | method |
public function removeMarker(marker:Marker):voidRemoves a marker from the map and the manager.
Parametersmarker:Marker |
| resetPosition | () | method |
public function resetPosition(marker:Marker):voidResets the position of the marker on the map based on its stored latitude and longitude, then sets the visibility of the marker based on its minZoom and maxZoom properties.
Parametersmarker:Marker |