Commit graph

4853 commits

Author SHA1 Message Date
John Firebaugh
cc7753896c Move non-vendor leaflet assets into app 2012-11-09 12:59:30 -08:00
John Firebaugh
8435b1bf60 Remove OL SimpleLayerSwitcher
Consensus was to use the default Leaflet layer switcher
and rather than port SimpleLayerSwitcher to Leaflet.
2012-11-09 12:59:30 -08:00
John Firebaugh
39006baf33 Fix left pan button position in RTL 2012-11-09 12:59:29 -08:00
John Firebaugh
3e2e62b123 Fix zoom control positioning 2012-11-09 12:59:29 -08:00
Saman Bemel-Benrud
5f8047991b properly positioned leaflet controls and removed old open layers style rules. 2012-11-09 12:59:29 -08:00
John Firebaugh
e6afda8764 Update Leaflet 2012-11-09 12:59:29 -08:00
John Firebaugh
cd28b8dac5 Match pan/zoom control style better
Thanks @ajashton
2012-11-09 12:59:29 -08:00
John Firebaugh
378d08f2c9 Update leaflet.locationfilter 2012-11-09 12:59:29 -08:00
John Firebaugh
6054eea238 Bundle leaflet css in a single asset 2012-11-09 12:59:29 -08:00
John Firebaugh
915fca8862 Add Vendorfile
See https://github.com/grosser/vendorer
2012-11-09 12:59:29 -08:00
John Firebaugh
6f793e1b21 Pan/zoom controls that look like the OL ones 2012-11-09 12:59:28 -08:00
John Firebaugh
f8b0b861d4 Restore maxFeatures check 2012-11-09 12:59:28 -08:00
John Firebaugh
fe6e837cfe Replace leaflet.draw with leaflet-locationfilter 2012-11-09 12:59:28 -08:00
John Firebaugh
babefbba6c IE compatibility 2012-11-09 12:59:28 -08:00
John Firebaugh
deff87a577 Reduce flicker in data browser 2012-11-09 12:59:28 -08:00
John Firebaugh
1120eb77ff Port embed.html to leaflet 2012-11-09 12:59:28 -08:00
John Firebaugh
64eec2a5d0 Use L.OSM tile classes 2012-11-09 12:59:28 -08:00
John Firebaugh
030b7c4052 Update leaflet-osm 2012-11-09 12:59:28 -08:00
John Firebaugh
4d19c6892c Update Leaflet 2012-11-09 12:59:28 -08:00
John Firebaugh
d5841403c4 Calculate scale in export 2012-11-09 12:59:27 -08:00
John Firebaugh
800f014486 Remove calls to map.setCenter 2012-11-09 12:59:27 -08:00
John Firebaugh
19bac47e5f Don't show map controls on browse pages 2012-11-09 12:59:27 -08:00
John Firebaugh
411748a48c Use baselayerchange event 2012-11-09 12:59:27 -08:00
John Firebaugh
1ae4483c69 Update Leaflet 2012-11-09 12:59:27 -08:00
John Firebaugh
1caf40a2a2 Precompile leaflet CSS 2012-11-09 12:59:27 -08:00
John Firebaugh
30ad58c01f Port to Leaflet 2012-11-09 12:59:27 -08:00
John Firebaugh
e316f0e425 Use jQuery's toggle binding
The old code never unbound the existing binding, so they
piled up.
2012-11-09 12:59:27 -08:00
Siebrand Mazeland
a15bfa2ff8 Localisation updates from http://translatewiki.net. 2012-11-07 12:11:28 +00:00
Tom Hughes
6aaaf5dddb Rework signup emails a bit
Remove "lego" strings and try and reduce duplication between the
text and HTML versions of the mails.
2012-11-05 09:54:58 +00:00
John Firebaugh
379cb35832 Support semicolon as parameter delimiter
http://lists.openstreetmap.org/pipermail/rails-dev/2012-November/001259.html
2012-11-05 08:57:05 +00:00
Tom Hughes
6211895f6e Allow mass assignment of user preference keys and values 2012-11-04 14:41:08 +00:00
Tom Hughes
cb6eb65466 Use binary mode for trace files
We don't want to try and do any enoding conversions (or indeed any
newline conversions) on uploaded trace files.
2012-11-04 14:41:01 +00:00
Tom Hughes
6b86b716d1 Tweak Potlatch maximisation a bit more 2012-11-01 17:02:11 +00:00
Tom Hughes
5e7b7a420a Make full screen mode in Potlatch work properly again 2012-11-01 16:56:36 +00:00
Tom Hughes
c2c2535b73 Make sure we always read the body of a PUT or POST request
Unfortunately if a PUT or POST request that has a body fails to
read it then Apache will sometimes fail to return the response it
is given to the client properly, instead erroring:

  https://issues.apache.org/bugzilla/show_bug.cgi?id=44782

