[core] AnnotationTileLayer vends its own name (#5163)

Fixes #5159.
This commit is contained in:
Minh Nguyễn
2016-05-26 13:12:23 -07:00
parent 27f9a85fea
commit 8ace0d37d1
5 changed files with 31 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ void ShapeAnnotationImpl::updateTile(const CanonicalTileID& tileID, AnnotationTi
return;
AnnotationTileLayer& layer = *tile.layers.emplace(layerID,
std::make_unique<AnnotationTileLayer>()).first->second;
std::make_unique<AnnotationTileLayer>(layerID)).first->second;
for (auto& shapeFeature : shapeTile.features) {
FeatureType featureType = FeatureType::Unknown;