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

[Question] Dragging multiple polygons in canvas mode? #48

Open
AndrejGajdos opened this issue Mar 3, 2021 · 7 comments
Open

[Question] Dragging multiple polygons in canvas mode? #48

AndrejGajdos opened this issue Mar 3, 2021 · 7 comments

Comments

@AndrejGajdos
Copy link

I am just wondering. Does dragging multiple polygons work in canvas mode? During dragging only one polygon is visible.

I am adding a link to so for reference.

@w8r
Copy link
Owner

w8r commented Mar 3, 2021

Can you put them into a MultiPolygon?

@AndrejGajdos
Copy link
Author

@w8r yes I can. Thank you, this is a great idea. I will try it out and let you know.

@AndrejGajdos
Copy link
Author

AndrejGajdos commented Mar 3, 2021

@w8r unfortunately, multipolygon doesn't work because it makes holes for overlapping polygons codesandbox.io

@w8r
Copy link
Owner

w8r commented Mar 4, 2021

There's a fllRule option on the L.Path styles for that, what makes it alternate like that is the evenodd option, you may try some other one from the list here

@AndrejGajdos
Copy link
Author

@w8r default value is evenodd, if I try nonzero it doesn't make any difference codesandbox.io

@AndrejGajdos
Copy link
Author

Would be great if this plugin supports dragging whole FeatureGroup. You can consider this as a feature request.

@w8r
Copy link
Owner

w8r commented Mar 5, 2021

Good point!

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