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

unexpected behavior when click on box #5

Open
stefanocudini opened this issue Aug 11, 2015 · 6 comments
Open

unexpected behavior when click on box #5

stefanocudini opened this issue Aug 11, 2015 · 6 comments

Comments

@stefanocudini
Copy link

I think this is strange behavior for a user.
It would be much better if the selected layer remains in the same position

@aparshin
Copy link
Contributor

I agree that it is a little bit strange to rotate layers in control after selection. The advantage of such behavior is that you can switch two (and even three) last layers by single mouse click.

We are going to implement other behaviors and add corresponding option in control.

@stefanocudini
Copy link
Author

What seem to me is the rotation is random and unpredictable :( ... also in this demo:
http://scanex.github.io/Leaflet-IconLayers/examples/

Best way is maintain same position and adding class for selection.

Besides these it's an great plugin!

@aparshin
Copy link
Contributor

What seem to me is the rotation is random and unpredictable :( ... also in this demo:
http://scanex.github.io/Leaflet-IconLayers/examples/

Well, uh... Looks like something is really wrong here :) I'll check it, thanks!

Best way is maintain same position and adding class for selection.

The main idea of current algorithm is to show "best next layer" in bottom left corner of the widget (it allows users to select that layer by single click). Such behavior changes layer positions. As I already said, we are going to implement multiple variants of layer selection behavior...

Besides these it's an great plugin!

Thank you!

@EmiyaGm
Copy link

EmiyaGm commented Sep 10, 2017

I've tried to solve this problem, so you can look at my code
https://github.com/EmiyaGm/Leaflet-IconLayers

@jinixx
Copy link

jinixx commented May 23, 2019

Thanks for the great plugin guys.

Our users are however, complaining about the same, will there be an update to this?

@marie-becker
Copy link

Do you still plan on updating the plugin? Our clients unfortunately complained about it being confusing

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

5 participants