Difference between revisions of "Template:LegMap"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#ask:[[-Has subobject::{{FULLPAGENAME}}]] [[IsA::Leg]]
+
{{#vardefine:lines|{{#ask:[[-Has subobject::{{FULLPAGENAME}}]] [[IsA::Leg]]
 
|mainlabel=-
 
|mainlabel=-
 
|?Leg from=from
 
|?Leg from=from
Line 17: Line 17:
 
|named args=yes
 
|named args=yes
 
|sep=:
 
|sep=:
}}
+
}}}}
 +
{{#var:lines}}
 
{{#display_map:
 
{{#display_map:
|lines={{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[IsA::Leg]]
+
|lines={{#var:lines}}~{{{title|Legs}}}~{{{subtitle|from subobjects}}}~{{{color|blue}}}~0.42~10
|mainlabel=-
 
|?Leg from=from
 
|?Leg to=to
 
|format=template
 
|template=LegLine
 
|sort=Leg wp_num
 
|order=asc
 
|named args=yes
 
|sep=:
 
}}~{{{title|Legs}}}~{{{subtitle|from subobjects}}}~{{{color|blue}}}~0.42~10
 
 
|center={{{center|Berlin}}}
 
|center={{{center|Berlin}}}
 
|zoom={{{zoom|12}}}
 
|zoom={{{zoom|12}}}

Revision as of 22:50, 27 November 2024

Template to display leg routes on OpenStreetMap.

Usage

{{LegMap
|center=cityName
|zoom=12}}