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

Custom selection pixel buffer #20

Open
rhodges opened this issue Oct 19, 2023 · 0 comments
Open

Custom selection pixel buffer #20

rhodges opened this issue Oct 19, 2023 · 0 comments

Comments

@rhodges
Copy link
Member

rhodges commented Oct 19, 2023

Currently we have a 3-or-so pixel buffer around a cursor when clicking on a MapService layer: this creates a bounding box to use for querying for features to report on. We also have an option to turn this off, and only query for 2D features that overlap the point clicked.

What would be REALLY helpful, would be to enable adjusting the radius of the buffer for point or line layers served via MapServer. If the radius of the buffer of the click matched the radius of the icon (for points), of half of the width of the stroke (for lines) then clicking on the visible feature would result in a hit without impacting more accurate (tight) buffers for selecting other layers -- this would reduce selecting features that the user did not intend to click on.

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

1 participant