This commit is contained in:
2024-02-04 13:02:19 +03:00
parent 4c7b9444b6
commit 18526cdf29
4 changed files with 27 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ public:
QString cachePath() const;
void setCachePath(const QString & p);
void downloadCurrentView(int target_zoom_level = 17);
void downloadCurrentView(int target_zoom_level = 17, bool only_new = true);
protected:
QSize sizeHint() const override { return QSize(200, 200); }
@@ -92,7 +92,7 @@ private:
MapItemBase * hover = nullptr;
QPointF center_ = QPointF(0.5, 0.5);
QPointF last_click_coord = center_;
QPoint press_point;
QPoint press_point, zoom_anchor;
QPixmap background;
QRectF view_rect;
QVector<MapItemBase *> items_;