[core] annotation manager - manage dirty state internally

This commit is contained in:
Ivo van Dongen
2017-08-31 15:24:09 +03:00
committed by Ivo van Dongen
parent 0694d224c7
commit 377faaf4f8
3 changed files with 29 additions and 24 deletions

View File

@@ -630,7 +630,9 @@ AnnotationID Map::addAnnotation(const Annotation& annotation) {
}
void Map::updateAnnotation(AnnotationID id, const Annotation& annotation) {
impl->onUpdate(impl->annotationManager.updateAnnotation(id, annotation, getMaxZoom()));
if (impl->annotationManager.updateAnnotation(id, annotation, getMaxZoom())) {
impl->onUpdate(Update::AnnotationData);
}
}
void Map::removeAnnotation(AnnotationID annotation) {