Changeset 176 for binary-improvements/webserver
- Timestamp:
- Sep 7, 2014, 8:43:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/webserver/js/index.js
r175 r176 342 342 var r = L.rectangle(bounds, {color: color, weight: 1}); 343 343 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 } 345 349 landClaimsGroup.addLayer(r); 346 350 landClaimsGroup.addLayer(m);
Note:
See TracChangeset
for help on using the changeset viewer.