more parameters for generateDistanceMap enabled