| 10 | | * not selectable using [wiki:Help#Selection selection tools] (with few minor exceptions in #4929, comment 14) |
| 11 | | * not returned during [Help/Action/Search Search] action |
| 12 | | * will disappear from several menus until filters are disabled (example: [[Help/Dialog/SelectionList#SmalltriangleinSelectbutton]]) |
| | 12 | * not selectable using [wikitr:/Help/Action/Select selection tools] (with few minor exceptions in #4929, see [ticket:4929#comment:14 comment 14]) |
| | 13 | * not returned during [wikitr:/Help/Action/Search Search] action |
| | 14 | * will disappear from several menus until filters are disabled ([wikitr:/Help/Dialog/SelectionList#SmalltriangleinSelectbutton example]) |
| | 15 | |
| 46 | | * '''I''' (''Inverse Filter''): Normally, the specified objects are hidden and the rest is shown. If this option is activated, only the specified objects are shown and the rest is hidden. |
| 47 | | * '''M''' (''Filter Mode'') - how a ''filter line'' is combined with ''filter lines'' above ''filter line'' in question: |
| 48 | | * A (''replace selection'') - most users want this, ''filter lines'' with this mode are independent of each other |
| | 46 | * **I** (''Inverse Filter''): Normally, the specified objects are hidden and the rest is shown. If this option is activated, only the specified objects are shown and the rest is hidden. |
| | 47 | * **M** (''Filter Mode'') - how a ''filter line'' is combined with ''filter lines'' above ''filter line'' in question: |
| 57 | | === Examples === |
| 58 | | |
| 59 | | ||Filter text ||Description or note|| |
| 60 | | ||{{{ ((landuse:|natural:|leisure:|building:) | (role:outer|role:inner))}}} ||Doesn't handle relations perfectly|| |
| 61 | | ||{{{ shop=* opening_hours=* }}} ||shop= + opening_hours= tagged objects|| |
| 62 | | ||{{{ shop=* name=* }}} ||shop= + name= tagged objects || |
| 63 | | ||{{{ type:node -shop=* }}} ||All nodes except shops. Geometry modification using mouse move disabled, but possible using other modes (ex. - [Action/ImproveWayAccuracy Improve Way Accuracy mode (W)])|| |
| 64 | | ||{{{ (type:node | type:way | type:relation) (modified | user:Steve) }}} ||Hide objects if you are the latest editor (useful during mass re-tagging and semi-mechanical edits)|| |
| 65 | | ||{{{ -highway: }}} ||Everything except highway= tagged objecets|| |
| 66 | | ||{{{ man_made=pipeline }}} ||Pipelines|| |
| 67 | | ||{{{ natural=water }}} ||Water objects|| |
| 68 | | ||{{{ admin_level: }}} ||Admin boundaries|| |
| 69 | | ||{{{ boundary: | leisure: | landuse: | waterway: | amenity: | natural: | building: }}} ||De-clutters map, aggressive (sometimes you may want to keep buildings or amenity key)|| |
| 70 | | ||{{{ type:node & untagged }}} ||Make it easier to select ways|| |
| 71 | | ||{{{ modified }}} ||Quickly see your changes|| |
| 72 | | ||{{{ child (type:way & highway:) }}} ||All nodes that's part of a highway|| |
| 73 | | ||{{{ child (type:relation & (natural:|landuse:)) }}} ||All natural and landuse areas formed by relations|| |
| 74 | | ||{{{ -((highway | child highway | untagged | public_transport) & -(highway=footway | highway=path | highway=steps | highway=track)) }}} || Only roads for public transport. Good for mapping bus networks. || |
| 75 | | |
| 76 | | See also [[Help/Action/Search#Examples]] other examples. If you have some clever filters, add them here. |
| 84 | | [[Image(filters warning.png,link=)]] |
| | 69 | == Examples ==#Examples |
| | 70 | ||= Filter text =||= Description or note =|| |
| | 71 | || `((landuse: | natural: | leisure: | building:) | (role:outer | role:inner))` || Doesn't handle relations perfectly || |
| | 72 | || `shop=* opening_hours=*` || shop= + opening_hours= tagged objects || |
| | 73 | || `shop=* name=*` || shop= + name= tagged objects || |
| | 74 | || `type:node -shop=*` || All nodes except shops. Geometry modification using mouse move disabled, but possible using other modes (ex. - [wikitr:/Help/Action/ImproveWayAccuracy Improve Way Accuracy mode] (`W`)) || |
| | 75 | || `(type:node | type:way | type:relation) (modified | user:Steve)` || Hide objects if you are the latest editor (useful during mass re-tagging and semi-mechanical edits) || |
| | 76 | || `-highway:` || Everything except highway= tagged objects || |
| | 77 | || `man_made=pipeline` || Pipelines || |
| | 78 | || `natural=water` || Water objects || |
| | 79 | || `admin_level:` || Admin boundaries || |
| | 80 | || `boundary: | leisure: | landuse: | waterway: | amenity: | natural: | building:` || De-clutters map, aggressive (sometimes you may want to keep buildings or amenity key) || |
| | 81 | || `type:node & untagged` || Make it easier to select ways || |
| | 82 | || `modified` || Quickly see your changes || |
| | 83 | || `child (type:way & highway:)` || All nodes that's part of a highway || |
| | 84 | || `child (type:relation & (natural: | landuse:))` || All natural and landuse areas formed by relations || |
| | 85 | || `-((highway | child highway | untagged | public_transport) & -(highway=footway | highway=path | highway=steps | highway=track))` || Only roads that can be used by public transport. Good for mapping bus networks. || |
| | 86 | || `public_transport | puj\:platform | ((public_transport | highway) & -(highway=footway | highway=steps | highway=track | highway=street_lamp | highway=path | highway=crossing | highway=turning_circle) & (nth%:1 & (role: | role:stop | role:platform | role:hail_and_ride)))` || Shows only currently being used ways/nodes/areas of public transport by checking the options "H" and "I". Good for reviewing the current network || |
| | 87 | || `child (type:relation & (boundary:administrative)) & (-barrier & -highway)` || Select all ways that are part of an administrative boundary aka child, but not part of a highway or barrier by selecting Hide, Inverse and as mode choose Add to show only these || |
| | 88 | || `(highway:) & ("^width$") & -(("^width$":"^(([0-9]|[1-5][0-9])\.[0-9][0-9])$") | ("^width$":"^(([0-9]|[1-5][0-9])\.[0-9])$") | ("^width$":"^([0-9]|[1-5][0-9])$"))` || regex example to filter all roads with a width but not formatted 0.00; 00.00; 0.0; 00.0; 0 or 00 (anything that's not really a proper value or exceeds 59m for width) || |
| | 89 | |
| | 90 | See also other [wikitr:/Help/Action/Search#Examples examples]. If you have some clever filters, add them here. |
| | 91 | |
| | 92 | |
| | 93 | == Auto filters ==#Autofilters |
| | 94 | Auto filters automatically adds filter buttons in the top left corner of the [wikitr:/Help/MapView map view] for special keys. This needs to be enabled in the [wikitr:/Help/Preferences/DrawingPreference OSM Data settings]. These buttons only appear if there is at least one object tagged with the respective tag within the mapview. See the following screencast on how to enable and use the filter buttons. Above the filter buttons the key which is currently used for the autofilter is displayed (not yet shown in the screencast). A click on that button leads to the preferences where you can change the key. |
| | 95 | |
| | 96 | [[Image(autofilter.gif,link=)]] |
| | 97 | |