Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 2.85 KB

README.template.md

File metadata and controls

43 lines (31 loc) · 2.85 KB

ArcGIS Bookmarklets

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 and inSR)
    • Adds suggestions to the text input via datalist elements. Includes the following options. (Descriptions come from https://epsg.io.)
      • 4326: "WGS 84 -- WGS84 - World Geodetic System 1984, used in GPS"
      • 3857: "WGS 84 / Pseudo-Mercator -- Spherical Mercator, Google Maps, OpenStreetMap, Bing, ArcGIS, ESRI"
      • 2927: "NAD83(HARN) / Washington South (ftUS)"

Future ideas

The following are ideas for enhancements that have not yet been implemented.

  • Make it easier for users to specify geometry parameters
  • Add form validation using the Constraint validation API.
    • We can't simply mark the where input control as required. While where 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.

How to use

  1. Go to https://jeffjacobson.github.io/arcgis-bookmarklets and drag a link to your bookmarks toolbar

Alternatively,

  1. To use, create a new bookmark in your web browser and enter the text below as its URL.
  2. Each time you visit an ArcGIS Server query page, you can click this bookmarklet to enhance it.