[core] move SourceInfo parsing to StyleParser

This commit is contained in:
Konstantin Käfer
2016-01-13 12:07:33 +01:00
committed by John Firebaugh
parent cef05b9017
commit e8705d535d
7 changed files with 201 additions and 211 deletions

View File

@@ -112,7 +112,7 @@ std::unique_ptr<AnnotationTile> AnnotationManager::getTile(const TileID& tileID)
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);
std::unique_ptr<Source> source = std::make_unique<Source>(SourceType::Annotations, SourceID, "", std::make_unique<SourceInfo>(), nullptr);
source->enabled = true;
style.addSource(std::move(source));