Leaflet.pattern icon indicating copy to clipboard operation
Leaflet.pattern copied to clipboard

Multiple svg paths on single PatternPath

Open AdrianGolda opened this issue 5 years ago • 1 comments

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 (?)

AdrianGolda avatar Apr 22 '20 16:04 AdrianGolda

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?

RobSimpsonHove avatar May 11 '21 12:05 RobSimpsonHove