Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] - URL Shortener #9

Closed
jpeterson opened this issue Jan 24, 2018 · 1 comment
Closed

[Feature Request] - URL Shortener #9

jpeterson opened this issue Jan 24, 2018 · 1 comment
Assignees

Comments

@jpeterson
Copy link

Feature

A “Map/Feature Service Query URL shortener”.

Use Case

I often want to share a query url with someone, but, when clicking Query (GET), the REST page adds every possible parameter to the url, resulting in something like this:

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3/query?where=MED_AGE+%3C33&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&f=html

Which could be shortened to this:

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3/query?where=MED_AGE+%3C33&returnGeometry=false

It would be awesome if I could share shorter, more comprehensible urls like the latter example above, perhaps by clicking a button in this extension's UI.

@raykendo raykendo self-assigned this Feb 1, 2018
@raykendo
Copy link
Owner

This feature has been added to the 1.2.0 version of the application, and can be accessed by clicking on the Map Services Enhanced icon. If the URL can be shortened, a text box will appear that will display the shortened URL link, along with a copy to clipboard button.

For your example, I did leave the outFields=* in the results. I don't always trust that the query will go through without something in the outFields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants