diff --git a/server/static/js/search/SearchResult.js b/server/static/js/search/SearchResult.js index 311b6f7..e24f27c 100644 --- a/server/static/js/search/SearchResult.js +++ b/server/static/js/search/SearchResult.js @@ -46,6 +46,12 @@ var SearchResult = { type = m("img", { src: "pics/bones_top.png" }); } + // label + if (obj.type == "label"){ + description = m("span", obj.attributes.text); + type = m("img", { src: "pics/mapserver_label.png" }); + } + // locator if (obj.type == "locator"){ description = m("span", obj.attributes.name); diff --git a/server/static/js/search/SearchService.js b/server/static/js/search/SearchService.js index fd59171..67fd0d9 100644 --- a/server/static/js/search/SearchService.js +++ b/server/static/js/search/SearchService.js @@ -35,7 +35,8 @@ var SearchService = { searchFor("train", "station", SearchStore.query), searchFor("travelnet", "station_name", SearchStore.query), searchFor("bones", "owner", SearchStore.query), - searchFor("locator", "name", SearchStore.query) + searchFor("locator", "name", SearchStore.query), + searchFor("label", "text", SearchStore.query) ]; Promise.all(prom_list) diff --git a/server/static/pics/mapserver_label.png b/server/static/pics/mapserver_label.png new file mode 100644 index 0000000..ed03e34 Binary files /dev/null and b/server/static/pics/mapserver_label.png differ