mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 02:11:58 +02:00
Fix zoom level.
Zoom level may be float and should not be cast to integer.
This commit is contained in:
parent
23a05534df
commit
e2ab792213
3 changed files with 5 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue