diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js
index a27ee10..515ac83 100644
--- a/htdocs/mapscript.js
+++ b/htdocs/mapscript.js
@@ -95,6 +95,14 @@ var style_outlines = {
var style_streets = {
};
+var style_trains = {
+ color: "yellow"
+ };
+
+var style_tech = {
+ color: "red"
+ };
+
var style_route = {
radius: 8,
fillColor: "#00ff00",
@@ -206,9 +214,12 @@ function load_geojson(name, url, geotype, iconcolor, active=1, style={}) {
switch (geotype) {
case "street":
+ case "train":
onEachFeature = function(feature, layer) {
layer.myTag = geotype;
layer.myName = name;
+ if (geotype == "train")
+ layer.no_search = true
layer.on("click", function (e) {
current_feature = feature;
});
@@ -387,7 +398,11 @@ function build_sidebar() {
route_element.style.overflow = "scroll";
route_element.style.padding = "6px";
route_element.style.height = "100%";
- route_element.innerHTML = '<-- Return to search