# UMG Widget Map - Zoom / Pan function?

**URL:** <https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 25, 2019, 5:01pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606 "2019-10-25T17:01:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dpham](https://forums.unrealengine.com/u/dpham)\
**Post date:** [October 25, 2019, 5:01pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/1 "2019-10-25T17:01:43Z")

</div>

I have a widget with a large image- a 2d top down map. How would I set something like a slider or mouse whell to zoom in/out, as well as using a mouse to drag and pan it? Something like Google earth where you can really zoom in and pan around the map.

---

<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:** [October 26, 2019, 2:07pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/2 "2019-10-26T14:07:40Z")

</div>

This works (worked) and should be a decent starting point:

> [@Two ways scroll box?](https://forums.unrealengine.com/t/two-ways-scroll-box/89955):
>
> I’m trying to create a talent tree like Path of Exile. However, i’m needing a two ways scroll to navitage through the talent BP. The only way i imagined it was a two way scroll(vertical and horizontal), but the scroll box only accepts one of those. Is there a way to create a 2 way scroll box or do it in another way? In case you don’t know how the PoE talent skill tree looks like, its like this :

The example should be fleshed out with a tad more functionality, of course.

---

<div class="post-metadata">

**Author:** ![dpham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dpham](https://forums.unrealengine.com/u/dpham)\
**Post date:** [October 28, 2019, 3:22pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/3 "2019-10-28T15:22:05Z")

</div>

Great, thanks! I’ll take a look at that but definitely is what I’m looking for!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e34aa8121](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e34aa8121](https://forums.unrealengine.com/u/anonymous_user_e34aa8121)\
**Post date:** [October 30, 2019, 2:11pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/4 "2019-10-30T14:11:03Z")

</div>

> [@Everynone](#):
>
> This works (worked) and should be a decent starting point:
> 
> [https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/115216-two-ways-scroll-box](https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/115216-two-ways-scroll-box)
> 
> The example should be fleshed out with a tad more functionality, of course.

I’ve been trying to do this myself for a skill tree and I cannot for the life of me figure out how this is done

---

<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:** [October 30, 2019, 2:18pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/5 "2019-10-30T14:18:25Z")

</div>

> [@\_t\_h](#):
>
> I’ve been trying to do this myself for a skill tree and I cannot for the life of me figure out how this is done

The script shown in the last post should do the trick. Consider describing the issue you’re having and, ideally, how far you got and what you’ve tried.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e34aa8121](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e34aa8121](https://forums.unrealengine.com/u/anonymous_user_e34aa8121)\
**Post date:** [October 30, 2019, 3:05pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/6 "2019-10-30T15:05:38Z")

</div>

> [@Everynone](#):
>
> The script shown in the last post should do the trick. Consider describing the issue you’re having and, ideally, how far you got and what you’ve tried.

It was flickering around everywhere for some reason. I ended up trying a different method which seems to be working perfect for now.

---

<div class="post-metadata">

**Author:** ![OrcBranco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OrcBranco](https://forums.unrealengine.com/u/OrcBranco)\
**Post date:** [June 13, 2021, 1:16am UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/7 "2021-06-13T01:16:36Z")

</div>

Man, am I also wanting to make this kind of skill tree like you did yours? if possible could you send photos as a demonstration? because for me it’s easier to complender (I’m using google transleitor)

---

<div class="post-metadata">

**Author:** ![Justrenis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Post date:** [November 4, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/8 "2024-11-04T15:02:48Z")

</div>

post doesnt exist anymore, could you help to figure out how to do pan function?

---

<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:** [November 4, 2024, 3:06pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/9 "2024-11-04T15:06:43Z")

</div>

> [@How to scale/zoom a widget with blueprints?](https://forums.unrealengine.com/t/how-to-scale-zoom-a-widget-with-blueprints/430983/25):
>
> By somewhat popular demand, I’ve updated this to support adding points of interest: re-jiggled the hierarchy by adding an inner canvas with auto size; we now shift that canvas instead of the image, which also moves and scales all elements attached to it

@Justrenis The project is attached, check the rest of the thread for details.

---

<div class="post-metadata">

**Author:** ![Justrenis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Post date:** [November 4, 2024, 3:09pm UTC](https://forums.unrealengine.com/t/umg-widget-map-zoom-pan-function/132606/10 "2024-11-04T15:09:17Z")

</div>

thank you for the quick reply, with this ill figure it out.
