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

@@ -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
});