do not build mapitem if not enought salient points

This commit is contained in:
Bachir Soussi Chiadmi 2023-06-01 11:24:40 +02:00
parent 73b5c911da
commit a324ffc806

View File

@ -78,8 +78,11 @@ export default {
this.parsePoints()
this.getSalientPoints()
if (this.canvasMap) {
this.initCanvasMap()
if (this.salientPoints.length > 3) { // do not build item if it doesn't get enougth salient points
if (this.canvasMap) {
this.initCanvasMap()
}
}
},