diff --git a/src/app/form/orientation-form/orientation-form.component.html b/src/app/form/orientation-form/orientation-form.component.html index 5dd05aaf73376607ada22523cdaf950e73b9d408..3174a45f00bed4ff424ec5da32265f60c05d7c32 100644 --- a/src/app/form/orientation-form/orientation-form.component.html +++ b/src/app/form/orientation-form/orientation-form.component.html @@ -403,7 +403,6 @@ [toogleToolTipId]="displayMapMarkerId" [selectedMarkerId]="selectedMarkerId" [locate]="locate" - (locatationTrigger)="locatationTrigger($event)" (selectedStructure)="showDetails($event)" [isMapPhone]="isMapPhone" [searchedValue]="userLocation" diff --git a/src/app/map/components/map.component.ts b/src/app/map/components/map.component.ts index f844d5d6902c368c81a3777359ee7b4343f5d831..35f1387f229a45b0b8ab7597f72b1f8b81f8e951 100644 --- a/src/app/map/components/map.component.ts +++ b/src/app/map/components/map.component.ts @@ -272,10 +272,12 @@ export class MapComponent implements OnChanges { public onMapReady(map: Map): void { this.map = map; // Handle location - this.lc = L.control.locate(this.locateOptions).addTo(this.map); - this.map.on('locationfound', () => { - this.locatationTrigger.emit(true); - }); + if (!this.isOrientationForm) { + this.lc = L.control.locate(this.locateOptions).addTo(this.map); + this.map.on('locationfound', () => { + this.locatationTrigger.emit(true); + }); + } if (this.searchedValue) { if (Array.isArray(this.searchedValue)) {