[core] Remove unnecessary Source::Impl::enabled assignment
This flag will get set automatically by Style::recalculate.
This commit is contained in:
@@ -176,9 +176,7 @@ std::unique_ptr<AnnotationTileData> 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> source = std::make_unique<AnnotationSource>();
|
||||
source->baseImpl->enabled = true;
|
||||
style.addSource(std::move(source));
|
||||
style.addSource(std::make_unique<AnnotationSource>());
|
||||
|
||||
std::unique_ptr<SymbolLayer> layer = std::make_unique<SymbolLayer>(PointLayerID, SourceID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user