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

Multiple svg paths on single PatternPath #25

Open
AdrianGolda opened this issue Apr 22, 2020 · 1 comment
Open

Multiple svg paths on single PatternPath #25

AdrianGolda opened this issue Apr 22, 2020 · 1 comment

Comments

@AdrianGolda
Copy link

Is there a way to achieve it?
var shape = new L.PatternPath({ d: 'M10 0 L7 20 L25 20 Z', fill: true });
The API is straightforward and says 'No'. But maybe I am missing something (?)

@RobSimpsonHove
Copy link

You can add multiple shapes to a pattern. I uses this when wanting different colours. Is that not sufficient for you? What are you trying to achieve?

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