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

Possible to add a legend for geojson layers? #4

Open
sweco-sekrsv opened this issue Nov 29, 2022 · 1 comment
Open

Possible to add a legend for geojson layers? #4

sweco-sekrsv opened this issue Nov 29, 2022 · 1 comment
Labels
feature New feature

Comments

@sweco-sekrsv
Copy link

Very nice plugin. Is it possible to add legend images for leaflet geojson layers? I load a geojson and would like to add a legend for the layer.

@ignaciofagian
Copy link
Owner

Hi Kristian,

It's difficult to auto detect geojson legend, because we can define dynamic legend using a function.
But I'll study this plugin https://github.com/ptma/Leaflet.Legend it draws legend using shapes and we can inspire on it.

I think we can setup legend when we define the layer.

In the next weeks I'll checking this.

@ignaciofagian ignaciofagian added the feature New feature label Dec 9, 2022
ignaciofagian pushed a commit that referenced this issue Sep 30, 2023
- fix logic with subLayer IDs in esriDynamic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants