Draw custom paths with the Leaflet mapping library
- L.Path implementation
- fstoerkle's svg2vmlpaths.js
- VML path data specification
- SVG path data specification
- Other Leaflet plugins
- Jasmine
SVG | parameters | VML | parameters | meaning |
---|---|---|---|---|
M/m | (x y)+ | m/- | (x y) | move to (x y) |
L/l | (x y)+ | l/r | (x y)+ | line to (x y) |
H/h | x+ | - | - | horizontal lineto x |
V/v | y+ | - | - | vertical lineto y |
Z,z | - | x | - | close path |
- | - | e | - | end path |
C/c | (x1 y1 x2 y2 x y)+ | c/v | (x1 y1 x2 y2 x y)+ | cubic bézier curve to (x y) with control points (x1 y1) and (x2 y2) |