Added check for map offset.

If the map is not positioned at the top-left of the page - perhaps
absolutely positioned - the drawn shape is off-centered by the same
amount. This accounts for that.