diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-12-22 16:27:31 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-01-02 19:41:07 +0100 |
commit | ac32b41493956e6b03ab13475f27a4dcd64355ae (patch) | |
tree | ce82e80868c892a3410f260ca7ad11be7477d44e /src/mbgl/map/map.cpp | |
parent | 814c87fbab4608662f90084cff64c27cc5b12bc2 (diff) | |
download | qtlocation-mapboxgl-ac32b41493956e6b03ab13475f27a4dcd64355ae.tar.gz |
[core] don't tie Annotation geometries to Map maxzoom
Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r-- | src/mbgl/map/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 5aa534724f..947973415a 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -676,13 +676,13 @@ double Map::getTopOffsetPixelsForAnnotationImage(const std::string& id) { } AnnotationID Map::addAnnotation(const Annotation& annotation) { - auto result = impl->annotationManager.addAnnotation(annotation, getMaxZoom()); + auto result = impl->annotationManager.addAnnotation(annotation); impl->onUpdate(); return result; } void Map::updateAnnotation(AnnotationID id, const Annotation& annotation) { - if (impl->annotationManager.updateAnnotation(id, annotation, getMaxZoom())) { + if (impl->annotationManager.updateAnnotation(id, annotation)) { impl->onUpdate(); } } |