From d20bcb07957edc008d452db8ef5c91baa117bce6 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 28 Oct 2015 15:40:58 -0700 Subject: [PATCH] [core] Workaround for #2808 --- src/mbgl/annotation/annotation_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mbgl/annotation/annotation_manager.cpp b/src/mbgl/annotation/annotation_manager.cpp index 374d770a2..e5c55c90d 100644 --- a/src/mbgl/annotation/annotation_manager.cpp +++ b/src/mbgl/annotation/annotation_manager.cpp @@ -83,6 +83,9 @@ LatLngBounds AnnotationManager::getBoundsForAnnotations(const AnnotationIDs& ids } std::unique_ptr AnnotationManager::getTile(const TileID& tileID) { + if (pointAnnotations.empty() && shapeAnnotations.empty()) + return nullptr; + auto tile = std::make_unique(); AnnotationTileLayer& pointLayer = *tile->layers.emplace(