summaryrefslogtreecommitdiff
path: root/platform/glfw/glfw_view.cpp
diff options
context:
space:
mode:
authorSudarsana Babu Nagineni <sudarsana.babu@mapbox.com>2019-04-03 15:08:02 +0300
committerSudarsana Babu Nagineni <sudarsana.babu@mapbox.com>2019-04-29 17:09:58 +0300
commit2604991b2b0090ed69893f6b156a6e640a789c9f (patch)
treed6b29f0a512b3de53fb4cc23d96cc2f52b1fdffe /platform/glfw/glfw_view.cpp
parent4c8295e67200e15979ddc0c6b16d9b09e4f0a192 (diff)
downloadqtlocation-mapboxgl-2604991b2b0090ed69893f6b156a6e640a789c9f.tar.gz
[core] Introduce resetCache API
Add an API to delete existing database and re-initialize.
Diffstat (limited to 'platform/glfw/glfw_view.cpp')
-rw-r--r--platform/glfw/glfw_view.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp
index 2772ed0773..fe956d8a68 100644
--- a/platform/glfw/glfw_view.cpp
+++ b/platform/glfw/glfw_view.cpp
@@ -124,6 +124,7 @@ GLFWView::GLFWView(bool fullscreen_, bool benchmark_)
printf("- Press `O` to toggle online connectivity\n");
printf("- Press `Z` to cycle through north orientations\n");
printf("- Prezz `X` to cycle through the viewport modes\n");
+ printf("- Press `I` to Delete existing database and re-initialize\n");
printf("- Press `A` to cycle through Mapbox offices in the world + dateline monument\n");
printf("- Press `B` to cycle through the color, stencil, and depth buffer\n");
printf("- Press `D` to cycle through camera bounds: inside, crossing IDL at left, crossing IDL at right, and disabled\n");
@@ -221,6 +222,9 @@ void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action,
case GLFW_KEY_C:
view->clearAnnotations();
break;
+ case GLFW_KEY_I:
+ view->resetCacheCallback();
+ break;
case GLFW_KEY_K:
view->addRandomCustomPointAnnotations(1);
break;