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

Is there an easy way to increase the Tolerance for GetFeatureInfo #7

Open
tudorbarascu opened this issue Feb 20, 2015 · 5 comments
Open

Comments

@tudorbarascu
Copy link

Currently, clicking on a feature to get it's attributes is really hard (using QGis Server).
Is there an easy way to increase the tolerance? I am searching for a way but if anyone has fixed this please shed a light on it.

Thanks,
Tudor

@tudorbarascu
Copy link
Author

Oh, closing this, didn't see the last commit! Many thanks, great job!!!

@mwa
Copy link
Member

mwa commented Feb 20, 2015

Please note that the corresponding QGIS Server changes are not yet in master, but will be added after the current feature freeze for the upcoming QGIS release has been lifted.

@tudorbarascu
Copy link
Author

Just noticed qgis/QGIS#1860
Good to know, thanks again!

@tudorbarascu
Copy link
Author

Hi again, although qgis/QGIS#1860 managed to get into 2.8 and I added your commit the issue is not solved. By comparing at the same scale and on the same point how the requests I got a better picture of the issue and found out that:
For OL3 mobile, the WIDTH, HEIGHT, X, Y parameters are always sent having (101, 101, 50, 50) values.
By shrinking the Qgis Web Client window to approximately fit the parameters that didn't work correctly, I found out that I can replicate the issue and I cannot get correct GetFeatureInfo response.
screenshot from 2015-02-24 11 50 07
I am now searching and hopefully find some elegant solutions.
All the best,
Tudor

@tudorbarascu tudorbarascu reopened this Feb 24, 2015
@tudorbarascu
Copy link
Author

As a current hack to get it working, I simply changed the Ax variable in ol3.js from (101, 101) to (1001,1001)

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

No branches or pull requests

2 participants