mapMarker: Imrove 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.
Fixes #349 (closed)