transport-network-animator / SvgStationAttributes
A Station through which Lines can run.
SVG: rect
example
<rect data-station="Istanbul" x="28.9603" y="41.01" data-dir="ne" data-label-dir="w" />
-
SvgAbstractTimedDrawableAttributes
↳
SvgStationAttributes
• baseCoords: Vector
The position of the station.
SVG: standard x
and y
attributes
• from: Instant
Indicates when this element shall appear.
Pattern: (?<epoch>\d+) (?<second>\d+)(?<flag> [\w-]+)?
e.g. 2020 5 noanim-nozoom
epoch
: Epochs will be executed in order. Years can be used as epochs.
second
: Seconds reset to 0 with every epoch.
flag
: Optional. reverse
, noanim
, nozoom
, keepzoom
. Can be combined with -
.
See further explanations in root Readme.
SVG: data-from
SvgAbstractTimedDrawableAttributes.from
• id: string
The Station identifier. Attention! This is not the SVG id
attribute!
Required.
SVG: data-station
• labelDir: Rotation
The direction in which labels for that Station appear, e.g. n
, sw
.
defaultvalue
n
SVG: data-label-dir
• lonLat: undefined
| Vector
The position of the station in WGS84 / EPSG:4326, i.e. GPS coordinates.
Longitude and latitude are to be separated by a space, e.g. 28.9603 41.01
.
This will be automatically projected to SVG coordinates using Projection.default.
If set, this overrides the baseCoords coordinates.
SVG: data-lon-lat
• name: string
The name. In certain circumstances, this will be used a grouping identifier.
SVG: name
, the standard SVG name attribute
SvgAbstractTimedDrawableAttributes.name
• rotation: Rotation
The orientation of the station, e.g. n
, sw
.
defaultvalue
n
SVG: data-dir
• to: Instant
Indicates when this element shall disappear.
Pattern: (?<epoch>\d+) (?<second>\d+)(?<flag> [\w-]+)?
e.g. 2020 5 noanim-nozoom
epoch
: Epochs will be executed in order. Years can be used as epochs.
second
: Seconds reset to 0 with every epoch.
flag
: Optional. reverse
, noanim
, nozoom
, keepzoom
. Can be combined with -
.
See further explanations in root Readme.
SVG: data-to