[core] Workaround for #2808

This commit is contained in:
John Firebaugh
2015-10-28 15:40:58 -07:00
parent 014b517820
commit d20bcb0795

View File

@@ -83,6 +83,9 @@ LatLngBounds AnnotationManager::getBoundsForAnnotations(const AnnotationIDs& ids
}
std::unique_ptr<AnnotationTile> AnnotationManager::getTile(const TileID& tileID) {
if (pointAnnotations.empty() && shapeAnnotations.empty())
return nullptr;
auto tile = std::make_unique<AnnotationTile>();
AnnotationTileLayer& pointLayer = *tile->layers.emplace(