Commit Graph

1294 Commits

Author SHA1 Message Date
Bryan Housel
aa68b21d7a Add touch targets for line/area 2017-12-17 22:53:58 -05:00
Bryan Housel
5e99f3cbac CSS pointer-events cleanup, also round linejoins 2017-12-16 11:32:26 -05:00
Bryan Housel
5a4faa84a1 Fixed some of the point/vertex/midpoint snapping issues
Still working on snapping to lines/areas, and making sure drawing lines/areas
will complete
2017-12-16 01:33:12 -05:00
Bryan Housel
5cb5456869 Implement touch targets for midpoints and points 2017-12-15 22:50:55 -05:00
Bryan Housel
89d8d37576 Drawing all the correct vertices now where I want them, simplify classes
Some highlights
- `getSiblingAndChildVertices` are expensive, so they're saved and called less frequently
- draw touch targets for all the visible vertices
- remove redundant css classes and `setClass` function
2017-12-15 17:28:20 -05:00
Bryan Housel
ba5b3eee9c More work on vertex drawing, add debug for touch targets 2017-12-15 00:26:37 -05:00
Bryan Housel
b9e48d1682 WIP: Move layer-hit to layer-points with explict sublayers, update tests
This is more work to further isolate the layers that entities draw to.
It makes it easier to debug what is going on, and can eventually lead to
deferred drawing, if each draw function is in its own place and not dependant
on anything else.

I've started to replace the vertex-hover with an explicit layer for touch
targets.

