|
|
|
@ -195,7 +195,6 @@ export class AddPinPopupComponent implements OnInit {
|
|
|
|
|
this.pinService.addPin(pinData)?.subscribe(() => {
|
|
|
|
|
this.mapReloadService.requestReload(); // Demander le rechargement de la carte
|
|
|
|
|
this.closePinModal();
|
|
|
|
|
this.form.reset(); // Réinitialiser le formulaire après soumission
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
@ -211,6 +210,7 @@ export class AddPinPopupComponent implements OnInit {
|
|
|
|
|
closePinModal() {
|
|
|
|
|
// this.isPinModalOpen = false;
|
|
|
|
|
this.modalService.closeModal(this.modalId);
|
|
|
|
|
this.form.reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getImagePreview(file: File): string {
|
|
|
|
|