Use DisplayObject#getBounds() to get map bounds.
Merge branch '#122/adjust-map-switcher-pop-up-constraint-logic' into develop