mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Added showPlayerNameOnMap to setup to toggle player names.
This commit is contained in:
parent
6fe8b4eb47
commit
7307d1ec27
BIN
dist/DynamicMap.rar
vendored
BIN
dist/DynamicMap.rar
vendored
Binary file not shown.
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user