1
0
forked from MTSR/mapserver

digiline lcd & digiterm search

This commit is contained in:
NatureFreshMilk 2019-06-11 13:54:58 +02:00
parent 3adcec1df4
commit 922fbee059
2 changed files with 15 additions and 1 deletions

View File

@ -52,6 +52,18 @@ var SearchResult = {
type = m("img", { src: "pics/mapserver_label.png" });
}
// digiterm
if (obj.type == "digiterm"){
description = m("span", obj.attributes.display_text);
type = m("img", { src: "pics/digiterms_beige_front.png" });
}
// digiline lcd
if (obj.type == "digilinelcd"){
description = m("span", obj.attributes.text);
type = m("img", { src: "pics/lcd_lcd.png" });
}
// locator
if (obj.type == "locator"){
description = m("span", obj.attributes.name);

View File

@ -36,7 +36,9 @@ var SearchService = {
searchFor("travelnet", "station_name", SearchStore.query),
searchFor("bones", "owner", SearchStore.query),
searchFor("locator", "name", SearchStore.query),
searchFor("label", "text", SearchStore.query)
searchFor("label", "text", SearchStore.query),
searchFor("digiterm", "display_text", SearchStore.query),
searchFor("digilinelcd", "text", SearchStore.query)
];
Promise.all(prom_list)