Commit graph

12 commits

Author SHA1 Message Date
Tom Hughes
52a6df0548 Simplify URLs a bit. 2008-04-17 17:38:48 +00:00
Tom Hughes
599c48227a Ajaxify the export tab. 2008-04-16 23:45:16 +00:00
Tom Hughes
3cd04f7db4 Don't set the layers argument if the caller didn't specify it. 2007-12-31 10:13:36 +00:00
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
Tom Hughes
8dfecbfbb2 Only the view and edit tabs really need updating when the map moves. 2007-08-14 10:44:56 +00:00
Tom Hughes
397db07d65 New improved geocoder with extra added AJAX and OSM Namefinder support. 2007-08-07 17:09:37 +00:00
Tom Hughes
9634ab8fc1 Remember which layers are active in the cookie and URLs. 2007-07-29 14:06:04 +00:00
Tom Hughes
e0013130c2 Don't try and update links on nodes whose names match member functions
of the JavaScript Array object...
2007-06-14 09:29:32 +00:00
Tom Hughes
7b9272ffa6 Make sure we always put a valid URL on the edit tab, and allow switching
to the editor to work from z11 instead of z14 as that is what Potlatch
supports.

Also fix default zooms for Potlatch when no position is given.
2007-06-13 10:02:37 +00:00
Tom Hughes
c99992f85f Be a bit more intelligent when trying to update the arguments on a link. 2007-06-12 16:16:49 +00:00
Steve Coast
2fad5f7c92 various skeleton stuff 2006-07-28 22:35:05 +00:00
Steve Coast
b4c0bfd8fa more basic framework 2006-07-28 21:53:30 +00:00