Commit graph

1012 commits

Author SHA1 Message Date
Richard Fairhurst
edd6235b45 More work on draggable markers 2014-01-23 10:26:04 +00:00
Richard Fairhurst
08837b2f8b Start work on drag-and-drop start/end markers 2014-01-23 00:49:00 +00:00
Richard Fairhurst
d40d32889c Remove logging 2014-01-22 20:31:58 +00:00
Richard Fairhurst
576745e332 Allow user to click Go before geocode result 2014-01-22 20:29:38 +00:00
Richard Fairhurst
81ebdee185 Parse CloudMade directions 2014-01-22 18:53:30 +00:00
Richard Fairhurst
36ee18b88e Parse MapQuest directions 2014-01-22 18:38:07 +00:00
Richard Fairhurst
d14406cead Move more engine-specific stuff out of main .js 2014-01-22 18:20:07 +00:00
Richard Fairhurst
c4f3d1bd32 Start MapQuest Open support 2014-01-22 15:53:35 +00:00
Richard Fairhurst
7834c628e9 Simplify usage, fix closures 2014-01-22 12:52:51 +00:00
Richard Fairhurst
3bd5ae2399 Move routing engines into their own files 2014-01-22 09:52:01 +00:00
Richard Fairhurst
40ad8c7def Start work on second engine 2014-01-21 23:47:50 +00:00
Richard Fairhurst
a41aec9609 Show little popup on click 2014-01-21 22:39:51 +00:00
Richard Fairhurst
15c1564832 Start to make turn-by-turn instructions clickable 2014-01-21 21:44:09 +00:00
Richard Fairhurst
fd991a0201 Close directions 2014-01-21 21:15:49 +00:00
Richard Fairhurst
ad01a61b6d Query options presentation 2014-01-21 20:57:55 +00:00
Richard Fairhurst
c6e8775dba Presentation of directions 2014-01-21 20:42:31 +00:00
Richard Fairhurst
69437cf0ad Presentation work 2014-01-21 19:22:50 +00:00
Richard Fairhurst
2198b6ebbf Beginning of JavaScript-only routing UI 2014-01-21 13:29:05 +00:00
Simon Poole
a24f52dec7 Add a landing page for "fix the map / report a problem" links 2014-01-19 13:48:27 +00:00
Tom Hughes
fd0ed54b16 Add a close icon to the feature warning panel
Fixes #660
2013-12-18 00:14:29 +00:00
Tom Hughes
dd12e1de63 Restore the duplicate search form in the header
It turns out the duplicate form is used, for the the mobile view.
2013-12-16 09:39:54 +00:00
Tom Hughes
19c77c3d24 Issue all _osm_location cookies against the root path
To ensure that any old cookies issued against other paths are
removed we make sure to do a removeCookie call first without a
path being specified so that any cookie for the current page is
removed before we add a new one against the root.

Fixes #652
2013-12-11 00:19:49 +00:00
Tom Hughes
9cc9a00988 Restore autofocusing of the search field
Use the HTML5 autofocus attribute, and focus on load for browsers
which don't support it.

Also change the removal of the "Where am I?" prompt to happen on
input rather than when the field is focused, so that it is properly
removed and restored when the field has been autofocused.

Fixes https://trac.openstreetmap.org/ticket/5065
2013-12-10 19:45:28 +00:00
Aaron Lidman
a796c41881 Refine zooming and panning for note and data layers
Fixes #629
Fixes #643
2013-12-09 23:05:38 +00:00
Tom Hughes
24893c0936 Update page title when switching to the front page view
Fixes https://trac.openstreetmap.org/ticket/5063
2013-12-09 09:28:13 +00:00
Roland Olbricht
83b3db9974 Improve display of alternative download sources
Makes the list of alternative sources displayed all the time
rather than just when the bounding box is too large, and adds
the Overpass API to the list of sources.

Fixes #606
Fixed #635
2013-12-07 14:56:47 +00:00
Tom Hughes
66aac9ca87 Pass details of any selected object to remote editors 2013-12-06 00:19:35 +00:00
John Firebaugh
69aca22e6a Run unload method before pushing the new state
If running unload causes any hash changes, those should
not end up on the new URL.

