Skip to content

Commit

Permalink
Update documentation/how-to/itinerary.en.md
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus authored Sep 12, 2023
1 parent 96cd024 commit 7a99eb8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion documentation/how-to/itinerary.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ Here is an example for navigation to features of a point layer.
Create a new field in your data table (type text). In the attribute form settings, select "attachment" as widget type. Tick "Display a hyperlink for document path (read-only)".
Then enter the following expression as default value:

*concat( 'https://www.google.com/maps/dir/?api=1&destination=', y(transform($geometry, layer_property(@layer, 'crs'),'EPSG:4326')), '%2C', x(transform($geometry, layer_property(@layer, 'crs'),'EPSG:4326')), '&travelmode=driving')*
```
concat(
'https://www.google.com/maps/dir/?api=1&destination=',
y(transform($geometry, layer_property(@layer, 'crs'), 'EPSG:4326')),
'%2C',
x(transform($geometry, layer_property(@layer, 'crs'), 'EPSG:4326')),
'&travelmode=driving'
)
```

And tick "Apply default value on update" in case you make changes to your geometry.

Expand Down

0 comments on commit 7a99eb8

Please sign in to comment.