Added showPlayerNameOnMap to setup to toggle player names.

This commit is contained in:
fescen9 2010-12-12 23:10:29 +00:00
parent 6fe8b4eb47
commit 7307d1ec27
2 changed files with 3 additions and 2 deletions

BIN
dist/DynamicMap.rar vendored

Binary file not shown.

View File

@ -3,7 +3,8 @@ var setup = {
updateUrl: 'http://www.yourdomain.com/minecraft/up/', // Or if using ASP.NET: http://www.yourdomain.com/minecraft/up/default.aspx?lasttimestamp=
updateRate: 2000, //Seconds the map should poll for updates. (Seconds) * 1000. The default is 2000 (every 2 seconds).
showPortraitsOnMap: true,
showPortraitsInPlayerList: true
showPortraitsInPlayerList: true,
showPlayerNameOnMap: false
};
/* THERE SHOULD BE NO NEED FOR MANUAL CONFIGURATION BEYOND THIS POINT */
@ -639,7 +640,7 @@ function makeRequest(url, func, type, fail, post, contenttype)
var marker = new MarkerWithLabel({
position: converted,
map: map,
labelContent: p[0],
labelContent: (p[1] == 'player' && setup.showPlayerNameOnMap == false)?'':p[0],
labelAnchor: new google.maps.Point(-14, 10),
labelClass: "labels",
clickable: false,