To work round this we call rewind on the body for every request using
a filter, which forces it to be fetched from Apache into a file.
2012-11-01 12:45:37 +00:00
Tom Hughes
3ef02b86f0 Revert "Add a newline to the end of the body when reporting an error"
This reverts commit 59c97f4866.
2012-11-01 12:42:47 +00:00
Tom Hughes
59c97f4866 Add a newline to the end of the body when reporting an error
There seems to be some sort problem with ruby 1.9 where a response
body that is a single line with no newline causes the response not
to be sent properly.
2012-11-01 09:13:43 +00:00
Tom Hughes
c94e059d2d Use zip instead of SyncEnumerator in statistics script 2012-11-01 00:35:31 +00:00
Tom Hughes
373a610563 Force encoding in AMF controller
Although the strings are UTF-8 we need to treat them as byte
strings for the purposes of encoding AMF responses.
2012-10-31 20:39:31 +00:00
Saman Bemel-Benrud
5a2cfd6760 Fix history sidebar for small screens 2012-10-31 00:09:45 +00:00
Tom Hughes
318f578954 Use the asset pipeline to load the sprite 2012-10-30 22:41:07 +00:00
Tom Hughes
b7b68aee36 Simplify handling of verified emails in OpenID signup
Also make sure that all paths that lead to OpenID based signup
will notice a verified email properly.
2012-10-30 21:43:38 +00:00
Kai Krueger
104727f889 Trust Google and Yahoo to return valid email addresses
Both Google and Yahoo guarantee that the email address they return
during the OpenID authentication are emails that they have already
verified:

  http://stackoverflow.com/q/5639419

Therefore special case these OpenID providers and automatically
activate the new users account without requiring a separate email
verification step.

This therefore reduces the signup procedure by one step and makes
it easier for new users of these OpenID providers, which cover the
majority of users.
2012-10-30 19:14:45 +00:00
Saman Bemel-Benrud
7eb01eb313 Fix editor view 2012-10-30 17:30:20 +00:00
Saman Bemel-Benrud
b70aa5dbbd Change approach to layout in order to fix some weird CSS problems
Move away from using an absolute positioned #content div as this was
causing some weird problems when users scrolled down, like not showing
bottom padding, and prematurely cutting off the left keyline.

Now, the content area uses relative positioning most of the time, and
fixed positioning when the full screen map is in place.

Using fixed positioning on the big map is nice because you can now scroll
down to see more sidebar content, but you won't end up with an ugly block
of white space under the map.
2012-10-30 13:55:14 +00:00
Tom Hughes
0ba1839e78 Move OL control styling to OL theme 2012-10-29 19:04:01 +00:00
Siebrand Mazeland
2074f4604f Localisation updates from http://translatewiki.net. 2012-10-27 13:37:36 +00:00
Tom Hughes
577b5d5bb8 Fix RTL issues with the search and donate icons 2012-10-26 21:51:26 +01:00
Tom Hughes
95fa893163 Make it easier to test alternative locales
Allow a locale=xx parameter in the URL to select the locale.
2012-10-26 21:41:03 +01:00
John Firebaugh
c426e8d160 Make it easier to test RTL layout
Instead of fiddling with settings so the site appears in Arabic
or Hebrew, you can add a dir=rtl param to the URL.
2012-10-26 21:36:59 +01:00