Bryan Housel
050907e252
Move event bindings to update selection, so callbacks use correct vars
...
When they are on the enter selection, they can stay "sticky" which has
the effect where you might move a slider and it puts the intersection
back to how it previously was (or returns to a previous intersection)
2018-02-15 08:27:39 -05:00
Bryan Housel
dbdbad29c2
Make sure container has dimensions the first time
2018-02-14 21:53:56 -05:00
Bryan Housel
0381bad22d
Adjust constants, trying to avoid crunched turn indicator on leaf way
2018-02-13 17:45:45 -05:00
Bryan Housel
1612326ffa
Move dist/via sliders to bottom, add imperial/metric conversion
2018-02-13 17:25:49 -05:00
Bryan Housel
1174424f50
Adjust padding and sizing constants, return to col4 sidebar
...
I really want the sidebar back to col4, so the user sees more main map.
This makes it very tricky to fit all of the intersection in the turn
restriction editor.
2018-02-12 15:35:45 -05:00
Bryan Housel
ca9aac501b
Adjust text hint colors, change "Continue" to "Straight on"
2018-02-09 23:12:02 -05:00
Bryan Housel
957896656a
Detail slider affects turns, but not geometry
...
(I decided that the larger context of the intersection is important and
shouldn't be hidden from the user)
Also
- show detail slider only if the intersection is complex
- hide the restriction editor completely if there is no real intersection
(e.g. junction of `highway=path`)
2018-02-09 22:11:22 -05:00
Bryan Housel
4e1bafc221
Trying help text with color hint
2018-02-09 17:58:06 -05:00
Bryan Housel
3bd8d8d43d
Style tweaks, persist max detail to localstorage
2018-02-09 17:39:36 -05:00
Bryan Housel
47eb5256cc
WIP: add detail slider to restriction editor
2018-02-09 16:22:49 -05:00
Bryan Housel
0cbff57dc9
Cycle through only_ turn restriction states
...
(re: #2622 )
2018-02-07 19:04:28 -05:00
Bryan Housel
3c340a0362
Trying out more intuitive restriction help message
...
- includes in the message the names of the streets
- also highlights related segments and nodes along the path
The messages are currently a bit rough:
U-Turns FROM Black Horse Pike IS allowed...
VIA Main Street TO Black Horse Pike
2018-02-07 17:00:53 -05:00
Bryan Housel
1007cfe252
Better calculation for fitting the whole intersection into view
2018-02-07 01:10:26 -05:00
Bryan Housel
aa7925a918
Extend leaf ways, so they don't stop within the viewport
2018-02-07 00:07:38 -05:00
Bryan Housel
c1378a141f
Add support for complex intersection and via way restrictions
2018-02-02 19:58:09 -05:00
Bryan Housel
b2eb982044
Add support for oneway alternating/reversible to oneway check fields
...
Also allow checkbox field to display non-standard values
(i.e. not 'yes' or 'no) in the field label
2018-01-04 13:41:35 -05:00
Bryan Housel
6881205d43
All touch targets are GeoJSON now
...
This makes the code a bit more consistent and lets us avoid some
hacky and probably non-performant things:
- abusing CSS classes in the draw/drag datum functions (classed `.target`)
(is this thing target? just check d.properties)
- regexing the id for `-nope$`
(is this thing a nope target? just check d.properties)
- using context.hasEntity to get a the real entity
(is this thing a real osmEntity? just check d.properties)
- fixes code like the restriction editor which uses fake ids for split ways
2018-01-01 22:37:10 -05:00
Bryan Housel
2e2b037e36
Move a bunch of commonly used vector and projection math functions into geo
...
- geoVecAdd
- geoVecSubtract
- geoVecScale
- geoZoomToScale
- geoScaleToZoom
2017-12-18 15:05:42 -05:00
Bryan Housel
bcd511573f
Fix extent in turn restrictions viewer, so vertices will render
2017-12-18 00:34:54 -05:00
Bryan Housel
a5bbc21728
Remove unnecessary zoom parameter
2017-12-11 17:34:01 -05:00
Bryan Housel
c0040f3cd6
Add caseSensitive option for combofields, use for source=*
...
(closes #4558 )
2017-11-26 19:30:19 -05:00
Bryan Housel
b882ae46bb
Add code so tunnel=building_passage doesn't default to layer=-1
...
(closes #4516 )
2017-11-09 14:54:00 -05:00
Bryan Housel
2b47ac4b3e
Replace tunnel_waterway combo with structure_water radio
...
(closes #4384 )
- adds the `layer` field so it works like the structure field on highways
- also defaults the tunnel type to `culvert` for waterways
- also fixed so that `layer` gets removed if user changes types or clicks delete
2017-10-02 11:24:59 -04:00
Bryan Housel
7376787c44
If showing layer= field, add to field.keys so delete will remove it
2017-10-02 09:40:54 -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
6d65a1c89a
Convert lodah-es and d3 to named imports for ui/fields
2017-09-26 00:17:13 -04:00
Bryan Housel
746b54f3d2
Make combo field work without an entity
2017-08-15 15:34:34 -04:00
Bryan Housel
3e168935d1
Swap increment/decrement spin buttons when RTL
2017-08-06 22:00:30 -04:00
Bryan Housel
077ee6d4b5
refactor structure type field to use uiField
2017-08-05 23:30:34 -04:00
Bryan Housel
8a399096b2
Add options for fields, allow unwrapped fields (no label, buttons, etc)
2017-08-05 00:33:20 -04:00
Bryan Housel
76e605568e
WIP: refactor bridge/tunnel layer field to use uiField
2017-08-04 17:45:47 -04:00
Bryan Housel
e8bd6bff6c
Fix wikidata clearing, failed lookup when entity no longer selected
...
(closes #3987 )
(closes #3684 )
(related #3929 )
2017-06-23 16:37:13 -04:00
Wille Marcel
e6f2d27a9c
invert position of increment/decrement buttons in structure layers
2017-05-08 11:34:25 -03:00
Wille Marcel
649ea21a2c
invert position of increment and decrement buttons
2017-05-08 10:54:21 -03:00
Bryan Housel
92d6d51724
Mock geocoder in walkthrough so we can localize address field
2017-04-21 17:53:37 -04:00
Bryan Housel
6f8770241f
Merge pull request #3921 from openstreetmap/walkthrough-updates
...
Walkthrough updates
2017-04-18 14:13:14 -04:00
Bryan Housel
5f44c9a00a
Add combobox menus to id-container instead of document.body
...
(re: https://github.com/openstreetmap/iD/issues/3925#issuecomment-290718356 )
2017-03-31 13:44:55 -04:00
Bryan Housel
1486c3db28
Make sure reverserSetText only called for onewayCheck field
2017-03-25 22:48:40 -04:00
Bryan Housel
21321108f9
Fix wikipedia field link button
...
(closes #2024 )
2017-03-22 02:39:07 -04:00
Bryan Housel
c3502a4e16
Only add the ellipses if the placeholder doesn't already end in one
...
(closes #3920 )
2017-03-21 22:11:35 -04:00
Bryan Housel
1ecb456a3c
Support 1 and -1 in onewayCheck field
...
(closes #3910 )
2017-03-20 22:23:52 -04:00
Bryan Housel
d1ab5d6fc4
Bring over some more code from combo, add translation strings
2017-03-20 13:16:56 -04:00
Bryan Housel
02f1eac72b
Add snake/unsnake helpers, remember recently used type tag
2017-03-19 11:44:33 -04:00
Bryan Housel
1f49bf81a4
Add a taginfo combo to the structure type field
2017-03-18 11:05:30 -04:00
Bryan Housel
74cc038c57
Add layer and type subfields below structure field
...
(see #2087 )
2017-03-18 02:09:33 -04:00
Bryan Housel
ea2a1e10b1
Make sure multiData array is updated when item is removed
2017-03-17 13:32:45 -04:00
Bryan Housel
1205e1758e
Add semiCombo field for setting values in semicolon-delimited lists
...
(closes #3905 )
2017-03-17 01:47:00 -04:00
Bryan Housel
2b50d96f38
Remove unused variable - eslint warning
2017-03-10 22:48:21 -05:00
Bryan Housel
b1b47760ac
Adjust reverser button styling, make it work on tag change
2017-03-03 17:00:24 -05:00
Bryan Housel
74155a9286
Add reverser button to onewayCheck field
2017-03-03 11:58:02 -05:00