mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Adjust feature tooltip message when OSM layer is hidden
(re: https://github.com/openstreetmap/iD/issues/4292#issuecomment-330588097)
This commit is contained in:
@@ -335,7 +335,8 @@ export function uiMapData(context) {
|
||||
key = (d === 'wireframe' ? t('area_fill.wireframe.key') : null);
|
||||
|
||||
if (name === 'feature' && autoHiddenFeature(d)) {
|
||||
tip += '<div>' + t('map_data.autohidden') + '</div>';
|
||||
var msg = showsLayer('osm') ? t('map_data.autohidden') : t('map_data.osmhidden');
|
||||
tip += '<div>' + msg + '</div>';
|
||||
}
|
||||
return uiTooltipHtml(tip, key);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user