]> git.openstreetmap.org Git - rails.git/commit
Change zoom precision function
authorAnton Khorev <tony29@yandex.ru>
Fri, 16 Aug 2024 07:45:54 +0000 (10:45 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sat, 17 Aug 2024 08:44:05 +0000 (11:44 +0300)
commit1951ed2eb8af93d71e4d10ce0ede81d3ee2090bd
treec86e82fcf2a5dc2e8a0e91cdf927e4532370ddec
parent9b2db63a957a325d16e3989f08c483bd88f1993e
Change zoom precision function

This changes the number of fractional digits to log10(pixels / degrees) with pixels = 2**(8 + zoom) and degrees = 180.
app/assets/javascripts/osm.js.erb