Allright as an example how to do it ( I will demonstrate from my exxperimental map) but its similar logic basically in many umg architecture and structure.
I have a structure in my map and on map tick I have a function as FollowPlayer
Inside follow player function, I check if player is moving (you can have any other logic depending on your target ux). Then I simply move MapBaseContainer to relative to pin by
(Getting screen center / 2 ) - PinPositionRelativeToViewport , that basically adds that much of delta position to MapBaseContainer and result is centered tracking pin position.
Result is below.
Not sure how your structure is however logic is same : Compansating you mapbase location to target pin location