src/app/main/e98cf432753a4295@791.js
// When a location with multiple objects is clicked on
When a location with multiple objects is clicked on
When a location with multiple objects is clicked on
function multiobjectClicked(event, p) {
   overlap.append("g")
      .attr("stroke", "steelblue")
      .attr("stroke-width", 1.5)
      .attr("fill", "red")
      .selectAll("overlap")
    .data(p.objects)
      .join("circle")
      .attr("cx", d => x(p.location.x))
        .attr("cy", (d, i) => y(p.location.y) - i * 10)
        .attr("r", 10)
        .on("click", objectClicked)
      .style("cursor", "pointer")
  }
function multiobjectClicked ( event , p ) { overlap . append ( "g" ) . attr ( "stroke" , "steelblue" ) . attr ( "stroke-width" , 1.5 ) . attr ( "fill" , "red" ) . selectAll ( "overlap" ) . data ( p . objects ) . join ( "circle" ) . attr ( "cx" , d => x ( p . location . x ) ) . attr ( "cy" , ( d , i ) => y ( p . location . y ) - i * 10 ) . attr ( "r" , 10 ) . on ( "click" , objectClicked ) . style ( "cursor" , "pointer" ) }
When a location with multiple objects is clicked on
When a location with multiple objects is clicked on