|
MoSync 3.0.1
|
Single tile from a map source. More...
#include <MAP/MapTile.h>
Public Member Functions | |
| MapTile (MapSource *source, const int gridX, const int gridY, const int magnification, const LonLat center, MAHandle image) | |
| virtual | ~MapTile () |
| void | stamp () |
| MapSource * | getMapSource () const |
| int | getGridX () const |
| int | getGridY () const |
| int | getMagnification () const |
| LonLat | getCenter () const |
| MAHandle | getImage () const |
| DateTime | getLastAccessTime () const |
| int | getMilliSecondsSinceCreated () const |
Single tile from a map source.
Tiles use a numbering scheme like OpenStreetMap or Google Maps. http://www.maptiler.org/google-maps-coordinate-system-projection-epsg-900913-3785/
| MAP::MapTile::MapTile | ( | MapSource * | source, |
| const int | gridX, | ||
| const int | gridY, | ||
| const int | magnification, | ||
| const LonLat | center, | ||
| MAHandle | image | ||
| ) | [inline] |
Creates a map tile.
| virtual MAP::MapTile::~MapTile | ( | ) | [inline, virtual] |
Destroys a map tile.
References maDestroyPlaceholder().
| void MAP::MapTile::stamp | ( | ) | [inline] |
Sets last access timestamp to current time.
References MAPUtil::DateTime::now().
| MapSource* MAP::MapTile::getMapSource | ( | ) | const [inline] |
Returns the source for this tile.
| int MAP::MapTile::getGridX | ( | ) | const [inline] |
Returns X coordinate of tile in tile grid.
| int MAP::MapTile::getGridY | ( | ) | const [inline] |
Returns Y coordinate of tile in tile grid.
| int MAP::MapTile::getMagnification | ( | ) | const [inline] |
Returns zoom level of tile.
| LonLat MAP::MapTile::getCenter | ( | ) | const [inline] |
Returns center of tile in longitude/latitude.
| MAHandle MAP::MapTile::getImage | ( | ) | const [inline] |
Returns the map image of the tile.
| DateTime MAP::MapTile::getLastAccessTime | ( | ) | const [inline] |
Returns last access time of the tile.
| int MAP::MapTile::getMilliSecondsSinceCreated | ( | ) | const [inline] |
Returns milliseconds since the tile was created.
References maGetMilliSecondCount().