forked from MTSR/mapserver
19 lines
439 B
JavaScript
19 lines
439 B
JavaScript
/* exported SearchControl */
|
|
/* globals SearchInput: true */
|
|
/* globals SearchMenu: true */
|
|
|
|
var SearchControl = L.Control.extend({
|
|
initialize: function(wsChannel, opts) {
|
|
L.Control.prototype.initialize.call(this, opts);
|
|
},
|
|
|
|
onAdd: function() {
|
|
var div = L.DomUtil.create('div');
|
|
|
|
m.mount(div, SearchInput);
|
|
m.mount(document.getElementById("search-content"), SearchMenu);
|
|
|
|
return div;
|
|
}
|
|
});
|