Also had to change a lot of the svg tests, which are really brittle.
Things would happen like - the surface would be created, it would kick of a
deferred redraw, which would notice that the zoom was 0 and call
editOff, which would remove the osm layers that were just created and
that the tests were trying to draw to. These tests need proper zoom and
projection otherwise nothing works.
2017-12-14 17:38:43 -05:00
Bryan Housel
bfaf17538e Move text to single group with subgroups for halo,label,debug 2017-12-14 12:32:28 -05:00
Bryan Housel
d9e3367836 More improvements to label vertex avoidance
(re: #4271, #3636)

- better classification of "interesting" vertices
  (include tagged, selected, or child of selected)
- now we can draw labels on selected lines again (revert #3636)
  because the labels will avoid the vertices
- if debugging is on, draw a collision box for the mouse
2017-12-13 18:05:06 -05:00
Bryan Housel
899abc7ef5 WIP to render vertices while dragging
(re: #3003 / #4602)

For now, drawHover is commented out.  Still not sure what I will do with it.
This means that things flicker a bit when dragging, also connecting nodes
(and closing lines) does not currently work.

There was lot going on preventing the vertices from rendering while dragging.

1. `modeDragNode` needed a proper `selectedIDs()` function that works like other
modes.. Many other places in iD (including the vertex renderer) call `context.selectedIDs()`..
This means that `modeDragNode` needs a new function `restoreSelectedIDs()` to do what
`selectedIDs()` was previously doing (a place to store selectedIDs so that we
can reselect those entities after the user is done dragging a node in select mode)

2. Just so many things in svg/vertices.js
  - siblingAndChildVertices was missing some things for points that we render
    as vertices (points in wireframe, points with directions)
  - the sibling vertices weren't being included in the `filter` function, so
    would disappear when doing differenced/extent redraws
  - probably some other things
2017-12-12 17:39:36 -05:00
Bryan Housel
6aba27c84a Display directional vertex with a viewfield, not an arrow 2017-12-08 14:29:56 -05:00
Bryan Housel
b79b6ca97a Support rendering direction on vertices (stop sign, traffic_signals, etc)
(closes #3815)
2017-12-07 22:48:03 -05:00
Bryan Housel
18ab596f58 Improve int'l date/time strings on imagery and history tools
(closes #4594)
2017-12-06 15:27:54 -05:00
Bryan Housel
f247bd1e66 Move icon code into uiFlash, default flash icon to icon-no
Previously it was up to the caller to draw whatever they want into the
footer flash.  With this change, uiFlash creates an icon and a text, so
the caller doesn't need to do as much work.
2017-12-05 23:41:34 -05:00
Bryan Housel
cfa1759367 Add scroll zooming support to the OpenStreetCam viewer
(closes #4561)
2017-11-25 00:11:16 -05:00
Bryan Housel
434bc5af96 Improve styling of keyboard shortcuts, clicks, commands in help text 2017-11-23 02:31:12 -05:00
Bryan Housel
6490abbb4f Split up all help sections and titles, assemble markdown from keys
(also incorporate some of @1ec5's copyedits, and adjust icon styles)
2017-11-22 17:25:57 -05:00
Bryan Housel
1dd437a1f2 Hide mapillary-js attribution and just handle it in iD
(closes #4526)

What we were doing before was d3.selecting the attribution line and
inserting the capture date into it. This was confusing the viewer
(which updates asynchronously) so that the sitelink would never update.
To make things easier, we'll just hide the viewer's built in attribution
and construct the attribution line the way we want it.
2017-11-14 11:32:42 -05:00
Bryan Housel
d1a46ce623 Move "Zoom in to edit" button up to be less in the way
(re: #4482)
2017-11-10 15:13:41 -05: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
2432d2762c Add strokes to selected/highlighted viewfields for visibility 2017-11-08 16:08:34 -05:00
Bryan Housel
0702c66834 Improve sign hover/selected, fix Mapillary viewer setup for signs layer 2017-11-08 15:30:45 -05:00
Bryan Housel
4571fd0563 Highlight selected/hovered streetview tracks, fade unselected
Also some code cleanups and nitpicky variable renames
More consistency in Mapillary/OpenStreetCam services
2017-11-08 00:35:44 -05:00
Bryan Housel
e439ea406a Cache sequence info, draw sequence linestrings 2017-11-06 15:48:44 -05:00
Bryan Housel
eefbb68dda Add viewer controls.. Rotation works and will cache val per sequence 2017-11-06 10:41:17 -05:00
Bryan Housel
ccc8153370 Standardize on "@user | captured_at | sitelink" for attribution 2017-11-05 22:46:53 -05:00
Bryan Housel
4c69341d83 Distinguish between Mapillary and OpenStreetCam markers 2017-11-05 22:30:19 -05:00
Bryan Housel
51fa9280a4 Add attribution line for openstreetcam 2017-11-03 21:20:14 -04:00
Bryan Housel
dd75737fce Add loading spinner 2017-11-03 20:32:04 -04:00
Bryan Housel
6dd71ebf91 Fix loading of images from OpenStreetCam API, add viewer
\o/
2017-11-03 16:48:18 -04:00
Bryan Housel
00b30e29f0 WIP: Add OpenStreetCam support
todo: Need to figure out API issue with bbox, then imageviewer
2017-11-02 22:04:47 -04: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
7ba3bf3a45 Don't hard code form-field-structure field name
(radiobox with structure extras can be used for other fields)
2017-10-02 09:26:54 -04:00
Bryan Housel
f42cb77d99 Fix topbar buttons in Firefox in save mode when css filter active
(closes #4348)
2017-09-22 22:43:32 -04:00
Bryan Housel
2ffac8e9eb Consistently use the browser's pointer cursor
(before it was a random mix of browser pointer and custom pointer)
2017-09-18 14:14:25 -04:00
Bryan Housel
595053621b Wrap request review UI in div and label
(closes #4354)
2017-09-18 14:10:14 -04:00
Bryan Housel
5b9b6bbd97 Fix multiselect items that span more than one line
(closes #4349)
2017-09-18 10:24:20 -04:00
Bryan Housel
2c53674c38 Use dark style for zoom in message now that it's not on sidebar 2017-09-17 00:38:38 -04:00
Bryan Housel
320f1430fa Merge branch 'zoom-to-edit' of https://github.com/leegenes/iD into leegenes-zoom-to-edit 2017-09-17 00:01:50 -04:00
Bryan Housel
8c9aae1499 Add download changes link to uiCommitChanges summary
(WIP: still need to check IE11 and fix download on conflict screen)
2017-09-14 17:35:06 -04:00
Bryan Housel
4032904a7b Fix mapillary detection label positions
(closes #4282)
2017-09-11 17:11:20 -04:00
JamesKingdom
9af4252089 Add CSS to make waterway blue 2017-09-07 19:48:49 +01:00
Lee Haugen
b7f2329877 Update notice class styling for new notice location 2017-08-25 15:20:06 -05:00
Bryan Housel
09a661c718 Restore "good changeset comments" link in tag-reference section
Also includes a bunch of css cleanups for the tag-reference section
to fix style for readonly raw-tag-editor rows and adjust margin widths
2017-08-15 13:12:57 -04:00
Bryan Housel
7563f3ac16 Refactor duplicate form-field code to uiFormFields 2017-08-15 09:35:57 -04:00
Bryan Housel
9b37ac7b6c Fix errors with changeset fields and warnings, improve styles 2017-08-13 23:25:37 -04:00
Bryan Housel
1a9614bb9d Adjust styles 2017-08-10 22:59:39 -04:00
Bryan Housel
e52fcdb562 Move the rest of the RTL rules to be next to the rules they override 2017-08-10 15:12:29 -04:00
Bryan Housel
e22c379094 Merge branch 'master' into request_review 2017-08-10 11:40:19 -04:00
Bryan Housel
f95d6298f2 Fix RTL for panel close buttons 2017-08-06 22:06:30 -04:00