Packagecom.yahoo.maps.api.config
Classpublic class MapConfig
InheritanceMapConfig Inheritance flash.events.EventDispatcher

The MapConfig class retrieves the latest configuration data from Yahoo! to generate the map.



Public Properties
 PropertyDefined by
  appid : String
The Application ID
MapConfig
  configLoaded : Boolean
[read-only] Returns true if the configation XML has loaded and parsed.
MapConfig
  copyrightURL : String
[read-only] The URL to the copyright server.
MapConfig
  copyrightYear : String
[read-only] The year to display in the copyright widget
MapConfig
  defaultZoom : Number
[read-only] The default zoom level.
MapConfig
  hybTileURL : String
[read-only] The URL to the hybrid tile servers.
MapConfig
  hybVersion : String
[read-only] The current version number of the hybrid tiles.
MapConfig
  lastUpdateDate : String
[read-only] The UNIX timestamp of the latest update to the map configuration.
MapConfig
  localeCode : String
The locale code.
MapConfig
  localSearchURL : String
[read-only] The URL to the Local Search API.
MapConfig
  mapTileURL : Array
[read-only] The URL to the map tile servers.
MapConfig
  mapVersion : String
[read-only] The current version number of the map tiles.
MapConfig
  maxZoom : Number
[read-only] The maximum zoom supported.
MapConfig
  minZoom : Number
[read-only] The minimum zoom supported.
MapConfig
  satTileURL : String
[read-only] The URL to the aerial tile servers.
MapConfig
  satVersion : String
[read-only] The current version number of the aerial tiles.
MapConfig
  servicesURL : String
[read-only] The URL to the GWS server.
MapConfig
  tileSize : Number
[read-only] The size of the tiles in px.
MapConfig
  trackURL : String
[read-only] The URL to the tracking server.
MapConfig
  yahooLogoURL : String
[read-only] The URL to the Yahoo! logo to display in the copyright widget.
MapConfig
  zoomRange : Array
An array of supported zoom levels.
MapConfig
Public Methods
 MethodDefined by
  
Creates a new MapConfig object.
MapConfig
  
getConfig():void
Sends a request to retrieve the map configuration.
MapConfig
  
getInstance(appid:String = null, localeCode:String = "en"):MapConfig
[static] Returns the sole instance of this singleton class, creating it if it does not already exist.
MapConfig
Events
 EventSummaryDefined by
    MapConfig
    MapConfig
Public Constants
 ConstantDefined by
  DEFAULT_ZOOM : int = 13
[static] The default zoom level of the map.
MapConfig
  KEY_PIXEL_SHIFT : int = 75
[static] The amount of pixels to shift on navigation key press.
MapConfig
  KEY_TIME_SHIFT : int = 350
[static] The time to run the pixel shift tween
MapConfig
  TILE_BUFFER : Number = 1.5
[static] The buffer of tiles to draw around the edges of the map.
MapConfig
  TILE_SIZE : Number = 256
[static] The size of the tiles.
MapConfig
  VERSION : String = "0.9.4"
[static] The version of the API.
MapConfig
Property detail
appidproperty
appid:String  [read-write]

The Application ID

Implementation
    public function get appid():String
    public function set appid(value:String):void
configLoadedproperty 
configLoaded:Boolean  [read-only]

Returns true if the configation XML has loaded and parsed.

Implementation
    public function get configLoaded():Boolean
copyrightURLproperty 
copyrightURL:String  [read-only]

The URL to the copyright server.

Implementation
    public function get copyrightURL():String
copyrightYearproperty 
copyrightYear:String  [read-only]

The year to display in the copyright widget

Implementation
    public function get copyrightYear():String
defaultZoomproperty 
defaultZoom:Number  [read-only]

The default zoom level.

Implementation
    public function get defaultZoom():Number
hybTileURLproperty 
hybTileURL:String  [read-only]

The URL to the hybrid tile servers.

Implementation
    public function get hybTileURL():String
hybVersionproperty 
hybVersion:String  [read-only]

The current version number of the hybrid tiles.

Implementation
    public function get hybVersion():String
lastUpdateDateproperty 
lastUpdateDate:String  [read-only]

The UNIX timestamp of the latest update to the map configuration.

Implementation
    public function get lastUpdateDate():String
localeCodeproperty 
localeCode:String  [read-write]

The locale code.

Implementation
    public function get localeCode():String
    public function set localeCode(value:String):void
localSearchURLproperty 
localSearchURL:String  [read-only]

The URL to the Local Search API.

Implementation
    public function get localSearchURL():String
mapTileURLproperty 
mapTileURL:Array  [read-only]

The URL to the map tile servers.

Implementation
    public function get mapTileURL():Array
mapVersionproperty 
mapVersion:String  [read-only]

The current version number of the map tiles.

Implementation
    public function get mapVersion():String
maxZoomproperty 
maxZoom:Number  [read-only]

The maximum zoom supported.

Implementation
    public function get maxZoom():Number
minZoomproperty 
minZoom:Number  [read-only]

The minimum zoom supported.

Implementation
    public function get minZoom():Number
satTileURLproperty 
satTileURL:String  [read-only]

The URL to the aerial tile servers.

Implementation
    public function get satTileURL():String
satVersionproperty 
satVersion:String  [read-only]

The current version number of the aerial tiles.

Implementation
    public function get satVersion():String
servicesURLproperty 
servicesURL:String  [read-only]

The URL to the GWS server.

Implementation
    public function get servicesURL():String
tileSizeproperty 
tileSize:Number  [read-only]

The size of the tiles in px.

Implementation
    public function get tileSize():Number
trackURLproperty 
trackURL:String  [read-only]

The URL to the tracking server.

Implementation
    public function get trackURL():String
yahooLogoURLproperty 
yahooLogoURL:String  [read-only]

The URL to the Yahoo! logo to display in the copyright widget.

Implementation
    public function get yahooLogoURL():String
zoomRangeproperty 
zoomRange:Array  [read-write]

An array of supported zoom levels.

Implementation
    public function get zoomRange():Array
    public function set zoomRange(value:Array):void
Constructor detail
MapConfig()constructor
public function MapConfig()

Creates a new MapConfig object.

Method detail
getConfig()method
public function getConfig():void

Sends a request to retrieve the map configuration.

getInstance()method 
public static function getInstance(appid:String = null, localeCode:String = "en"):MapConfig

Returns the sole instance of this singleton class, creating it if it does not already exist.

Parameters
appid:String (default = null)
 
localeCode:String (default = "en")

Returns
MapConfig
Event detail
configFailureevent 
Event object type: MapConfigEvent

configSuccessevent  
Event object type: MapConfigEvent

Constant detail
DEFAULT_ZOOMconstant
public static const DEFAULT_ZOOM:int = 13

The default zoom level of the map.

KEY_PIXEL_SHIFTconstant 
public static const KEY_PIXEL_SHIFT:int = 75

The amount of pixels to shift on navigation key press.

KEY_TIME_SHIFTconstant 
public static const KEY_TIME_SHIFT:int = 350

The time to run the pixel shift tween

TILE_BUFFERconstant 
public static const TILE_BUFFER:Number = 1.5

The buffer of tiles to draw around the edges of the map.

TILE_SIZEconstant 
public static const TILE_SIZE:Number = 256

The size of the tiles.

VERSIONconstant 
public static const VERSION:String = "0.9.4"

The version of the API.