Changeset 176 for binary-improvements


Ignore:
Timestamp:
Sep 7, 2014, 8:43:02 PM (5 years ago)
Author:
alloc
Message:

LandClaims on webmap test

File:
1 edited

Legend:

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

    r175 r176  
    342342                        var r = L.rectangle(bounds, {color: color, weight: 1});
    343343                        var m = L.marker(pos, { clickable: false, keyboard: false, zIndexOffset:-1000, iconSize: [0,0], icon: L.divIcon({className: 'invisIcon', iconSize:[0,0]}) });
    344                         r.bindPopup("Owner: " + playersMappingList[steamid].name);
     344                        if (playersMappingList.hasOwnProperty(steamid)) {
     345                                r.bindPopup("Owner: " + playersMappingList[steamid].name);
     346                        } else {
     347                                r.bindPopup("Owner: unknown ("+steamid+")");
     348                        }
    345349                        landClaimsGroup.addLayer(r);
    346350                        landClaimsGroup.addLayer(m);
Note: See TracChangeset for help on using the changeset viewer.