* group entities on map by name again so different types of the same herb/vein
   don't show up as separate groups
 * except mailboxes
 * partially reverts ea25776225
This commit is contained in:
Sarjuuk 2025-11-23 20:40:48 +01:00
parent adc0e16064
commit 2305d8bf13
2 changed files with 24 additions and 22 deletions

View file

@ -107,10 +107,8 @@ ShowOnMap.prototype.construct = function() {
}
if (nCoords > 0) {
var url = (g_types[group[p][0].type] && group[p][0].id ? '?' + g_types[group[p][0].type] + '=' + group[p][0].id : '');
// legend[submenu.length+1] = [p, url]; aowow - switch to numeric groupIdx to support mail
// entry.push(p + $WH.sprintf(LANG.qty, nPins));
legend[submenu.length+1] = [group[p][0].name, url];
entry.push(group[p][0].name + $WH.sprintf(LANG.qty, nPins));
legend[submenu.length+1] = [p, url];
entry.push(p + $WH.sprintf(LANG.qty, nPins));
entry.push(this.showStuff.bind(this, coords, [i, i2], legend));
submenu.push(entry);
for (var l in coords) {