diff --git a/css/60_photos.css b/css/60_photos.css index 1332dcdb0..2794c48d6 100644 --- a/css/60_photos.css +++ b/css/60_photos.css @@ -76,18 +76,6 @@ width: 100%; } -.photoviewer .error-handler { - border-radius: 0; - padding: 15px; - position: absolute; - left: 50%; - top: 75px; - transform: translate(-50%, -50%); - z-index: 50; - color: red; - font-size: 20px; -} - .photo-wrapper { width: 100%; diff --git a/data/core.yaml b/data/core.yaml index b2d8cb809..a60d49d9b 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -789,7 +789,6 @@ en: max_length_reached: "This string is longer than the maximum length of {maxChars} characters. Anything exceeding that length will be truncated." set_today: "Sets the value to today." set_photo_from_viewer: "Store this photo on the currently selected map object" - show_photo_from_field_error: "Invalid ID" background: title: Background description: Background Settings diff --git a/modules/services/mapillary.js b/modules/services/mapillary.js index b8e46004f..fb64e1eab 100644 --- a/modules/services/mapillary.js +++ b/modules/services/mapillary.js @@ -19,7 +19,7 @@ const trafficSignTileUrl = `${baseTileUrl}/mly_map_feature_traffic_sign/2/{z}/{x const viewercss = 'mapillary-js/mapillary.css'; const viewerjs = 'mapillary-js/mapillary.js'; const minZoom = 14; -const dispatch = d3_dispatch('change', 'loadedImages', 'loadedSigns', 'loadedMapFeatures', 'bearingChanged', 'imageChanged', 'error'); +const dispatch = d3_dispatch('change', 'loadedImages', 'loadedSigns', 'loadedMapFeatures', 'bearingChanged', 'imageChanged'); let _loadViewerPromise; let _mlyActiveImage; @@ -606,7 +606,6 @@ export default { _mlyViewer.moveTo(imageId) .catch(function(e) { console.error('mly3', e); // eslint-disable-line no-console - dispatch.call('error', undefined, e); }); } diff --git a/modules/ui/photoviewer.js b/modules/ui/photoviewer.js index 16bd7b62e..aa93b5e59 100644 --- a/modules/ui/photoviewer.js +++ b/modules/ui/photoviewer.js @@ -155,24 +155,6 @@ export function uiPhotoviewer(context) { } } - // error message handler - const errorHandler = selection - .append('div') - .attr('class', 'error-handler') - .append('div') - .style('opacity', '0'); - - - services.mapillary - .on('error', function () { - errorHandler - .text(t('inspector.show_photo_from_field_error')) - .style('opacity', '1') - .transition() - .duration(1000) - .style('opacity', '0'); - }); - function buildResizeListener(target, eventName, dispatch, options) { var resizeOnX = !!options.resizeOnX;