Index glyph use by tile pointer value, not tile ID

There can be multiple tiles with the same ID, but from different
sources.

Fixes #957
This commit is contained in:
John Firebaugh
2015-03-12 17:46:52 -07:00
parent 96682a02af
commit 6325f1e25a
6 changed files with 21 additions and 18 deletions

View File

@@ -256,7 +256,7 @@ std::unique_ptr<Bucket> TileParser::createSymbolBucket(const GeometryTileLayer&
auto symbol = parseStyleLayoutSymbol(bucket_desc, tile.id.z);
auto bucket = util::make_unique<SymbolBucket>(std::move(symbol), *collision);
bucket->addFeatures(
layer, bucket_desc.filter, tile.id, spriteAtlas, *sprite, glyphAtlas, glyphStore);
layer, bucket_desc.filter, reinterpret_cast<uintptr_t>(&tile), spriteAtlas, *sprite, glyphAtlas, glyphStore);
return obsolete() ? nullptr : std::move(bucket);
}
}