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. A file the scan stopped reading opens on a "(file goes on)" row: "first part only: at least N placemarks". - At most 500 placemarks are listed (
PLACEMARK_CAP); the rest are counted in a "Showing the first 500 of N placemarks." line. - The scan stops after 100,000 tags (
TOKEN_CAP, shared with GPX): the count reads "at least N placemarks" and a line says only the first part was listed. What a person loses: placemarks past those tags (some 20,000 short ones, fewer with long descriptions or polygons) are neither listed nor counted. - 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.