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
9b6b198b3f
Don't modify input in place
2013-05-28 17:41:36 -07:00
John Firebaugh
e913d564d9
Fix field placeholders
2013-05-28 11:29:31 -07:00
John Firebaugh
182849cbe6
Make preset field placeholders translatable
2013-05-28 11:07:36 -07:00
John Firebaugh
a61e0c9fd4
Fix preset search
2013-05-24 17:17:41 -07:00
John Firebaugh
5868875833
Split "other" preset into geometry specific fallbacks
...
This way the name and icon can be geometry-specific.
2013-05-24 11:14:59 -07:00
John Firebaugh
9e4e794300
Rewrite PresetGrid
2013-05-22 10:22:15 -07:00
John Firebaugh
9502729f5e
Optimize presets.match
...
Previous implementation was linear in the number of
presets. This should be near constant time.
2013-05-13 21:07:26 -07:00
John Firebaugh
525d37c647
Preset#matchTags -> Preset#matchScore
2013-05-13 17:48:18 -07:00
John Firebaugh
fdd49233b1
Avoid recomputing geometry in an inner loop
2013-04-25 11:27:53 -07:00
John Firebaugh
19bcd711ec
Split categories into separate files; translate
2013-04-15 16:09:49 -07:00
Ansis Brammanis
8c319d0d15
make other presets localizable, and update tests
2013-03-26 16:40:42 -04:00
John Firebaugh
55108a21c8
Fix preset search
2013-03-20 15:56:03 -07:00
John Firebaugh
f7652b8858
Remove unused
2013-03-19 15:01:04 -07:00
John Firebaugh
2fc4f041d7
Make preset search terms localizable ( fixes #1043 )
2013-03-18 16:08:30 -07:00
Ansis Brammanis
0e72dced55
preset search tweaks
...
prioritize earlier leading name matches
Parking over Bicycle Parking
prioritize shorter matched names
Park over Parking
2013-03-18 16:29:20 -04:00
Ansis Brammanis
ae98cd92ae
when matching presets, count 'area' match as half
2013-03-18 16:13:59 -04:00
John Firebaugh
7912b33b4c
Exclude presets with searchable: false from search ( fixes #932 )
2013-03-17 20:59:11 -07:00
Ansis Brammanis
a18f6f4116
Fix unintentional case sensitivity in preset search
2013-03-15 10:53:33 -04:00
John Firebaugh
b840b7e118
Update translations
2013-03-14 17:58:32 -07:00
John Firebaugh
d0336a0995
Extract preset names to translations ( fixes #1044 )
2013-03-14 17:27:34 -07:00
Ansis Brammanis
547f12f822
Fields now have an optional geometry type
...
field defaults aren't geometry specific
the geometry type determines whether
that field (and default value) apply
to an entity
2013-03-14 16:48:09 -04:00
John Firebaugh
51a217caa2
Refine tagged vertex rendering
...
Don't render tagged vertices for which we don't have
an icon as the 'marker' icon. Marker shape is for points.
2013-03-14 13:35:24 -07:00
John Firebaugh
41e696a2c5
Flatten presets match properties
2013-03-13 12:45:20 -07:00
John Firebaugh
c1aa8e0270
form/forms -> field/fields
2013-03-13 11:34:21 -07:00
John Firebaugh
8509d9f620
Remove inline forms
...
No good way to give them IDs; better to be consistent.
2013-03-12 17:19:11 -07:00
Ansis Brammanis
ca1a7cf7f6
add ability to add general form fields
2013-03-12 17:42:55 -04:00
John Firebaugh
107f6cfeba
type -> geometry
2013-03-12 13:00:32 -07:00
John Firebaugh
42be94c97f
Localize address placeholders
2013-03-12 11:19:45 -07:00
John Firebaugh
a5885ce3c2
Localize preset form labels
2013-03-12 11:19:45 -07:00
John Firebaugh
af7fb41d4b
Don't use hand as placeholder icon ( #942 )
2013-03-09 09:34:22 -08:00
John Firebaugh
60ff6fc021
Use maki icons for points ( fixes #881 )
2013-03-08 20:22:06 -08:00
Tom MacWright
7925662079
Avoid writing undefined properties in JSON localStorage
2013-03-08 14:07:02 -05:00
Ansis Brammanis
f72e294156
score wildcard matches as half a match
...
so that building=* doesn't get prioritized over more
specific one tag presets, like amenity=hospital
2013-03-08 11:36:57 -05:00
Ansis Brammanis
a8eb59a502
More lenient fuzzy preset search
...
Also remove unintentional double penalty for exceeding
length of name.
2013-03-08 00:33:21 -05:00
Ansis Brammanis
61133a6f8a
improve search
...
- prioritize exact matches of words, either in name or terms
- prioritize fuzzy name matches over fuzzy term matches
- reduce max difference to 2
2013-03-07 13:03:19 -05:00
John Firebaugh
87fd5d871c
Build data into package
2013-03-06 16:16:12 -08:00
Tom MacWright
662cfeb576
Improve preset searching
...
Add preset searching of terms
Add more synonyms, improve matching - levenstein for terms too.
2013-03-06 16:54:32 -05:00
Tom MacWright
d8e7936d8a
Fix CORS error catching on save. Fixes #788 . Fixes #451
2013-03-05 14:44:27 -05:00
Ansis Brammanis
3a680b027f
add tests for iD.presets.Preset
2013-03-05 13:06:21 -05:00
Ansis Brammanis
3fd7217894
form attribute optional for presets
2013-03-05 11:27:15 -05:00
Ansis Brammanis
053f86f82b
move preset tag application to presets/preset.js
2013-03-04 19:16:46 -05:00
Ansis Brammanis
d1d90ab691
misc preset
2013-03-01 18:43:47 -05:00
Ansis Brammanis
7f6f606a7c
extract preset fields
2013-03-01 17:08:23 -05:00
Ansis Brammanis
eae4aeb3ba
presets.js to collection.js
2013-03-01 16:18:12 -05:00
Ansis Brammanis
0c24821c87
re-add preset category support
2013-03-01 16:13:48 -05:00
Ansis Brammanis
9d67e8e516
Start reorganizing presets
2013-03-01 15:48:20 -05:00