summaryrefslogtreecommitdiff
path: root/include/llmr/map/map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/llmr/map/map.hpp')
-rw-r--r--include/llmr/map/map.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/llmr/map/map.hpp b/include/llmr/map/map.hpp
index 84cb4d12eb..768be14100 100644
--- a/include/llmr/map/map.hpp
+++ b/include/llmr/map/map.hpp
@@ -20,7 +20,7 @@ public:
~Map();
/* setup */
- void setup();
+ void setup(float pixelRatio = 1);
void loadStyle(const uint8_t *const data, uint32_t bytes);
void loadSprite(const std::string& url);
void loadSettings();
@@ -29,13 +29,13 @@ public:
/* callback */
bool render();
void cancelAnimations();
- void tileLoaded(std::shared_ptr<Tile> tile);
- void tileFailed(std::shared_ptr<Tile> tile);
/* position */
void moveBy(double dx, double dy, double duration = 0);
void setLonLat(double lon, double lat, double duration = 0);
void getLonLat(double &lon, double &lat) const;
+ void startPanning();
+ void stopPanning();
void resetPosition();
/* scale */
@@ -47,12 +47,16 @@ public:
void setLonLatZoom(double lon, double lat, double zoom, double duration = 0);
void getLonLatZoom(double &lon, double &lat, double &zoom) const;
void resetZoom();
+ void startScaling();
+ void stopScaling();
/* rotation */
void rotateBy(double cx, double cy, double sx, double sy, double ex, double ey, double duration = 0);
void setAngle(double angle, double cx = -1, double cy = -1, double duration = 0);
double getAngle() const;
void resetNorth();
+ void startRotating();
+ void stopRotating();
void toggleDebug();
@@ -75,6 +79,8 @@ private:
int32_t min_zoom;
int32_t max_zoom;
+ float pixel_ratio;
+
std::forward_list<std::shared_ptr<Tile>> tiles;
std::forward_list<std::shared_ptr<Tile>> historic_tiles;
};