added report button

This commit is contained in:
mattiapezzotti
2024-06-05 20:43:42 +02:00
parent 53ed8f3e52
commit 25888c52ab
2 changed files with 18 additions and 8 deletions
+17 -7
View File
@@ -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')
+1 -1
View File
@@ -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';