GEOLYTIX / xyz

An open source javascript framework for spatial data and application interfaces.
MIT License
87 stars 25 forks source link

Query Button PR #1313

Closed simon-leech closed 3 months ago

simon-leech commented 3 months ago

This PR moves the query_button plugin into the core. The method returns a button element which will execute a parameterised query. "reload" is used to reload the location.layer after the query has been executed (e.g. when the location geometry has been updated). "dependents" is used to reload the dependent fields after the query has been executed. "alert" is used to display a message after the query has been executed.


{
  "label": "Snap to Postal Sector",
  "type": "query_button",
  "query": "catchment_statistics_snap_to_postal_sector",
  "queryparams": {
    "id": true
  },
  "alert": "Query has executed!",
  "reload": true,
  "dependents": [
    "geom_3857",
    "perimeter",
    "area"
  ]
}
sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud