/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * Render a race-by-dot-density PMTiles tileset (from `race-dots.ts` → tippecanoe) as a standalone * MapLibre page on the house stack: the Protomaps `basemap-v4` vector basemap (layers generated + * inlined here, à la `registry/map-html.ts`) under a circle layer of the dots, colored by race * category. The dots PMTiles is read client-side via the `pmtiles` protocol. * * Each dot is one of `per` people of a category, placed at random inside its Census block — a * representation, not a record about any address. Serve over localhost (the house tile server * CORS-restricts to localhost + the docs domains) — `mailwoman tiger race-dots-map --serve` wires * {@linkcode serveWithRangeSupport} for exactly this. * * Run: `mailwoman tiger race-dots-map --pmtiles-url * http://localhost:8899/race-dots-oc.pmtiles --out /tmp/race-dots-oc.html` */ /** * Options for {@linkcode raceDotsMap}. */ export interface RaceDotsMapOptions { /** * Dots tileset URL the page reads client-side. Default `http://localhost:8899/race-dots-oc.pmtiles`. */ pmtilesURL?: string; /** * Output HTML path. Default `/tmp/race-dots-oc.html`. */ out?: string; /** * People represented by one dot (title/legend copy only). Default 5. */ per?: number; /** * Page title. Default derives from `per`. */ title?: string; /** * Initial map center longitude. Default -117.83 (Orange County, CA). */ lng?: number; /** * Initial map center latitude. Default 33.68. */ lat?: number; /** * Initial map zoom. Default 9.4. */ zoom?: number; } /** * Result of {@linkcode raceDotsMap}. */ export interface RaceDotsMapResult { outPath: string; pmtilesURL: string; } /** * Race-dots MapLibre page writer — see the module doc. */ export declare function raceDotsMap(options?: RaceDotsMapOptions, report?: (line: string) => void): Promise; //# sourceMappingURL=race-dots-map.d.ts.map