summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map.cpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-08-31 15:24:09 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-08-31 18:45:28 +0300
commit377faaf4f8a5db1f7b31eedaf92d0865cda37db9 (patch)
tree75a2aca3372f8967aaa8d5e1d80072203e77017a /src/mbgl/map/map.cpp
parent0694d224c745ea5ee5eb1fc46cbb0b9487e6333a (diff)
downloadqtlocation-mapboxgl-377faaf4f8a5db1f7b31eedaf92d0865cda37db9.tar.gz
[core] annotation manager - manage dirty state internally
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r--src/mbgl/map/map.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index e255c5d0ae..8aacce6287 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -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) {