openstreetmap-website/public/javascripts
Tom Hughes e373c63837 Round latitude and longitude values in links to a sensible number of
decimal places for the zoom level whilst still preserving accuracy
sufficient to position the map within a few pixels.

The relationship between zoom level, decimal places, and the accuracy
with which the map can then be positioned in pixels is as follows:

  Zoom  Decimals  Accuracy (pixels)

   1       0            1.42
   2       0            2.84
   3       1            0.57
   4       1            1.14
   5       1            2.28
   6       2            0.46
   7       2            0.91
   8       2            1.82
   9       3            0.36
   10      3            0.73
   11      3            1.46
   12      4            0.29
   13      4            0.58
   14      4            1.17
   15      5            0.23
   16      5            0.47
   17      5            0.93
   18      6            0.19

So the worse case is at zoom 2 where accuracy is still within 3 pixels.

Based on a patch by rjmunro.
2007-10-23 09:19:29 +00:00
..
application.js beginning of osm on rails 2006-07-28 21:41:39 +00:00
controls.js Ran "rake rails:update" to update resources to latest rails 1.2.3 ones. 2007-08-06 07:53:41 +00:00
dragdrop.js Ran "rake rails:update" to update resources to latest rails 1.2.3 ones. 2007-08-06 07:53:41 +00:00
effects.js Ran "rake rails:update" to update resources to latest rails 1.2.3 ones. 2007-08-06 07:53:41 +00:00
map.js Get URL selection right... 2007-10-10 15:00:13 +00:00
pngfix.js Don't try and apply pngfix to OpenLayers tile images. 2007-06-15 13:36:28 +00:00
prototype.js Ran "rake rails:update" to update resources to latest rails 1.2.3 ones. 2007-08-06 07:53:41 +00:00
site.js Round latitude and longitude values in links to a sensible number of 2007-10-23 09:19:29 +00:00
swfobject.js beginnings of Potlatch on Rails 2007-04-28 11:33:13 +00:00