diff --git a/kivy_garden/mapview/mbtsource.py b/kivy_garden/mapview/mbtsource.py index e90f87a..d46e7aa 100644 --- a/kivy_garden/mapview/mbtsource.py +++ b/kivy_garden/mapview/mbtsource.py @@ -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 = list(map(float, metadata["bounds"].split(","))) if "center" in metadata: - cx, cy, cz = map(float, metadata["center"].split(",")) + cx, cy, cz = list(map(float, metadata["center"].split(","))) elif self.bounds: cx = (bounds[2] + bounds[0]) / 2.0 cy = (bounds[3] + bounds[1]) / 2.0 diff --git a/kivy_garden/mapview/view.py b/kivy_garden/mapview/view.py index 48b5457..74f1095 100644 --- a/kivy_garden/mapview/view.py +++ b/kivy_garden/mapview/view.py @@ -642,12 +642,12 @@ def scale_at(self, scale, x, y): ) def on_touch_down(self, touch): - if not self.collide_point(*touch.pos): + if not self.collide_point(*touch.pos) or self.disabled: return if self.pause_on_action: self._pause = True if "button" in touch.profile and touch.button in ("scrolldown", "scrollup"): - d = 1 if touch.button == "scrollup" else -1 + d = 1 if touch.button == "scrolldown" else -1 self.animated_diff_scale_at(d, *touch.pos) return True elif touch.is_double_tap and self.double_tap_zoom: