Documentation
¶
Overview ¶
Package maphttp serves the basemap archives the maps settings keep (#2068) and the list of them, with no session.
The archives hold public OpenStreetMap data, and they are read by a map running in a sandboxed asset frame, whose origin is opaque, and from public share links, neither of which carries a session. corshttp answers these paths for any origin. PMTiles is read only by byte range, so the archive route is the tile server: each map view reads the header, a directory or two, and the tiles it draws.
Index ¶
Constants ¶
View Source
const PathPrefix = "/portal/maps/"
PathPrefix is where the routes live. It is under /portal/ so the tile worker answers it in-process, and is registered ahead of the portal UI's catch-all.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.