Commit Graph

59 Commits

Author SHA1 Message Date
Martin Raifer
f4d4a9e3b0 treat indoormark=* as indoor features, closes #10808
and don't classify `indoor=no` as indoor features
2025-02-24 18:21:39 +01:00
Kyℓe Hensel
f513ccd03d enable intellisense for the main classes (#10618) 2025-02-17 11:35:50 +01:00
Martin Raifer
689d5f70a4 lint trailing spaces 2024-07-24 15:14:13 +02:00
Tobias
b0235f34d1 Improve/fix type definitions (#10324)
Co-authored-by: Kyℓe Hensel <k-yle@users.noreply.github.com>
2024-07-16 17:14:01 +02:00
Dimitar
b2fc4a43c0 Consider lifecycle prefixed tags in Future/Past features (#10228)
and sharpen landuse filter
2024-06-05 14:47:19 +02:00
Kyle Hensel
c7731f5499 support highway=ladder 2024-05-25 16:25:59 +10:00
Rewinteer
be4f3ce0d2 Added highway=busway to 'Traffic Roads' group of map features. (#9416) 2022-12-12 22:12:19 +01:00
Martin Raifer
03d6bb0f55 fix some boundaries not hidden by the filter, closes #9171 2022-07-15 16:24:05 +02:00
Kyℓe Hensel
724462ec47 consider lifecycle prefixes in osmTagSuggestingArea (#8881) 2022-06-06 15:56:31 +02:00
Quincy Morgan
3ba805d6ca Skip editableDataEnabled check in rendererFeatures filters (re: #7706) 2020-06-16 13:19:54 -04:00
James Kingdom
dd3f0f0cf9 Remove corridor from path category 2020-04-28 22:03:39 +01:00
Quincy Morgan
a58abe3c6f Move localStorage interface from a property of coreContext to a corePreferences function 2020-04-01 11:00:48 -07:00
Bryan Housel
dc7fba4bf8 Have utilStringQs advance past any leading '?' or '#' characters
This lets us remove a bunch of substring(1) and +1 from the code.
2020-02-20 17:09:54 -05:00
Quincy Morgan
9d936b4aea Rename rendererMap.editable function to more precise rendererMap.editableDataEnabled
Make coreContext.editable function also account for whether user is in modeSave
2019-12-12 16:06:28 -05:00
Quincy Morgan
35b3102006 Add Disable All and Enable All buttons for the Map Features list (close #5234) 2019-05-22 11:56:04 -04:00
Quincy Morgan
854eacdc7e Add feature filters for pistes and aerialways 2019-05-22 10:38:04 -04:00
Quincy Morgan
30b01906e3 Hide indoor areas and building part areas when those features types are disabled (re: #6352) 2019-05-22 10:08:30 -04:00
Quincy Morgan
76b98f14e0 Merge pull request #6352 from tordans/filder-for-building-part-and-indoor
Add filter building:part and indoor
2019-05-22 09:47:45 -04:00
Bryan Housel
bdb454e1b3 Remove utilCallWhenIdle, use requestIdleCallback/cancelIdleCallback
Places where a reset or connection switch would be problematic,
we can now cancel the callbacks.
2019-05-16 22:28:56 -04:00
Tobias Jordans
35a2301ea3 Add filter building:part and indoor
- Extract the building:part from the building filter into it's own filter
- Add indoor filtering
- Update api doc
2019-05-12 19:31:23 +02:00
Quincy Morgan
bafc0da99c Force child nodes visible when forcing a way visible (close #6328) 2019-05-08 10:50:21 -04:00
Quincy Morgan
949b57d118 Ensure that relations are called before ways when categorizing fetched features (close #6277) 2019-05-01 11:33:39 -07:00
Quincy Morgan
907df1c10e Include relation members when forcing relations visible in all cases, not just selection (re: 6eeaf94076) 2019-05-01 11:08:52 -07:00
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