Skip to content

Commit

Permalink
Add radius_feature_count (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaschu authored Feb 27, 2024
1 parent f2ecbc8 commit 8dbce7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/Identify.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,13 @@ class Identify extends React.Component {
const identifyResults = this.props.click.modifiers.ctrl !== true ? {} : this.state.identifyResults;
const filter = VectorLayerUtils.geoJSONGeomToWkt(this.state.filterGeom);
let pendingRequests = 0;
const params = {...this.props.params};
if (this.props.params.radius_feature_count) {
params.feature_count = this.props.params.radius_feature_count;
delete params.radius_feature_count;
}
queryableLayers.forEach((layer) => {
const request = IdentifyUtils.buildFilterRequest(layer, layer.queryLayers.join(","), filter, this.props.map, this.props.params);
const request = IdentifyUtils.buildFilterRequest(layer, layer.queryLayers.join(","), filter, this.props.map, params);
++pendingRequests;
IdentifyUtils.sendRequest(request, (response) => {
this.setState((state) => ({pendingRequests: state.pendingRequests - 1}));
Expand Down

0 comments on commit 8dbce7c

Please sign in to comment.