Gin
|
Fetches map files from OSM servers. More...
Classes | |
class | Listener |
Public Types | |
enum | TileSource { OpenStreetMap , OpenCycleMap , OpenCycleMapTransport , OpenCycleMapLandscape , StamenTerrain , MapQuestOSM , MapQuestOpenAerial , MapQuestOpenStreetMap } |
Public Member Functions | |
OpenStreetMaps () | |
~OpenStreetMaps () | |
void | setMapTileDir (juce::File f) |
Set this or map tiles will be stored in the temp directory. More... | |
juce::Image | fetchTile (int zoom, int x, int y) |
int | getMapWidthPixels (int zoom) |
int | getMapWidthTiles (int zoom) |
juce::Point< double > | coordinateToDisplay (juce::Point< double > coordinate, int zoom) |
juce::Point< double > | displayToCoordinate (const juce::Point< double > point, int zoom) |
juce::Point< double > | tileForCoordinate (double lat, double lng, int zoom) |
void | clearQueue () |
TileSource | getTileSource () |
void | setTileSource (TileSource t) |
void | addListener (Listener *listener) |
void | removeListener (Listener *listener) |
Fetches map files from OSM servers.
OpenStreetMaps::OpenStreetMaps | ( | ) |
OpenStreetMaps::~OpenStreetMaps | ( | ) |
void OpenStreetMaps::setMapTileDir | ( | juce::File | f | ) |
Set this or map tiles will be stored in the temp directory.
juce::Image OpenStreetMaps::fetchTile | ( | int | zoom, |
int | x, | ||
int | y | ||
) |
int OpenStreetMaps::getMapWidthPixels | ( | int | zoom | ) |
int OpenStreetMaps::getMapWidthTiles | ( | int | zoom | ) |
juce::Point<double> OpenStreetMaps::coordinateToDisplay | ( | juce::Point< double > | coordinate, |
int | zoom | ||
) |
juce::Point<double> OpenStreetMaps::displayToCoordinate | ( | const juce::Point< double > | point, |
int | zoom | ||
) |
juce::Point<double> OpenStreetMaps::tileForCoordinate | ( | double | lat, |
double | lng, | ||
int | zoom | ||
) |
void OpenStreetMaps::clearQueue | ( | ) |
TileSource OpenStreetMaps::getTileSource | ( | ) |
void OpenStreetMaps::setTileSource | ( | TileSource | t | ) |
void OpenStreetMaps::addListener | ( | Listener * | listener | ) |
void OpenStreetMaps::removeListener | ( | Listener * | listener | ) |