[core] Set annotation tileset max zoom to 18
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user