# How to solve the original size problem of UMG minimap？

**URL:** <https://forums.unrealengine.com/t/how-to-solve-the-original-size-problem-of-umg-minimap/2005056>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [September 4, 2024, 1:45pm UTC](https://forums.unrealengine.com/t/how-to-solve-the-original-size-problem-of-umg-minimap/2005056 "2024-09-04T13:45:29Z")\
**Posts on this page:** 1\
**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 4, 2024, 1:45pm UTC](https://forums.unrealengine.com/t/how-to-solve-the-original-size-problem-of-umg-minimap/2005056/1 "2024-09-04T13:45:29Z")

</div>

I have a UMG small map widget, similar to the map in Grand Theft Auto V or Red Dead Redemption 2. A map image that can be dragged and scaled in the canvas. it has a problem now, because its principle is that a large-sized image is placed in the canvas: errors will occur in the case of original size and layout. I want the image to default to the original size and be scalable.

The layout will cause errors. For example, when I use the original size, the anchor point can only be in the upper left corner. When the anchor point is centered, it must be out of range to be normal. Etc.

Maybe it’s just a layout design problem. I don’t understand how to set Anchor Point, Pivot, and Alignment to achieve the effect I want: the layout in the canvas uses the original size or default size, without deliberately enlarging the size or adjusting the anchor point, etc. In the default state, you can scale and move at will, without letting the content in the canvas exceed the size range or designing the layout specifically to cater to this function.

Who can help me, thank you!

File:  
[UE4\_MapZoom\_v2\_427.zip - Google](https://drive.google.com/file/d/13oheFvsnDMTsVraTzG_tWTfgn12hL9L9/view?pli=1)

Related Posts：

> [@How to scale/zoom a widget with blueprints?](https://forums.unrealengine.com/t/how-to-scale-zoom-a-widget-with-blueprints/430983/47):
>
> No, not really. Place breakpoints and step through the script - see where it fails. Perhaps it’s a default value of a variable that is not adjusted. There’s a full project attached, too in case there are some bits you may want to have a closer look at.

> [@How to make a modern map UI?](https://forums.unrealengine.com/t/how-to-make-a-modern-map-ui/659743/2):
>
> The general idea: More detailed:
