diff options
Diffstat (limited to 'platform')
-rw-r--r-- | platform/qt/include/qmapboxgl.hpp | 2 | ||||
-rw-r--r-- | platform/qt/src/qmapboxgl.cpp | 5 |
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; |