revert error handler

This commit is contained in:
laigyu
2024-04-07 23:19:41 +08:00
parent 94e32a85b0
commit d448b586ed
4 changed files with 1 additions and 33 deletions
-18
View File
@@ -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;