Commit graph

827 commits

Author SHA1 Message Date
Tom Hughes
b82c10bcd1 Make attribution less cheesy. 2007-11-28 19:25:46 +00:00
Tom Hughes
f5c9a41e87 Use the new OSM OpenLayers stuff. 2007-11-28 19:24:58 +00:00
Tom Hughes
29645d2d29 Add a javascript file to provide OSM layers for OpenStreetMap. 2007-11-28 18:59:05 +00:00
Tom Hughes
2ba147e7fa Clear gotele and gotdate when we see the start of a trkpt element to
avoid inheriting previous data.
2007-11-26 16:28:28 +00:00
Richard Fairhurst
58e50383f9 bugfix for non-intersecting intersections (trac #592) 2007-11-26 14:29:31 +00:00
Tom Hughes
cb330ffd7a Force new users to enter their email address twice to try and avoid so
many incorrect email addresses with typos in...
2007-11-25 12:38:48 +00:00
Tom Hughes
f09b16cade When asked for ways which use a node, or relations which use some given
object, return 200 OK with an empty document if not matches are found
rather than 400 Bad Request (for ways) or 404 Not Found (for relations).
2007-11-24 14:47:50 +00:00
Tom Hughes
300c3b4ed4 Work round ruby's horribly broken URI.escape that deliberately doesn't
escape most characters which have special meaning in URIs...
2007-11-24 14:36:21 +00:00
Tom Hughes
7de4cb19b8 Wrap evaluation of default values for parameters inside the HTML escaping
as that causes nil to become "" hence defeating the conditional default.
2007-11-24 14:13:21 +00:00
Tom Hughes
144640c9ed Fix tag splitting. 2007-11-24 01:00:53 +00:00
Richard Fairhurst
fe4865c5a9 0.5d: drag Yahoo layer only 2007-11-23 18:37:28 +00:00
Tom Hughes
2cbcabb3f6 HTML escape substituted parameter values to avoid injection attacks. 2007-11-23 00:49:55 +00:00
Tom Hughes
7b172efeb6 Don't indicate if a message has been read in the outbox view. 2007-11-21 23:54:14 +00:00
Mikel Maron
d736a158be message outbox 2007-11-21 18:24:29 +00:00
Richard Fairhurst
cdfc163e5f 0.5c: some refinements to casing 2007-11-21 14:01:31 +00:00
Tom Hughes
9ec8ef0220 Add escaping of semicolon and equals in node tags.
Based on patch from Dave Stubbs.
2007-11-21 13:30:55 +00:00
Tom Hughes
39e77df344 Add keyboard shortcuts to the slippy map. 2007-11-21 09:51:55 +00:00
Richard Fairhurst
a8333a38a2 Require data to be public before editing 2007-11-20 10:08:58 +00:00
Richard Fairhurst
6785ce5231 purge area layer when purging ways 2007-11-19 14:00:18 +00:00
Richard Fairhurst
3080dd3580 0.5b: look more pretty! 2007-11-19 13:29:35 +00:00
Richard Fairhurst
19965b2a5d waterway=stream,natural=peak 2007-11-13 15:49:22 +00:00
Richard Fairhurst
849397a336 0.5a: further revisions to merged ways, API->SWF error handling 2007-11-13 09:26:04 +00:00
Richard Fairhurst
7bdfa0afc9 fix branching way problem 2007-11-11 13:08:59 +00:00
Richard Fairhurst
d9d625f651 0.5: NUNS! REVERT!!! 2007-11-10 22:01:23 +00:00
Tom Hughes
bcf2fe5129 Spread T@H over three host names. 2007-11-09 15:29:30 +00:00
Tom Hughes
0c90905495 Add a stylesheet targeted at print media to get nice printouts. 2007-11-07 22:26:10 +00:00
Tom Hughes
5ac70d8946 Use the tah.opstreetmap.org domain name for the T@H layer. 2007-11-07 08:25:11 +00:00
Richard Fairhurst
4b1a3dff29 Potlatch 0.4c: bugfixes, history in progress 2007-11-02 09:28:00 +00:00
Tom Hughes
e4df9a8219 Allow objects to be resurrected. 2007-10-31 15:52:36 +00:00
Tom Hughes
8d2f6da628 Rework image generation to work in a fixed amount of memory. Closes #580. 2007-10-31 13:46:36 +00:00
Tom Hughes
714fc42d8e Don't include any page numbers in links in the tag list. 2007-10-31 00:35:27 +00:00
Tom Hughes
3aa8ffbcb8 Tidy up mail notifiers and make them more rails style rather then
relying on ActionMailer implementation details.
2007-10-30 00:48:45 +00:00
Tom Hughes
c3424e9cfb Add warnings not to reply to message notifications directly. 2007-10-30 00:47:45 +00:00
Richard Fairhurst
e91a429c52 persistent preferences! 2007-10-28 20:35:19 +00:00
Richard Fairhurst
9a25042091 update view/edit tab links 2007-10-28 17:47:43 +00:00
Tom Hughes
877724813c Fix tab breakage and make key update as zoom level changes. 2007-10-28 16:46:10 +00:00
Richard Fairhurst
d469b91e7e Potlatch 0.4b: put POIs in ways; small SWF improvement; correct created_by for ways 2007-10-28 16:07:23 +00:00
Richard Fairhurst
a39ed81cd2 keys change depending on zoom level; force 210px sidebar width for keys 2007-10-28 15:22:15 +00:00
Richard Fairhurst
78e6578daa Preparation for anon edit change 2007-10-27 21:47:59 +00:00
Frederik Ramm
8a69ef115a way history needs to reference nodes with ref=... not id=... 2007-10-26 18:14:48 +00:00
Richard Fairhurst
bb45418e49 fix the POI bugfix (sigh) 2007-10-25 07:33:39 +00:00
Tom Hughes
d858edd4e3 Stylesheet changes for permalink from crschmidt.
Part of fix for case #566.
2007-10-23 09:21:11 +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
f2be4b9449 Patch from crschmidt to add an obvious permalink to the bottom right
corner of the slippy map. Tested on FF2, IE7, Opera and Safari.

Closes #566.
2007-10-23 08:45:23 +00:00
Steve Chilton
3ee2d2d3b7 revised keymapnik11/12, new versions of keymapnik6-10 2007-10-21 19:03:32 +00:00
Tom Hughes
0fd29dc003 Render an empty text string instead of nothing (which actually generate a
single space character) for 410 and 412 responses as there is a bug in
lighttpd (http://trac.lighttpd.net/trac/ticket/1055) that prevents it
passing on the response body for these codes, leading to the client blocking
waiting for the data until it times out. Closes #537.
2007-10-17 23:22:51 +00:00
Tom Hughes
f82f362cea Fix geolocation to actually work... 2007-10-12 16:34:38 +00:00
Tom Hughes
b74477a57c Don't try and print the distance to a friend that has not set a
home location. Closes #560.
2007-10-12 13:03:08 +00:00
Dan Karran
eeeb13e4e4 Actually showing the closest neighbours instead of a fixed number of people within the search radius 2007-10-11 18:47:30 +00:00
Tom Hughes
dd33fc633c Factor out common code for models which deal with geographic points
into a base class.
2007-10-10 23:00:25 +00:00