KML maps (.kml) as a placemark table
Open a .kml file in a repository and see its placemarks as a table: name, description, longitude, latitude.
- Web: the blob page renders a table on the server (
src/web/render/kml.ts, sharing gpx's tag scanner). The table sits in the.gj-tableregion: focusable, labelled "Placemarks", and it scrolls sideways inside the column (overflow-x: auto; max-width: 100%), so it never widens a 360px phone page; long words wrap.?view=source, Raw and Download work as for any file. - Terminal: the workspace opens a
.kmlas a Name / Description / Longitude / Latitude table (src/tui/screens/kml.ts, same parser);sflips to the source, and the status line counts the rows left out. - At most 500 placemarks are listed (
PLACEMARK_CAP); the rest are counted in a "Showing the first 500 of N placemarks." line. - Descriptions are text, never markup: tags are shown, not applied. The web clips a description at 300 characters, the terminal at 80 (whitespace folded).
- Only the first coordinate of a placemark is shown. A Point shows its position; a LineString or Polygon shows its first vertex only, and nothing in the table says more follows. A placemark with no readable coordinate leaves both cells empty. Altitude is ignored.
- A file that is not well-formed KML (tags that do not nest, a root other than
kml, no placemark) keeps the source view, with a one-line reason on the web. DOCTYPE entities are never expanded; all text is escaped. - No map tiles, no network, no dependency.