158 Commits

Author SHA1 Message Date
Bryan Housel
a73a75d1d3 Adjust initialization order so that map has dimensions before hash()
This fixes a weird regression where the hash would try to centerzoom the map,
but the map did not yet have dimensions, so the center would end up in the top-left.
2018-11-08 11:15:26 -05:00
Bryan Housel
e31e84b109 Simplify some things I found confusing
- class the #sidebar itself as collapsed not the #id-container
- the #sidebar is the selection, so just use `selection` instead of
  `var sidebar = d3_select('#sidebar');`
  (which conflicts with the closure `sidebar()` function)
- have separate functions `expand` `collapse` `toggle` rather than a
  `toggle(shouldCollapse)`
2018-11-06 15:08:05 -05:00
Bryan Housel
b4119ae1ad Class toolbars with narrow if we detect overflow happening
Also add css rules to drop labels from toolbar buttons if needed
2018-11-05 17:16:50 -05:00
Bryan Housel
136e4556a7 Move spinner to flex-end, and some css cleanups 2018-11-05 12:22:20 -05:00
Bryan Housel
c1d28d9333 Wrap sidebar button in div, so the .tool-group > div rule pads it 2018-11-03 00:11:10 -04:00
Bryan Housel
d4e31a82e3 Adjust sidebar resizer to keep map still by anti-panning 2018-11-02 23:21:59 -04:00
Bryan Housel
aecbaec896 Add key to toggle the sidebar 2018-11-02 11:15:52 -04:00
Bryan Housel
26e63d64e3 Flexbox buttons in top bar
- Makes the "Sidebar" toggle button permanent but removes the label
- Did some things to the "Save" button to make it the same width whether there
  is a count or not (prevents the buttons from jumping when pressing undo/redo)
