mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
added report button
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user