[core] rename query options for query rendered features
This commit is contained in:
committed by
Ivo van Dongen
parent
d5c2920104
commit
548675a196
@@ -809,7 +809,7 @@ void Map::removeAnnotation(AnnotationID annotation) {
|
||||
|
||||
#pragma mark - Feature query api
|
||||
|
||||
std::vector<Feature> Map::queryRenderedFeatures(const ScreenCoordinate& point, const QueryOptions& options) {
|
||||
std::vector<Feature> Map::queryRenderedFeatures(const ScreenCoordinate& point, const RenderedQueryOptions& options) {
|
||||
if (!impl->style) return {};
|
||||
|
||||
return impl->style->queryRenderedFeatures(
|
||||
@@ -819,7 +819,7 @@ std::vector<Feature> Map::queryRenderedFeatures(const ScreenCoordinate& point, c
|
||||
);
|
||||
}
|
||||
|
||||
std::vector<Feature> Map::queryRenderedFeatures(const ScreenBox& box, const QueryOptions& options) {
|
||||
std::vector<Feature> Map::queryRenderedFeatures(const ScreenBox& box, const RenderedQueryOptions& options) {
|
||||
if (!impl->style) return {};
|
||||
|
||||
return impl->style->queryRenderedFeatures(
|
||||
@@ -836,7 +836,7 @@ std::vector<Feature> Map::queryRenderedFeatures(const ScreenBox& box, const Quer
|
||||
}
|
||||
|
||||
AnnotationIDs Map::queryPointAnnotations(const ScreenBox& box) {
|
||||
QueryOptions options;
|
||||
RenderedQueryOptions options;
|
||||
options.layerIDs = {{ AnnotationManager::PointLayerID }};
|
||||
auto features = queryRenderedFeatures(box, options);
|
||||
std::set<AnnotationID> set;
|
||||
|
||||
Reference in New Issue
Block a user