This QField plugin serves as a template to integrate a GeoMapFish service into the QField search bar. The plugin relies on new functionalities within the plugin framework introduced in QField 3.5.
To install the plugin, download the plugin from the releases page and follow the plugin installation guide to install the zipped plugin in QField.
To start searches once the plugin is installed, expand the search bar, type the prefix osm followed by the search string, and wait for the GeoMapFish service to provide you with results:
0001-0208.webm
Users and plugin authors are encouraged to explore the plugin code. To change the GeoMapFish service used by the plugin, look for the the "service_url" and "service_crs" attached to the parameters property of the QFieldLocatorFilter item in main.qml
You can customize the search bar prefix by changing the prefix property of the QFieldLocatorFilter item. By having unique prefixes, you can integrate multiple services.