[Qt] Expose QMapboxGL::updatePointAnnotation

This commit is contained in:
Bruno de Oliveira Abinader
2016-03-17 15:49:22 +02:00
committed by Thiago Marcos P. Santos
parent fa6421a56f
commit 0d4ccd4e44
2 changed files with 7 additions and 0 deletions

View File

@@ -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 &);

View File

@@ -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;