Skip to content

Commit

Permalink
Adjust feature tooltip message when OSM layer is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Sep 19, 2017
1 parent 7b9af48 commit 0edcc9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion modules/ui/map_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
Expand Down

0 comments on commit 0edcc9d

Please sign in to comment.