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

Allow custom ordering determination mechanism when there are overlapping features #778

Closed
matthewma7 opened this issue Feb 20, 2018 · 1 comment

Comments

@matthewma7
Copy link

Currently, when there are overlapping features, GeoJS will determine the ordering based on the internal z-index of the feature, the feature has higher z-index will have higher priority for events.
Would request a functionality that allows a custom ordering determination mechanism, such as order by the distance of feature borders or centroids to the cursor.

image

@manthey
Copy link
Contributor

manthey commented Apr 11, 2018

Added in PR #807.

@manthey manthey closed this as completed Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants