0

Improved marker titles and newlines

Primarily for browsers that don't render newlines in tooltips.
Thanks to ben0x539
This commit is contained in:
Andrew Chin
2010-12-11 20:13:19 -05:00
parent 97c58212c3
commit fcbff8af2a
3 changed files with 5 additions and 5 deletions

View File

@@ -663,7 +663,7 @@ class ChunkRenderer(object):
x= entity['x'],
y= entity['y'],
z= entity['z'],
msg="%s\n%s\n%s\n%s" %
msg="%s \n%s \n%s \n%s" %
(entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']),
chunk= (self.chunkX, self.chunkY),
)

View File

@@ -49,7 +49,7 @@ for dirpath, dirnames, filenames in os.walk(worlddir):
x= entity['x'],
y= entity['y'],
z= entity['z'],
msg="%s\n%s\n%s\n%s" %
msg="%s \n%s \n%s \n%s" %
(entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']),
chunk= (entity['x']/16, entity['z']/16),
)

View File

@@ -154,7 +154,7 @@ function initMarkers() {
var converted = fromWorldToLatLng(item.x, item.y, item.z);
var marker = new google.maps.Marker({position: converted,
map: map,
title: item.msg,
title: jQuery.trim(item.msg),
icon: iconURL
});
@@ -175,7 +175,7 @@ function initMarkers() {
var converted = fromWorldToLatLng(item.x, item.y, item.z);
var marker = new google.maps.Marker({position: converted,
map: map,
title: item.msg,
title: jQuery.trim(item.msg),
icon: iconURL,
visible: false
});
@@ -201,7 +201,7 @@ function initMarkers() {
var converted = fromWorldToLatLng(item.x, item.y, item.z);
var marker = new google.maps.Marker({position: converted,
map: map,
title: item.msg,
title: jQuery.trim(item.msg),
icon: iconURL,
visible: false
});