this.input.placeholder = this.options.placeholder;
this.results = L.DomUtil.create('div', 'list-group', group);
L.DomEvent.addListener(this.input, 'keyup', _.debounce(this.keyup, 300), this);
L.DomEvent.addListener(this.form, 'submit', this.submit, this);
L.DomEvent.disableClickPropagation(container);
return container;
},
onRemove: function (map) {
L.DomEvent.removeListener(this._input, 'keyup', this.keyup, this);
L.DomEvent.removeListener(form, 'submit', this.submit, this);
},
keyup: function(e) {
a.innerHTML = x.feature.properties.name;
this.results.appendChild(a);
L.DomEvent.addListener(a, 'click', this.itemSelected, this);
return a;
}, this);
L.DomEvent.preventDefault(e);
var elem = e.target;
var value = elem.innerHTML;
},
submit: function(e) {
L.DomEvent.preventDefault(e);