-
Notifications
You must be signed in to change notification settings - Fork 799
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
Nearby queries incorrectly sending param "inSr" instead of "inSR" #1250
Comments
@Voileexperiments thank you for the clear description and doing some research on what's going on. We'll take a look. Indeed this documentation only uses the case |
@Voileexperiments can you also tell us what version of ArcGIS Enterprise you are seeing this issue with? |
This will be available the next time we publish a new release. |
I'm debugging a issue where a
nearby
query on a ArcGIS Enterprise feature layer does not work at all if it's initiated from leaflet (it either returns full result or empty), but works completely fine when testing on REST API page. After some squinting I discovered the only difference between two requests is that ArcGIS REST API page sendinSR=4326
while Leaflet sendsinSr=4326
, which caused thenearby
query to fail.The correct param is
inSR
. UsinginSr
works for ArcGIS Online (https://esri.github.io/esri-leaflet/examples/querying-feature-layers-2.html) because presumably it's more lax with request params case-sensitivity.I think there are a total of two places that needs to be changed, and the fix should be easy(?):
https://github.com/Esri/esri-leaflet/blob/master/src/Tasks/Query.js#L97
https://github.com/Esri/esri-leaflet/blob/master/src/Tasks/Query.js#L213
The text was updated successfully, but these errors were encountered: