diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-20 17:32:06 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-20 18:25:04 +0200 |
commit | 24198ebca86cbe1329a1854f080e3f4638973142 (patch) | |
tree | 43447ee32faff421349706b8251d10d90fc9bc2b /src/mbgl/annotation | |
parent | f846205eb68e9508a0d80259008cf9adb8069a1b (diff) | |
download | qtlocation-mapboxgl-24198ebca86cbe1329a1854f080e3f4638973142.tar.gz |
[core] Expose Source::getZoomRange
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r-- | src/mbgl/annotation/annotation_source.cpp | 2 | ||||
-rw-r--r-- | src/mbgl/annotation/annotation_source.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/annotation/annotation_source.cpp b/src/mbgl/annotation/annotation_source.cpp index a9db9ad8ae..7434029c4b 100644 --- a/src/mbgl/annotation/annotation_source.cpp +++ b/src/mbgl/annotation/annotation_source.cpp @@ -14,7 +14,7 @@ AnnotationSource::Impl::Impl(Source& base_) : Source::Impl(SourceType::Annotations, AnnotationManager::SourceID, base_) { } -Range<uint8_t> AnnotationSource::Impl::getZoomRange() { +Range<uint8_t> AnnotationSource::Impl::getZoomRange() const { return { 0, 22 }; } diff --git a/src/mbgl/annotation/annotation_source.hpp b/src/mbgl/annotation/annotation_source.hpp index d995222f33..62d1aa3488 100644 --- a/src/mbgl/annotation/annotation_source.hpp +++ b/src/mbgl/annotation/annotation_source.hpp @@ -20,7 +20,7 @@ public: private: uint16_t getTileSize() const final { return util::tileSize; } - Range<uint8_t> getZoomRange() final; + Range<uint8_t> getZoomRange() const final; std::unique_ptr<Tile> createTile(const OverscaledTileID&, const style::UpdateParameters&) final; }; |