[core] Forward ImageManagerObserver::onRemoveUnusedStyleImages to MapObserver interface
This commit is contained in:
@@ -179,4 +179,12 @@ void Map::Impl::onStyleImageMissing(const std::string& id, std::function<void()>
|
||||
onUpdate();
|
||||
}
|
||||
|
||||
void Map::Impl::onRemoveUnusedStyleImages(const std::vector<std::string>& unusedImageIDs) {
|
||||
for (const auto& unusedImageID : unusedImageIDs) {
|
||||
if (observer.onCanRemoveUnusedStyleImage(unusedImageID)) {
|
||||
style->removeImage(unusedImageID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
void onWillStartRenderingMap() final;
|
||||
void onDidFinishRenderingMap() final;
|
||||
void onStyleImageMissing(const std::string&, std::function<void()>) final;
|
||||
void onRemoveUnusedStyleImages(const std::vector<std::string>&) final;
|
||||
|
||||
// Map
|
||||
void jumpTo(const CameraOptions&);
|
||||
|
||||
Reference in New Issue
Block a user