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= 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). updateRate: 2000, //Seconds the map should poll for updates. (Seconds) * 1000. The default is 2000 (every 2 seconds).
showPortraitsOnMap: true, showPortraitsOnMap: true,
showPortraitsInPlayerList: true showPortraitsInPlayerList: true,
showPlayerNameOnMap: false
}; };
/* THERE SHOULD BE NO NEED FOR MANUAL CONFIGURATION BEYOND THIS POINT */ /* 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({ var marker = new MarkerWithLabel({
position: converted, position: converted,
map: map, map: map,
labelContent: p[0], labelContent: (p[1] == 'player' && setup.showPlayerNameOnMap == false)?'':p[0],
labelAnchor: new google.maps.Point(-14, 10), labelAnchor: new google.maps.Point(-14, 10),
labelClass: "labels", labelClass: "labels",
clickable: false, clickable: false,