Experimentalimport { openExport, publicationSource } from "@honua/sdk-js/export";
const parcels = await openExport("https://data.example.gov/exports/parcels/v3/collection.json");
if (parcels.display) {
map.addSource("parcels", { type: "vector", url: `pmtiles://${parcels.display.pmtilesUrl}`, promoteId: parcels.display.promoteId });
}
if (parcels.publication) {
const { result } = await publicationSource(parcels.publication).lookup("234030888");
}
Open an Export from its STAC collection document (Portolan profile). Public Exports need no sign-in.
headersapply to the document request only; for signed-in files, pass afetchtopublicationSourcethat adds them. Any Portolan collection opens for display and queries; identity lookups and selection need a Honua Export, whosepublicationview is then set.Files are read by HTTP range requests at the
file:sizethe document records, so their host needs to answer a ranged GET with 206 but not a HEAD request.