squash of #1655: shape annotations support for core & iOS
This commit is contained in:
@@ -521,11 +521,16 @@ bool Source::update(MapData& data,
|
||||
return allTilesUpdated;
|
||||
}
|
||||
|
||||
void Source::invalidateTiles(const std::vector<TileID>& ids) {
|
||||
void Source::invalidateTiles(const std::unordered_set<TileID, TileID::Hash>& ids) {
|
||||
cache.clear();
|
||||
for (auto& id : ids) {
|
||||
tiles.erase(id);
|
||||
tile_data.erase(id);
|
||||
if (ids.size()) {
|
||||
for (auto& id : ids) {
|
||||
tiles.erase(id);
|
||||
tile_data.erase(id);
|
||||
}
|
||||
} else {
|
||||
tiles.clear();
|
||||
tile_data.clear();
|
||||
}
|
||||
updateTilePtrs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user