version 2.21.1
Map download API mapviewer download feature
This commit is contained in:
@@ -51,11 +51,18 @@ public:
|
||||
void setCenter(QPointF c);
|
||||
void setCenter(QGeoCoordinate c) { setCenter(QPointF(c.latitude(), c.longitude())); }
|
||||
|
||||
int getCurrentZoomLevel() const { return zoom_level; }
|
||||
int getMaximumZoomLevel() const { return max_level; }
|
||||
double getZoom() const { return zoom_; }
|
||||
void setZoom(double z);
|
||||
|
||||
QPointF clickedCoordinate() const { return last_click_coord; }
|
||||
|
||||
QString cachePath() const;
|
||||
void setCachePath(const QString & p);
|
||||
|
||||
void downloadCurrentView(int target_zoom_level = 17);
|
||||
|
||||
protected:
|
||||
QSize sizeHint() const override { return QSize(200, 200); }
|
||||
void mousePressEvent(QMouseEvent * e) override;
|
||||
@@ -90,7 +97,7 @@ private:
|
||||
QRectF view_rect;
|
||||
QVector<MapItemBase *> items_;
|
||||
QBrush brush_tr;
|
||||
bool is_pan = false;
|
||||
bool is_pan = false, is_downloading = false;
|
||||
double zoom_ = 1., scale_ = 1., px2m = 1.;
|
||||
int zoom_level = 0, tiles_side = 1, max_level = 19;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user