zyxw59 / subway_map.rs

A rewrite of https://github.com/zyxw59/subwayMap
MIT License
0 stars 0 forks source link

Add a way to specify stop markers #10

Closed zyxw59 closed 1 year ago

zyxw59 commented 1 year ago

Some options: a. Specify an external SVG file containing definitions for the symbols to use at stops:

stopsymbols "external.svg";

b. An inline declaration:

stopsymbol "<circle r='10' />";

c. A built-in library of markers which take parameters (like radius, in the case of a circular stop marker):

stopsymbol circle 10;
zyxw59 commented 1 year ago

Maybe with the addition of a format function, users could declare their symbols as simple functions.

zyxw59 commented 1 year ago

Altho that would force marker definitions to be tied to a particular format (i.e. SVG), which would make #11 a lot harder.

zyxw59 commented 1 year ago

Split into #16 and #17. #13 essentially takes option (c) proposed above.