diff --git a/src/mbgl/annotation/annotation_manager.cpp b/src/mbgl/annotation/annotation_manager.cpp index ed1518fb7..537ac7015 100644 --- a/src/mbgl/annotation/annotation_manager.cpp +++ b/src/mbgl/annotation/annotation_manager.cpp @@ -176,9 +176,7 @@ std::unique_ptr AnnotationManager::getTileData(const Canonic void AnnotationManager::updateStyle(Style& style) { // Create annotation source, point layer, and point bucket if (!style.getSource(SourceID)) { - std::unique_ptr source = std::make_unique(); - source->baseImpl->enabled = true; - style.addSource(std::move(source)); + style.addSource(std::make_unique()); std::unique_ptr layer = std::make_unique(PointLayerID, SourceID);