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
+1
View File
@@ -397,6 +397,7 @@ en:
fill_area: Fill Areas
map_features: Map Features
autohidden: "These features have been automatically hidden because too many would be shown on the screen. You can zoom in to edit them."
osmhidden: "These features have been automatically hidden because the OpenStreetMap layer is hidden."
feature:
points:
description: Points
+2 -1
View File
@@ -488,7 +488,8 @@
},
"fill_area": "Fill Areas",
"map_features": "Map Features",
"autohidden": "These features have been automatically hidden because too many would be shown on the screen. You can zoom in to edit them."
"autohidden": "These features have been automatically hidden because too many would be shown on the screen. You can zoom in to edit them.",
"osmhidden": "These features have been automatically hidden because the OpenStreetMap layer is hidden."
},
"feature": {
"points": {
+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);
})