diff --git a/localtileserver/client.py b/localtileserver/client.py index bdaa4fe..8337589 100644 --- a/localtileserver/client.py +++ b/localtileserver/client.py @@ -89,11 +89,17 @@ def band_names(self): @property def min_zoom(self): - return self.info.minzoom + if hasattr(self, "info"): + return self.info.minzoom + else: + return self.reader.minzoom @property def max_zoom(self): - return self.info.maxzoom + if hasattr(self, "info"): + return self.info.maxzoom + else: + return self.reader.maxzoom @property def default_zoom(self):