mapMarker: Improve marker reposion when not fitting below

Improve the bubble repositioning code to only
use below the marker position when there's enough
room, otherwise revert to left or right depeding
on the closest edge horizontally.
1 job for wip/mlundblad/more-bubble-position-fixes in 14 minutes and 29 seconds (queued for 1 second)
latest