Reference · Markers on the globe
MarkerIcontype
The shapes a marker can be drawn as: dot, ring, square or diamond.
Import it
import type { MarkerIcon } from "@johnmorrisdotca/chikyu-earth/markers";
Definition
type MarkerIcon = "dot" | "ring" | "square" | "diamond";
Examples
import type { MarkerIcon, MarkerInput } from "@johnmorrisdotca/chikyu-earth/markers";
const icon: MarkerIcon = "diamond";
const stadium: MarkerInput = { id: "camp-nou", lon: 2.12, lat: 41.38, icon, group: "Stadiums" };
console.log(stadium.icon);diamondWhat it prints (run when this page was built)