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;