You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you elaborate more on this? Do you mean you'd like to be able to change the transparency of all the layers within a layer that is attached to a legend control? I'm afraid such a thing is beyond the scope of this plugin. Items in legend elements have no concept of which sub-layer they are representing.
No. For some entries, I just use the control to show colors with description (see Layer 1 in your example site), but I don't want to have the show/hide symbol or the transparency control. I DO want the controls for the second layer (Layer 2 in your example).
Currently the disableVisibilityControls applies to all the entries in the legend. I would like to set it per entry.
One work-around would be to have separate legends, but that would clutter the map.
I see what you mean. I updated the code and moved disableVisibilityControls to legend options. Now you can set that option to true for each legend that you don't want to have a visibility slider.
The new changes are in #13 and waiting for review. You can see its usage in layer 4 in the updated example.
No description provided.
The text was updated successfully, but these errors were encountered: