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

Round X/Y Co-Ords in infoParams. (Browser Fix) #24

Merged
merged 1 commit into from
Jul 29, 2015

Conversation

CWRahien
Copy link
Contributor

When querying a layer in Internet Explorer - the WMS will throw an "X and Y incorrectly specified" error in the parse response. This error seems only occur in IE specifically. Investigating the X/Y parameters passed - they appear to be decimal values where integers are expected.

The fix for this is to Math.round() the X and Y values in infoParams so that the decimal value is removed by rounding the value to the closest real number before it is passed as a request when querying.

This should (I think) solve the issue found here: #17

When querying a layer in Internet Explorer - the WMS will throw an "X and Y incorrectly specified" error in the parse response. This error seems only occur in IE specifically. Investigating the X/Y parameters passed - they appear to be decimal values where integers are expected.

The fix for this is to Math.round() the X and Y values in infoParams so that the decimal value is removed by rounding the value to the closest real number before it is passed as a request when querying.
@swethahedlund swethahedlund merged commit 17a65d6 into heigeo:gh-pages Jul 29, 2015
@swethahedlund
Copy link
Contributor

Thank you.

@CWRahien CWRahien deleted the patch-1 branch July 30, 2015 08:45
@sheppard sheppard modified the milestone: 0.2.0 Nov 7, 2016
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.

3 participants