From 2a0e2961992be22aa0cc4c394a00ef09b0fe3d71 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 19 Jul 2016 15:11:46 +0300 Subject: [PATCH] [core] Set annotation tileset max zoom to 18 --- src/mbgl/annotation/annotation_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mbgl/annotation/annotation_manager.cpp b/src/mbgl/annotation/annotation_manager.cpp index e33285035..9a4f0a21c 100644 --- a/src/mbgl/annotation/annotation_manager.cpp +++ b/src/mbgl/annotation/annotation_manager.cpp @@ -107,7 +107,9 @@ std::unique_ptr 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 = std::make_unique(SourceType::Annotations, SourceID, "", util::tileSize, std::make_unique(), nullptr); + auto tileset = std::make_unique(); + tileset->maxZoom = 18; + std::unique_ptr source = std::make_unique(SourceType::Annotations, SourceID, "", util::tileSize, std::move(tileset), nullptr); source->enabled = true; style.addSource(std::move(source));