[core] Add removeFeatureState API

This commit is contained in:
Juha Alanen
2019-09-13 11:15:21 +03:00
committed by Juha Alanen
parent 7ce9b0d47d
commit 48f462bc7b
9 changed files with 95 additions and 1 deletions

View File

@@ -580,6 +580,15 @@ void RenderOrchestrator::getFeatureState(FeatureState& state,
}
}
void RenderOrchestrator::removeFeatureState(const std::string& sourceID,
const optional<std::string>& sourceLayerID,
const optional<std::string>& featureID,
const optional<std::string>& stateKey) {
if (RenderSource* renderSource = getRenderSource(sourceID)) {
renderSource->removeFeatureState(sourceLayerID, featureID, stateKey);
}
}
void RenderOrchestrator::reduceMemoryUse() {
filteredLayersForSource.shrink_to_fit();
for (const auto& entry : renderSources) {