merging changes, getMidpoint method in DCGeometryLayer returns correct midpoints