Skip to content

Commit

Permalink
when restoring zoom, take care of the scale too if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Oct 11, 2015
1 parent d18a939 commit 571d074
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mapview/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,10 @@ def set_zoom_at(self, zoom, x, y, scale=None):
self.map_source.get_min_zoom(),
self.map_source.get_max_zoom())
if int(zoom) == int(self._zoom):
return
if scale is None:
return
elif scale == self.scale:
return
scale = scale or 1.

# first, rescale the scatter
Expand Down

0 comments on commit 571d074

Please sign in to comment.