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

added default value for inSR=4326 to fix queries to arcgis server #322

Closed
wants to merge 1 commit into from

Conversation

brendancol
Copy link

when querying a map service layer and sending in the envelope geometry:

{"xmin":90,"ymin":0,"xmax":112.5,"ymax":21.94304553343818,"spatialReference":{"wkid":4326}}

The inSR parameter also needed to be set to 4326 to successfully return features. My guess is that this is a quirk in the arcgis server vs. arcgis online and that agol will successfully read the spatialReference from the envelope json itself, but that ArcGIS Server won't.

@patrickarlt
Copy link
Contributor

This is actually already fixed by d0dc744 when it was reported in #283.

The better way to fix it is to add inSr to the params when you add the bounds. This will be released in beta 6 (which should hopefully be out later this week)

@patrickarlt patrickarlt closed this Aug 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants