summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-03-17 15:49:22 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-04-20 20:55:51 +0300
commit0d4ccd4e441b7b777e191d47157f51678d448292 (patch)
treefb0cc4c3a4c8845f98d07e56105f8ebe5fb02f3e
parentfa6421a56f74ae623766c2fbb12cf76b94e2a1fd (diff)
downloadqtlocation-mapboxgl-0d4ccd4e441b7b777e191d47157f51678d448292.tar.gz
[Qt] Expose QMapboxGL::updatePointAnnotation
-rw-r--r--platform/qt/include/qmapboxgl.hpp2
-rw-r--r--platform/qt/src/qmapboxgl.cpp5
2 files changed, 7 insertions, 0 deletions
diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp
index 866aa29cee..6e1368ea95 100644
--- a/platform/qt/include/qmapboxgl.hpp
+++ b/platform/qt/include/qmapboxgl.hpp
@@ -141,6 +141,8 @@ public:
QMapbox::AnnotationID addShapeAnnotation(const QMapbox::ShapeAnnotation &);
QMapbox::AnnotationIDs addShapeAnnotations(const QMapbox::ShapeAnnotations &);
+ void updatePointAnnotation(QMapbox::AnnotationID, const QMapbox::PointAnnotation &);
+
void removeAnnotation(QMapbox::AnnotationID);
void removeAnnotations(const QMapbox::AnnotationIDs &);
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp
index 479f348d93..e904c38947 100644
--- a/platform/qt/src/qmapboxgl.cpp
+++ b/platform/qt/src/qmapboxgl.cpp
@@ -352,6 +352,11 @@ AnnotationIDs QMapboxGL::addPointAnnotations(const PointAnnotations &pointAnnota
return ids;
}
+void QMapboxGL::updatePointAnnotation(AnnotationID id, const PointAnnotation &pointAnnotation)
+{
+ d_ptr->mapObj->updatePointAnnotation(id, fromPointAnnotation(pointAnnotation));
+}
+
mbgl::ShapeAnnotation fromQMapboxGLShapeAnnotation(const ShapeAnnotation &shapeAnnotation) {
const CoordinateSegments &segments = shapeAnnotation.first;
const QString &styleLayer = shapeAnnotation.second;