summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-06-17 15:02:29 +0300
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-06-17 17:07:16 -0700
commit4f3fc3c2c975e1d02f3cdd2041e413c9bc159cb4 (patch)
tree7ac07027c26a782211cda58983fdb6d5243d2cb0 /include/mbgl
parent4806f7f0a55aad2f3ac86f480bac394c0cb1eacf (diff)
downloadqtlocation-mapboxgl-4f3fc3c2c975e1d02f3cdd2041e413c9bc159cb4.tar.gz
Support shape annotations on GLFWView
Add different random triangles count by using the keys 7, 8, 9 or 0. Q will clear all the annotations. W will remove one annotation.
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/platform/default/glfw_view.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/glfw_view.hpp b/include/mbgl/platform/default/glfw_view.hpp
index 094974b59c..9a7e29fe29 100644
--- a/include/mbgl/platform/default/glfw_view.hpp
+++ b/include/mbgl/platform/default/glfw_view.hpp
@@ -37,7 +37,15 @@ public:
void fps();
private:
+ mbgl::LatLng makeRandomPoint() const;
+
void addRandomPointAnnotations(int count);
+ void addRandomShapeAnnotations(int count);
+
+ void clearAnnotations();
+ void popAnnotation();
+
+ mbgl::AnnotationIDs annotationIDs;
private:
bool fullscreen = false;