# How to make a modern map UI?

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743>\
**Category:** UI\
**Tags:** unreal-engine, UE5-0, Widget, question, Blueprint, UMG\
**Created:** [September 30, 2022, 1:05pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743 "2022-09-30T13:05:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [September 30, 2022, 1:05pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/1 "2022-09-30T13:05:23Z")

</div>

I want to make a map ui, like pressing ESC map in GTA5, a big picture, beyond the bounds, the mouse can drag the map range, and the mouse wheel can zoom the map size. “Grand Theft Auto: Trilogy” is made with Unreal 4.23, which implements this function. Does anyone know the principle or method of implementing this map UI? (Because I’ve seen most of the map UI tutorials, the map is just a specific square picture, the scope is small, and there is no mouse drag and mouse wheel zooming the map)

 ![GTAMap](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/2/d82af6c273b271bac5b547a6e2539a35f8ae2fc2.jpeg)

---

<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:** [September 30, 2022, 1:13pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/2 "2022-09-30T13:13:44Z")

</div>

The general idea:

> [@Move widget (map) so point on the map is in the centre](https://forums.unrealengine.com/t/move-widget-map-so-point-on-the-map-is-in-the-centre/497985/6):
>
> ‘widget to centre’ brings up stuff about anchors. It was pointing you in the right direction; with no proper anchoring you’ll need to constantly translate Absolute to Local and account for viewport size / resolution and so on. This can be done in a much simpler way. I’ve got this nested canvas with some points of interest: That’s how usually map dragging / panning is done (at least around here) the Inner Canvas is anchored to the centre of the screen: Ctrl + Shift click the…

More detailed:

> [@How to scale/zoom a widget with blueprints?](https://forums.unrealengine.com/t/how-to-scale-zoom-a-widget-with-blueprints/430983/11):
>
> The widget itself: And the zooming onto the cursor: Seems to work OK for what it is, but there might be some kinks. [[Image from Gyazo]](https://gyazo.com/d28df9cb3ba0268124ba308e4540113f)

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [September 30, 2022, 1:18pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/3 "2022-09-30T13:18:53Z")

</div>

Thank you, Master. I have been trying this idea, but the clarity of the image decreases after zooming. I wonder if I should use a vector bitmap such as SVG to make the image?

---

<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:** [September 30, 2022, 1:25pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/4 "2022-09-30T13:25:04Z")

</div>

> [@TomHank](#):
>
> I wonder if I should use a vector bitmap such as SVG to make the image?

You can use a very large image.

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [September 30, 2022, 1:30pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/5 "2022-09-30T13:30:40Z")

</div>

OK, thank you very much!

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [December 11, 2022, 2:04pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/6 "2022-12-11T14:04:52Z")

</div>

Hero, I want to know how to get the ZoomUMGMap cast to level map location? In GTA5, click on the zoomed map to get the position of the zoomed map in the level map. That is, when the mouse moves in the UMG map, it can get the position of the mouse on this image, and then convert it to the map position. I want to implement double-click UMG map, Pawn arrives at the location represented by UMG map, how do I do it?

---

<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:** [December 11, 2022, 2:11pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/7 "2022-12-11T14:11:24Z")

</div>

You know the dimension of the widget. You know the dimension of the map. Use the map range node to translate one range into another.

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [December 11, 2022, 3:25pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/9 "2022-12-11T15:25:29Z")

</div>

I have difficulty understanding the logic in it, I have been thinking about it for 6 hours, can you give me an example?

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [December 11, 2022, 3:28pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/10 "2022-12-11T15:28:02Z")

</div>

For example, the center of the world map is the level map (0,0), when the mouse is offset, click UMGMap to move to the indicated position.

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [December 11, 2022, 3:31pm UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/11 "2022-12-11T15:31:33Z")

</div>

because there are also the problems of zooming size and dragging offset, and I think that should only getting “mouse position in photo”, like Photoshop, In the software photoshop, hovering over a photo will prompt the location of the photo where the mouse is located.instead of “mouse position on image widget”, feels complicated and difficult for me to understand.If I only get the “position of the mouse on the image widget”, it may only be suitable for use without zooming and dragging. And I don’t even understand how this works now.

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [December 12, 2022, 1:36am UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/12 "2022-12-12T01:36:49Z")

</div>

Dear

---

<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:** [December 12, 2022, 8:57am UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/13 "2022-12-12T08:57:31Z")

</div>

Have a look at the link with the map above. Offsets are handled, dragging is handled, zooming in/out & scaling is handled, and local widget coordinates are accounted for, too.

---

<div class="post-metadata">

**Author:** ![TomHank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomhank/32/615012_2.png) [@TomHank](https://forums.unrealengine.com/u/TomHank)\
**Post date:** [December 21, 2022, 11:36am UTC](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/15 "2022-12-21T11:36:48Z")

</div>

I feel like you’re proficient in Unreal Engine 4, would you, hero.

> [@How a widget on an Actor always follows the mouse in the same position.](https://forums.unrealengine.com/t/how-a-widget-on-an-actor-always-follows-the-mouse-in-the-same-position/733055):
>
> I created a widget in Actor and made the following settings. Widgets are displayed as “screen”. I want to achieve that when I click anywhere, the widget will always be directly below the mouse. (Keep the player Pawn Camera to follow when shifting). I guess the best way is to convert the mouse position on the screen to the “Pivot” of Widgeta. But I’m not familiar with algorithms. Sincerely thank you!
