Skip to content

Commit 14ab8b8

Browse files
authored
Update mbtsource.py (#46)
1 parent be613ac commit 14ab8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kivy_garden/mapview/mbtsource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def __init__(self, filename, **kwargs):
3939
cx = cy = 0.0
4040
cz = 5
4141
if "bounds" in metadata:
42-
self.bounds = bounds = map(float, metadata["bounds"].split(","))
42+
self.bounds = bounds = tuple(map(float, metadata["bounds"].split(",")))
4343
if "center" in metadata:
44-
cx, cy, cz = map(float, metadata["center"].split(","))
44+
cx, cy, cz = tuple(map(float, metadata["center"].split(",")))
4545
elif self.bounds:
4646
cx = (bounds[2] + bounds[0]) / 2.0
4747
cy = (bounds[3] + bounds[1]) / 2.0

0 commit comments

Comments
 (0)