IMapProvider
public interface
loom.modestmaps.mapproviders.IMapProvider
Description
$Id$
API overview
Constructor
IMapProvider
()
Attributes
Public attributes
| supportsHighDPI: Boolean | read-only |
| tileHeight: Number | read-only |
| tileWidth: Number | read-only |
| usingHighDPI: Boolean | read-only |
Functions
Public functions
| coordinateLocation ( coordinate: Coordinate ): Location | |
| coordinateLocationStatic ( coordinate: Coordinate ): Location | |
| geometry (): String |
A string which describes the projection and transformation of a map provider |
| getTileUrls ( coord: Coordinate ): Vector.<String> | |
| locationCoordinate ( location: Location ): Coordinate | |
| outerLimits (): Vector.<Coordinate> |
Get top left outer-zoom limit and bottom right inner-zoom limits, as Coordinates in a two element array |
| sourceCoordinate ( coord: Coordinate ): Coordinate |
Munge coordinate for purposes of image selection and marker containment |
| toString (): String |
Constructor
IMapProvider ()
Attributes
Functions
coordinateLocation ( coordinate: Coordinate ): Location
Parameters
| coordinate: Coordinate |
Returns
| Location | untransformed and unprojected location for a coordinate. |
getTileUrls ( coord: Coordinate ): Vector.<String>
Parameters
| coord: Coordinate |
Returns
| Vector | an array of Strings urls (or HTTPRequest) for the images needed for this tile coordinate. |
locationCoordinate ( location: Location ): Coordinate
Parameters
| location: Location |
Returns
| Coordinate | projected and transformed coordinate for a location. |
outerLimits (): Vector.<Coordinate>
Get top left outer-zoom limit and bottom right inner-zoom limits, as Coordinates in a two element array.
sourceCoordinate ( coord: Coordinate ): Coordinate
Munge coordinate for purposes of image selection and marker containment. E.g., useful for cylindical projections with infinite horizontal scroll.
Parameters
| coord: Coordinate |