forked from MapComplete/MapComplete
		
	Improve documentation
This commit is contained in:
		
							parent
							
								
									4d7325aa4e
								
							
						
					
					
						commit
						60dee5e999
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -5,7 +5,7 @@ Metatags are extra tags available, in order to display more data or to give bett | ||||||
| 
 | 
 | ||||||
| The are calculated automatically on every feature when the data arrives in the webbrowser. This document gives an overview of the available metatags. | The are calculated automatically on every feature when the data arrives in the webbrowser. This document gives an overview of the available metatags. | ||||||
| 
 | 
 | ||||||
| **Hint:** when using metatags, add the \[query parameter\](URL\_Parameters.md) \`debug=true\` to the URL. This will include a box in the popup for features which shows all the properties of the object | **Hint:** when using metatags, add the [query parameter](URL_Parameters.md) `debug=true` to the URL. This will include a box in the popup for features which shows all the properties of the object | ||||||
| 
 | 
 | ||||||
| ### \_lat, \_lon | ### \_lat, \_lon | ||||||
| 
 | 
 | ||||||
|  | @ -88,4 +88,4 @@ Given either a list of geojson features or a single layer name, gives the single | ||||||
| 
 | 
 | ||||||
| ### memberships | ### memberships | ||||||
| 
 | 
 | ||||||
| Gives a list of {role: string, relation: Relation}-objects, containing all the relations that this feature is part of. For 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. For example: `_part_of_walking_routes=feat.memberships().map(r => r.relation.tags.name).join(';')` | ||||||
|  | @ -117,7 +117,7 @@ Some advanced functions are available on <b>feat</b> as well: | ||||||
| 
 | 
 | ||||||
|     private static readonly Memberships = new ExtraFunction( |     private static readonly Memberships = new ExtraFunction( | ||||||
|         "memberships", |         "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) => { |         (params, feature) => { | ||||||
|             return () =>   params.relations ?? []; |             return () =>   params.relations ?? []; | ||||||
|  |  | ||||||
|  | @ -381,7 +381,7 @@ export default class SimpleMetaTagger { | ||||||
|                 "<h2>Metatags</h2>", |                 "<h2>Metatags</h2>", | ||||||
|                 "<p>Metatags are extra tags available, in order to display more data or to give better questions.</p>", |                 "<p>Metatags are extra tags available, in order to display more data or to give better questions.</p>", | ||||||
|                 "<p>The are calculated automatically on every feature when the data arrives in the webbrowser. This document gives an overview of the available metatags.</p>", |                 "<p>The are calculated automatically on every feature when the data arrives in the webbrowser. This document gives an overview of the available metatags.</p>", | ||||||
|                 "<p><b>Hint:</b> when using metatags, add the [query parameter](URL_Parameters.md) `debug=true` to the URL. This will include a box in the popup for features which shows all the properties of the object</p>" |                 "<p><b>Hint:</b> when using metatags, add the <a href='URL_Parameters.md'>query parameter</a> <code>debug=true</code> to the URL. This will include a box in the popup for features which shows all the properties of the object</p>" | ||||||
|             ]) |             ]) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue