]> git.openstreetmap.org Git - rails.git/commit
Limit map to the maximum zoom of the current base layer
authorTom Hughes <tom@compton.nu>
Mon, 10 Sep 2018 19:37:36 +0000 (20:37 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 10 Sep 2018 19:37:36 +0000 (20:37 +0100)
commita7cdb0298d1e4ac2c0685617786c2d20047691a1
tree08072696ad621afa8e845cc2e45dd02d8525a86b
parent297b0a0e166bab17cc6555deeefaf328f202bd72
Limit map to the maximum zoom of the current base layer

Fix maximum zoom levels for various layers and ensure that the
map can't be zoomed beyond the limit of the current base layer.

Fixes #1978
app/assets/javascripts/leaflet.map.js
vendor/assets/leaflet/leaflet.osm.js