Template:OSM Location map/cssline

From Warbird Philosophy
< Template:OSM Location map
Revision as of 06:00, 26 June 2024 by Noha307 (talk | contribs) (1 revision imported: Content from Template:OSM Location map on Wikipedia)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Uses a CSS divs for option=

  • curveA: (x1,y1,w,cw, angle). curve line 'swoops' around 90deg, sort-of centered at x,y. sort-of length w, rotation of angle=. cw=1 for clockwise, 0 for anti-.
  • line: between two points (x1,y1) and (x2,y2).

Parameters also used are outline-width, outline-style and shape-outline which provide the line-width, css line-style and line-color for all options.

(Line works by calculating the centre-point, transform-angle and line-length needed and applies them to border-bottom. Maths comes with thanks to ES.)