proximite double cartouch width for boussole #2333

This commit is contained in:
Bachir Soussi Chiadmi 2024-01-23 11:44:52 +01:00
parent 13fd182c60
commit 568d941d90
3 changed files with 20 additions and 15 deletions

View File

@ -723,7 +723,7 @@ export default {
return segments; return segments;
}, },
setPaperContour(){ setPaperContour(){
console.log('setPaperContour, this.sailentEntites', this.sailentEntites); // console.log('setPaperContour, this.sailentEntites', this.sailentEntites);
// convert sailent entites to x,y points // convert sailent entites to x,y points
let points = []; let points = [];
this.sailentEntites.forEach(entite => { this.sailentEntites.forEach(entite => {

View File

@ -77,16 +77,18 @@ export default {
// revisions // revisions
let data=[]; let data=[];
this.concernement.revisions.forEach(rev => { if (this.concernement && this.concernement.revisions) {
if (rev.entites.length > 3) { this.concernement.revisions.forEach(rev => {
let d = new Date(rev.changed); if (rev.entites.length > 3) {
data.push({ let d = new Date(rev.changed);
'id': rev.revision_id, data.push({
'changed': d.toLocaleDateString("fr-FR") 'id': rev.revision_id,
}) 'changed': d.toLocaleDateString("fr-FR")
this.history_value = Math.max(this.history_value, parseInt(rev.revision_id)); })
} this.history_value = Math.max(this.history_value, parseInt(rev.revision_id));
}); }
});
}
if (data.length > 1) { if (data.length > 1) {
this.history_slider_ops = { this.history_slider_ops = {

View File

@ -81,14 +81,17 @@ export default {
} }
}, },
created () { created () {
console.log(`Concernement view created, this.$route`, this.$route);
console.log(`Concernement view created, id: ${this.cid}, eid: ${this.eid}, opened_concernement:${this.opened_concernement}`); console.log(`Concernement view created, id: ${this.cid}, eid: ${this.eid}, opened_concernement:${this.opened_concernement}`);
console.log('Concernement view created, allSuperpositions_clustered', this.allSuperpositions_clustered); console.log('Concernement view created, allSuperpositions_clustered', this.allSuperpositions_clustered);
console.log("superposition", this.superposition); console.log("superposition", this.superposition);
if(this.map_mode === "proximite" && this.$route.query.proximite_cid && this.$route.query.proximite_eid){ if(this.map_mode === "proximite"){
this.proximite_cid_eid = { if (this.$route.query.proximite_cid && this.$route.query.proximite_eid) {
cid: this.$route.query.proximite_cid, this.proximite_cid_eid = {
eid: this.$route.query.proximite_eid, cid: this.$route.query.proximite_cid,
eid: this.$route.query.proximite_eid,
}
} }
// as we have two content to show multiply the cartouch with by 2 // as we have two content to show multiply the cartouch with by 2
// necessary for mapitem opening scale and position // necessary for mapitem opening scale and position