- Removes a lot of the floated col rules that aren't used much anymore
2018-11-01 23:42:26 -04:00
Quincy Morgan
a0b0337ab4 - The sidebar can be now be resized by dragging the divider (closes #3447)
- Dragging the sidebar below a minimum size collapses it
- A button in the top toolbar lets you uncollapse the sidebar, complete with icon and tooltip
- Double-clicking the divider toggles the sidebar collapse
- Collapse-toggling is animated
- Selecting a feature or ending an add-feature mode auto-opens the sidebar
- Photoviewer UI has been moved from init.js to photoviewer.js
- The photoviewer now has a slight margin to set it away from the sidebar
- The undo/redo, save, and progress indicator controls are now floated to the right
- The save count has been redesigned to visually integrate with the save button
- When the sidebar is collapsed, the mode buttons are centered
- Full right-to-left layout support for all of the above
2018-10-27 17:05:50 -07:00
Bryan Housel
7737c571aa Shrink the photo viewer if the map has been resized to be smaller 2018-07-17 17:47:05 -04:00
Bryan Housel
e221dcae58 Dispatch new dimensions with photoview resize, resize all layers
-Adds ability to resize OpenStreetCam and Bing Streetside layers
-Also slightly increases the width of the resize handles
-Also limits max resize so it won't go larger than the map
2018-07-17 17:06:59 -04:00
Matias Volpe
0ea0749135 Add minimum resize height/width 2018-07-13 09:16:36 -03:00
Matias Volpe
836517a9fe Add ability to resize to PhotoViewer 2018-07-12 09:41:10 -03:00
Bryan Housel
d24790f17a Merge branch 'master' into jharpster-streetside 2018-06-11 23:51:23 -04:00
Bryan Housel
470835b38f Extract all graphics from iD sprite, reassemble with svg-sprite
All iD sprite graphics are now prefixed with `iD-`
Also includes support for sending the preset logos to taginfo
2018-06-08 16:06:46 -04:00
Shawna Paradee
2b50d36f65 adding points for streetside images 2018-03-20 13:05:33 -07:00
Bryan Housel
d53637618e Draw selected marker big, fix draw ordering issues, fix close button 2017-11-09 11:27:36 -05:00
Bryan Housel
6dd71ebf91 Fix loading of images from OpenStreetCam API, add viewer
\o/
2017-11-03 16:48:18 -04:00
Bryan Housel
3d13620705 Convert lodah-es and d3 to named imports for ui 2017-09-26 11:22:43 -04:00
Lee Haugen
978abafa33 Include zoom to edit notice over map 2017-08-25 15:19:27 -05:00
Bryan Housel
99a3741b0c Better isolation of services, to avoid hitting network during test runs
1. All services are disabled in testing now to prevent network accesses
2. Only services are enabled when needed to test something
3. Many changes throughout code to allow iD to run with services disabled
   (e.g. check for osm service instead of assuming context.connection() will work)
4. Actually export the services so we can disable and enable them
2017-08-09 22:04:09 -04:00
Bryan Housel
fc50bed82d Change to 80px arrow key panning (this matches Leaflet default)
(closes #4207)
2017-08-01 12:03:07 -04:00
Bryan Housel
22c707a6e2 Make infobox a container for widgets, measurement code a widget 2017-06-26 21:10:47 -04:00
Bryan Housel
6ca649498f Add walkthrough=true url parameter to auto-start the walkthrough
(closes #4111)
2017-06-22 22:26:38 -04:00
Bryan Housel
2b8058cf89 Add a menu item to the help pane to show keyboard shortcuts
(closes #4079)
2017-06-08 22:38:04 -04:00
Ajith Ranka
04825da109 display a shortcuts modal, continues #1481 2017-05-16 15:33:14 -04:00
Bryan Housel
43cb17cdda Only adjust the What's New tooltip if the login/logout links are hidden 2017-05-08 02:12:19 -04:00
Bryan Housel
7873f0c425 Relax rules for using keyboard shortcuts in the walkthrough 2017-03-29 12:35:33 -04:00
Bryan Housel
a2a121a57d Add "What's new in iD" notification on new versions
(closes #1856)
2017-03-02 15:51:08 -05:00
Bryan Housel
3908da03cf Fix styling of flash and footer and use absolutely positioned divs
Also fix flash tests
2017-02-17 00:23:24 -05:00
Bryan Housel
150b9fb7dc WIP: move flash to footer area, transition in/out
Also took this opportunity to use flexbox for the footer layout
2017-02-16 17:13:22 -05:00
Bryan Housel
5aa519affb Flash style adjustments 2017-02-10 21:50:31 -05:00
Bryan Housel
c5383c1f55 Darker unintrusive flash.. WIP flash operations on keypress 2017-02-10 16:39:08 -05:00
Bryan Housel
6b62f40eb6 Improve save flow
(see #3777)

* When entering Save mode, map content transitions inactive: appears grayscale
and dims slightly so colorblind users perceive a change. The sidebar controls
still let the user review their edits, or return to editing to address any
warnings.
* Adjusted the language a little bit "Save" -> "Upload" to make it clear that
an Upload needs to happen. No more 2 Save buttons.
2017-01-24 12:21:05 -05:00
Bryan Housel
2a39a25b32 Map div needs to remain ltr 2017-01-21 21:55:47 -05:00
Bryan Housel
a0045916d6 Remove test code, window.restart is now context.ui().restart 2017-01-20 14:26:42 +05:30
Bryan Housel
513382f835 Only show splash and history restore prompts the first time 2017-01-19 19:09:33 +05:30
Bryan Housel
1a5f155e39 Fix zoom behavior bind in map, delay removals to avoid flicker 2017-01-18 23:44:03 +05:30
Kushan Joshi
fb8efc2772 Change translation on the fly 2017-01-16 11:49:06 +05:30
Bryan Housel
16ada1f29a Better error handling for common osm api error conditions
* if 509 Bandwidth Exceeded / 429 Too Many Requests, prompt for login
(closes #2262)
* if 400 Bad Request / 401 Unauthorized / 403 Forbidden - logout and retry
(closes #3546)
2016-11-08 21:43:27 -05:00
Bryan Housel
48621d3155 Add callback to ui() that will be called after loadLocale completes
(closes #3550)
2016-11-07 17:03:33 -05:00
Bryan Housel
3224130821 Add uiCmd to fix modifier, add keybind arrays to simplify code 2016-11-04 10:17:30 -04:00
Bryan Housel
5fb966c35b utilSetDimensions/utilGetDimensions improvements
utilSetDimensions should always return a selection for chaining
Add `force` argument to utilGetDimensions to override cached dimensions
2016-10-27 14:13:39 -04:00
Bryan Housel
bf857c419a Center label baseline hack for IE11, Edge
(closes #3020)
2016-10-18 21:28:20 -04:00
Nick Doiron
581bade5f3 update RTL detection 2016-10-05 01:38:13 -04:00
Nick Doiron
34a6382752 revised RTL features and detection 2016-10-05 01:31:14 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
cd4e6f038e Fix and cleanup all map easing transitions, now supports eased zoom, pan 2016-09-22 23:51:40 -04:00
Tom MacWright
ed135ce9ef Enable lib tests 2016-09-05 10:22:45 -04:00
Tom MacWright
9852fa7879 Fix initial map size 2016-09-03 18:58:45 -04:00