Commit Graph

36 Commits

Author SHA1 Message Date
Bryan Housel 51c1088c1b Merge branch 'master' into validation_and_change_perf 2019-04-19 15:18:23 -04:00
Bryan Housel c4209515a5 Only consider hiding features matched to a rule
(Fixes accidental hiding of vertices)
2019-04-18 19:26:17 -04:00
Bryan Housel f6708fd84c Hide feature if _all_ rules hidden (was: if _any_ rule hidden)
This matters as we start to match more rules for hybrid features like rail
platforms, which now match both path and rail.  We want to show them unless the
user has hidden all the rules that they match.

Also this changes the test code slightly to actually test rule matching.
Before it was really just testing hiding.
2019-04-15 10:20:58 -04:00
Bryan Housel 0ec9cd91dc Warm up the feature matching cache upon merging fetched data
Also rename `_features` to `_rules`, since we use the word features too much
2019-04-12 12:25:37 -04:00
Bryan Housel dda810683e Adjust matchscore, feature filters to boost physical tags over boundary
(closes #6162)
2019-04-11 21:26:53 -04:00
Bryan Housel 3d80e6505f Remove lodash chunk, groupBy
(re: #6087)
2019-03-27 16:18:41 -04:00
Bryan Housel 5e1ff74199 Replace lodash difference, intersects, union
(re: 6087)
2019-03-27 01:22:11 -04:00
Bryan Housel 7e6f68a1b2 Remove lodash some
(re: #6087)
2019-03-23 00:07:52 -04:00
Bryan Housel 0e90167513 Remove lodash clone
(re: #6087)
2019-03-22 23:18:25 -04:00
Quincy Morgan 2d974caed1 Fix an issue where preset buttons would always be disabled if Other Features were hidden (close #5934) 2019-02-25 10:27:06 -05:00
Quincy Morgan 82f6bd73ae Account for all tags added upon choosing a preset, not just those in the preset's tags property 2019-02-12 15:16:02 -05:00
Quincy Morgan 2efe2adec9 Restore previous behavior of features hidden and autoHidden but accounting for 0 count features 2019-02-12 15:05:02 -05:00
Quincy Morgan 9007ccb8fd Disable preset buttons for hidden layers 2019-02-12 14:43:04 -05:00
Quincy Morgan 19e262643d Fix issue where "other" ways were not sorted into the "other" category for hiding purposes 2019-02-11 13:38:37 -05:00
Quincy Morgan e1da28bcd6 Hide lines that are members of boundary relations when boundaries are hidden (close #5601) 2019-02-11 13:22:20 -05:00
Bryan Housel ba44c80076 Force visible any entities related to a selected error
(closes #5880)
2019-02-10 23:29:49 -05:00
Bryan Housel 723155eadf Add building and bench fields to amenity=shelter preset
(closes #5084)

This also removes the rules that would treat `amenity=shelter` as
a building for rendering and for feature filtering.
2018-06-18 13:45:39 -04:00
Bryan Housel c42556ec96 When boundaries are shared with roads, consider them as roads.
(closes #4973)

This is same as existing logic in the feature matching code
for the "rail" and "past_future" rules.
2018-04-09 12:59:13 -04:00
Gautier Pelloux-Prayer b3da51b032 Restore user disabled features from local storage 2018-01-22 22:51:02 +01:00
Bryan Housel 30ff68348f Don't disable boundries when disable_features list is present
(also removed some unused functions)
2017-10-23 15:53:46 -04:00
Bryan Housel dbf85dae43 If no features are disabled remove the querystring parameter 2017-10-22 22:42:35 -06:00
Bryan Housel 469df0b059 Change features to disable_features querystring, add init() 2017-10-22 12:00:51 -06:00
Nikita Mashukov bac4da5abe using spaces instead tabs 2017-10-14 17:46:29 +07:00
Nikita Mashukov f92e248e5a init features logic fix 🐛 2017-10-14 17:41:15 +07:00
Nikita Mashukov 5a980ec24f tabs are replaced by spaces 2017-10-14 17:06:51 +07:00
Nikita Mashukov 7cd3882cf8 missed semicolon is added 2017-10-14 17:03:21 +07:00
Nikita Mashukov b7b5171a2f add features api parameter which enables the list of features 2017-10-14 12:08:12 +07:00
Bryan Housel d906ca6b10 Convert lodah-es and d3 to named imports for renderer 2017-09-25 14:35:33 -04:00
Bryan Housel f98b89cd15 Eliminate some more unnecessary lodash in hot code 2016-10-30 22:39:32 -04:00
Bryan Housel 07fa5fcc34 Refactor Entity, Node, Relation, Tags, Way from core to osm 2016-10-11 22:41:24 -04: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 cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Tom MacWright 604d1e2719 import lodash (#3257) 2016-07-19 12:04:16 -04:00
Kushan Joshi 6a56ad547c external modules for renderer 2016-06-22 12:34:43 +05:30
Kushan Joshi 46d68bca87 modularize iD.renderer 2016-06-17 12:53:19 +05:30