Gin
Public Member Functions | Protected Member Functions | List of all members
MapViewer Class Reference

Draws an map, etting tiles fom one of many OpenStreetMapsServers. More...

Inheritance diagram for MapViewer:

Public Member Functions

 MapViewer ()
 
 ~MapViewer () override
 
void setZoom (int zoom)
 Zoom level between 0 and 18. More...
 
void centerOn (double longCenter, double latCenter)
 Centre map on long/lat. More...
 
void centerUnderPt (juce::Point< double > world, juce::Point< int > view)
 Set world coordinate (longlat) under view coordinate (x/y) More...
 
OpenStreetMapsgetOpenStreetMaps ()
 

Protected Member Functions

void resized () override
 
void paint (juce::Graphics &g) override
 
void mouseDown (const juce::MouseEvent &e) override
 
void mouseDrag (const juce::MouseEvent &e) override
 
void mouseWheelMove (const juce::MouseEvent &e, const juce::MouseWheelDetails &wheel) override
 
void tileFetched (int zoom, int x, int y) override
 
void updateMap ()
 
void mapUpdated ()
 

Detailed Description

Draws an map, etting tiles fom one of many OpenStreetMapsServers.

Constructor & Destructor Documentation

◆ MapViewer()

MapViewer::MapViewer ( )

◆ ~MapViewer()

MapViewer::~MapViewer ( )
override

Member Function Documentation

◆ setZoom()

void MapViewer::setZoom ( int  zoom)

Zoom level between 0 and 18.

◆ centerOn()

void MapViewer::centerOn ( double  longCenter,
double  latCenter 
)

Centre map on long/lat.

◆ centerUnderPt()

void MapViewer::centerUnderPt ( juce::Point< double >  world,
juce::Point< int >  view 
)

Set world coordinate (longlat) under view coordinate (x/y)

◆ getOpenStreetMaps()

OpenStreetMaps* MapViewer::getOpenStreetMaps ( )

◆ resized()

void MapViewer::resized ( )
overrideprotected

◆ paint()

void MapViewer::paint ( juce::Graphics &  g)
overrideprotected

◆ mouseDown()

void MapViewer::mouseDown ( const juce::MouseEvent &  e)
overrideprotected

◆ mouseDrag()

void MapViewer::mouseDrag ( const juce::MouseEvent &  e)
overrideprotected

◆ mouseWheelMove()

void MapViewer::mouseWheelMove ( const juce::MouseEvent &  e,
const juce::MouseWheelDetails &  wheel 
)
overrideprotected

◆ tileFetched()

void MapViewer::tileFetched ( int  zoom,
int  x,
int  y 
)
overrideprotectedvirtual

◆ updateMap()

void MapViewer::updateMap ( )
protected

◆ mapUpdated()

void MapViewer::mapUpdated ( )
protected

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