Fix zoom level.

Zoom level may be float and should not be cast to integer.
This commit is contained in:
Sergey Vartanov 2021-09-22 08:32:57 +03:00
parent 23a05534df
commit e2ab792213
3 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ class MapConfiguration:
@classmethod
def from_options(
cls, options: argparse.Namespace, zoom_level: int
cls, options: argparse.Namespace, zoom_level: float
) -> "MapConfiguration":
"""Initialize from command-line options."""
return cls(