restrictTo method
Creates a new ZoomlevelRange that is the intersection of this range and
the given range.
Implementation
ZoomlevelRange restrictTo(ZoomlevelRange range) {
return ZoomlevelRange(Math.max(range.zoomlevelMin, zoomlevelMin), Math.min(range.zoomlevelMax, zoomlevelMax));
}