2019-04-14 20:17:43 +03:00
|
|
|
/* exported SearchControl */
|
2019-04-15 08:54:11 +03:00
|
|
|
/* globals SearchInput: true */
|
|
|
|
/* globals SearchMenu: true */
|
2019-04-14 20:17:43 +03:00
|
|
|
|
|
|
|
var SearchControl = L.Control.extend({
|
|
|
|
initialize: function(wsChannel, opts) {
|
|
|
|
L.Control.prototype.initialize.call(this, opts);
|
|
|
|
},
|
|
|
|
|
|
|
|
onAdd: function() {
|
2019-04-14 20:51:31 +03:00
|
|
|
var div = L.DomUtil.create('div');
|
2019-04-14 20:17:43 +03:00
|
|
|
|
|
|
|
m.mount(div, SearchInput);
|
|
|
|
m.mount(document.getElementById("search-content"), SearchMenu);
|
|
|
|
|
|
|
|
return div;
|
|
|
|
}
|
|
|
|
});
|