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

Add legend #13

Open
renatobecker-zz opened this issue Sep 14, 2016 · 3 comments
Open

Add legend #13

renatobecker-zz opened this issue Sep 14, 2016 · 3 comments

Comments

@renatobecker-zz
Copy link

Hi,

How can I add L.StripePattern as a legend item?
Thanks.

@A1rPun
Copy link

A1rPun commented Sep 8, 2017

Create a simple .png file and add this to your legend:

background-image: url('./path/to/stripes.png'); background-repeat: repeat;

@JamesWaldron
Copy link

Create a simple .png file and add this to your legend:

background-image: url('./path/to/stripes.png'); background-repeat: repeat;

Could you explain how this would be done? How can you create the png file from a pattern?

@A1rPun
Copy link

A1rPun commented Oct 9, 2019

@JamesWaldron You can find one on your favorite search engine with keywords like stripes tiled, make sure to search for transparent images.
There are also some generators out there so you can choose color, direction, etc.

Do note that this is just mimicking the style of L.StripePattern. I hope this answer your questions

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

3 participants