Commit graph

149 commits

Author SHA1 Message Date
Tom Hughes
456d41e189 Remove use of jQuery toggle() function 2013-02-12 10:31:38 +00:00
Tom Hughes
a4b5485405 Compute size of rich text preview pane correctly 2013-01-24 14:29:27 +00:00
Tom Hughes
f612f573f9 Wrap longitude values explicitly
Leaflet 0.5 no longer wraps longitude values, so we need to do it.
2013-01-22 22:29:50 +00:00
Tom Hughes
e9cb282712 Make maximising work properly again in Potlatch 2013-01-19 11:29:12 +00:00
Tom Hughes
843051c1b2 Detach the permalink from the DOM so only one copy is shown 2013-01-18 13:50:37 +00:00
Tom Hughes
6bde69a840 Update to Leaflet 0.5 2013-01-17 17:44:10 +00:00
Saman Bemel-Benrud
a36f3558dd Site cleanup
I set out to do a quick and dirty typography overhaul to make things
more consistent and a bit cleaner, but I kept running into things I
didn't like, so this lead me down something of a rabbit hole of design
tweaks to the OSM site.

Goals here are to have better content hierarchy, better vertical
rhythm, more consistent UI, cleaner markup with less tables, all while
keeping the basics pretty much intact. There are a lot of things I
didn't touch even though they need to be updated (lots of tables where
stuff shouldn't be tables, mostly).

Basic overview of changes:

I added a new persistent header that helps segment pages. It's now
a lot easier to know what you're looking at. The header has a page
title, a description, plus a submenu of actions.

There is now a pattern of 20px/10px margins and padding for more
rhythm and breathing room throughout the site.

I know there are other problems here or things I've missed - would
love another set of eyes to look over this! I am still getting comfortable
working on the site - it's my first time ever digging into a ruby or rails
so I'm not familiar with the templating language yet.
2013-01-14 21:27:08 +00:00
Paweł Paprota
bdc536d126 Autofocus the search field on the index page 2012-12-13 19:16:41 +00:00
John Firebaugh
394dcd7316 Avoid multiple click bindings on data layer 2012-11-29 18:31:17 +00:00
John Firebaugh
6255c96130 Use jQuery chaining 2012-11-29 18:29:50 +00:00
John Firebaugh
05eba79008 Move "Browse Map Data" to layers control
Fixes https://trac.openstreetmap.org/ticket/4680
2012-11-29 18:23:41 +00:00
John Firebaugh
fde2744f74 Sort changeset rectangles by size
This should help make more changesets accessible on the
map, without requiring precision cursor placement on the
changeset boundary (#169).
2012-11-29 05:50:03 -08:00
John Firebaugh
3758930e18 Fix "Edit Area" remote control link
Fixes https://trac.openstreetmap.org/ticket/4699
2012-11-25 17:36:48 +00:00
Tom Hughes
f978642a58 Revert "Stop the map overlapping the top bar"
This reverts commit 2ef2d7c876.
2012-11-23 19:36:56 +00:00
Tom Hughes
8e27c78d3c Fall back to the mapnik layer
If there are no known layers in the layers string, then fall back to
showing the standard mapnik layer.
2012-11-23 19:00:51 +00:00
Tom Hughes
dc0ada9515 Set size and anchor position for embedded markers 2012-11-23 17:57:47 +00:00
Tom Hughes
31a6d20728 Set icon paths for markers on the embedded map 2012-11-23 15:06:13 +00:00
Tom Hughes
2ef2d7c876 Stop the map overlapping the top bar 2012-11-23 12:23:38 +00:00
Tom Hughes
c0b47c0c2a Serve embedded maps through the assets pipeline 2012-11-23 10:40:26 +00:00
Tom Hughes
0c2d538aa7 Use the small zoom control in the small screen layout 2012-11-22 12:54:37 +00:00
Tom Hughes
f6ac8ffbab Tidy up 2012-11-22 12:35:49 +00:00
Tom Hughes
7ac7db35b8 Remove hard coded assumption that layer zero is mapnik 2012-11-22 12:35:49 +00:00
Tom Hughes
62ba6b50ba Replace OSM markers with recolured versions of the Leaflet marker 2012-11-21 18:43:20 +00:00
Tom Hughes
bc1b4d53e3 Use the OSM map marker icons on the home page 2012-11-20 21:52:40 +00:00
Tom Hughes
a0c9cc7d0a Use the OSM map marker icons when adding a new diary entry 2012-11-20 21:48:50 +00:00
John Firebaugh
9bd48640ad Move popup anchor definition to icon 2012-11-09 15:57:31 -08:00
John Firebaugh
f913b7d8a5 Use nicer markers 2012-11-09 13:31:29 -08:00
John Firebaugh
5b42c683f5 Don't zoom map when enabling location filter 2012-11-09 13:13:44 -08:00
John Firebaugh
ed84516db2 Fix user popup styles 2012-11-09 12:59:31 -08:00
John Firebaugh
1927bc6ca8 Fix user map icon and offset 2012-11-09 12:59:31 -08:00
John Firebaugh
648f232596 Inline map.js marker functions 2012-11-09 12:59:31 -08:00
John Firebaugh
66f0a4da04 Fix L.Icon.Default.imagePath in production 2012-11-09 12:59:30 -08:00
John Firebaugh
eefc0b5a0d Fix bbox params on browse area links 2012-11-09 12:59:30 -08:00
John Firebaugh
378d08f2c9 Update leaflet.locationfilter 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
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
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
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
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
6b86b716d1 Tweak Potlatch maximisation a bit more 2012-11-01 17:02:11 +00:00