Isn’t this actually the same question as in the other topic?
While this isn’t in Trackserver right now, it’s really easy to accomplish.
In trackserver.js, find the infobar code, which looks something like this in summarized form:
if (mymapdata.is_live) {
if (track_id == follow_id) {
if (mymapdata.infobar) {
if (alltracks && alltracks[track_id]) {
metadata = alltracks[track_id].metadata;
}
else {
metadata = _this.get_mydata(div_id, track_id, 'metadata');
}
...
mymapdata.infobar_div.innerHTML = infobar_text;
}
}
}
If you pull the metadata assigment two levels up, you can very easily add a tooltip to the end_marker:
if (mymapdata.is_live) {
if (alltracks && alltracks[track_id]) {
metadata = alltracks[track_id].metadata;
}
else {
metadata = _this.get_mydata(div_id, track_id, 'metadata');
}
if (track_id == follow_id) {
if (mymapdata.infobar) {
...
mymapdata.infobar_div.innerHTML = infobar_text;
}
}
}
end_marker.bindTooltip(metadata.userlogin).openTooltip();
That last line adds a tooltip with the user’s login name. You can als use the display name:
end_marker.bindTooltip(metadata.displayname).openTooltip();
or any other information that is available in the metadata.
Does that help?
Best regards,
Martijn.