Im trying to do with angular something similiar to google maps. So I have a background image/map and I'd like to create object/component in place of the map where user clicked with mouse.
Right now I'm getting the x/y values. But I'm not sure what to do after click event.
getCoordinates(event): Coordinates {
    let offsetLeft = document.getElementById("drawing").offsetWidth;
    let offsetTop = document.getElementById("drawing").offsetHeight;
    let x = event.pageX - (document.getElementById("drawing").offsetLeft);
    let y = event.pageY - (document.getElementById("drawing").offsetTop);
    console.log("zoom " + this.zoom);
    console.log("x " + x / this.zoom);
    console.log("y " + y / this.zoom);
    console.log("element " + offsetLeft);
    console.log("element " + offsetTop);
    return new Coordinates(x,y);
  }
Ideally I'd like to generate a small popup in place where user clicked with form to fill.
 
     
    