Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Allow titles on map legend #324

Open
@pedrorocha-net

Description

@pedrorocha-net

We can allow users to add extra HTML markup on the legend, at least for a title before the items.

On _getOnAddArrayLegend() function, we can simply add
div.innerHTML += '<div class="title">' + legend.title + '</div>';
after
var div = L.DomUtil.create('div', legendClass);

Need to sanitize and check if the title is there, but i'm still getting used to Leaflet and ui-leaflet, so i'm not sure if I have enough time to make a patch and PR.

If anyone could help here, would be great.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions