Adjust feature tooltip message when OSM layer is hidden

(re: https://github.com/openstreetmap/iD/issues/4292#issuecomment-330588097)
This commit is contained in:
Bryan Housel
2017-09-19 17:08:31 -04:00
parent 7b9af48c4d
commit 0edcc9d328
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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);
})