Commit graph

1149 commits

Author SHA1 Message Date
Tom MacWright
8c788ce387 Add attrib 2013-07-18 10:34:18 -07:00
Tom MacWright
c4f9654891 Refactor mapLayers to create layers up front 2013-07-18 10:34:18 -07:00
John Firebaugh
4563244fd1 Clean up some of the map JS, reduce scope of globals 2013-07-18 10:34:17 -07:00
Tom MacWright
ff52509d5a Actually toggle note layer on click. 2013-07-18 10:31:20 -07:00
Tom MacWright
22d6633114 Start refactoring notes layer 2013-07-18 10:31:20 -07:00
Tom MacWright
7d84b81fd9 Remove unnecessary abstraction around rectangles 2013-07-18 10:31:20 -07:00
Tom MacWright
2a9286a16a Prevent click propagation on ui panes 2013-07-18 10:31:20 -07:00
Tom MacWright
c75d725893 generate short link kind of 2013-07-18 10:31:20 -07:00
John Firebaugh
1feda20644 Start layers pane 2013-07-18 10:31:20 -07:00
Tom MacWright
36fac06bd5 Add share button to map 2013-07-18 10:31:20 -07:00
Tom MacWright
9bf18a360e Add locate widget to map 2013-07-18 10:31:19 -07:00
John Firebaugh
15d148dbd4 Add back basic zoom control 2013-07-18 10:31:19 -07:00
Tom MacWright
73bbee5df9 Add leaflet-locate control, invisible currently. 2013-07-18 10:31:19 -07:00
John Firebaugh
ef37ad8aaa Basic framework for map UI 2013-07-18 10:31:19 -07:00
Tom MacWright
5aea67a71f Remove pan and zoom controls 2013-07-18 10:31:19 -07:00
Tom Hughes
fe2f03da14 Give up on automatic resizing of text areas 2013-07-18 15:31:51 +01:00
Tom Hughes
2119911aa5 Tone down the highlighting of Nominatim search results 2013-07-18 15:29:01 +01:00
Saman Bemel-Benrud
c70a418dc2 Fix browse features buttons 2013-07-08 09:03:17 +01:00
Saman Bemel-Benrud
2e444eb7bb Fine tune button styling for note popups 2013-07-08 09:03:17 +01:00
Saman Bemel-Benrud
34edfdb9ba Cleanup notes and fix CSS error 2013-07-08 09:03:17 +01:00
Tom Hughes
13fee47ed0 Use new Leaflet setPopupContent method 2013-06-27 22:40:23 +01:00
Tom Hughes
168a9fc327 Replace various Leaflet extensions with new builtin methods 2013-06-27 21:53:26 +01:00
Saman Bemel-Benrud
82f8968169 Keep the map visible as the changeset page is scrolled 2013-06-10 22:34:23 +01:00
Tom Hughes
02d9584fc5 Allow notes to be reopened from the web interface 2013-06-10 19:25:18 +01:00
Leo Koppelkamm
890153b2a6 Replace note markers with ones styled like the other markers 2013-06-02 18:44:09 +01:00
Tom Hughes
d1c9009019 Make translated map layer names work
Delay initialising the layers array until the first map is created
so that we can be sure that I18n.locale has been initialised.
2013-05-25 00:21:19 +01:00
Martin Raifer
74448434c9 Improve display of objects on data browser maps
Previously, tagged nodes of ways were shown on the browse/way and
browse/relation pages.

Now, nodes are not shown on browse/way pages and only nodes which are
direct members of the relation are shown on browse/relation pages.
2013-05-14 21:43:55 +01:00
Tom Hughes
9aa029af7a Clear comment field after a new note is created 2013-05-14 00:14:02 +01:00
Tom Hughes
5e420d9e50 Preserve in progress note comments when the map is moved 2013-05-13 21:14:18 +01:00
Leo Koppelkamm
8255553e97 Don't focus the text area on touch devices to avoid flashing the keyboard
Currently the keyboard slide out & hides again quickly.
2013-05-12 19:26:05 +01:00
Tom Hughes
a7e67846a7 Persist the state of the notes layer 2013-05-08 21:04:41 +01:00
Tom Hughes
e84b2bd22f Replace some inline javascript with a UJS solution 2013-05-06 11:09:17 +01:00
Tom Hughes
a5f3abcbe9 Make "add note" cope with base layer changes 2013-05-01 09:26:05 +01:00
Tom Hughes
d1660a1c4f Disable dragging of new notes once they are submitted 2013-04-29 17:20:21 +01:00
Tom MacWright
6453310d4d Redesign notes permalink
This adds a small permalink icon to the sprite and updates the CSS for
the permalink. The text is hidden by default and shown on hover.
2013-04-28 17:06:48 +01:00
Tom Hughes
77de506312 Update ohauth and switch to using the new headerGenerator method 2013-04-28 10:39:56 +01:00
Tom Hughes
d48b1ccdf2 Replace the title in the note popup with a permalink 2013-04-27 11:51:51 +01:00
Tom Hughes
899dab08f9 Cancel any existing object load before starting a new one 2013-04-27 11:15:32 +01:00
Tom Hughes
b1308a87be Show OSM objects for Nominatim search results as map overlays 2013-04-26 00:39:26 +01:00
Tom Hughes
47a75be1c7 Use the correct longitude for links when browsing changesets 2013-04-25 17:27:01 +01:00
Tom Hughes
979822f697 Add a "Hide" button to notes when viewed by moderators 2013-04-08 22:32:20 +01:00
Tom Hughes
0a4b860480 Focus on the text field when a note is opened 2013-03-28 15:12:53 +00:00
Tom Hughes
d00994d151 Fix display of updates on newly loaded notes 2013-03-28 14:43:07 +00:00
Tom Hughes
84f7d322d0 Don't try and use OAuth if we don't have a token 2013-03-28 14:29:38 +00:00
Tom Hughes
00a4d9fe49 Tidy up javascript OAuth code 2013-03-28 11:18:58 +00:00
Tom Hughes
898cc828dd Merge branch 'master' into notes
Conflicts:
	Gemfile.lock
2013-03-28 00:36:07 +00:00
Tom Hughes
38255f9f8d Use OAuth for notes API calls and require authentication to close 2013-03-28 00:34:23 +00:00
Tom Hughes
e8d32637c1 Add javascript OAuth support 2013-03-28 00:34:09 +00:00
Tom Hughes
456d41e189 Remove use of jQuery toggle() function 2013-02-12 10:31:38 +00:00
Tom Hughes
34f823a30e Clear the note cache when the note layer is turned off 2013-02-12 10:01:25 +00:00