Initialize checkbox for campaign specific layer

pull/1/head
Daniel Asher Resnick 4 years ago
parent 0c3588fe54
commit 2f986f4d99
  1. 3
      index.html

@ -73,9 +73,10 @@
shadowrunswitcher.addTo(map); shadowrunswitcher.addTo(map);
document.getElementById ("shadowrunswitcher").addEventListener ("click", toggleShadowrun, false); document.getElementById ("shadowrunswitcher").addEventListener ("click", toggleShadowrun, false);
var oursswitcher = L.control({position: 'topleft'});
oursswitcher.onAdd = function (map) { oursswitcher.onAdd = function (map) {
var div = L.DomUtil.create('div', 'ours'); var div = L.DomUtil.create('div', 'ours');
div.innerHTML = '<form><input id="oursswitcher" type="checkbox" checked />Toggle District Info</form>'; div.innerHTML = '<form><input id="oursswitcher" type="checkbox" checked />Toggle Campaign Specific</form>';
return div; return div;
}; };

Loading…
Cancel
Save