Create blips relative to the players position on a minimap.

I have a circular minimap in a canvas in my scene, and I have the blip on the player to follow it at every update. I am having trouble trying to get other blips on other targets to update relative to the players position. Here are the scripts I have. The first one is for the minimap to target the player. It also tracks any other blips position so if the object is offscreen, it is positioned on the edge of the minimap, depending where its position is to the player until its on screen. and the second one is tracking the blip on the UI on the minimap to update it. Any help would be appreciated!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Minimap : MonoBehaviour {

public Transform target;
public float zoomLevel = 10f;
Vector2 xRotation = Vector2.right;
Vector2 yRotation = Vector2.up;
public Vector2 TransformPosition(Vector3 position)
{
    Vector3 offset = position - target.position;
    Vector2 newPosition = new Vector2(offset.x, offset.z);
    newPosition += offset.x * xRotation;
    newPosition += offset.z * yRotation;
    newPosition *= zoomLevel;
    return newPosition;
}

public Vector2 InsideMinimap(Vector2 blip)
{
    Rect circleMap = GetComponent<RectTransform>().rect;
    float radius = Mathf.Min(circleMap.width / 2, circleMap.height / 2);

    if (blip.magnitude > radius)
    {
        blip = blip.normalized * radius;
    }
    return blip;
}

void LateUpdate()
{
    xRotation = new Vector2(target.right.x, -target.right.z);
    yRotation = new Vector2(-target.forward.x, target.forward.z);
}

}

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Blips : MonoBehaviour {

public Transform target;
Minimap map;
RectTransform myRectTransform;
public bool keepInBounds = true;
public bool scaleLock = false;

void Start()
{
    map = GetComponentInParent<Minimap>();
    myRectTransform = GetComponent<RectTransform>();
}

void Update()
{
    Vector2 newPosition = map.TransformPosition(target.position);

    if (keepInBounds)
    {
        newPosition = map.InsideMinimap(newPosition);
    }

    if (!scaleLock)
    {
        myRectTransform.localScale = new Vector3(map.zoomLevel, map.zoomLevel, 1);
    }
    myRectTransform.localPosition = newPosition;
}

}

I liked they way they suggested to do it in their live event on mini maps…