Commit graph

363 commits

Author SHA1 Message Date
Tom Hughes
10e13b8fea Use a cookie to remember the last location viewed on the slippy map. 2007-07-28 00:07:31 +00:00
Tom Hughes
985047f18d User null to indicate the the user's home location is not set. 2007-07-27 17:46:01 +00:00
Tom Hughes
79457cd43e Factor out loading of the various fixtures needed to test API calls
into a shared method.
2007-07-27 08:47:35 +00:00
Tom Hughes
c1089f6149 Load way fixtures so segment delete tests will fail when segments
are in use.
2007-07-27 08:29:13 +00:00
Tom Hughes
3b751f79b8 Handle segments which do not exist correctly and indicate that the
preconditions for the way are not met.
2007-07-27 08:16:12 +00:00
Frederik Ramm
efc4c6f85d added more tests 2007-07-26 22:05:51 +00:00
Tom Hughes
9dbe1a497a Add a flag to allow the API to be placed in read-only mode. 2007-07-26 17:15:23 +00:00
Tom Hughes
bd07221de5 Make the search calls a bit more efficient and add some limits on the
number of result objects we are prepared to return.
2007-07-26 14:30:54 +00:00
Tom Hughes
d52e391a0d Make the API consistent about whether object names are plural in
search calls.
2007-07-26 14:24:08 +00:00
Steve Coast
48a3ee4d24 move zoom in one level by default 2007-07-25 08:34:37 +00:00
Tom Hughes
b13eb8824e Add some basic tests for nodes. 2007-07-24 22:58:16 +00:00
Tom Hughes
7d6c662296 Use SQL schemas, as ruby can't cope with the things we do... 2007-07-24 22:57:59 +00:00
Richard Fairhurst
b598ce68ef ways from unwayed segments now automatically fix segment direction 2007-07-22 22:52:46 +00:00
Tom Hughes
db0e3b8cda Don't include deleted segments when converting unwayed segments to ways. 2007-07-22 11:33:01 +00:00
Tom Hughes
28a706849f Log calls to the makeway method. 2007-07-22 11:30:43 +00:00
Richard Fairhurst
30ac98deef experimental 'make ways out of unwayed segments' feature 2007-07-21 21:07:40 +00:00
Richard Fairhurst
837e58711c drag newly created points 2007-07-21 14:05:20 +00:00
Tom Hughes
9866a7ec45 Don't fill in from_display_name for messages - it can be got by
joining to the user table using from_user_id so is going to be
dropped.
2007-07-20 08:07:09 +00:00
Tom Hughes
9e0226113c Don't bother setting user_id for each tracepoint - it is redundant as
the same information can be found by joining to gpx_files. It is also
never used, so the column is going to be removed.
2007-07-20 07:51:46 +00:00
Richard Fairhurst
95d9ae83ab smarter whichways behaviour, couple of small bugfixes 2007-07-19 20:37:05 +00:00
Tom Hughes
7379b4638c Escape names passed to ws.geonames.org as part of the URL. 2007-07-19 15:14:34 +00:00
Tom Hughes
77d2fcf9dd Fixed error handling in the name search and tidied things up a bit. 2007-07-19 13:22:15 +00:00
Tom Hughes
4d1633585f Don't include passwords in the request log. 2007-07-19 08:57:03 +00:00
Tom Hughes
30f740178f Use a full path to find the file command. 2007-07-18 08:37:46 +00:00
Tom Hughes
16358a1d39 Improve MIME type determination for trace files. 2007-07-17 14:45:04 +00:00
Tom Hughes
bce2c88336 Provide a more sensible suggested filename when downloading traces. 2007-07-17 14:34:22 +00:00
Tom Hughes
76df341f66 Remove SOTM advert from site. 2007-07-16 23:23:08 +00:00
Tom Hughes
8afc6abb7e Allow the map centre and marker position to be set independently. 2007-07-16 09:42:17 +00:00
Tom Hughes
c166d03033 Fix exception handling in GPX importer. 2007-07-16 06:17:05 +00:00
Richard Fairhurst
fa1397e988 strip out any control characters before writing to the db 2007-07-13 09:46:39 +00:00
Richard Fairhurst
84b67e00a0 fix problematic merge 2007-07-07 13:26:17 +00:00
Tom Hughes
55d8bc5256 Disable asset tagging to get better caching of assets. 2007-07-06 13:47:13 +00:00
Tom Hughes
4bb7ed0291 Add OpenSearch search plugins from Jono to the site. Fixes #506. 2007-07-05 18:00:30 +00:00
Tom Hughes
60817dedf0 Restore favicon. 2007-07-05 15:36:21 +00:00
Tom Hughes
2788050685 Handle public flag for GPX creation properly. 2007-07-02 23:38:13 +00:00
Tom Hughes
aacc7ae3e0 Refactor GPX creation routines to share common code. 2007-07-02 23:33:28 +00:00
Tom Hughes
743cb57e51 Remove scripts for old slippy map which are no longer used. 2007-06-30 16:30:28 +00:00
Tom Hughes
37e74fc5cb Make the slippy map work properly on IE7 at last! 2007-06-30 15:47:35 +00:00
Tom Hughes
b92e1b0584 Fix some HTML validation issue. 2007-06-30 12:09:28 +00:00
Tom Hughes
48a3a317bc Use Math.PI instead of defining it ourselves (and sometimes forgetting). 2007-06-30 11:25:53 +00:00
Tom Hughes
4235bdf162 Bring some sort of sanity to sequence numbers for segments in a
way - now everything starts counting at one again and nothing starts
at zero.
2007-06-29 23:00:27 +00:00
Tom Hughes
2804e77cc3 With much assistance from kleptog, make the map wrap when zoomed right out. 2007-06-29 15:43:14 +00:00
Tom Hughes
4358a6adcb Only do mappam for www.openstreetmap.org and openstreetmap.org to stop
the annoying "wrong API key" errors popping up all the time on my test
environment.
2007-06-29 14:54:55 +00:00
Tom Hughes
344fced9a6 Remove require_user for the api_details method as that uses HTTP authentication.
Also set the content type for API responses.
2007-06-29 10:33:14 +00:00
Steve Coast
5a66dbf907 add mappam... also stuff in user controller that must have been done by TomH? 2007-06-29 10:18:08 +00:00
Tom Hughes
7901811752 Make sure we clear the tags and segments for a way when it is deleted.
Also remove some redundant setting of timestamps that will be overwritten
by the model when saving.
2007-06-27 23:44:40 +00:00
Tom Hughes
97d5d1d385 Make passwords with a colon in them work. 2007-06-27 18:46:23 +00:00
Tom Hughes
fcc485725d Make negative caching of users work. 2007-06-27 18:16:04 +00:00
Tom Hughes
9b67da24c0 Fix deprecation warning. 2007-06-27 18:09:31 +00:00
Tom Hughes
67224fe828 More search fixes... 2007-06-27 17:48:05 +00:00