diff --git a/frontend/app/zh-forms/map/map.component.html b/frontend/app/zh-forms/map/map.component.html
index 5e0b3176..e06d70fa 100755
--- a/frontend/app/zh-forms/map/map.component.html
+++ b/frontend/app/zh-forms/map/map.component.html
@@ -7,4 +7,10 @@
[options]="leafletDrawOptions"
(layerDrawed)="onDrawn($event)"
>
+
+
diff --git a/frontend/app/zh-forms/map/map.component.ts b/frontend/app/zh-forms/map/map.component.ts
index 18bef3b5..888f42cf 100755
--- a/frontend/app/zh-forms/map/map.component.ts
+++ b/frontend/app/zh-forms/map/map.component.ts
@@ -1,5 +1,6 @@
import { Component, OnInit, AfterViewInit, Output, EventEmitter } from '@angular/core';
import { leafletDrawOption } from '@geonature_common/map/leaflet-draw.options';
+import { CommonService } from '@geonature_common/service/common.service';
import { MapService } from '@geonature_common/map/map.service';
import * as L from 'leaflet';
@@ -12,11 +13,15 @@ export class ZhFormMapComponent implements OnInit, AfterViewInit {
public leafletDrawOptions: any;
public geometry: any = null;
public editedGeometry: any = null;
+ public firstFileLayerMessage = true;
@Output() draw = new EventEmitter();
@Output() edit = new EventEmitter();
@Output() endDraw = new EventEmitter();
- constructor(private _mapService: MapService) {}
+ constructor(
+ private _mapService: MapService,
+ private _commonService: CommonService
+ ) {}
ngOnInit() {
// overight the leaflet draw object to set options
@@ -67,4 +72,12 @@ export class ZhFormMapComponent implements OnInit, AfterViewInit {
onDrawStop(e) {
this.endDraw.emit(e);
}
+
+ // display help toaster for filelayer
+ infoMessageFileLayer() {
+ if (this.firstFileLayerMessage) {
+ this._commonService.translateToaster('info', 'Map.FileLayerInfoMessage');
+ }
+ this.firstFileLayerMessage = false;
+ }
}