added view region optimization for heat map