Skip to content

Commit

Permalink
Merge pull request #2557 from StyXman/mapview-maxZoom-fix
Browse files Browse the repository at this point in the history
Fix maxZoom
  • Loading branch information
freakboy3742 authored May 7, 2024
2 parents 359589a + 14c21ed commit 3264094
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/2557.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GTK and Windows MapViews have maxZoom of 20, as per the docs.
2 changes: 1 addition & 1 deletion gtk/src/toga_gtk/widgets/mapview.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
const map = L.map("map");
const pins = {};
const tiles = L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
maxZoom: 19,
maxZoom: 20,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
</script>
Expand Down
2 changes: 1 addition & 1 deletion winforms/src/toga_winforms/widgets/mapview.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
const map = L.map("map");
const pins = {};
const tiles = L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
maxZoom: 19,
maxZoom: 20,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
</script>
Expand Down

0 comments on commit 3264094

Please sign in to comment.