-
Notifications
You must be signed in to change notification settings - Fork 21
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
Setting layer name shown under the layer control #12
Comments
@davidbrochart Sounds good. So basically, users can set
|
Yes, that's the plan. But it could also be possible to set it as a keyword argument of the plot function in the case of a |
Sounds great! Looking forward to it. I will be adding xarray_leaflet as a dependency for geemap. I plan to add a function (e.g., |
Awesome! |
I was able to customize the layer name. Here is the source code. |
So it looks like setting the layer name works fine? |
Yes, it works with geemap. But I would still suggest you add the layer_name argument to the |
I second that suggestion! |
Sorry, I didn't have much time to work on xarray-leaflet lately. There will be a JupyterCon sprint on ipyleaflet, where we could also work on xarray-leaflet. It would be great if you could participate! |
The layer name is now set to the DataArray name (see davidbrochart@66536e0). |
Is it possible to set the layer name shown under the layer control? Currently, it seems the default layer name is empty. I tried using
l.name = 'layer name'
, but it has no effect. It would be great if theda.leaflet.plot()
has a name argument that can be set directly. Thanks.The text was updated successfully, but these errors were encountered: