Ping map icon creation

Good morning guys,
i created a binary sensor that performs a ping.

Now I should put a map on the dashboard with a symbol that changes color according to the status, connected or disconnected.

I’m seeing tutorials but I can’t figure out how to do it.

Can you give me a hand?