Improve documentation

This commit is contained in:
Pieter Vander Vennet 2021-05-11 11:03:28 +02:00
parent 4d7325aa4e
commit 60dee5e999
3 changed files with 4 additions and 4 deletions

View file

@ -117,7 +117,7 @@ Some advanced functions are available on <b>feat</b> as well:
private static readonly Memberships = new ExtraFunction(
"memberships",
"Gives a list of {role: string, relation: Relation}-objects, containing all the relations that this feature is part of. \n\nFor example: `_part_of_walking_routes=feat.memberships().map(r => r.relation.tags.name).join(';')`",
"Gives a list of <code>{role: string, relation: Relation}</code>-objects, containing all the relations that this feature is part of. \n\nFor example: <code>_part_of_walking_routes=feat.memberships().map(r => r.relation.tags.name).join(';')</code>",
[],
(params, feature) => {
return () => params.relations ?? [];