public var allTilesLoaded:Boolean = false
public var allViewableTilesLoaded:Boolean = false
protected var currentCursor:int
protected var cursorManager:CursorManager
public static var EVENT_CLICK:Number = 0
public static var EVENT_DBLCLICK:Number = 1
public static var EVENT_NONE:Number = -1
protected var globeSettings:GlobeSettings
height:Number [read-only]Implementation
public function get height():Number
protected var mapIcons:Array
public static var OPER_RECENTER:Number = 0
public static var OPER_RECENTERZOOM:Number = 1
protected var pois:Array
protected var shadows:Array
public var showHyb:Boolean = false
public var showMap:Boolean = true
public var showRte:Boolean = false
public var showSat:Boolean = false
public static var TYPE_HYBRID:String = "hyb"
public static var TYPE_MAP:String = "map"
public static var TYPE_SATELLITE:String = "sat"
width:Number [read-only]Implementation
public function get width():Number
protected var zoomSettings:ZoomSettings
public function TileMap(key:String, scale:int = 1, latLng:IPointLL = null, type:String = "map", mapInit:MapInit = null)
Function to add control to Map.
Parameters
| key:String — key provided in MyAccount
|
| |
| scale:int (default = 1) — or zoom level (1-16)
|
| |
| latLng:IPointLL (default = null) — latitude and longitude
|
| |
| type:String (default = "map") — type ("map", "sat", "hyb")
|
| |
| mapInit:MapInit (default = null) |
public function addControl(control:Control, position:MapCornerPlacement = null):void
Function to add control to Map.
Parameters
| control:Control — Control derived object to add to the map.
|
| |
| position:MapCornerPlacement (default = null) — position to place the control on the map.
|
public function addOverlay(overlay:ShapeOverlay):void
Function to add the overlay to the map. Fires the "overlayadded" event on the map.
Parameters
public function addPoi(poi:Poi, depthType:String = "top", fireEvent:Boolean = true):void
Function to add the poi to the map. Fires the "poiadded" event on the map.
Parameters
| poi:Poi — Poi New poi to add.
|
| |
| depthType:String (default = "top") |
| |
| fireEvent:Boolean (default = true) |
public function addRouteHighlight(shapeRect:IRectLL, highlightURL:String, sessionId:Object = null, bestFit:Boolean = false, keepCenter:Boolean = false, minZoom:int = 1, maxZoom:int = 16):voidParameters
| shapeRect:IRectLL |
| |
| highlightURL:String |
| |
| sessionId:Object (default = null) |
| |
| bestFit:Boolean (default = false) |
| |
| keepCenter:Boolean (default = false) |
| |
| minZoom:int (default = 1) |
| |
| maxZoom:int (default = 16) |
public function bestFit(keepCenter:Boolean = false, minZoom:int = 1, maxZoom:int = 16):voidParameters
| keepCenter:Boolean (default = false) |
| |
| minZoom:int (default = 1) |
| |
| maxZoom:int (default = 16) |
public function bestFitLL(arrayLL:Array, keepCenter:Boolean = false, minZoomLevel:int = 1, maxZoomLevel:int = 16):void
A function that will pan and zoom the map to "best fit" to the nearest
zoom level around the points passed in.
Parameters
| arrayLL:Array — array of PointLL objects.
|
| |
| keepCenter:Boolean (default = false) — will cause the map to retain the
same center latitude/longitude as existed before the call; false (default)
will allow the map center latitude/longitude to change.
|
| |
| minZoomLevel:int (default = 1) — zoom level (default = 1).
|
| |
| maxZoomLevel:int (default = 16) — zoom level (default = 16).
|
public function enableDragging(benable:Boolean):void
Function to enable/disable map dragging.
Parameters
| benable:Boolean — benable true/false to set state of map dragging.
|
public function getBackgroundColor():Number
Returns
public function getBestFitMargin():int
Returns
public function getBoundsLL():IRectLL
Retrieves an IRectLL object for the upper-left, lower-right corners of the Map.
Returns
public function getCenter():IPointLL
Function to return the center of the map in geographic coordinates.
Returns
public function getCollisionInfo(rect:IRectXY):IPointXY
Given a rectangle determins the amount a map must be moved for no collision in display
Parameters
Returns
protected function getControls():Array
Returns
public function getDeclutter():Declutter
Returns
public function getDragEnabled():Boolean
Function to return state of map dragging.
Returns
public function getDragOffset():IPointXY
Returns
public function getGlobeSettings():GlobeSettings
Returns
public function getInfoWindow():InfoWindow
Function to return a reference to the maps info window. One info window exists per map, and is repositioned over pois when clicked.
Returns
public function getLogoPlacement(logoId:Number):MapCornerPlacementParameters
Returns
public function getMapFriction():Number
Returns
public function getMapType():String
Function to get the current map type. Possible values include:
- "map" - 2D normal map
- "sat" - satellite imagery
- "hyb" - hybrid map
Returns
public function getOverlays():OverlayCollection
Returns
public function getPois():PoiCollection
Function to return poi collection.
Returns
public function getPrintableBitmap(bitWidth:int, bitHeight:int, maintainAspectRatio:Boolean):BitmapDataParameters
| bitWidth:int |
| |
| bitHeight:int |
| |
| maintainAspectRatio:Boolean |
Returns
public function getRolloversEnabled():Boolean
Function to get if rollover functionality is on.
Returns
See also
public function getRolloverWindow():RolloverWindow
Function to return a reference to the maps rollover window. One rollover window exists per map, and is repositioned over pois when rollovers are enabled.
Returns
public function getSize():Size
Function to return map size.
Returns
See also
public function getZoomLevel():int
Returns
public function getZoomSettings():ZoomSettings
Returns
public function llToPix(ll:IPointLL):IPointXY
Function to convert geographical coordinates to pixel coordinates relative to the current map displayed.
Parameters
Returns
public function llToPixWithDragOffset(ll:IPointLL):IPointXYParameters
Returns
public function openInfoWindow(pointXY:IPointXY):void
Function to open the info window over the map at specified pixel coordinate. The coordinate represents the spot the below the "tail" of the info window.
Parameters
| pointXY:IPointXY — pixel coordinate to open the info window to.
|
public function panEast(percent:Number):voidParameters
public function panNorth(percent:Number):voidParameters
public function panNorthEast(percent:Number):voidParameters
public function panNorthWest(percent:Number):voidParameters
public function panSouth(percent:Number):voidParameters
public function panSouthEast(percent:Number):voidParameters
public function panSouthWest(percent:Number):voidParameters
public function panToLatLng(latLng:IPointLL):void
Function to slide the mp to the new center specified. If point is greater than 100 pixels out of map boundaries the map is snapped to center, else the map will smooth srcoll to new center.
Parameters
| latLng:IPointLL — new geographic center point.
|
public function panWest(percent:Number):voidParameters
public function pixToLL(xy:IPointXY, wrapAround:Boolean = true):IPointLL
Function to convert pixel coordinates to geographical coordinates relative to the current map displayed.
Parameters
| xy:IPointXY — to get converted.
|
| |
| wrapAround:Boolean (default = true) |
Returns
public function printMap():void
public function removeAllOverlays():void
Function to remove all overlays from the map.
public function removeAllPois(fireRemoveEvents:Boolean = true):void
Function to remove the current collection of pois from the map Events are fired for each poi in the old collection when removed and a "mapcleared" event.
Parameters
| fireRemoveEvents:Boolean (default = true) |
public function removeControl(control:Control):void
Function to remove the control from the Map.
Parameters
| control:Control — control the control to remove.
|
public function removeOverlay(overlay:ShapeOverlay):void
Function to remove the overlay from the map. Fires the "overlayremoved" event on the map.
Parameters
public function removePoi(poi:Poi, fireEvent:Boolean = true):void
Function to remove the poi from the map. Fires the "poiremoved" event on the map.
Parameters
| poi:Poi — poi to be removed.
|
| |
| fireEvent:Boolean (default = true) |
public function removeRouteHighlight():void
public function replaceOverlays(overlayCollection:OverlayCollection):void
Function to remove the current collection of overlays from the map and add the collection specified to the map. Events are fired for each overlay in the old collection when removed and a "mapcleared" event just before adding the new overlays from the new collection.
Parameters
public function replacePois(poiCollection:PoiCollection):void
Function to remove the current collection of pois from the map and add the collection specified to the map. Events are fired for each poi in the old collection when removed and a "mapcleared" event just before adding the new pois from the new collection.
Parameters
public function restoreState():void
Restores the saved map position, zoom level, and map type.
See also
public function saveState():void
Stores the current map position, zoom level, and map type for later
retrieval.
See also
public function scrollMap(sx:Number, sy:Number):voidParameters
public function setBackgroundColor(color:Number):voidParameters
public function setBestFitMargin(bfm:int):voidParameters
public function setCenter(mqLatLng:IPointLL, zoom:int = -1):void
Function to set the center of the map and optionally change the zoom level.
Parameters
| mqLatLng:IPointLL — point to be the new map center.
|
| |
| zoom:int (default = -1) — new zoom level .
|
public function setCenterXY(pointXY:IPointXY):voidParameters
public function setClickOperation(event:Number, operation:Number):voidParameters
| event:Number |
| |
| operation:Number |
public function setGlobeSettings(globeSettings:GlobeSettings):voidParameters
public function setInfoContent(content:Object):void
Function to set the content for the info window as HTML text.
Parameters
| content:Object — content the info window content text.
|
public function setInfoTitle(title:String):void
Function to set the title for the info window as HTML text.
Parameters
| title:String — title the info window title text.
|
public function setInfoWindow(infoWindow:InfoWindow):voidParameters
public function setKey(key:String):voidParameters
public function setLogoPlacement(logoId:Number, pos:MapCornerPlacement):voidParameters
public function setMapFriction(friction:Number):voidParameters
public function setMapType(type:String):void
Function to set the map type for this map.
Parameters
| type:String — type the type to change the map to. See getMapType for valid values.
|
See also
public function setRolloversEnabled(benable:Boolean):void
Function to enable rollover behavior for when the mouse rolls over pois on the map. When enabled, rollover windows will display when mouse is over a poi.
Parameters
| benable:Boolean — flag to enable/disable rollover functionality of map.
|
public function setRolloverWindow(rolloverWindow:RolloverWindow):voidParameters
public function setSize(size:Size):void
Function to resize the map.
Parameters
| size:Size — object containing the new height and width of the map.
|
See also
public function setZoomLevel(zoom:int):void
Function to zoom the map to the specified zoom level. Causes a "zoomend" event to be fired on the map.
Parameters
| zoom:int — level the new zoom level.
|
public function setZoomSettings(zs:ZoomSettings):voidParameters
public function slideMapByOffset(point:IPointXY):voidParameters
public function slideMapToPoint(ptxy:IPointXY):voidParameters
public function updatePoi(poi:Poi, offset:IPointXY = null):voidParameters
public function zoomIn():void
public function zoomOut():void
public function zoomToRect(rectLL:IRectLL, keepCenter:Boolean = false, minZoom:Number = 1, maxZoom:Number = 16):void
Function to zoom the map to the closest zoom level that fits the specified rectangle.
Parameters
| rectLL:IRectLL — rectangle to use as boundary.
|
| |
| keepCenter:Boolean (default = false) — to specify if current map center is used or center of rectangle is used for center of map.
|
| |
| minZoom:Number (default = 1) — zoom level to use even if rect needs a lower zoom level to fit.
|
| |
| maxZoom:Number (default = 16) — zoom level to use even if rect needs a higher zoom level to fit.
|