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>
{{#vardefine:lines|{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[IsA::Leg]]
+
{{#vardefine:leg_lines|{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[IsA::Leg]]
 
|mainlabel=-
 
|mainlabel=-
 
|?Leg from=from
 
|?Leg from=from
Line 19: Line 19:
 
}}}}
 
}}}}
 
== Lines ==
 
== Lines ==
{{#var:lines}}
+
{{#var:leg_lines}}
  
 
== Map ==
 
== Map ==
 
{{#display_map:
 
{{#display_map:
 
|lines=
 
|lines=
{{#var:lines}}
+
{{#var:leg_lines}}
 
~{{{title|Legs}}}
 
~{{{title|Legs}}}
 
~{{{subtitle|from subobjects}}}
 
~{{{subtitle|from subobjects}}}

Revision as of 23:08, 27 November 2024

Template to display leg routes on OpenStreetMap.

Usage

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