]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/site.js
Force all OpenLayers resources to load through the asset pipeline
[rails.git] / app / assets / javascripts / site.js
index be16dd0599a4058c1ba6c371efcca204e3c9b0ab..9f80bf25d9387a2627f4a623ceabc5c53d2ac4b4 100644 (file)
@@ -204,7 +204,7 @@ function interlace(x, y) {
  * Called to create a short code for the short link.
  */
 function makeShortCode(lat, lon, zoom) {
-    char_array = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_@";
+    char_array = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_~";
     var x = Math.round((lon + 180.0) * ((1 << 30) / 90.0));
     var y = Math.round((lat +  90.0) * ((1 << 30) / 45.0));
     // JavaScript only has to keep 32 bits of bitwise operators, so this has to be