try to calculate max value for different map bound.