[Qt] Expose QMapboxGL::updatePointAnnotation
This commit is contained in:
committed by
Thiago Marcos P. Santos
parent
fa6421a56f
commit
0d4ccd4e44
@@ -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 &);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user