Fixes #622
2013-12-05 20:17:24 +00:00
John Firebaugh
21407ede7e Ensure object parameter is removed from edit link when closing sidebar
Refs #620
2013-12-05 19:38:34 +00:00
John Firebaugh
a47d6c212d Restore marker for non-browse search results
Fixes #615
2013-12-05 19:10:48 +00:00
John Firebaugh
190d0fddfc Remove object parameter from share URL
Fixes #616
Fixes #624
2013-12-05 19:09:33 +00:00
Tom Hughes
6670de16a1 Make remote edit work when /edit is loaded
Change detection of the edit request to use the URL as the class
will not be set on the body now, and force the router to think we
actually loaded the normal view.
2013-12-05 10:40:21 +00:00
Tom Hughes
b65ad205d1 Position on notes correctly when a link to a comment is loaded
Links to note comments in the RSS feed have a #id on the end to
position on the right comment, so don't let those hash strings
stop the map from panning to the note.

Fixes #603.
2013-12-04 08:41:56 +00:00
John Firebaugh
bdbc1d663d Unconditionally unbind moveend event
Can't rely on checking location.pathname -- inside unload,
it already contains the new path. Fortunately, checking is
unnecessary.

Fixes TypeError: Cannot call method 'split' of undefined.
2013-12-04 00:31:20 +00:00
John Firebaugh
6053ed4124 Update history feed URL with bbox parameter
https://lists.openstreetmap.org/pipermail/dev/2013-December/027599.html
2013-12-03 20:12:10 +00:00
John Firebaugh
944f3ebb67 Remove map data size warning (#592) 2013-12-03 19:38:26 +00:00
John Firebaugh
07976676de Restore support for #layers=X with no map parameter
https://trac.openstreetmap.org/ticket/5056
2013-12-03 19:37:25 +00:00
Tom Hughes
ba4a3e3ce9 Remove debugging code 2013-12-03 19:04:15 +00:00
Tom Hughes
78f8e2a450 Throw an exception instead of logging to the console 2013-12-03 18:15:02 +00:00
Tom Hughes
e18c3fd58d Log failures to match a route for the initial path 2013-12-03 17:51:01 +00:00
Tom Hughes
6362f60a54 Display the size warning when the data layer is disabled 2013-12-03 09:17:02 +00:00
John Firebaugh
cc57c65083 Auto-uncheck the data and notes layers at low zoom
Reenable them when returning to high zoom in the
same session.

Fixes #592
2013-12-03 08:55:15 +00:00
Tom Hughes
77b4ff6ceb Use jQuery Simulate to simulate click events 2013-12-03 00:29:23 +00:00
Tom Hughes
691352136a Merge remote-tracking branch 'jfirebaugh/562' 2013-12-03 00:23:16 +00:00
John Firebaugh
528d4a040e Improve click behavior on changeset entries
On Chrome, this lets clicks with modifier keys anywhere
on the changeset entry work as expected. On other browsers,
modifier keys still only work on the link itself.
2013-12-02 16:13:58 -08:00
John Firebaugh
10c8be0cb9 Restore correct link behavior with modifier keys
Fixes #562
2013-12-02 14:25:45 -08:00
John Firebaugh
95f1069552 Fix application error on non-feature search results
Fixes #560
2013-12-02 14:08:56 -08:00
John Firebaugh
d95361bcb9 Support legacy bbox param on /history as well
Fixes #586
2013-12-02 11:38:54 -08:00
John Firebaugh
69fdcfd163 Restore legacy bbox/min/max params support
https://trac.openstreetmap.org/ticket/5050
https://trac.openstreetmap.org/ticket/5051
2013-12-02 11:38:54 -08:00
Tom Hughes
be931d0955 Restore click handler for changeset entries
The default click handler only handle the, not the rest of the
entry, so retore the handler but add an e.preventDefault() call
to stop the second handler running.
2013-12-02 18:49:56 +00:00