[core] Add support for updating point annotations

This commit is contained in:
Gabriel Miklós
2016-02-09 16:09:01 +01:00
committed by John Firebaugh
parent 9841f94074
commit d742c2d3eb
4 changed files with 18 additions and 0 deletions

View File

@@ -452,6 +452,11 @@ AnnotationIDs Map::addShapeAnnotations(const std::vector<ShapeAnnotation>& annot
return result;
}
void Map::updatePointAnnotation(AnnotationID annotationId, const PointAnnotation& annotation) {
data->getAnnotationManager()->updatePointAnnotation(annotationId, annotation, getMaxZoom());
update(Update::Annotations);
}
void Map::removeAnnotation(AnnotationID annotation) {
removeAnnotations({ annotation });
}