1
0
forked from MTSR/mapserver
This commit is contained in:
NatureFreshMilk 2019-05-14 16:04:42 +02:00
parent c57436ddf8
commit ce3e68bfd4
4 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
var worldInfoRender = function(info){
return "Lag: " + parseInt(info.max_lag*10)/10 + " Time: " + parseInt(info.time)/1000;
}
};
// coord display
var WorldInfoDisplay = L.Control.extend({
@ -15,7 +15,7 @@ var WorldInfoDisplay = L.Control.extend({
var div = L.DomUtil.create('div', 'leaflet-bar leaflet-custom-display');
this.wsChannel.addListener("minetest-info", function(info){
m.render(div, worldInfoRender(info))
m.render(div, worldInfoRender(info));
});
return div;

View File

@ -12,7 +12,7 @@ var ATMOverlay = AbstractIconOverlay.extend({
},
getIcon: function(obj){
var img = "pics/atm_front.png"
var img = "pics/atm_front.png";
if (obj.attributes.type == "wiretransfer")
img = "pics/atm_front.png";

View File

@ -1,4 +1,4 @@
/* exported ATMOverlay */
/* exported LocatorOverlay */
/* globals AbstractIconOverlay: true */
@ -12,7 +12,7 @@ var LocatorOverlay = AbstractIconOverlay.extend({
},
getIcon: function(obj){
var img = "pics/locator_beacon_level1.png"
var img = "pics/locator_beacon_level1.png";
if (obj.attributes.level == "2")
img = "pics/locator_beacon_level2.png";
@ -31,6 +31,6 @@ var LocatorOverlay = AbstractIconOverlay.extend({
return "<h4>Locator</h4><hr>" +
"<b>Owner: " + obj.attributes.owner + "</b><br>" +
"<b>Name:</b> " + obj.attributes.name + "<br>" +
"<b>Level:</b> " obj.attributes.level "<br>";
"<b>Level:</b> " + obj.attributes.level + "<br>";
}
});

View File

@ -50,7 +50,7 @@ var SearchResult = {
if (obj.type == "locator"){
description = m("span", obj.attributes.name);
var img = "pics/locator_beacon_level1.png"
var img = "pics/locator_beacon_level1.png";
if (obj.attributes.level == "2")
img = "pics/locator_beacon_level2.png";