forked from MapComplete/MapComplete
Fix problems in CaculatedTags.md via Typescript sources
This commit is contained in:
parent
cd356dad24
commit
0aafbdb33a
3 changed files with 5 additions and 5 deletions
|
@ -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 {role: string, relation: Relation}-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 ?? [];
|
||||
|
@ -170,4 +170,4 @@ Some advanced functions are available on <b>feat</b> as well:
|
|||
|
||||
feature[this._name] = this._f({featuresPerLayer: featuresPerLayer, relations: relations}, feature);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue