diff --git a/server/static/index.html b/server/static/index.html index e042dfb..2beeba4 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -40,6 +40,7 @@ + diff --git a/server/static/js/main.js b/server/static/js/main.js index 7bd5ac0..1159635 100644 --- a/server/static/js/main.js +++ b/server/static/js/main.js @@ -36,6 +36,7 @@ api.getConfig().then(function(cfg){ overlays["Digilines LCD"] = new LcdOverlay(wsChannel, layerMgr); overlays["Digiterms"] = new DigitermOverlay(wsChannel, layerMgr); overlays["Lua Controller"] = new LuacontrollerOverlay(wsChannel, layerMgr); + overlays["Technic Anchor"] = new TechnicAnchorOverlay(wsChannel, layerMgr); //overlays["Protector"] = new ProtectorOverlay(wsChannel, layerMgr); //Default enabled overlays diff --git a/server/static/js/overlays/TechnicAnchorOverlay.js b/server/static/js/overlays/TechnicAnchorOverlay.js new file mode 100644 index 0000000..a776a34 --- /dev/null +++ b/server/static/js/overlays/TechnicAnchorOverlay.js @@ -0,0 +1,22 @@ +'use strict'; + +var TechnicAnchorIcon = L.icon({ + iconUrl: 'pics/technic_admin_anchor.png', + + iconSize: [32, 32], + iconAnchor: [16, 16], + popupAnchor: [0, -32] +}); + +var TechnicAnchorOverlay = AbstractIconOverlay.extend({ + initialize: function(wsChannel, layerMgr) { + AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "luacontroller", TechnicAnchorIcon); + }, + + createPopup: function(lcd){ + return "

Owner: " + lcd.attributes.owner + "

" + + "

Radius: " + lcd.attributes.radius + "

" + + "

Locked: " + lcd.attributes.locked + "

" + + "

Enabled: " + lcd.attributes.enabled + "

"; + } +});