Commit Graph

62 Commits

Author SHA1 Message Date
Quincy Morgan
c61924407d Add icon styling for Mountain Biking Route preset (re: https://github.com/openstreetmap/id-tagging-schema/issues/99) 2020-12-21 10:08:55 -05:00
Quincy Morgan
17cd39a6f7 Use addTags for preset category icon classes 2020-12-07 15:17:20 -05:00
Quincy Morgan
998f0c02b4 Use area fills for category icons (close #6986) 2020-12-07 14:55:09 -05:00
Quincy Morgan
9f6aaf2438 Add folder border to preset category icons (close #6085) 2020-12-03 13:13:08 -05:00
Quincy Morgan
07a59ba3a4 Break out some preset icon functions (re: #8117) 2020-12-03 12:23:09 -05:00
Quincy Morgan
ba48a861bc Enable curly and block-spacing eslint rules 2020-11-10 14:19:11 -05:00
Quincy Morgan
17ab0b824d Enable complexity eslint rule and simplify uiPresetIcon.render function 2020-10-23 11:51:33 -04:00
Quincy Morgan
f9fcc03e20 Update to temaki v4.2.0
Drop the noun project (close #8030)
Drop request (close #7959)
2020-09-28 13:58:27 -04:00
Quincy Morgan
06f487140d Switch order of from/to fields in route presets (re: #7479)
Add Trolleybus Route preset (re: #7498)
Remove Level field from Stop Position presets (close #7499)
Add Stop Number field to transit platform-as-point presets (close #7492)
Add Distance and Color fields to more route presets
Use field inheritance for several more route presets
2020-04-03 11:00:16 -07:00
Quincy Morgan
60f7dc7c0b Replace presets property of context with singleton
Remove utilPreset
2020-04-01 13:08:45 -07:00
Quincy Morgan
a58abe3c6f Move localStorage interface from a property of coreContext to a corePreferences function 2020-04-01 11:00:48 -07:00
Bryan Housel
2a2668b01b Can't use ES6 fat-arrow functions with arguments
see buble bug https://github.com/bublejs/buble/issues/208
2020-01-24 17:22:03 -05:00
Bryan Housel
7f2c2062b0 Honor the user's third party icon preference 2019-12-18 17:46:21 -05:00
Bryan Housel
a47029897b Reset showing-img class on update selection 2019-12-18 17:10:18 -05:00
Bryan Housel
491d57af48 Comment routeSegments 2019-12-18 16:35:55 -05:00
Bryan Housel
20f90f8a67 Use foreach instead of for loops for clarity
Also rename `loc` to `point` (elsewhere in iD code `loc` is a lon/lat)
2019-12-18 16:10:32 -05:00
Bryan Housel
afba5797e1 es6 preset_icon.js 2019-12-17 14:51:10 -05:00
Quincy Morgan
9d367d133f Cherry pick preset image error fallback 2019-11-07 20:12:18 +01:00
Quincy Morgan
e4237f9280 Don't show pattern fills on are preset icons (re: #6900) 2019-09-30 14:18:56 +02:00
Quincy Morgan
2ccdc438f4 Render area fill patterns in preset icons (close #6900) 2019-09-30 12:27:33 +02:00
Quincy Morgan
2967d2d020 Add support for icons from the noun project (close #5691) 2019-04-16 18:06:05 -07:00
Quincy Morgan
3a2757576b Add Monorail Route, Turnstile, and Transit Stop Area Group presets (close #5757) 2019-04-16 11:41:56 -07:00
Quincy Morgan
ae80c88f37 Render relation route icon lines dynamically (close #5926) 2019-04-08 19:58:50 -07:00
Quincy Morgan
d65298f383 Fix issue where generic vertex icon wouldn't show (close #6138) 2019-04-03 09:29:14 -07:00
Quincy Morgan
3d4c5c6087 Display logos for name-suggestion-index brands in the sidebar (close #5167) 2019-03-28 14:20:46 -04:00
Quincy Morgan
e314df7b08 Use iD point, line, and area icons for those presets in the search results 2019-03-19 15:57:59 -04:00
Quincy Morgan
0dfd65787b Fix issue with stale vertex icon 2019-03-06 13:08:22 -05:00
Quincy Morgan
7bf73111c4 Don't use double point icons
Remove subsections when reloading
2019-03-04 10:28:13 -05:00
Quincy Morgan
9f3329149c Add basic arrow key navigation of the search-to-add bar 2019-03-04 10:03:05 -05:00
Quincy Morgan
2f40854780 Use the same point path for the point preset icon as in the map 2019-03-04 08:41:48 -05:00
Quincy Morgan
3723c741f1 Add border to point icons in top bar 2019-03-02 14:47:48 -05:00
Quincy Morgan
4a82604cab Add search-to-add functionality 2019-02-28 15:00:00 -05:00
Quincy Morgan
dd74a18206 Tweak favorite mode spacing
Don't show area midpoint dots on small preset icons
2019-02-27 14:27:03 -05:00
Quincy Morgan
04247eb985 Merge branch 'master' into squash-favorite-preset 2019-02-27 14:08:55 -05:00
Quincy Morgan
d613714137 Draw area preset icon frame parametrically in code rather than with external SVG resource 2019-02-27 14:06:35 -05:00
Quincy Morgan
0a0e4890ca Nicer favorite preset icon rendering in the top bar 2019-02-27 11:28:24 -05:00
Quincy Morgan
b409f260f7 Render preset icons fills as SVG rather than HTML elements 2019-02-27 10:51:24 -05:00
Quincy Morgan
9a5101dbcb Convert preset icon to use percentages for size and position rather than explicit pixel values 2019-02-26 17:21:11 -05:00
Quincy Morgan
d0c29f8554 Tweak line icon display 2019-02-14 10:06:50 -05:00
Quincy Morgan
d63430e66a Line preset icons:
- Render vertices with SVG
- Add viewBox to SVG
- Don't reload static parts of the SVG on every update
- Use dimensions that are friendly for low-res displays
- Use nicer-looking stroke dash patterns for ferry routes and railways
2019-02-14 09:40:17 -05:00
Quincy Morgan
ed95fafac9 Add endpoint vertices to the preset icon line 2019-02-13 16:12:29 -05:00
Quincy Morgan
f443144fc6 Update preset icons to use same tag classes as map SVG 2019-02-13 13:11:27 -05:00
Quincy Morgan
041e05ec90 Make the line component of the line preset icons dynamic and match the line styling in the map 2019-02-13 12:01:40 -05:00
Bryan Housel
e37dbbd3e1 Style preset icon fill with building if it has a building_area field
These are presets that default to `building=yes` so they should look like
buildings.
2019-01-17 14:28:57 -05: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
Bryan Housel
cbfe23c9e1 Support FontAwesome solid, regular, and brands
(might as well.. only the used ones get bundled into the fa-sprite anyway)
2018-06-06 17:59:28 -04:00
Bryan Housel
2dd7bfc849 Add support for FontAwesome icons as preset icons
(closes #3025)
2018-06-06 02:19:38 -04:00
Bryan Housel
da10b6b254 Add maki- prefix to all maki icons
(re: #3924)
2018-06-05 22:12:33 -04:00
Bryan Housel
5901be1027 Replace poi- icons with temaki- icons
(re: #3924)
2018-06-05 13:08:43 -04:00
Bryan Housel
3d13620705 Convert lodah-es and d3 to named imports for ui 2017-09-26 11:22:43 -04:00