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
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
3643877be6
Merge branch 'master' into wikidata-field
2018-12-01 11:57:09 -08:00
Bryan Housel
ea9e3008a5
addTags() -> setTags() / removeTags() -> unsetTags()
...
This avoids overriding the `addTags` and `removeTags` objects with functions
2018-11-21 12:59:43 -05:00
Bryan Housel
622621ca89
Improve suggestion combo behavior in the name field
...
- adds minItems(1) so it will match
- displays up to 10 suggestions
- correctly removes old tags by setting the `undefined`
- adjust the name distance scoring
- only shows name suggestions if the preset can benefit from them
(i.e. a generic/fallback or a preset that has some suggestions in the index)
2018-11-21 11:15:03 -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
0a31137c78
move maprules/mapcss to a service class
...
ref #remote-presets
2018-09-23 18:38:01 -04: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
Max Grossman
873b451bef
move data presets overwritting to the build function
...
ref #remote-presets'
2018-07-19 15:39:20 -04:00
Max Grossman
57ea240177
make uiModes options strict to match only those within defaults
...
ref #remote-presets
2018-07-18 10:50:54 -04:00
Max Grossman
659a291e89
add core overwrite for external preset source
...
ref #remote-presets
2018-07-17 16:43:00 -04:00
Bryan Housel
4a71aa6146
Use safer field ids in classes, element ids, css selectors
...
Fixes issue with nested/namespaced fields, such as `maxspeed/advisory`,
in situations where would try to use a css selector or element id.
Can't use characters like '/' in a css selector.
2018-03-15 00:57:41 -04:00
Bryan Housel
8928e95da2
Allow fallback presets (area, line, point) to appear in the recent list
...
(closes #4612 )
2018-01-02 15:07:35 -05:00
Bryan Housel
8abc39461b
Fallback Area preset should preserve the area=yes tag
...
(closes #4424 )
2017-10-10 20:54:41 -04:00
Bryan Housel
d53e473474
Convert lodah-es and d3 to named imports for presets
2017-09-25 14:20:24 -04:00
Bryan Housel
7b9af48c4d
If any part of an address is present, allow fallback to "Address" preset
...
(closes #4353 )
2017-09-19 16:55:18 -04:00
Bryan Housel
0d35c5ed59
Give preset priority in preset list when search matches name exactly
...
(closes #4325 )
2017-09-10 12:56:14 -04:00
Bryan Housel
9c738cb5b7
Restore preset ordering test with leading terms (regressed in af776501)
...
The ordering did not actually change, but the test was failing because
it was throwing away the preset terms.. preset.terms() actually returns
translated terms not original terms, and should default to returning the
original terms when translations are not available (like in testing).
2017-09-10 12:56:07 -04:00
Bryan Housel
9882cf1d7b
Don't rm old preset tags post merge, but do rm area=yes when setting preset
...
(closes #4114 )
2017-06-22 17:49:45 -04:00
Bryan Housel
eda2650d7b
Omit name tag when looking up preset documentation
...
(closes #4059 )
2017-05-21 22:05:40 -04: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
87618f9a6b
Make it so preset.init() can be called again to reset the datastructures
...
(this is mostly so I can reset recent.collection for the walkthrough)
2017-04-11 22:34:02 -04:00
Bryan Housel
5e7919e78c
Consider matchScore when sorting the preset list
2017-03-12 19:01:15 -04:00
Bryan Housel
de44a73e05
Fix areaKeys logic to better handle presets that can be area or line
2017-03-12 15:29:14 -04:00
Bryan Housel
9b7d79a3fe
Use live bound object for presets object, change context.presets() getter
2016-11-14 15:44:02 -05:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
6341d4e4b5
one-shot build ( #3266 )
...
* One-shot development
* Move jsonp to module
* Tooltip -> module
* Remove d3.jsonp
* Fix tooltip lint
* Load all libs but d3 itself with require
* Add top-level brfs
* Unformat intro graph
2016-08-10 15:25:19 -07:00
Minh Nguyễn
e99afbe1c1
Fixed taginfo for relation presets
...
taginfo’s relation/wiki_pages method no longer places results in a data property.
Also, only use relation/wiki_pages for top-level relation presets. More specific presets behave like non-relation presets. For example, the bicycle route relation has the tags type=route route=bicycle, so route=bicycle is what we’re interested in.
Fixes #3297 .
2016-08-02 00:18:52 -07:00
Bryan Housel
747b9f37d5
Pacify eslint
2016-07-24 17:39:06 -07:00
Tom MacWright
af776501d3
Require locale, second pass ( #3259 )
...
* Require locale, second pass
* Remove t global, remove t where it isn't needed
2016-07-21 16:20:13 -04:00
Tom MacWright
604d1e2719
import lodash ( #3257 )
2016-07-19 12:04:16 -04:00
Bryan Housel
0d8fb87f93
Treat entities on addr:interpolation lines as points, not vertices
...
(closes #3241 )
2016-07-14 13:00:36 -04:00
Bryan Housel
0b3df36da0
Replace diacritics when doing fuzzy searches
...
(closes #3159 )
2016-07-07 23:54:00 -04:00
Kushan Joshi
39c82af158
Sort modules [eslint rule]
2016-07-06 12:12:08 +05:30
Kushan Joshi
25485c40fb
external modules for presets
2016-06-22 12:34:43 +05:30
Kushan Joshi
320434e8bb
Add internal modules to preset
2016-06-22 12:34:43 +05:30