[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

@@ -21,6 +21,9 @@ optional<Value> AnnotationTileFeature::getValue(const std::string& key) const {
return optional<Value>();
}
AnnotationTileLayer::AnnotationTileLayer(const std::string &name_)
: name(name_) {}
util::ptr<GeometryTileLayer> AnnotationTile::getLayer(const std::string& name) const {
auto it = layers.find(name);
if (it != layers.end()) {