@foreach (var point in LidarPoints)
{
    <circle cx="@point.X" cy="@point.Y" r="0.05" fill="blue" visibility="@(ShowLaser ? "visible" : "hidden")" />
}

@code {
    [Parameter]
    public bool ShowLaser { get; set; }

    private List<NavigationPathNode> LidarPoints { get; set; } = new();

    public void SetData(List<NavigationPathNode> laser)
    {
        LidarPoints.Clear();
        LidarPoints.AddRange(laser);
    }
}
