new implementation for sampling logic : valuesInMapRect (in progress)