Bryan Housel
9faf8c0fe5
Test that fallback presets are there before data is loaded
...
Also, we don't actually need a vertex preset anymore, it was removed a while ago
2020-02-06 17:04:11 -05:00
Bryan Housel
3c6ba9703a
presetIndex.build -> presetIndex.merge, and make it merge data
2020-02-05 21:13:15 -05:00
Bryan Housel
147af19626
Seed presetIndex collection with fallback presets
...
- amazingly, this passes all tests, but iD ends up pretty non-functional
2020-02-05 12:21:33 -05:00
Bryan Housel
e3e7cd3003
Memoize presetCollection.item (it's an Array.find)
...
Also add tests for `matchAllGeometry`
2020-02-05 10:32:20 -05:00
Bryan Housel
0fe766d9a4
WIP on external presets
...
- preset data is no longer bundled into iD.js
- some code pathways commented out re: external presets
- many changes so that tests can run without presets at start, or async
- still need to make sure fallbacks are always there (point, line, area, etc)
2020-02-05 09:38:26 -05:00
Quincy Morgan
41355bf2a0
Rename "visible" property of presets to "addable" (re: a06ec59514b30a52601e3614ef69006d2dc1bc91)
2020-01-15 14:29:45 -05:00
Quincy Morgan
f6769238ed
Revert references to the v3 UI in the Keyboard Shortcuts menu
...
Remove unused preset favoriting functionality
2019-12-20 12:05:04 -05:00
Bryan Housel
6dfdec06ad
Ignore junction in areaKeys code and remove the unsearchable presets
...
(closes #6933 )
We should not be adding unsearchable junction presets for every kind of
junction as a hacky workaround to let `junction=yes` be an area.
This should remove the special treatment of junction tag.
* `junction=*` will not be treated as an area by default
* `junction=*` will not trigger validator warnings that they should be closed
* `junction=yes` mapped as an area _will_ need an `area=yes` now, which iD will add
(afaik this is the only junction tag that should be treated as an area)
2019-11-04 10:53:36 -05:00
Quincy Morgan
b1eaa2c29d
Allow values in addTags to blacklist tags from implying a way should be an area ( close #6800 )
2019-09-19 09:06:42 -04:00
Quincy Morgan
3bf3ecf560
Populate the default preset list with the presets parameter values, if any ( close #6703 )
2019-07-31 16:18:10 -04:00
Quincy Morgan
2ad2bac931
Limit addable presets via comma-separated IDs in the presets URL parameter ( close #6553 )
2019-06-24 12:38:32 -04:00
Quincy Morgan
409968dfc2
Add index of tags that positively identify points or vertices, derived from the presets
...
Delete nodes that can only be vertices when deleting parent ways (close #6230 )
Allow snapping ways to nodes that cannot be positively identified as vertex-only
2019-05-14 12:09:44 -04:00
Bryan Housel
e6bc9d9e8f
Swap out d3-request, swap in d3-fetch
2019-04-24 16:25:25 -04:00
Bryan Housel
3896b2282f
Remove lodash isNaN, isNumber, isString, bind, uniqBy
...
(re: 6087)
2019-03-27 23:11:45 -04:00
Quincy Morgan
53625a9364
Fix issues with the walkthrough
2019-03-27 17:41:15 -04:00
Bryan Housel
5b4aa529de
Replace lodash uniq
...
(re: 6087)
2019-03-27 02:43:25 -04:00
Bryan Housel
5280d07bad
Remove lodash reject (re: #6087 )
2019-03-23 12:51:13 -04:00
Quincy Morgan
4addd0e216
Add presets for basic indoor features ( close #6082 )
...
Don't use deprecated presets to determine area keys
2019-03-22 11:40:03 -04:00
Quincy Morgan
7e92f6aa89
Combine vertex and point geometries into a single Point fallback preset
2019-03-18 12:36:20 -04:00
Quincy Morgan
9216c93334
Remove item from recents when removing it as a favorite from the ribbon so it doesn't still appear
2019-03-08 11:21:19 -05:00
Quincy Morgan
8e0ed8cd8b
Make recent presets reorder-able in the ribbon
2019-03-08 10:54:18 -05:00
Quincy Morgan
4a39d8a444
Automatically show recent presets in the top bar ribbon
2019-03-08 10:10:31 -05:00
Quincy Morgan
213d0ee3e8
Move preset favoriting functions from core/context.js to presets/index.js
...
Make recent presets persistent and compatible with favorite presets
2019-03-07 16:49:29 -05:00
Quincy Morgan
7eb007d27a
Make recent presets geometry-specific
2019-03-07 12:14:18 -05:00
Quincy Morgan
9c19a1d714
Nicer display of name suggestion index presets
2019-03-06 12:19:44 -05:00
Quincy Morgan
36ad1b0242
Use "building" label instead of "area" when adding POIs as buildings
2019-03-06 11:39:17 -05:00
Quincy Morgan
12b1af7002
Don't say tags imply area for tags that iD doesn't have a preset for ( close #5933 )
2019-02-25 12:42:39 -05:00
Quincy Morgan
ced652806b
Fix an issue where some tagged nodes or existing vertices could not be snapped to ( close #5942 )
2019-02-25 08:54:30 -05:00
Quincy Morgan
96a1ec92c7
Fix prior commit
...
Apply same node snap suppression behavior to dragging vertices as to drawing ways
2019-02-15 10:28:43 -05:00
Quincy Morgan
11dc86ca9b
Add check for entity geometry type in allowsVertex function (re: #5875 )
2019-02-11 09:59:43 -05:00
Max Grossman
b7786fd081
if on address interpolation, match and don't look through keys...
...
ref #5811
2019-02-01 17:58:15 -05:00
Max Grossman
58e31bc45a
initial update to draw modes and hover behavior
...
ref #5811
2019-02-01 17:34:40 -05:00
Quincy Morgan
9f7ef21e5c
The additional fields dropdown now mixes universal and moreFields and is sorted alphabetically
2019-01-17 11:37:05 -05:00
Quincy Morgan
ae7c099c8a
Moved field inheritance resolution from the data build to the preset initialization
...
Removed the data build check for duplicate values between fields and moreFields
Renamed the shop field from Type to Shop Type
Renamed the beauty field from Shop Type to Beauty Specialty
Added the brand field to the shop preset under moreFields
2019-01-15 09:53:26 -05:00
Bryan Housel
5a2049b421
Drop extra whitespace, make sure service exists before using it
2018-12-18 15:38:53 -05:00
Max Grossman
8f33a85a12
make collection.index function to handle failing tests
2018-12-17 17:16:10 -05:00
Max Grossman
d87b1822f7
add/make visible weakly matched presets
2018-12-14 15:42:25 -05:00
Max Grossman
f627f1e659
make all presets visible on init!!
2018-12-14 13:29:17 -05:00
Max Grossman
1b51b8bc57
adding tests and updating/fixing external presets logic
2018-12-14 13:23:58 -05:00
Max Grossman
c897331cd1
presets test w/build
2018-12-13 13:30:38 -05:00
Max Grossman
96e44be69c
merge 2.12.2
2018-12-13 11:22:32 -05:00
Max Grossman
f3e6459191
working on preset visibility
2018-12-13 11:16:24 -05:00
Quincy Morgan
82263aea7c
Adds a Wikidata field
2018-11-18 19:38:19 -05:00
Bryan Housel
05a5563a41
Use a transient to memoize preset.match
...
This slightly speeds up some things, including label rendering
2018-11-10 00:05:53 -05:00
Bryan Housel
878bfdd144
Exclude non-searchable presets from the preset recently-used list
...
(closes #5450 )
2018-11-07 11:45:39 -05:00
Max Grossman
3a0f8ddd09
infer geometries
...
ref #remote-presets
2018-08-08 13:21:35 -04:00
Max Grossman
f5c21ddaaf
some geometry inferring!!!
...
ref #remote-presets
2018-08-08 08:50:45 -04:00
Max Grossman
b93444de75
working on isArea-ish equivalent for mapcss selector objects
...
ref #remote-presets
2018-08-02 18:03:13 -04:00
Max Grossman
5b1dee3779
add tests for mapcss checks
...
ref #remote-presets
2018-08-02 12:47:47 -04:00
Max Grossman
db78df55c8
get validaiton objects on context
...
ref #remote-presets
2018-07-31 13:41:24 -04:00