Commit Graph

24 Commits

Author SHA1 Message Date
Bryan Housel
86c5db8c70 Add ability to specify the reference lookup for presets
(closes #3227)
2017-05-07 11:52: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
1205e1758e Add semiCombo field for setting values in semicolon-delimited lists
(closes #3905)
2017-03-17 01:47:00 -04: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
7806dfcf6a Update the preset and field documentation
(closes #3319)
2016-08-03 18:51:54 -04:00
Kushan Joshi
4083a0e29e adding a lanes() to return lane data 2016-06-22 16:11:46 -04:00
Bryan Housel
5752207c91 Refactor combo.js and move @kepta's multiselect code into there. 2016-04-29 17:02:53 -04:00
Kushan Joshi
9261752068 add multiselect preset 2016-04-03 12:40:14 +05:30
Bryan Housel
00b426e951 Add snake_case field property (closes #2867)
The vast majority of tag values in OSM should be automatically snake_cased
(e.g. `amenity=place_of_worship`)
But there are a few exceptions, e.g. fields expected to include a unit
(e.g. `maxstay=1 day`)
So this allows a ui field to set whether or not to automatically snake_case
2015-12-09 13:46:30 -08:00
Eric Brelsford
31c57c01ce Add cycleway preset for highways with bike lanes 2015-06-09 14:49:50 -04:00
Bryan Housel
af0be9a59b remove unused indexed field property 2014-07-21 19:06:24 -04:00
John Firebaugh
7cac179ce0 Start work on turn restriction editing field 2014-05-18 16:02:46 -07:00
John Firebaugh
cb1972d76f Make field reference more flexible
Will need to support {"rtype": "restriction"} for turn
restriction field.
2014-05-14 17:22:24 -07:00
Martin Raifer
4261fefc6e Fix inline tag help for fields that handle multiple tags
Some preset fields like the access-restriction field manage
multiple tags at once (access=*, foot=*, bicycle=*, …). Then
iD wasn't able to show inline help when clicking the ⓘ button.

This introduces a new parameter for these kind of fields:
`referenceKey` determines the tag key which should be used to
search taginfo documentation for.

Fixes #2222.
2014-05-11 21:02:25 +02:00
John Firebaugh
b5f0ae596f Special case 'yes' values for type fields (#1876) 2013-10-09 17:10:49 -07:00
John Firebaugh
4bdd49b5fc Adjustments to multipolygon preset
* It shouldn't appear as a search result for simple areas.
* Changing to another area preset shouldn't remove the
  type=multipolygon tag.
* It shouldn't be preferred to the Building preset, which
  matches with score 0.5.

Fixes #1546.
2013-05-29 16:00:34 -07:00
John Firebaugh
e5dd800aff Allow selecting a relation 2013-04-26 11:34:24 -07:00
Ansis Brammanis
dd35ed91d9 name field is now localizable 2013-04-16 16:32:39 -04:00
John Firebaugh
872b148bc0 Add access field (#934) 2013-04-06 17:55:53 -07:00
Ansis Brammanis
bae7b13425 Localize maxspeed field (mph and km/h) 2013-04-01 19:36:39 -04:00
Ansis Brammanis
e82df13a28 wikipedia input field 2013-04-01 15:55:37 -04:00
Tom MacWright
1632edadae Add and allow placeholder field item 2013-03-22 18:03:43 -04:00
John Firebaugh
53820dc75d Validate preset json (fixes #1042) 2013-03-19 15:01:26 -07:00