forked from MTSR/mapserver
locator search
This commit is contained in:
parent
fdd28c16f5
commit
2bb8319673
@ -46,6 +46,20 @@ var SearchResult = {
|
|||||||
type = m("img", { src: "pics/bones_top.png" });
|
type = m("img", { src: "pics/bones_top.png" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// locator
|
||||||
|
if (obj.type == "locator"){
|
||||||
|
description = m("span", obj.attributes.name);
|
||||||
|
|
||||||
|
var img = "pics/locator_beacon_level1.png"
|
||||||
|
|
||||||
|
if (obj.attributes.level == "2")
|
||||||
|
img = "pics/locator_beacon_level2.png";
|
||||||
|
else if (obj.attributes.level == "3")
|
||||||
|
img = "pics/locator_beacon_level3.png";
|
||||||
|
|
||||||
|
type = m("img", { src: img });
|
||||||
|
}
|
||||||
|
|
||||||
// poi marker
|
// poi marker
|
||||||
if (obj.type == "poi"){
|
if (obj.type == "poi"){
|
||||||
description = m("span", obj.attributes.name);
|
description = m("span", obj.attributes.name);
|
||||||
|
@ -34,7 +34,8 @@ var SearchService = {
|
|||||||
searchFor("poi", "name", SearchStore.query),
|
searchFor("poi", "name", SearchStore.query),
|
||||||
searchFor("train", "station", SearchStore.query),
|
searchFor("train", "station", SearchStore.query),
|
||||||
searchFor("travelnet", "station_name", SearchStore.query),
|
searchFor("travelnet", "station_name", SearchStore.query),
|
||||||
searchFor("bones", "owner", SearchStore.query)
|
searchFor("bones", "owner", SearchStore.query),
|
||||||
|
searchFor("locator", "name", SearchStore.query)
|
||||||
];
|
];
|
||||||
|
|
||||||
Promise.all(prom_list)
|
Promise.all(prom_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user