]> git.openstreetmap.org Git - rails.git/commitdiff
Changed shortlink zoom level correction char to '-', as this seems to fare better...
authorMatt Amos <zerebubuth@gmail.com>
Thu, 2 Jul 2009 16:40:29 +0000 (16:40 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Thu, 2 Jul 2009 16:40:29 +0000 (16:40 +0000)
lib/short_link.rb
public/javascripts/site.js

index afcf1ef37f5462a0b83b4cc3d85a283a24e0dc7d..b91d7e569dddc57d12e3b3fe02d11df7aea10e82 100644 (file)
@@ -57,7 +57,7 @@ module ShortLink
     # append characters onto the end of the string to represent
     # partial zoom levels (characters themselves have a granularity
     # of 3 zoom levels).
-    ((z + 8) % 3).times { str << "=" }
+    ((z + 8) % 3).times { str << "-" }
     
     return str
   end
index b7ad7d7e4b782e338a8515f56a95cdb0a7d24fe5..59999b8c022bf5dff709ff04ebfd4243f9f19d3a 100644 (file)
@@ -231,7 +231,7 @@ function makeShortCode(lat, lon, zoom) {
        str += char_array.charAt(digit);
     }
     for (var i = 0; i < ((zoom + 8) % 3); ++i) {
-       str += "=";
+       str += "-";
     }
     return str;
 }