1
0
forked from MTSR/mapserver
mapserver/server/static/js/SearchControl.js

22 lines
522 B
JavaScript
Raw Normal View History

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