Skip to content

Commit 2329282

Browse files
committed
feature filtering update
1 parent 3b2f77a commit 2329282

7 files changed

Lines changed: 15 additions & 12 deletions

File tree

src/.vitepress/sidebar/en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
{ text: 'Synchronisation in Mergin Maps Mobile App', link: '/field/autosync/' },
112112
{ text: 'Measurement Tools', link: '/field/measure/' },
113113
{ text: 'Layers in Mergin Maps Mobile App', link: '/field/layers/' },
114-
{ text: 'Filtering Features', link: '/field/filtering/' },
114+
{ text: 'Feature Filtering', link: '/field/filtering/' },
115115
{ text: 'Map Sketching', link: '/field/map-sketching/' },
116116
{ text: 'Photo Sketching', link: '/field/photo-sketching/' },
117117
{ text: 'How to Add, Edit, Delete Features', link: '/field/mobile-features/' },

src/field/filtering/index.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
description: Add custom filters to sort and display only those features that you need during your field survey.
33
---
44

5-
# Filtering Features in Mergin Maps mobile app
5+
# Feature Filtering in Mergin Maps Mobile App
66
[[toc]]
77

88
Custom filters can be added to the <MobileAppNameShort /> to easily filter features displayed on the map as well as in the [survey layers](../layers/#browsing-features).
99

10+
::: tip Feature filtering blog
11+
You can read about this feature also on our blog <MainDomainNameLink id="blog/from-wishlist-to-app-feature-filtering-is-live" desc="From wishlist to app: Feature filtering is live"/>.
12+
:::
13+
1014
## Enable and define filtering in QGIS
1115
Filters can be enabled and defined in QGIS in **Project Properties**.
1216

@@ -29,13 +33,12 @@ You can add as many filters as you need by using the **Add filter** button.
2933
The order of filters can be changed by selecting a filter and using the **Up** and **Down** buttons. To remove a filter, select it and click the **Remove** button.
3034
![Filtering in QGIS Mergin Maps project](./qgis-filtering.webp "Filtering in QGIS Mergin Maps project")
3135

32-
qgis-filtering.webp
3336
Don't forget to save your project and synchronise changes so that you can use the filters in the <MobileAppNameShort />.
3437

3538

3639
### Filter types
3740

38-
**Text** filter uses simple text input. Results are filtered based the SQL expression `"field" ILIKE '%input%'`. Available for text and number field types.
41+
**Text** filter uses simple text input. Results are filtered based on the SQL expression `"field" ILIKE '%input%'`. Available for text and number field types.
3942

4043
**Number** filter provides *from* and *to* number inputs. Results are filtered based on SQL expression `"field" >= 'input_from' AND "field" <= 'input_to'`. Available for text and number field types.
4144

@@ -54,23 +57,23 @@ In the <MobileAppNameShort />, the filter types looks as follows:
5457
## Filtering features in the mobile app
5558
Filters defined in [<MainPlatformName /> project in QGIS](#enable-and-define-filtering-in-qgis) can be used in the <MobileAppNameShort />. You can filter features across multiple layers by entering or selecting values in corresponding filters. The filtering affects both the map display and the feature browsing list.
5659

57-
:::warning Filters reset
58-
Filters are reset when the project is synced. Also, they do not stay saved when the app is restarted.
59-
:::
60+
Filters do not stay saved when the app is restarted.
6061

6162
Here is an example of how filtering works:
6263

63-
1. Tap the **Filters** button to open filters defined in the project
64+
1. Tap the **More** button to open **Filters** defined in the project
65+
66+
Filtering has to be enabled in the [QGIS project](#enable-and-define-filtering-in-qgis), otherwise this option is not displayed.
6467
![Filtering button in Mergin Maps mobile app](./mobile-open-filters.webp "Filtering button in Mergin Maps mobile app")
6568

66-
2. Enter or select values in the filters. Here, we will use a *Single select* filter on the *trees* layer and select a *tree species* value from the list.
69+
2. Enter or select values in the filters. You can use more filters at once.
6770

68-
You can use more filters at once.
71+
Here, we will use a *Single select* filter on the *trees* layer and select a *tree species* value from the list.
6972

7073
Tap on the **Apply filters** button to confirm the filtering.
7174
![Filtering in Mergin Maps mobile app](./mobile-filter-single-selection.webp "Filtering in Mergin Maps mobile app")
7275

7376
3. With active filters, only features that match the criteria are displayed on the map as well as when [browsing features](../layers/#layers-legend-and-features).
7477

75-
If filters are applied
78+
You can use the active **Filters** button to quickly access filters.
7679
![Active filter in Mergin Maps mobile app](./mobile-filtered-features.webp "Active filter in Mergin Maps mobile app")
988 Bytes
Loading
12.7 KB
Binary file not shown.
2.39 KB
Loading
-247 KB
Binary file not shown.

src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The ecosystem consist of various components:
105105
- [Synchronisation in <MobileAppName />](./field/autosync/)
106106
- [Measurement Tools](./field/measure/)
107107
- [Layers in <MobileAppName />](./field/layers/)
108-
- [Filtering Features in <MobileAppName />](./field/filtering/)
108+
- [Feature Filtering in <MobileAppName />](./field/filtering/)
109109
- [Map Sketching in <MobileAppName />](./field/map-sketching/)
110110
- [Photo Sketching in <MobileAppName />](./field/photo-sketching/)
111111
- [How to Add, Edit, Delete Features](./field/mobile-features/)

0 commit comments

Comments
 (0)