legend use material icons now

This commit is contained in:
Laura Klünder 2024-09-06 19:14:28 +02:00
parent 3101a8ada1
commit edef4437f7
2 changed files with 6 additions and 3 deletions

View file

@ -1574,7 +1574,10 @@ blink {
line-height: 26px;
text-align: center;
&::before {
content: '🔑';
font-family: 'Material Symbols Outlined';
content: 'legend_toggle';
font-size: 26px;
line-height: 26px;
}
}

View file

@ -2468,9 +2468,9 @@ KeyControl = L.Control.extend({
this._container.classList.toggle('leaflet-control-key-expanded', pinned);
this._content = L.DomUtil.create('div', 'content');
const collapsed = L.DomUtil.create('div', 'collapsed-toggle leaflet-control-key-toggle');
this._pin = L.DomUtil.create('div', 'pin-toggle');
this._pin = L.DomUtil.create('div', 'pin-toggle material-symbols');
this._pin.classList.toggle('active', pinned);
this._pin.innerText = '🖈';
this._pin.innerText = 'push_pin';
this._container.append(this._pin, this._content, collapsed);
this._expanded = pinned;
this._pinned = pinned;