mirror of
https://github.com/tsrman/tsrman.github.io.git
synced 2025-02-23 10:42:15 +00:00
example update
This commit is contained in:
parent
02e904024f
commit
260beca206
|
@ -9,7 +9,7 @@
|
||||||
margin-bottom: .5em;
|
margin-bottom: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-control-layers-group .groupHeader {
|
.leaflet-control-layers-list .leaflet-control-layers-group .groupHeader {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
|
@ -17,3 +17,11 @@
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none; }
|
user-select: none; }
|
||||||
|
|
||||||
|
.leaflet-control-layers-names {
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-control-layers-selector {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
|
@ -235,7 +235,8 @@ L.Control.GroupedLayers = L.Control.extend({
|
||||||
L.DomEvent.on(input, 'click', this._onInputClick, this);
|
L.DomEvent.on(input, 'click', this._onInputClick, this);
|
||||||
|
|
||||||
var name = document.createElement('span');
|
var name = document.createElement('span');
|
||||||
name.innerHTML = ' ' + obj.name;
|
name.className = 'leaflet-control-layers-names';
|
||||||
|
name.innerHTML = obj.name;
|
||||||
|
|
||||||
label.appendChild(input);
|
label.appendChild(input);
|
||||||
label.appendChild(name);
|
label.appendChild(name);
|
||||||
|
|
Loading…
Reference in a new issue