diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-07-19 15:11:46 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-07-19 15:11:46 +0300 |
commit | 2a0e2961992be22aa0cc4c394a00ef09b0fe3d71 (patch) | |
tree | dc7bb0b5bee0e3fa7d680b317fb7b3c0ecddbbc5 /src | |
parent | e421180129ba6899903b9ac9e1425ab3e9251fff (diff) | |
download | qtlocation-mapboxgl-2a0e2961992be22aa0cc4c394a00ef09b0fe3d71.tar.gz |
[core] Set annotation tileset max zoom to 18
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/annotation/annotation_manager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/annotation/annotation_manager.cpp b/src/mbgl/annotation/annotation_manager.cpp index e332850357..9a4f0a21ce 100644 --- a/src/mbgl/annotation/annotation_manager.cpp +++ b/src/mbgl/annotation/annotation_manager.cpp @@ -107,7 +107,9 @@ std::unique_ptr<AnnotationTile> AnnotationManager::getTile(const CanonicalTileID void AnnotationManager::updateStyle(Style& style) { // Create annotation source, point layer, and point bucket if (!style.getSource(SourceID)) { - std::unique_ptr<Source> source = std::make_unique<Source>(SourceType::Annotations, SourceID, "", util::tileSize, std::make_unique<Tileset>(), nullptr); + auto tileset = std::make_unique<Tileset>(); + tileset->maxZoom = 18; + std::unique_ptr<Source> source = std::make_unique<Source>(SourceType::Annotations, SourceID, "", util::tileSize, std::move(tileset), nullptr); source->enabled = true; style.addSource(std::move(source)); |