diff --git a/data/core.yaml b/data/core.yaml index a36191610..d6834bd83 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -611,12 +611,16 @@ en: tooltip: "Drag and drop a data file onto the page, or click the button to setup" title: Custom Map Data zoom: Zoom to data - fill_area: Fill Areas + style_options: Style Options highlight_edits: key: G 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." + visual_diff: + highlight_edits: + description: Highlight Changes + tooltip: Outline edited features photo_overlays: title: Photo Overlays traffic_signs: diff --git a/dist/locales/en.json b/dist/locales/en.json index c7b26a335..b1c07372b 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -757,7 +757,7 @@ "zoom": "Zoom to data" } }, - "fill_area": "Fill Areas", + "style_options": "Style Options", "highlight_edits": { "key": "G" }, @@ -765,6 +765,12 @@ "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." }, + "visual_diff": { + "highlight_edits": { + "description": "Highlight Changes", + "tooltip": "Outline edited features" + } + }, "photo_overlays": { "title": "Photo Overlays", "traffic_signs": { diff --git a/modules/ui/map_data.js b/modules/ui/map_data.js index 4ea27151c..4b7100922 100644 --- a/modules/ui/map_data.js +++ b/modules/ui/map_data.js @@ -31,6 +31,7 @@ export function uiMapData(context) { var _photoOverlayContainer = d3_select(null); var _fillList = d3_select(null); var _featureList = d3_select(null); + var _visualDiffList = d3_select(null); var _QAList = d3_select(null); @@ -90,6 +91,7 @@ export function uiMapData(context) { d3_event.preventDefault(); var surface = context.surface(); surface.classed('highlight-edited', !surface.classed('highlight-edited')); + updateVisualDiffList(); } @@ -609,6 +611,8 @@ export function uiMapData(context) { .title(function(d) { var tip = t(name + '.' + d + '.tooltip'); var key = (d === 'wireframe' ? t('area_fill.wireframe.key') : null); + if (d === 'highlight_edits') key = t('map_data.highlight_edits.key'); + if ((name === 'feature' || name === 'keepRight') && autoHiddenFeature(d)) { var msg = showsLayer('osm') ? t('map_data.autohidden') : t('map_data.osmhidden'); tip += '