1
0
forked from MTSR/mapserver
mapserver/server/static/js/SearchControl.js
2019-04-20 17:59:22 +02:00

22 lines
522 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(map) {
var div = L.DomUtil.create('div');
m.mount(div, SearchInput);
m.mount(document.getElementById("search-content"), {
view: function () {
return m(SearchMenu, {map: map});
}
});
return div;
}
});