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
Tom Hughes
6362f60a54
Display the size warning when the data layer is disabled
2013-12-03 09:17:02 +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
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
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
Tom Hughes
9e25f5563d
Drop click handler for changeset entries in the history sidebar
...
The default click handler in index.js handles them fine, and as this
one was not calling preventDefault both were actually firing in some
browsers, causing the changeset to be loaded twice and two history
entries to be created.
2013-12-02 10:17:53 +00:00
Tom Hughes
63617dabb1
Fix javascript eror redirecting to new notes
2013-12-01 22:41:30 +00:00
Tom Hughes
3b6580297f
Rename changed translation to avoid test failures
2013-12-01 09:11:59 +00:00
Tom Hughes
3cd5f45e08
Simplify browse routes and make routes more consistent
...
This gets rid of the /browse/ prefix and uses /history consistently
for all routes that show a list of changesets.
2013-11-28 00:14:07 +00:00
John Firebaugh
0dbd18e2bb
Document/clarify OSM.Router use
2013-11-25 13:10:07 -08:00
Tom Hughes
8482a525c0
Remove unneessary return added accidentally
2013-11-25 19:14:52 +00:00
Tom Hughes
87bf5e73d4
Fix "in bounds" test in updateData
...
Only call getData if the new bounds are not contained within the
old bounds, and only update the bounds after a successful load so
that the don't change if we error out.
2013-11-25 19:13:01 +00:00
John Firebaugh
fbd5a88b24
Use machine-readable lat/lon format
2013-11-21 11:31:58 -08:00
Aaron Lidman
86ae401aac
Nominatim results zoom to the result location
2013-11-20 12:37:57 -08:00
Aaron Lidman
5384ee236c
Fixed individual note marker implementation, closes #78
...
- Removed forced noteLayer view, now respects current selection just
like an other browse page.
- Made marker replacement it’s own thing, seperate from noteLayer.
- Reduced opacity on noteLayer notes, it makes the selected note stand
out more
2013-11-20 11:43:39 -08:00
John Firebaugh
d0de36b607
Refine changeset browse behavior
...
The general history view shows changesets in the current view
and updates when you move the map. The view for an individual
user, nearby users, or friends zooms the map to the extent of
the results, and doesn't change when you move the map.
2013-11-19 12:10:14 -08:00
Aaron Lidman
c0b0829901
Fixed export filter
2013-11-18 18:45:06 -08:00
Aaron Lidman
5a330c7b9d
Improvements to changeset bbox styling
2013-11-18 17:29:55 -08:00
Aaron Lidman
8fe5dbb92c
Wrap bounds of changeset request, closes #72
2013-11-18 16:41:25 -08:00
Aaron Lidman
104ba9c57a
Fix new note wrapping
2013-11-18 11:43:48 -08:00
Aaron Lidman
e62bac06ed
Improved noteLayer and dataLayer availability, closes #65
2013-11-15 15:06:44 -08:00
Aaron Lidman
518a51712c
Obey the hash
2013-11-14 18:16:23 -08:00
Aaron Lidman
fec9dc84c0
No hash on browse pages, closes #35
2013-11-14 17:41:20 -08:00
Aaron Lidman
111dec6853
Fixed border consistency
2013-11-14 12:42:02 -08:00
Aaron Lidman
2ce7060757
Fixed note creation halo to update on dragging
2013-11-14 09:57:48 -08:00
John Firebaugh
c878b5b8d4
Fix note commenting
2013-11-13 15:22:36 -08:00
John Firebaugh
4863a94906
Remove "Loading..." from browse for now
2013-11-13 13:50:36 -08:00
Aaron Lidman
e336fc31c7
Change halo color for notes
2013-11-13 13:32:24 -08:00
John Firebaugh
d380ce79aa
Remove unused, fix global leak
2013-11-13 13:01:07 -08:00
John Firebaugh
a661ee1693
Don't add note when disabled
2013-11-13 12:40:36 -08:00
Aaron Lidman
6f444fc99e
Zoom in to note if zoom < 15
2013-11-13 10:33:16 -08:00
John Firebaugh
853dc286b9
Add sidebar loading indicator
2013-11-12 17:01:47 -08:00
Aaron Lidman
6ecb8dbe8e
Fix editing notes outside of view, closes #57
2013-11-12 16:58:03 -08:00
Aaron Lidman
afcaa2cf58
Add halo to currently selected note
2013-11-12 16:50:23 -08:00
John Firebaugh
8fb3d7365f
Fix indentation and semicolon usage
2013-11-12 15:30:43 -08:00
Aaron Lidman
1673851b50
Add zoom to note
2013-11-12 15:12:40 -08:00
Aaron Lidman
4bfbdcc2f1
Loading indicator for notes
2013-11-12 11:20:23 -08:00
Aaron Lidman
1b19974b12
Add note creation to the sidebar
2013-11-11 19:06:07 -08:00
Aaron Lidman
85282f5cdd
Add note selection to the sidebar
2013-11-11 16:37:23 -08:00
Aaron Lidman
e4504399ae
Add notes sidebar interaction
2013-11-11 14:29:02 -08:00
John Firebaugh
59f1a6d496
Fix search
2013-11-11 13:39:20 -08:00
John Firebaugh
0d52b82d4e
Move search form to header on small screens
2013-11-11 13:38:46 -08:00
John Firebaugh
a5b784bdf7
Replace Vary header with explicit xhr=1 param
...
IE10 doesn't respect the Vary header.
2013-11-08 17:11:54 -08:00
Aaron Lidman
1ae7872ed8
Update title on pushState, closes #33
2013-11-08 16:10:08 -08:00