You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs.html
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,8 @@ <h1 style="background-color:#AAAAAA;color:white">Lines and Stations</h1>
37
37
<li><codestyle="color:red">strokes</code> - Array of line stroke objects. See below for specification.</li>
38
38
<li><codestyle="color:red">stationtypes</code> - Array of station type objects. See below for specification.</li>
39
39
<li><codestyle="color:red">stations</code> - Array of station objects. See below for specification.</li>
40
-
<li><codestyle="color:blue">canvasheight</code> - Canvas Height. Defaults to <code>2000</code> pixels.</li>
41
-
<li><codestyle="color:blue">canvaswidth</code> - Canvas Width. Defaults to <code>480</code> pixels.</li>
40
+
<li><codestyle="color:blue">canvasheight</code> - Canvas Height. Defaults to <code>480</code> pixels.</li>
41
+
<li><codestyle="color:blue">canvaswidth</code> - Canvas Width. Defaults to <code>2000</code> pixels.</li>
42
42
<li><codestyle="color:blue">lineheight</code> - Line Height. Controls how far down vertically the main line is. Defaults to <code>240</code> pixels.</li>
43
43
<li><codestyle="color:blue">linestart</code> - Line Start x coordinate. Controls where the main line starts. Defaults to <code>128</code>.</li>
44
44
<li><codestyle="color:blue">lineend</code> - Line End x coordinate. Controls where the main line ends and is used in determining the spacing between stations. Defaults to <code>1800</code>.</li>
@@ -48,6 +48,7 @@ <h1 style="background-color:#AAAAAA;color:white">Lines and Stations</h1>
48
48
<li><codestyle="color:blue">texticonfontsize</code> - Font size to use for text icons. Defaults to <code>20</code>.</li>
49
49
<li><codestyle="color:blue">maincustomsvgbg</code> - Custom SVG (renders in the background).</li>
50
50
<li><codestyle="color:blue">maincustomsvgfg</code> - Custom SVG (renders in the foreground).</li>
51
+
<li><codestyle="color:blue">extraicons</code> - Array of extra icons (standard + text) rendered on map. See Icons section for specification</li>
51
52
</ul>
52
53
53
54
<p>The required <code>strokes</code> field of the line object is an array of objects that has the following options.</p>
<li><codestyle="color:red">scale</code> - Scalings of this icon. First is the large icon (Displayed to the left of the line's name, Recommended: <code>1</code>). Second is the small icon (Displayed under stations, Recommended: <code>0.67</code>)</li>
122
123
<li><codestyle="color:red">iconSVG</code> - SVG of the icon. The provided SVG should fit within the stated height and width.</li>
123
124
<li><codestyle="color:blue">iconlink</code> - URL that is traveled to when clicking the icon as a transfer icon.</li>
125
+
</ul>
126
+
127
+
<p>The optional <code>extraicons</code> field of the line object object is an array of objects that has the following options. This is optional and is primarily utilized for through-running connections or where multiple lines share track. For a working example, refer to Test 3 in the <ahref="./test-internal/test-internal.html">Internal Test Suite</a>.</p>
128
+
<p>As a convenience, text icons are supported by this method for the placement of arbitrary text on the map.</p>
129
+
<ul>
130
+
<li><codestyle="color:red">iconID</code> - The Icon ID of the extra icon.</li>
131
+
<li><codestyle="color:red">iconx</code> - The x coordinate (in pixels) of the extra icon.</li>
132
+
<li><codestyle="color:red">icony</code> - The y coordinate (in pixels) of the extra icon. Note that the line height defaults to 240, so use 240 in order to align the icon to the base line.</li>
0 commit comments