This repository has been archived on 2025-12-24. You can view files and clone it, but cannot push or open issues or pull requests.
site-template/docs/todos-map.md

733 B

Map

  • skip checked todos

  • dont comment

  • simple markup, for errors, use a dedicated error component

  • complete & self-containing Astro component, tailwind: Google Maps Static API, pass location array & Options as props, default to 2 locations in Lamu, save in ../src/components/polymech/map.astro

  • document all in ../src/components/polymech/map.md, including API key setup

  • save all TS types in ../src/components/polymech/map-types.ts

  • center the map (center of all locations)

  • add options: satalite, terrain (default)

export interface GeoPos { lon: number lat: number }

export interface Location { geo:GeoPos title:string }

export interface Options{ zoom?:number api_key?:string }