|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MMProjection
Defined in MultimapAPI
| Constructor Summary | |
MMProjection
( <integer> zoom_factors )
An abstract class, the methods of which should be overridden to be used by an MMMapType. |
|
| Method Summary | |
void
|
checkTileRange( <MMPoint> tile, <integer> zoom_factor, tilesize )
Checks whether the given tile coordinates are valid for the projection. |
boolean
|
checkValidZoomFactor( <integer> zoom_factor, <integer> zoom_factors )
Checks whether the given zoom factor is valid for the given value of zoom factors. |
MMPoint
|
fromLatLonToPixel( <MMLatLon> pos, <integer> zoom_factor )
Returns map coordinates in pixels for a point with the given coordinates, at the specified zoom factor. |
MMLatLon
|
fromPixelToLatLon( <MMPoint> pixel, <integer> zoom_factor, unbounded )
Returns map coordinates in lat/lon for a point with the given coordinates in pixels, at the specified zoom factor. |
MMPoint
|
getAxisMultiplier()
Custom map tiles are numbered from 0,0 in the top left with numbers increasing to the right and downwards. |
void
|
getWrapWidth( <integer> zoom_factor )
Returns the number of pixels after which the map repeats itself because it has wrapped around the earth. |
| Constructor Detail |
MMProjection( <integer> zoom_factors )
zoom_factors - The number of zoom factors you want this projection to work over.
| Method Detail |
void checkTileRange( <MMPoint> tile, <integer> zoom_factor, tilesize )
tile - Coordinates of a tile. *
zoom_factor - The zoom factor to check the tile at.
tile_size - The size of the tile.
boolean checkValidZoomFactor( <integer> zoom_factor, <integer> zoom_factors )
zoom_factor - The zoom factor to check.
zoom_factors - The number of zoom factors to check within.
MMPoint fromLatLonToPixel( <MMLatLon> pos, <integer> zoom_factor )
pos - Geographic position of the point.
zoom_factor - The zoom factor at which you want the pixels returned.
MMLatLon fromPixelToLatLon( <MMPoint> pixel, <integer> zoom_factor, unbounded )
pixel - Pixel position of the point.
zoom_factor - The zoom factor at which you want the coordinates returned.
MMPoint getAxisMultiplier()
void getWrapWidth( <integer> zoom_factor )
zoom_factor - The zoom factor to check.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||