[core] annotation manager - manage dirty state internally
This commit is contained in:
committed by
Ivo van Dongen
parent
0694d224c7
commit
377faaf4f8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user