Commit graph

1149 commits

Author SHA1 Message Date
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
John Firebaugh
6618cb9019 Include layers in hash 2013-07-30 15:41:41 -07:00
John Firebaugh
1a5f14d338 Update hash on P2 and iD edit pages and throttle 2013-07-30 15:41:41 -07:00
John Firebaugh
3c22a53c93 Generate hash-based permalinks 2013-07-30 15:41:41 -07:00
John Firebaugh
b28511faca zoomPrecision doesn't need to be higher-order 2013-07-30 15:41:41 -07:00
John Firebaugh
b5800b4c2f Refactor URL generating methods 2013-07-30 15:41:41 -07:00
John Firebaugh
ce53e510ad Prefer hash to other methods of determining location 2013-07-30 15:41:41 -07:00
John Firebaugh
57e711d343 Use leaflet-hash 2013-07-30 15:41:40 -07:00
Tom Hughes
5508a3857f Reload the object list when the data browser is reopened 2013-07-30 21:38:16 +01:00
Tom Hughes
90621b4b4f Abort a running data browser load before starting a new one 2013-07-30 21:30:16 +01:00
Tom Hughes
7db1180506 Reduce user location to be between -180 and 180 degrees 2013-07-30 21:20:09 +01:00
Tom Hughes
b1dae2e798 Round user home location to a sensible precision 2013-07-30 18:05:57 +01:00
Tom Hughes
393651e8bd Remove geolink class from add note button while adding notes
This was lost in the recent UI work but is important to stop changes
in map location causing the button to be reenabled.
2013-07-29 22:49:59 +01:00
John Firebaugh
c93308dd5c Correct sprite CSS for permalink (#352) 2013-07-29 22:33:36 +01:00