Difference between revisions of "Template:LegMap"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
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 ==
{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[IsA::Leg]]
+
{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[Leg_from::+]]
 
|mainlabel=-
 
|mainlabel=-
 +
|?Leg wp_num=#
 
|?Leg from=from
 
|?Leg from=from
 
|?Leg to=to
 
|?Leg to=to
 
|format=table
 
|format=table
 
|sort=Leg wp_num
 
|sort=Leg wp_num
}}}
+
}}
 
{{#var:leg_lines}}
 
{{#var:leg_lines}}
  
== Map ==
+
== LegMapLines ==
{{#display_map:
+
{{LegMapLines
|lines=
+
|lines={{#var:leg_lines}}
{{#var:leg_lines}}
+
|title={{{title|Legs}}}
~{{{title|Legs}}}
+
|subtitle={{{subtitle|from subobjects}}}
~{{{subtitle|from subobjects}}}
+
|color={{{color|blue}}}
~{{{color|blue}}}~0.42~10
+
|center={{{center|}}}
|center={{{center|Berlin}}}
 
 
|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}}