Look Out!
This planning document is wildly out of date, and will be replaced by current details from source:trunk/as2/lib/com/modestmaps/Map.as ASAP.
Classes
MapViewer
Properties
Methods
setMapProvider( provider : IMapProvider ) : Void
Sets the MapProvider for the viewer.
mapPointToPoint( mapPoint : MapPoint, parentMc : MovieClip ) : Point
Converts the position in mapPoint to an x/y coordinate relative to the origin of parentMc.
pointToMapPoint( point : Point, parentMc : MovieClip ) : MapPoint?
Converts the position in point which is relative to the origin of parentMc to lat/lon coordinates.
getMapBounds() : MapBounds? Returns the MapBounds of the map currently displayed onscreen.
Events
startDrag
Fired when the map drag starts.
mapMove
Fired on each frame of map move.
stopDrag
Fired when map drag stops.
startZoom
Fired when map starts zoom.
stopZoom
Fired when map stops zoom.
startPan
Fired when map starts pan.
stopPan
Fired when map stops pan.
invalidated
Fired whenever the map source data is changed and neccesitates a full redraw.
MapBounds
Properties
- upperLeft : MapPoint
- upperRight : MapPoint
- lowerLeft : MapPoint
- lowerRight : MapPoint
- center : MapPoint
- latMin : Number
- latMax : Number
- longMin : Number
- longMax : Number
MapPoint
Properties
- lat: Number
- long: Number
Interfaces
IMapProvider
Methods
getTileWidth() : Number
Returns the width of a tile for the given implementation.
getTileHeight() : Number
Returns the heightof a tile for the given implementation.
getColsForZoomLevel( zoom : Number ) : Number
Returns the max number of columns for the given zoom.
getRowsForZoomLevel( zoom : Number ) : Number
Returns the max number of rows for the given zoom.
getImageUrlForTile( row : Number, col : Number, zoom : Number, mapMode : Number ) : /*String*/Array
Returns a url for a given tile and mapMode ( Map, Satellite, Hybrid ).
