mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 06:58:32 +02:00
revert error handler
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user