Skip to content

Commit

Permalink
Update mbtsource.py (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller authored Apr 29, 2022
1 parent be613ac commit 14ab8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kivy_garden/mapview/mbtsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def __init__(self, filename, **kwargs):
cx = cy = 0.0
cz = 5
if "bounds" in metadata:
self.bounds = bounds = map(float, metadata["bounds"].split(","))
self.bounds = bounds = tuple(map(float, metadata["bounds"].split(",")))
if "center" in metadata:
cx, cy, cz = map(float, metadata["center"].split(","))
cx, cy, cz = tuple(map(float, metadata["center"].split(",")))
elif self.bounds:
cx = (bounds[2] + bounds[0]) / 2.0
cy = (bounds[3] + bounds[1]) / 2.0
Expand Down

0 comments on commit 14ab8b8

Please sign in to comment.