1
0
forked from MTSR/mapserver
mapserver/static/js/SearchControl.js
2019-06-14 07:46:28 +02:00

19 lines
489 B
JavaScript

import SearchMenu from './search/SearchMenu.js';
import SearchInput from './search/SearchInput.js';
export default L.Control.extend({
initialize: function(wsChannel, opts) {
L.Control.prototype.initialize.call(this, opts);
},
onAdd: function(map) {
var div = L.DomUtil.create('div');
m.mount(div, SearchInput);
m.mount(document.getElementById("search-content"), {
view: () => m(SearchMenu, {map: map})
});
return div;
}
});