Resolve #1 - Map Distance Function

Provides a centered distance function that will cross the boundary
when range includes negative co-ordinate chunks.