You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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...
Activity
aparshin commentedon Aug 12, 2015
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 commentedon Aug 12, 2015
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 commentedon Aug 12, 2015
Well, uh... Looks like something is really wrong here :) I'll check it, thanks!
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...
Thank you!
EmiyaGm commentedon Sep 10, 2017
I've tried to solve this problem, so you can look at my code
https://github.com/EmiyaGm/Leaflet-IconLayers
jinixx commentedon 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 commentedon May 11, 2021
Do you still plan on updating the plugin? Our clients unfortunately complained about it being confusing