legend use material icons now
This commit is contained in:
parent
3101a8ada1
commit
edef4437f7
2 changed files with 6 additions and 3 deletions
|
@ -1574,7 +1574,10 @@ blink {
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
&::before {
|
&::before {
|
||||||
content: '🔑';
|
font-family: 'Material Symbols Outlined';
|
||||||
|
content: 'legend_toggle';
|
||||||
|
font-size: 26px;
|
||||||
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2468,9 +2468,9 @@ KeyControl = L.Control.extend({
|
||||||
this._container.classList.toggle('leaflet-control-key-expanded', pinned);
|
this._container.classList.toggle('leaflet-control-key-expanded', pinned);
|
||||||
this._content = L.DomUtil.create('div', 'content');
|
this._content = L.DomUtil.create('div', 'content');
|
||||||
const collapsed = L.DomUtil.create('div', 'collapsed-toggle leaflet-control-key-toggle');
|
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.classList.toggle('active', pinned);
|
||||||
this._pin.innerText = '🖈';
|
this._pin.innerText = 'push_pin';
|
||||||
this._container.append(this._pin, this._content, collapsed);
|
this._container.append(this._pin, this._content, collapsed);
|
||||||
this._expanded = pinned;
|
this._expanded = pinned;
|
||||||
this._pinned = pinned;
|
this._pinned = pinned;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue