Commit 0c5a3344 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Fix newly downloaded vector tiles being loaded and rendered twice. Doh.

With TileId instances as key for loaded and queued documents, their
map theme id must match always.
parent 31cc33fa
......@@ -178,8 +178,9 @@ int VectorTileModel::cachedDocuments() const
return m_documents.size();
}
void VectorTileModel::updateTile( const TileId &id, GeoDataDocument *document )
void VectorTileModel::updateTile( const TileId &idWithMapThemeHash, GeoDataDocument *document )
{
TileId const id(0, idWithMapThemeHash.zoomLevel(), idWithMapThemeHash.x(), idWithMapThemeHash.y());
m_pendingDocuments.removeAll(id);
if (!document) {
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment