A bookmarklet that enhances the ArcGIS REST query page with various quality-of-life changes.
- Field names are now selected via a multi-option select element rather than requiring the user to type a comma-separated list of field names that they have to look up themselves.
- Gives the user the option of not setting query parameters that they don't need.
- Added "None" option to select elements (drop-downs) for non-required parameters. (E.g., "f" is a required parameter for the query, so it does not get a "None" option in its select element.)
- Similarly, "true" and "false" radio buttons gain a third option which allows the user to leave the setting unset rather than be forced to choose a value.
- Adds a link to the top of the page that will clean-up the URL by removing search parameters from the URL that have no value.
- Submitting the form will now open the results in a new browser tab rather than replacing the current one.
- Adds a reset button to the form.
- Spatial Reference input changes (
outSR
andinSR
)- Adds suggestions to the text input via datalist elements. Includes the following options. (Descriptions come from https://epsg.io.)
The following are ideas for enhancements that have not yet been implemented.
- Make it easier for users to specify geometry parameters
- Allow them to select a point using epsg.io's "Get position on a map" feature, which supports various SRs.
- Add form validation using the Constraint validation API.
- We can't simply mark the
where
input control as required. Whilewhere
is usually required for a query, but not always, depending on what other parameters the user has specified. - Validate geometry input is in the correct format.
- We can't simply mark the
- Go to https://jeffjacobson.github.io/arcgis-bookmarklets and drag a link to your bookmarks toolbar
Alternatively,
- To use, create a new bookmark in your web browser and enter the text below as its URL.
- Each time you visit an ArcGIS Server query page, you can click this bookmarklet to enhance it.