skyMapSvgfunction
The evening sky of a month over a latitude as an SVG string measured in millimetres: the stars to magnitude 3.2 (kid) or 4.5 (normal) above the horizon, the figures, the names of the best known constellations that are up, N, E, S and W round the horizon, and the words that say how to hold it. It is the sky at about 21:00 by the Sun on the 15th of the month, the same all along a line of latitude.
Import it
import { skyMapSvg } from "@johnmorrisdotca/hoshi-stars/sheets";
Definition
function skyMapSvg(latitude: number, month: number, options: { widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; }): string
Parameters
| Name | Type | Description |
|---|---|---|
latitude | number | Degrees north of the equator (negative south), -90 to 90. |
month | number | 1 to 12. |
options | { widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; } |
|
Returns
string
The <svg> markup.
Examples
import { skyMapSvg } from "@johnmorrisdotca/hoshi-stars/sheets";
const map = skyMapSvg(45, 11, { widthMm: 184.6, heightMm: 200, lang: "en" });
console.log(map.includes("November"), map.includes('data-horizon=""'));true trueWhat it prints (run when this page was built)