From 0d4ccd4e441b7b777e191d47157f51678d448292 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 17 Mar 2016 15:49:22 +0200 Subject: [PATCH] [Qt] Expose QMapboxGL::updatePointAnnotation --- platform/qt/include/qmapboxgl.hpp | 2 ++ platform/qt/src/qmapboxgl.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp index 866aa29ce..6e1368ea9 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 479f348d9..e904c3894 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;