Aller au contenu

Map styling

All style settings from QGIS are directly supported by QField. This includes all renderer types like graduated, categorized, rule based, 2.5D as well as data defined symbology.

Expression d'affichage

Préparation Desktop

In QField, objects are identified with a name, which can be customized using expressions.

  1. Open the attribute table in QGIS and switch to the form view.
  2. Direct to Vector Layer Properties > Display > Attribute.

L'expression d'affichage est aussi utilisée pour rechercher dans les couches.

Configuration of display expression in QGIS.
Configuration of display expression in QGIS.

Couches en lecture seule, non identifiables et interrogeables

Préparation Ordinateur

Some layers in a project are just there for pure visual purpose. Such layers should not show up when a user taps somewhere to identify objects.

Some other layers serve as source of information and shouldn't be modified by the user. It is possible to protect layers from editing attributes or adding and deleting features.

Il est aussi possible de configurer quelles couches sont recherchées.

  1. Direct to Project > Properties... > Data Sources and activate the checkboxes to match your desired behaviour.

Configuration of layers that will not be identifiable, nor modifiable,  nor searchable.
Configuration of layers that will not be identifiable, nor modifiable, nor searchable.

Using additional fonts

Préparation Ordinateur

QField enables you to use all the custom fonts you might want and need. There are two different possibilities to register additional fonts:

Addition of fonts through the local directory

  1. Copy your font file (.ttf or .otf) in the directory [App Directory]/QField/fonts. Those will be made accessible to all projects and individual datasets.

Addition of fonts in subfolder of QGIS file

  1. Create a subfolder called fonts inside the same folder where your given project file (.qgs or .qgz) is stored. Those fonts will only be accessible when viewing that project.

When building a QFieldCloud project that includes additional fonts in a fonts subfolder, you must add this directory to the synchronized folders list in your project settings. This ensures the custom font files are successfully pushed to QFieldCloud and transferred onto mobile devices.

Flux

  1. Navigate to Project > Properties... > QField.
  2. Under the Attachments and Directories configuration tab, add the path to your relative fonts subfolder to the directories list as "Data" type.

Configuring custom fonts folder for QFieldCloud synchronization.
Configuring custom fonts folder for QFieldCloud synchronization.

Symboles SVG personnalisés

Préparation Ordinateur

It is possible to embed SVG symbols directly within a QGIS project.

  1. Choisissez la couche qui supportera la symbologie SVG et ouvrez son dialogue de propriétés.
  2. Open the section Symbology in Properties > Symbology
  3. In the Symbol Layer Panel choose Simple marker.
  4. Change the symbol layer type in Symbol layer type > SVG marker.
  5. Scroll down to the bottom panel.
  6. Cliquez sur le côté droit du bouton de sélection de fichier pour ouvrir le menu déroulant.
  7. Select Embed File and choose the SVG file in the file selection dialog.
  8. Apply the changes and click OK.
    Embedded custom SVG on QField
    Embedded custom SVG on QField