2017-03-18 01:30:31 +01:00
|
|
|
#ifndef EMPTYMAP_H
|
|
|
|
#define EMPTYMAP_H
|
|
|
|
|
2020-12-13 19:40:09 +01:00
|
|
|
#include "osm.h"
|
2017-12-02 20:28:53 +01:00
|
|
|
#include "map.h"
|
2017-03-18 01:30:31 +01:00
|
|
|
|
|
|
|
class EmptyMap : public Map
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
EmptyMap(QObject *parent = 0);
|
|
|
|
|
2018-07-13 09:51:41 +02:00
|
|
|
QString name() const {return QString();}
|
2017-03-18 01:30:31 +01:00
|
|
|
|
2018-07-13 09:51:41 +02:00
|
|
|
QRectF bounds();
|
2020-12-13 19:40:09 +01:00
|
|
|
RectC llBounds() {return OSM::BOUNDS;}
|
2018-06-30 12:14:58 +02:00
|
|
|
qreal resolution(const QRectF &rect);
|
2017-03-18 01:30:31 +01:00
|
|
|
|
2018-02-28 22:19:46 +01:00
|
|
|
int zoom() const {return _zoom;}
|
2018-04-28 22:18:11 +02:00
|
|
|
void setZoom(int zoom) {_zoom = zoom;}
|
2018-04-16 20:26:10 +02:00
|
|
|
int zoomFit(const QSize &size, const RectC &rect);
|
2018-02-28 22:19:46 +01:00
|
|
|
int zoomIn();
|
|
|
|
int zoomOut();
|
2017-03-18 01:30:31 +01:00
|
|
|
|
2018-07-13 09:51:41 +02:00
|
|
|
QPointF ll2xy(const Coordinates &c);
|
|
|
|
Coordinates xy2ll(const QPointF &p);
|
2017-03-18 01:30:31 +01:00
|
|
|
|
2018-08-23 20:26:10 +02:00
|
|
|
void draw(QPainter *painter, const QRectF &rect, Flags flags);
|
2017-03-18 01:30:31 +01:00
|
|
|
|
|
|
|
private:
|
2018-02-28 22:19:46 +01:00
|
|
|
int _zoom;
|
2017-03-18 01:30:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EMPTYMAP_H
|