Commit Graph

41 Commits

Author SHA1 Message Date
Quincy Morgan
a7e639d514 Make the field geometry property accept multiple types
Make the Elevation field only universal for nodes (re: #5719)
Remove the elevation field from route presets (close #7479)
2020-03-28 13:57:06 -07:00
Quincy Morgan
77d30eeb94 Cherry pick b45dc7e8b6b9eadcad04eb39566ce9a394160732 2019-12-13 14:31:43 -05:00
Quincy Morgan
6c7d8b6150 Add identifier field for tags linking features to external databases
Add US-only field for `gnis:feature_id` (close #7086)
Add tooltip to wikipedia field link button
2019-12-03 20:47:10 -05:00
Quincy Morgan
1647b9addf Add countryCodes and notCountryCodes properties for fields (close #7085)
Add documentation note about `prerequisiteTag` property getting ignored if a value is present
2019-12-03 20:11:39 -05:00
Quincy Morgan
1371b3cfdc Make single-key radio fields translatable like combo fields (close #6878) 2019-09-24 19:27:50 +02:00
Quincy Morgan
8b1c9fe323 Add notCountryCodes presets property to blacklist certain presets from certain countries
Show "Cycle & Foot Path" preset in all countries except France (re: #6836)
2019-09-17 13:54:59 -04:00
Quincy Morgan
029e2ee9f5 Make the Level field non-universal and add it only to related presets (re: #5719)
Allow specifying a key that will prevent a field from displaying
Don't show the Level field on features with a `building` tag
2019-09-13 14:07:12 -04:00
Quincy Morgan
67afa20dc0 Let comboboxes filter against terms, not just values
Add terms property to fields
Make terms translatable for searchable fields
Account for fields' terms and keys when filtering with the Add field menu (close #5763)
2019-08-09 11:12:40 -05:00
Tobias Zwick
62e0f76243 update readme and preset schema description 2019-04-30 22:15:16 +02: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
b12e7277df Add countryCodes property to preset schema
Copy countryCodes from name suggestion index
Use countryCodes to filter the preset search results (close #6124)
2019-03-28 11:44:05 -04:00
Quincy Morgan
17087f42c8 Adding mechanism for specifying an upgrade path for deprecated presets (close #6045) 2019-03-13 17:51:12 -04:00
Quincy Morgan
5471b909e2 Added mechanism for displaying fields conditionally based on tags 2018-12-09 20:11:31 -08:00
Quincy Morgan
4285f2f5c0 Added "moreFields" property to the field schema
The "Add field" dropdown can now be used to add preset-specific fields in addition to universal fields
2018-12-09 13:51:57 -08:00
Quincy Morgan
82263aea7c Adds a Wikidata field 2018-11-18 19:38:19 -05:00
Bryan Housel
861299bb1c Support minValue/maxValue on numeric fields
Configure most numeric fields to avoid negative values
(closes #5043)
2018-06-02 11:11:15 -04:00
Bryan Housel
c0040f3cd6 Add caseSensitive option for combofields, use for source=*
(closes #4558)
2017-11-26 19:30:19 -05:00
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