Difference between revisions of "Template:LegMap"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
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 14: Line 14:
 
|template=LegLine
 
|template=LegLine
 
|sort=Leg wp_num
 
|sort=Leg wp_num
|order=asc
 
 
|named args=yes
 
|named args=yes
 
|sep=:
 
|sep=:
 
}}}}
 
}}}}
 
== Lines ==
 
== Lines ==
{{#var:lines}}
+
{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[Leg_from::+]]
== Map ==
+
|mainlabel=-
{{#display_map:
+
|?Leg wp_num=#
|lines=
+
|?Leg from=from
{{#var:lines}}
+
|?Leg to=to
~{{{title|Legs}}}
+
|format=table
~{{{subtitle|from subobjects}}}
+
|sort=Leg wp_num
~{{{color|blue}}}~0.42~10
+
}}
|center={{{center|Berlin}}}
+
{{#var:leg_lines}}
 +
 
 +
== LegMapLines ==
 +
{{LegMapLines
 +
|lines={{#var:leg_lines}}
 +
|title={{{title|Legs}}}
 +
|subtitle={{{subtitle|from subobjects}}}
 +
|color={{{color|blue}}}
 +
|center={{{center|}}}
 
|zoom={{{zoom|12}}}
 
|zoom={{{zoom|12}}}
 
|width={{{width|800}}}
 
|width={{{width|800}}}
 
|height={{{height|600}}}
 
|height={{{height|600}}}
|fullscreen=on
+
}}
|service=leaflet}}
 
 
</includeonly>
 
</includeonly>

Latest revision as of 07:25, 28 November 2024

Template to display leg routes on OpenStreetMap.

Usage

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