Commit Graph

64 Commits

Author SHA1 Message Date
Bryan Housel
bee01d8497 Destroy all old background layer tooltips before making new ones
(closes #5551)
2018-12-05 00:35:45 -05:00
Bryan Housel
152022aec4 Use context.keybinding for keybindings that don't change
(closes #5487)
2018-11-13 20:57:21 -05:00
Bryan Housel
bb30cbf555 Move lib/d3.keybinding.js -> util/keybinding.js
almost none of the original d3 "plugin" code remains
2018-11-13 13:42:09 -05: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
Bryan Housel
eab7f3660b Put background settings into localstorage and dispatch change event 2018-08-11 18:17:07 -04:00
Bryan Housel
40c0c7d2f5 Fix the custom background translation strings 2018-08-11 01:31:26 -04:00
Bryan Housel
cde4caf168 Moved the custom background code into ui/settings
We are going to add a bunch more of these setting screens
2018-08-11 01:18:30 -04:00
vershwal
2d058c770c Improved UI for custom background. 2018-08-06 02:02:30 +05:30
vershwal
542f3c523e Custom background 2018-08-05 17:46:48 +05:30
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
Bryan Housel
08ac17f49c Split pane content into header and content, move close button 2018-03-27 18:38:39 -04:00
Bryan Housel
3bf618add8 Merge branch 'fix4599' of https://github.com/vershwal/iD into vershwal-fix4599 2018-03-26 11:19:10 -04:00
vershwal
9d9be8fd26 Added button to close Map controls. 2018-03-18 17:17:28 +05:30
vershwal
1c047f5ac8 Added pencil icon. 2018-03-17 20:22:26 +05:30
Bryan Housel
fb196bee8c Persist area-fill-toggle so we can toggle out of wireframe
(closes #4740)
2018-01-24 14:53:30 -05:00
Gautier Pelloux-Prayer
5077f88a4d Restore latest imagery used from local storage 2018-01-21 23:04:16 +01:00
Bryan Housel
04fa29cfe6 Move link to imagery faq, reword as "Imagery Info / Report a Problem"
(closes #4546)
2018-01-03 15:23:47 -05:00
Bryan Housel
46ebe02555 Clean up styles, move minimap toggle below background imagery list 2018-01-03 14:35:27 -05:00
Bryan Housel
53aa2973e4 Refactor display options controls to uiBackgroundDisplayOptions 2018-01-03 01:47:25 -05:00
Bryan Housel
48834a0ea5 Add reset buttons for display sliders 2018-01-02 23:41:21 -05:00
Bryan Housel
50c1b58bda Added saturation slider, simplify code, improved sharpen parameters 2017-11-30 23:24:55 -05:00
Bryan Housel
53225f08ec more tweaks to unsharp mask 2017-11-30 16:19:06 -05:00
Bryan Housel
b1efcf83b2 Add Sharpness slider 2017-11-30 08:50:32 -05:00
Bryan Housel
2946774e60 WIP: Add unsharp-mask filter layer to sharpen background imagery 2017-11-30 01:56:23 -05:00
Bryan Housel
d24e2663f2 Replace confusing opacity buttons with opacity slider 2017-11-29 17:02:13 -05:00
Bryan Housel
17809545c6 Ensure only one pane shown at a time, remove unnecessary handlers 2017-11-28 23:21:52 -05:00
Bryan Housel
2e2dd5f025 Larger headings on Map Data and Background panes 2017-11-28 22:49:46 -05:00
Bryan Housel
d7e8625d6b Use uiDisclosure for background pane subsections, move brightness 2017-11-28 15:06:19 -05:00
Bryan Housel
385297d993 Use uiDisclosure for data pane subsections 2017-11-27 22:05:02 -05:00
Bryan Housel
857a1c4821 Refactor offset control into separate uiBackgroundOffset module 2017-11-27 12:03:14 -05:00
Bryan Housel
fd49f47ede Now background, map_data, help stay open when user clicks on map surface
There is really no need to hide these, and the user might just want to
keep the pane open (e.g. viewing help) while they do stuff.
2017-11-22 22:29:06 -05:00
Bryan Housel
a0a197a69e Add support for DigitalGlobe imagery vintage overlays
(see https://github.com/osmlab/editor-layer-index/issues/371)
2017-11-01 13:46:13 -04:00
Bryan Housel
3d13620705 Convert lodah-es and d3 to named imports for ui 2017-09-26 11:22:43 -04:00
Kushan Joshi
909b72a39e cleaning up 2017-08-24 17:03:04 +05:30
Bryan Housel
3464a46df6 All imagery layers should just be owned by rendererBackground()
This moves management of the custom layer out of uiBackground()
2017-07-20 16:07:10 -04:00
Bryan Housel
dca1cdc440 Fix: Ctrl+Shift+B also swaps between the background like Ctrl+B
(closes #4153)
2017-07-17 15:29:13 -04:00
Bryan Housel
a15821ecf1 Use single Custom backround source, and add template() accessor
Before, each time the user switched to the custom source, it would
create a brand new custom source with the offset set to [0,0]
(closes #3982)
2017-07-10 23:25:40 -04:00
Bryan Housel
ec8cd6ec83 More words about replacement tokens in custom tile url prompt
(see #3887)
2017-06-22 21:57:26 -04:00
Bryan Housel
90870a0eb9 Use a simpler custom imagery example url
see https://github.com/openstreetmap/iD/issues/3887#issuecomment-309849685
2017-06-20 15:06:57 -04:00
Bryan Housel
eff9aaeceb Add example to custom url template prompt
(closes #3887)
2017-06-20 00:38:49 -04:00
Bryan Housel
dcf4fea450 Use localized background switching key shortcut in tooltip 2017-06-18 00:31:45 -04:00
Bryan Housel
22cb4c7f20 Add ability to localize more keyboard shortcuts
(closes #4081)

H: Help
?: Keyboard Shortcuts
⌘I: Infobox
B: Background
⌘B: Switch Background
F: Map Data
W: Wireframe
/: Minimap
2017-06-18 00:17:44 -04:00
Bryan Housel
3d208311bd Change imagery Transifex to YAML, use translated name and description 2017-06-16 00:51:04 -04:00
Bryan Housel
61bd8fcb5d Show tooltip for long background names
(closes #3448)
2017-03-17 15:28:37 -04:00
Bryan Housel
a7ac44f6e8 Refactor imageryBlacklists so it can be called without triggering a GET
Previous code was problematic because we need the function to
to properly blacklist custom imagery passed in through the url hash,
before iD is completely initialized.  Triggering GET causes tests to
break because osm service testing has side effects :-/
2016-12-04 21:35:55 -05:00
Bryan Housel
3667541b2a Add background tooltips to label, not list item
(closes #3581)

This is to avoid conflicting with the tooltip on the custom button,
which is a descendent of the list item.
2016-11-13 20:41:22 -05:00
Bryan Housel
a2933bc42d Ensure setCustom calls clickSetSource, also update custom source datum 2016-11-13 20:34:13 -05:00
Bryan Housel
c46c5d94f5 Prevent imagery offset nudging buttons from getting stuck
(closes #3576)
2016-11-10 14:04:03 -05:00
Bryan Housel
efd9e6df4b Memoize and avoid extra calls to utilDetect() 2016-10-18 21:48:39 -04:00
Nick Doiron
c22867c279 search results and layer names 2016-10-05 01:38:13 -04:00