Skip to content

Commit

Permalink
Add documentation covering drawing templates
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 16, 2024
1 parent ad17064 commit 733269c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Binary file added documentation/assets/images/drawing_templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions documentation/how-to/pictures.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ QField have an in-app drawing and sketching functionality enabling you to direct

![type:video](../assets/videos/drawing-sketch-feature2.webm)

### Drawing templates

On top of annotating captured images, QField supports drawing from image templates. The following two methods are available to add templates:

- The first method is to create a `drawing_templates` folder located alongside a project file and populate it with images. Whenever that project is loaded, QField will register all images within that folder as drawing templates.
- Alternatively, you can add images into the `drawing_templates` folder found inside your QField app folder. If you are not familiar with that app folder, its location is shown at the bottom of the About QField overlay.

Templates shipped alongside projects as well as the QField app folder will be shown when users choose 'Draw a sketch' within attachments widget's 3-dot menu.

!![picture path](../assets/images/drawing_templates.png "")

## Geotagging
:material-tablet: Fieldwork

Expand Down
15 changes: 15 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ nav:
- success-stories/rwanda-rural-water.md
- success-stories/vanilla-survey.md
- success-stories/heritage-impact-assessment.md
- QField API:
- qfield-api/index.md

# Extensions
markdown_extensions:
- admonition
Expand Down Expand Up @@ -172,8 +175,20 @@ plugins:
cards_layout_options:
background_color: "#72ad2e"
color: "#FFFFFF"
- mkdoxy:
projects:
qfield-api:
src-dirs: "../../cpp/QField/src/core ../../cpp/QField/src/core/utils ../../cpp/QField/src/core/positioning ../../cpp/QField/src/qml"
full-doc: True
doxy-cfg:
FILE_PATTERNS: "*.cpp *.h* *.qml"
FILTER_PATTERNS: "*.qml=doxyqml"
RECURSIVE: False
EXTENSION_MAPPING: "qml=C++"
- i18n:
build_only_locale: !ENV [BUILD_ONLY_LOCALE]
default_language: en
fallback_to_default: true
# FIX ME: Add autodetection to translation rates so that only languages
# with >30% translations are built. See https://www.transifex.com/opengisch/qfield-documentation/dashboard/
languages:
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ fancyboxmd==1.1.0
mkdocs-material===9.5.17
mkdocs-static-i18n==1.2.0
mkdocs-video==1.5.0
doxyqml
mkdoxy

0 comments on commit 733269c

Please sign in to comment.