Ignore:
Timestamp:
Oct 2, 2014, 11:48:58 AM (10 years ago)
Author:
alloc
Message:

webserver: landclaim coordinates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/webserver/js/index.js

    r200 r201  
    462462                                var m = L.marker(pos, { clickable: false, keyboard: false, zIndexOffset:-1000, iconSize: [0,0], icon: L.divIcon({className: 'invisIcon', iconSize:[0,0]}) });
    463463                                if (playersMappingList.hasOwnProperty(steamid)) {
    464                                         r.bindPopup("Owner: " + playersMappingList[steamid].name + "("+steamid+")");
     464                                        var name = playersMappingList[steamid].name;
    465465                                } else {
    466                                         r.bindPopup("Owner: unknown ("+steamid+")");
     466                                        var name = "unknown"
    467467                                }
     468                                r.bindPopup("Owner: " + name + " ("+steamid+")<br/>Position: " + val.x + " / " + val.y + " / " + val.z);
    468469                                landClaimsRectGroup.addLayer(r);
    469470                                landClaimsClusterGroup.addLayer(m);
Note: See TracChangeset for help on using the changeset viewer.