fix MapView, so tile provider can be accessible
add MapViewTileProviderBase::maximumLevel()
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#ifndef mapview_tile_provider_base_h
|
||||
#define mapview_tile_provider_base_h
|
||||
|
||||
#include "osm_types_p.h"
|
||||
#include "mapview_types.h"
|
||||
#include "qad_map_export.h"
|
||||
|
||||
#include <QPixmap>
|
||||
@@ -37,10 +37,11 @@ public:
|
||||
const PIValueTree & getParameters() const { return parameters; }
|
||||
void setParameters(const PIValueTree & vt);
|
||||
|
||||
virtual QString name() const = 0;
|
||||
virtual bool requestTile(OSM::TileIndex index) = 0;
|
||||
virtual QSize tileSize() = 0;
|
||||
virtual QString name() const = 0;
|
||||
virtual bool requestTile(MapViewTypes::TileIndex index) = 0;
|
||||
virtual QSize tileSize() = 0;
|
||||
virtual QString cacheDir() const { return name(); }
|
||||
virtual int maximumLevel() const = 0;
|
||||
|
||||
protected:
|
||||
void initParameters(const PIValueTree & vt);
|
||||
@@ -52,7 +53,7 @@ private:
|
||||
PIValueTree parameters;
|
||||
|
||||
signals:
|
||||
void tileReady(OSM::TileIndex index, QPixmap pm);
|
||||
void tileReady(MapViewTypes::TileIndex index, QPixmap pm);
|
||||
void parametersChanged();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user