Improved marker titles and newlines
Primarily for browsers that don't render newlines in tooltips. Thanks to ben0x539
This commit is contained in:
2
chunk.py
2
chunk.py
@@ -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),
|
||||
)
|
||||
|
||||
@@ -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),
|
||||
)
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user