restrictToMin method

ZoomlevelRange restrictToMin(
  1. int min
)

Creates a new ZoomlevelRange by restricting the minimum zoom level of this range to the given min value, if it is greater.

Implementation

ZoomlevelRange restrictToMin(int min) {
  return ZoomlevelRange(Math.max(min, zoomlevelMin), zoomlevelMax);
}