Use bootstrap form-check for overlay selection
This commit is contained in:
parent
101c2af87e
commit
5c086dad6e
1 changed files with 3 additions and 1 deletions
|
@ -119,7 +119,7 @@ L.OSM.layers = function (options) {
|
|||
.attr("class", "text-muted")
|
||||
.appendTo(overlaySection);
|
||||
|
||||
var overlays = $("<ul class='list-unstyled standard-form'>")
|
||||
var overlays = $("<ul class='list-unstyled form-check'>")
|
||||
.appendTo(overlaySection);
|
||||
|
||||
var addOverlay = function (layer, name, maxArea) {
|
||||
|
@ -130,12 +130,14 @@ L.OSM.layers = function (options) {
|
|||
.appendTo(overlays);
|
||||
|
||||
var label = $("<label>")
|
||||
.attr("class", "form-check-label")
|
||||
.appendTo(item);
|
||||
|
||||
var checked = map.hasLayer(layer);
|
||||
|
||||
var input = $("<input>")
|
||||
.attr("type", "checkbox")
|
||||
.attr("class", "form-check-input")
|
||||
.prop("checked", checked)
|
||||
.appendTo(label);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue