Jump to content

Template:OSM Location map/cssline

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by RobinLeicester (talk | contribs) at 22:16, 19 June 2024 (needs y1 x1). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.)