[core] Improve performance for query rendered features

- query rendered symbols only from layers that support it
- remove unnecessary iterations over vectors
This commit is contained in:
Alexander Shalamov
2019-06-17 15:04:10 +03:00
parent d6c1c838eb
commit 57402314e1
21 changed files with 63 additions and 58 deletions

View File

@@ -46,7 +46,7 @@ void RenderAnnotationSource::update(Immutable<style::Source::Impl> baseImpl_,
std::unordered_map<std::string, std::vector<Feature>>
RenderAnnotationSource::queryRenderedFeatures(const ScreenLineString& geometry,
const TransformState& transformState,
const std::vector<const RenderLayer*>& layers,
const std::unordered_map<std::string, const RenderLayer*>& layers,
const RenderedQueryOptions& options,
const mat4& projMatrix) const {
return tilePyramid.queryRenderedFeatures(geometry, transformState, layers, options, projMatrix);