Added ability to control rect margin when zooming map.