I'm trying to build an Angula2 application,I want to get the position(longitude and latitude) when i click on a point in the map to be able to insert those fields in my database. Here is the Map code:
<sebm-google-map [latitude]="lat" [longitude]="lng" [zoom]="zoom" [backgroundColor]="backgroundColor" >
<sebm-google-map-marker *ngFor=" let post of posts" [latitude]="post.lapti" [longitude]="post.longi" ></sebm-google-map-marker>
</sebm-google-map>
Any solution?