restrictToMin method

ZoomlevelRange restrictToMin(
  1. int min
)

Returns a new ZoomlevelRange where the minimum zoomlevel is either the given zoomlevel or the existing one - whichever is bigger.

Implementation

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