changed map-coords to use mid-values