label search
This commit is contained in:
parent
043a857cee
commit
3adcec1df4
@ -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);
|
||||
|
@ -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)
|
||||
|
BIN
server/static/pics/mapserver_label.png
Normal file
BIN
server/static/pics/mapserver_label.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user