fix passing of annotation manager

This commit is contained in:
Justin R. Miller
2015-03-17 17:45:09 -07:00
parent e049ce6df1
commit 76f8a3d846
3 changed files with 5 additions and 5 deletions

View File

@@ -196,7 +196,7 @@ TileData::State Source::addTile(Map &map, Environment &env, uv::worker &worker,
new_tile.data = std::make_shared<RasterTileData>(normalized_id, texturePool, info, env);
new_tile.data->request(worker, map.getState().getPixelRatio(), callback);
} else if (info.type == SourceType::Annotations) {
util::ptr<AnnotationManager> annotationManager = map.getAnnotationManager();
AnnotationManager& annotationManager = map.getAnnotationManager();
new_tile.data = std::make_shared<LiveTileData>(normalized_id,
annotationManager,
map.getMaxZoom(), style,