Commit graph

1012 commits

Author SHA1 Message Date
Tom Hughes
9bcd049c98 Notice, and act on, changes to the layer parameter in the URL bar 2013-09-09 15:17:09 +01:00
Tom Hughes
b394a4d309 Add support triggering a piwik goal when a map layer is selected 2013-08-24 12:55:29 +01:00
Tom Hughes
26855add38 Rework piwik configuration 2013-08-24 12:54:51 +01:00
John Firebaugh
cea0cccc6d Convert edit menus to bootstrap dropdown 2013-08-21 17:20:04 -07:00
John Firebaugh
1727cd7c2b Compact user menu 2013-08-21 17:20:04 -07:00
Tom Hughes
56fd5c4d90 Merge remote-tracking branch 'osmlab/welcome-2' 2013-08-18 14:50:36 +01:00
John Firebaugh
c919340c11 Need to preventDefault on href='#' links
Fixes https://trac.openstreetmap.org/ticket/4947
2013-08-15 17:42:43 +01:00
Tom Hughes
1a9651ffb0 Set longitude correctly in "where am I" lookups from the edit page 2013-08-12 23:58:34 +01:00
John Firebaugh
78d6bde485 Support background hash parameter for iD
Fixes systemed/iD#1590
Fixes systemed/iD#1682
2013-08-12 23:53:41 +01:00
John Firebaugh
8ca781ac75 Add manual fallback for "Start Mapping" button 2013-08-12 13:34:45 -07:00
John Firebaugh
a4f37de7e9 Update with hash permalinks 2013-08-12 13:34:45 -07:00
John Firebaugh
2fa4225784 Pass editing params through to welcome page 2013-08-12 13:34:44 -07:00
John Firebaugh
ef880621a4 Combine and refine third and sixth section 2013-08-12 13:34:41 -07:00
John Firebaugh
1a51f21871 Add a "Start Mapping" button
Position is determined in one of two ways: lat/lon query
parameters (with helpful text from a nominatim reverse
geocode), or HTML5 geolocation.
2013-08-12 13:34:41 -07:00
Tom Hughes
5da715756d Fix "view larger map" link in HTML sharing 2013-08-12 00:24:32 +01:00
Tom Hughes
9d68b65cd3 Fix "where am I" on the edit page 2013-08-11 15:58:42 +01:00
John Firebaugh
1b2738af80 Update leaflet.locate (fixes #438) 2013-08-08 14:26:14 -07:00
John Firebaugh
d31fc7c2f5 Add copyright in attribution control 2013-08-08 10:59:13 +01:00
John Firebaugh
54ded37bf2 Tooltips for map controls 2013-08-07 15:41:32 -07:00
Tom Hughes
258e66299a Fix the "Where am I?" link 2013-08-07 08:42:57 +01:00
John Firebaugh
a1af4d5de1 Hide search marker/object when closing sidebar
Fixes #417
2013-08-06 20:23:13 +01:00
John Firebaugh
c6cde2653b Refactor search JS 2013-08-06 20:23:06 +01:00
John Firebaugh
f18740a7af Fix "Edit area" links 2013-08-06 20:20:31 +01:00
John Firebaugh
e6ef6defb2 Wrap marker coordinates in URLs 2013-08-06 10:44:02 -07:00
John Firebaugh
7ee58d77b7 Wrap permalink coordinates 2013-08-06 09:12:20 -07:00
Tom Hughes
04fbc71a40 Ignore clicks on the add note button when it is disabled 2013-08-06 10:40:05 +01:00
Tom Hughes
afc46bcd9b Recognise locations in the hash correctly 2013-08-06 10:23:51 +01:00
Tom Hughes
feeb135760 Merge remote-tracking branch 'osmlab/map-ui' 2013-08-06 09:05:59 +01:00
John Firebaugh
d4135390ac Create linkloader iframe in script 2013-08-06 08:32:06 +01:00
John Firebaugh
34e251c225 Disable map key on non-default layers 2013-08-05 16:22:49 -07:00
John Firebaugh
a89d75d3d8 Recenter marker on map pan/zoom 2013-08-05 12:27:37 -07:00
Martin Raifer
79bdb0ff86 Do not fit map to search result (object) twice
When clicking on search results the respective osm object is loaded
asynchronously and afterwards shown on the map. Some objects can take
a few seconds to load however.

If a user already panned/zoomed the map manually during this time then
their actions are reverted because the map fits to the object again.

There is actually no need for this behaviour, because a good geocoder
already returns an appropriate bounding box for the search result.
2013-08-05 18:50:40 +01:00
John Firebaugh
21ad851612 Reset filter bounds whenever it's enabled 2013-08-05 08:32:44 -07:00
John Firebaugh
48775da938 Make the toggles themselves permalinks 2013-08-05 08:32:44 -07:00
John Firebaugh
fa9b4a5f6a Add/remove active class on map UI buttons 2013-08-05 08:32:43 -07:00
John Firebaugh
a125ee829a Include object in share link 2013-08-05 08:32:42 -07:00
John Firebaugh
95ce2515d1 Tweak labels 2013-08-05 08:31:47 -07:00
John Firebaugh
98cd01c40d Toggle between Link / Short Link / HTML 2013-08-05 08:31:47 -07:00
John Firebaugh
a3d69ee264 Put link next to input and make it non-navigable 2013-08-05 08:31:47 -07:00
John Firebaugh
f1a6755060 Always center map on marker
Not centering is of dubious usefulness, and doesn't work
at all with a short link.
2013-08-05 08:31:46 -07:00
Saman Bemel-Benrud
c47b417f3e divide embed section from share section. 2013-08-05 08:31:46 -07:00
John Firebaugh
f17304e8ed Fix embed 2013-08-05 08:31:46 -07:00
John Firebaugh
3eb4f1938c Add "Center map on marker" option 2013-08-05 08:31:46 -07:00
John Firebaugh
bf7b2cf381 Design adjustments to Link / HTML sharing 2013-08-05 08:31:46 -07:00
John Firebaugh
6edf633885 Update location filter checkbox state correctly 2013-08-05 08:31:45 -07:00
John Firebaugh
669393a6cb Recenter marker when shown 2013-08-05 08:31:45 -07:00
John Firebaugh
6dcd087abc Remove marker and filter when closed 2013-08-05 08:31:45 -07:00
John Firebaugh
f898058e76 Add option to include marker in permalinks 2013-08-05 08:31:37 -07:00
John Firebaugh
438e8be102 Reorganize share/export UI
"Image" and "Embeddable HTML" options move to share control.
Only XML export remains, and is now accessed via a sidebar
link rather than the tab bar.
2013-08-05 08:25:52 -07:00
Tom Hughes
58eb17cb63 Update user location setting for zoomPrecision change 2013-08-04 12:40:20 +01:00