Skip to content

Linking Stations #27

@kenlimmj

Description

@kenlimmj

Currently stations are linked by an array passed to the 'pos' data-attribute, like so:

<li data-pos="2,2; 4,4; 2,6" data-label-dir="E" data-label-ter="3"></li>

However this means that there's no semantic separation of the stations. E.g. if two separate lines have a connecting station, the connecting station would sort of have to be accounted for by one line.

Instead, is it possible to say, have an id of sorts for the station, then I could write e.g.

<li data-link="2;3"></li>

to link stations with id 2 and 3 together. This way technically if they're at two extreme ends of the map, we'd draw a line between them, but the onus is on the user to make sure that the linking makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions