[core] Add feature state support to queryRenderedFeatures API

This commit is contained in:
Juha Alanen
2019-08-21 15:40:11 +03:00
committed by Juha Alanen
parent 8e19be9d9c
commit 598df1897d
10 changed files with 43 additions and 17 deletions

View File

@@ -308,7 +308,8 @@ void GeometryTile::queryRenderedFeatures(
const TransformState& transformState,
const std::unordered_map<std::string, const RenderLayer*>& layers,
const RenderedQueryOptions& options,
const mat4& projMatrix) {
const mat4& projMatrix,
const SourceFeatureState& featureState) {
if (!getData()) return;
@@ -327,7 +328,8 @@ void GeometryTile::queryRenderedFeatures(
options,
id.toUnwrapped(),
layers,
queryPadding * transformState.maxPitchScaleFactor());
queryPadding * transformState.maxPitchScaleFactor(),
featureState);
}
void GeometryTile::querySourceFeatures(