getZoomlevelRangeOpenWay method
ZoomlevelRange?
getZoomlevelRangeOpenWay(
- TagCollection tags
Returns the widest possible zoomrange which may accept the given argument. Returns null if if the argument will never accepted.
Implementation
ZoomlevelRange? getZoomlevelRangeOpenWay(TagCollection tags) {
if (!matchesTags(tags)) return null;
if (renderinstructionOpenWays.isNotEmpty) return zoomlevelRange;
ZoomlevelRange? result;
for (var element in subRules) {
ZoomlevelRange? range = element.getZoomlevelRangeOpenWay(tags);
if (range != null) {
result = result?.widenTo(range) ?? range;
}
}
return result;
}