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
Bryan Housel
6a85e5483c
Standard camel case for defaultCheck field (not used anywhere)
2017-03-03 10:28:40 -05:00
Bryan Housel
cd23d76875
Don't debounce combo placeholder lookups
...
(closes #3874 )
2017-03-02 21:41:57 -05:00
Bryan Housel
2314acfec7
Add utilNoAuto to remove autocorrect/spellcheck features from inputs
...
(closes #3839 )
2017-02-14 17:19:24 -05:00
Bryan Housel
8d191cd34a
More careful address div selection to avoid data binding combobox caret
...
(closes #3715 )
2017-01-31 15:10:20 -05:00
Bryan Housel
d09fd15092
Cleanups and rename service nominatim -> geocoder
2017-01-17 16:56:23 +05:30
Bryan Housel
94483af4c7
Fix service name nominatim -> geocoder
2017-01-17 16:46:41 +05:30
Natsuyasumi
e1640a1e39
Merge branch 'master' into address-customization
2017-01-04 22:19:09 +01:00
Bryan Housel
fc5aea739f
Update fontstack to use better system fonts over Helvetecia Neue
2017-01-02 18:51:12 -05:00
Bryan Housel
fac0429c4c
Don't call updateTags extra times
...
(closes #3650 )
2016-12-17 22:38:28 -05:00
Mikołaj "Natsuyasumi" Kuranowski
aafb77c7ec
Small fixes
2016-12-09 15:08:16 +01:00
Mikołaj "Natsuyasumi" Kuranowski
3d9009725e
Address customization
2016-12-09 13:33:15 +01:00
Bryan Housel
a3de3534c3
Don't reuse click handler in enter selection, set on update
...
(closes #3638 )
2016-12-08 11:08:21 -05:00