diff --git a/modules/services/panoramax.js b/modules/services/panoramax.js index 6009bdf47..8572735f8 100644 --- a/modules/services/panoramax.js +++ b/modules/services/panoramax.js @@ -339,19 +339,19 @@ export default { selectImage: function (context, id) { let that = this; - let isHighDefinition = true; - let definition = highDefinition; - - if(!isHighDefinition){ - definition = standardDefinition; - } - let d = this.cachedImage(id); this.setActiveImage(d); this.updateUrlImage(d.id); + let isHighDefinition = true; + let definition = highDefinition; + + if(d.type == "equirectangular"){ + definition = standardDefinition; + } + let imageUrl = getImage(d.id, highDefinition); let viewer = context.container().select('.photoviewer'); @@ -375,6 +375,16 @@ export default { .text('|'); } + attribution + .append('a') + .attr('class', 'report-photo') + .attr('href', "mailto:signalement.ign@panoramax.fr") + .text('Report'); + + attribution + .append('span') + .text('|'); + attribution .append('a') .attr('class', 'image-link') diff --git a/modules/svg/panoramax_images.js b/modules/svg/panoramax_images.js index 135bfc801..a98a1716e 100644 --- a/modules/svg/panoramax_images.js +++ b/modules/svg/panoramax_images.js @@ -174,7 +174,7 @@ export function svgPanoramaxImages(projection, context, dispatch) { .attr('d', viewfieldPath); function viewfieldPath() { - if (this.parentNode.__data__.isPano) { + if (this.parentNode.__data__.type == "equirectangular") { return 'M 8,13 m -10,0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0'; } else { return 'M 6,9 C 8,8.4 8,8.4 10,9 L 16,-2 C 12,-5 4,-5 0,-2 z';