fix MapView, so tile provider can be accessible

add MapViewTileProviderBase::maximumLevel()
This commit is contained in:
2025-03-18 16:24:02 +03:00
parent a0f2d80b4f
commit f0c2369df0
12 changed files with 78 additions and 62 deletions

View File

@@ -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();
};