MoSync 3.0.1
MAP::MapTile Class Reference

Single tile from a map source. More...

#include <MAP/MapTile.h>

List of all members.

Public Member Functions

 MapTile (MapSource *source, const int gridX, const int gridY, const int magnification, const LonLat center, MAHandle image)
virtual ~MapTile ()
void stamp ()
MapSourcegetMapSource () const
int getGridX () const
int getGridY () const
int getMagnification () const
LonLat getCenter () const
MAHandle getImage () const
DateTime getLastAccessTime () const
int getMilliSecondsSinceCreated () const

Detailed Description

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/


Constructor & Destructor Documentation

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().


Member Function Documentation

void MAP::MapTile::stamp ( ) [inline]

Sets last access timestamp to current time.

References MAPUtil::DateTime::now().

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.

Returns last access time of the tile.

Returns milliseconds since the tile was created.

References maGetMilliSecondCount().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines