Upstream requests
Feature requests to the libraries and services Terrain Viewer builds on, drafted here before they are posted, with their status and our workaround meanwhile
What we need from projects we depend on, written once, kept here, and linked when posted. Each entry says what we do in the meantime. The community posts and venues are on Advocacy.
Drafted
| Request | To | Status | Our workaround |
|---|---|---|---|
Custom-protocol fetch through the main thread, with lib/protocol-registry.ts as the example | maplibre-contour, issue 434 (ours, no answer yet) | To comment, drafted 2026-10-13 | Contours fetch their DEM through the registry, decoded on the main thread |
| A sweep of national sources finer than what is ingested, with the National Datasets comparison as the reference | Mapterhorn, issue 27 (17 comments, live; 295 Flanders links stale and 304 Italy 5 m are the related threads) | To comment, drafted 2026-10-13 | The finer national grids are served through our own protocols |
| Plain images as a resource | Allmaps | Drafted 2026-10-07, not posted | The Image Georeferencer offers only the fits MapLibre draws from four corners |
| A browser OAuth client | Planet, the community forum (Data Access and Management APIs) or developer support; no tracker. Checked 2026-10-13: the docs still say interactive client registration is not released, but the Account page's OAuth Clients panel has an SPA option, try it before posting | Drafted 2026-10-07; the self-service route checked 2026-10-15: no OAuth section on the personal account, and a workspace's Access tab says "OAuth client limit reached. Creating OAuth clients is not available for your account", so the post stands | Paste the CLI's access token in Settings |
Withdrawn
- Fumadocs, the page actions under a Next basePath (drafted 2026-10-13): not a Fumadocs bug any more.
withBasePathreadsimport.meta.env.BASE_URL, which Next's Turbopack derives frombasePathsince Next 16.3 (vercel/next.js#96225, merged 2026-07-28, released 2026-08-03). Checked on 2026-10-14 by clicking the stock buttons on a static export built with fumadocs-ui 16.17.3 and Next 16.3.7, in headless Chrome: Copy Markdown fetched/docs/llms.mdx/..., View as Markdown linked it with the base path, the assistant links used the page's full URL. The popover's content is not server-rendered, so theusePathnamepoint never showed either. Our own copy of the popover, written on 2026-08-20 against Next 16.3.0, had become the bug: its pre-prefixed URL doubled to/docs/docs/llms.mdx/...on the Copy Markdown fetch; dropped the same day.
Posted
| Request | To | Status |
|---|---|---|
https://terrain-viewer.iconem.com as an allowed origin on the Almond Blossom PMTiles host, so the library's impasto entries work without a local proxy | Lars Maxfield (impasto.dev) | Not to be sent yet |
| Sparse tiles and the Esri placeholder tile; 3D Tiles | MapLibre, PR 8335, PR 8567 | Commented |
| MapLibre 6 support and label placement | geogrid-maplibre-gl, issue 18 | Posted |
| A browser option for remote DEMs | geospatial-skills, issue 7 | Posted |
A lightbox and a gallery for prose images (loop, captions, video; a hero plus filmstrip gallery), ours in lightbox.tsx and gallery.tsx (Fumadocs integration) | Fumadocs, issue 3697 | Shipped 2026-10-14 in 16.17.3: a <Lightbox> wrapper over ImageZoom images (arrow keys, swipe, side buttons, counter, caption from title or a caption prop), no loop, no video, no gallery component |
A sidebar title apart from the page title (sidebarTitle, as Docusaurus, Mintlify, Nextra and Starlight have), ours a loader plugin in source.ts | Fumadocs, discussion 307 | Commented 2026-10-13, no separate issue |
WarpedMapLayer with pitch, then terrain and globe (the view step from projected geo to screen is a 2D affine transform; MapLibre's modelViewProjectionMatrix in its place; 8588 for terrain once stable; globe last), with a comment on issue 622 showing the app | Allmaps, issue 666 | Posted 2026-10-14 |
| The launcher's command line handed to the main process (Windows 2.0.2 confirmed, the ntdll workaround, 554 as the Linux twin) | Electrobun, a comment on issue 483 | Commented 2026-10-14 |
A per-variant update feed name, so the full and light builds share one release and release.baseUrl | Electrobun, issue 577 | Posted 2026-10-14 |
| renderToTerrainTile: the plan past experimental (our Phong, Matcap and building-shadow custom layers, the Allmaps draping on 666, three API questions) | MapLibre, a comment on PR 8588 | Commented 2026-10-14 |
Bilinear upsampling past the finest overview level (two pictures, a hosted reproduction); resolved by declaring the source by url with no explicit maxzoom, so the protocol's TileJSON ends the pyramid at the finest level and MapLibre overzooms the last tile (Oscar Fonts' answer) | geomatico/maplibre-cog-protocol, issue 56 | Posted 2026-10-14, answered 2026-10-20 |
A configurable no-data height in the terrain encoder (a value or the tile minimum instead of 0 m); ours is a floor and fill in lib/nodata.ts through our own protocol | geomatico/maplibre-cog-protocol, issue 57 | Posted 2026-10-14 |
| Georeferenced raster input and GeoJSON export, and before/after pair tasks for change detection; ours is TiTiler chips, a frame-name shim and a converter in Change detection frameworks | CVAT, issue 11296 and issue 11297 | Posted 2026-10-13 |
| Georeference fields on the task plus a GeoJSON converter, and synced pan and zoom across images with swipe and flicker | Label Studio, issue 9985 and issue 9986 | Posted 2026-10-15 |
| GeoJSON export applying the GeoTIFF geotransform; tiled rendering of large COGs with a compare image | labelme, a comment on issue 2209 and discussion 2763 | Posted 2026-10-13 and 2026-10-15 |
| A generic change detection mode: pair table, second COG layer with flicker and swipe, configurable classes | GeoLabel, deadtrees-frontend issue 158 | Posted 2026-10-16 |
Allmaps: plain images as a resource
@allmaps/render: accept a plain image (or an ImageBitmap) as a map's resource, not only IIIF image services
Terrain Viewer's Image Georeferencer places a plain image (a figure from a paper, a JPEG plan) from control points, with @allmaps/transform. MapLibre's image source draws from four corners only, so the bending fits (polynomial 2, thin-plate spline) cannot be shown correctly, while Allmaps' renderer already triangulates and warps on the GPU. A resource type for a single image (a URL or an ImageBitmap, width and height known, no tiles, no info.json) would let us hand our control points and transformation to WarpedMapLayer.addGeoreferencedMap and get every fit drawn exactly. The renderer accepts a fetchFn, so a synthetic level-0 IIIF service served from memory is a possible workaround today; a first-class resource would avoid it.
Planet: a browser OAuth client
Insights Platform STAC (api.planet.com/x/data): a way for a browser app to get an access token
The STAC API takes only an OpenID access token; a PLAK API key answers 401 there (it works on the Data API v1 and the tile service). The documentation says the Planet CLI and SDK are the only interactive OAuth clients for now, and that machine-to-machine tokens for api.planet.com are in progress. A web app can therefore only ask users to run planet auth print-access-token and paste the result, every two hours or so. Proposal, either: self-service registration of a public OAuth client (authorization code with PKCE, the app's own redirect URI), or accepting the API key on /x/data as the Data API v1 does. CORS on /x/data is already open, so nothing else is missing. The self-service path is closed for us today: the personal account page has no OAuth section, and a workspace's Access tab shows "OAuth client limit reached. Creating OAuth clients is not available for your account" (checked 2026-10-15).
maplibre-contour: a follow-up on issue 434
A comment on our own issue 434, with what we built since:
Following up with what we ended up doing, in case it helps shape an API. Terrain Viewer (terrain-viewer.iconem.com) now routes every tile fetch of its derived modes through one registry,
lib/protocol-registry.ts:registerProtocol(scheme, handler)registers with MapLibre and with the registry, andfetchTileBitmap(url)dispatches acog://,wms://,vrt://or plain https URL to the right handler on the main thread. Contours go the same way: the DEM tile is fetched through the registry, decoded, and the elevation grid handed to the contour generation. So the piece needed from maplibre-contour is small: aDemSourceoption taking a function(z, x, y, abort) => Promise<DemTile>(or a raw Float32 grid) instead of a URL template, with the worker optional, since a custom protocol handler lives on the main thread and cannot be called from the contour worker. Happy to send a PR along those lines if that shape works for you.
Mapterhorn: a comment on issue 27
A comment on issue 27 (possible data sources; Wallonia and the Dutch orthophoto WMS were the last two suggestions):
We keep a surveyed list of national elevation endpoints for Terrain Viewer, with the Mapterhorn resolution next to each: https://terrain-viewer.iconem.com/docs/features/national-datasets/. Three countries publish a finer national grid than the one ingested today, all as open services: Czechia (CUZK DMR 5G, 2 m against 5 m), the Netherlands (AHN DTM, 0.5 m against 5 m) and Norway (Kartverket NDH, 0.25 m against 1 m). The page also lists what a browser cannot consume but a pipeline might (Portugal and Sweden have open STAC indexes with the rasters behind auth), the regional sources finer than their national grid (Queensland's 0.5 to 1 m LiDAR mosaic among them), and the licence of each. Every row is a reproduced request, not a catalog entry. Mexico INEGI's 5 m MDE from my earlier comment is still download-only.
Before proposing a source there, check the project's EXCLUDED.md and its licence rule (attribution-only, no change-the-terms-at-will clause, wipfli's note). Already declined and not to be asked again: Lithuania's 5 m DTM (non-commercial), the Azores (non-commercial) and Hong Kong (DATA.GOV.HK terms revocable at any time, which also rules out CEDD's 0.5 m 2020 LiDAR even though it is a free bulk download). The ❌ rows on National Datasets fail the same test: Mexico INEGI, Indonesia DEMNAS, Haiti CNIGS, Klaipėda, Hawaii, South Australia's Murray and the Kīlauea 2018 survey.