MCPcopy Create free account
hub / github.com/comaps/comaps / zooms_string

Function zooms_string

tools/python/stylesheet/drules_merge.py:32–37  ·  view source on GitHub ↗

Prints 'zoom N' or 'zooms N-M'.

(z1, z2)

Source from the content-addressed store, hash-verified

30 return result
31
32def zooms_string(z1, z2):
33 """Prints 'zoom N' or 'zooms N-M'."""
34 if z2 != z1:
35 return "zooms {}-{}".format(min(z1, z2), max(z1, z2))
36 else:
37 return "zoom {}".format(z1)
38
39def add_missing_zooms(dest, typ, source, target, high):
40 """Checks zoom ranges for source and target, and appends as much sources to

Callers 2

add_missing_zoomsFunction · 0.85
create_diffFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected