# UI player marker on a moveable map

**URL:** <https://forums.unrealengine.com/t/ui-player-marker-on-a-moveable-map/1674509>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [February 8, 2024, 4:41pm UTC](https://forums.unrealengine.com/t/ui-player-marker-on-a-moveable-map/1674509 "2024-02-08T16:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 8, 2024, 5:17pm UTC](https://forums.unrealengine.com/t/ui-player-marker-on-a-moveable-map/1674509/2 "2024-02-08T17:17:34Z")

</div>

When a widget is in the centre of [that map](https://forums.unrealengine.com/t/how-to-scale-zoom-a-widget-with-blueprints/430983/25), it’s at 0,0 coords:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/1/3b1be6f3d4a75d36ac5db68c44fb66274ceb3e45.jpeg)

The **P** oint **o** f **I** nterest\_3 will represent my player. The image size used is:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/d/b0d06e332c745b943cc38b4bb30adb41b0b221c1.png)

We need to translate player world coordinates into a canvas coordinate:

- orange - player world location

mapped onto

- green - map image size

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/6/0e6277fbac3ac350c4feb741e6639227c5abe481.png)

* * *

disclaimer: there’s a chance I mixed up X & Y above. Flip them around if the numbers do not add up. 😇

---

_[View the full topic](https://forums.unrealengine.com/t/ui-player-marker-on-a-moveable-map/1674509)._
