summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-08-08 14:42:34 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-08-31 10:17:21 +0300
commitd43757271ee505fa4d3c734ef61944fb03c46806 (patch)
tree8d5fb5a0de133140af279a32151b8bf737b522bd /src
parent3f6f236f7badc708f9c0997cd1cb7dba71a84e04 (diff)
downloadqtlocation-mapboxgl-d43757271ee505fa4d3c734ef61944fb03c46806.tar.gz
[node] Cleanup NodeMap::Render
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/map.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index 324bcc8b5d..e255c5d0ae 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -169,6 +169,13 @@ void Map::renderStill(StillImageCallback callback) {
impl->onUpdate(Update::Repaint);
}
+void Map::renderStill(const CameraOptions& camera, MapDebugOptions debugOptions, StillImageCallback callback) {
+ impl->cameraMutated = true;
+ impl->debugOptions = debugOptions;
+ impl->transform.jumpTo(camera);
+ renderStill(std::move(callback));
+}
+
void Map::triggerRepaint() {
impl->onUpdate(Update::Repaint);
}