Gin
Classes | Public Types | Public Member Functions | List of all members
OpenStreetMaps Class Reference

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)
 

Detailed Description

Fetches map files from OSM servers.

Member Enumeration Documentation

◆ TileSource

Enumerator
OpenStreetMap 
OpenCycleMap 
OpenCycleMapTransport 
OpenCycleMapLandscape 
StamenTerrain 
MapQuestOSM 
MapQuestOpenAerial 
MapQuestOpenStreetMap 

Constructor & Destructor Documentation

◆ OpenStreetMaps()

OpenStreetMaps::OpenStreetMaps ( )

◆ ~OpenStreetMaps()

OpenStreetMaps::~OpenStreetMaps ( )

Member Function Documentation

◆ setMapTileDir()

void OpenStreetMaps::setMapTileDir ( juce::File  f)

Set this or map tiles will be stored in the temp directory.

◆ fetchTile()

juce::Image OpenStreetMaps::fetchTile ( int  zoom,
int  x,
int  y 
)

◆ getMapWidthPixels()

int OpenStreetMaps::getMapWidthPixels ( int  zoom)

◆ getMapWidthTiles()

int OpenStreetMaps::getMapWidthTiles ( int  zoom)

◆ coordinateToDisplay()

juce::Point<double> OpenStreetMaps::coordinateToDisplay ( juce::Point< double >  coordinate,
int  zoom 
)

◆ displayToCoordinate()

juce::Point<double> OpenStreetMaps::displayToCoordinate ( const juce::Point< double >  point,
int  zoom 
)

◆ tileForCoordinate()

juce::Point<double> OpenStreetMaps::tileForCoordinate ( double  lat,
double  lng,
int  zoom 
)

◆ clearQueue()

void OpenStreetMaps::clearQueue ( )

◆ getTileSource()

TileSource OpenStreetMaps::getTileSource ( )

◆ setTileSource()

void OpenStreetMaps::setTileSource ( TileSource  t)

◆ addListener()

void OpenStreetMaps::addListener ( Listener listener)

◆ removeListener()

void OpenStreetMaps::removeListener ( Listener listener)

The documentation for this class was generated from the following file: