Added calcs for the map value and map gradients, use vectors in transformScan