Sharing a map
Three ways to export, chosen under Export as on the Map tab. Pick one, check Save to - a new map starts in Documents/QGIS2WebMap/Web maps - and press Export at the top right of the dialog.
Standalone HTML — the default
One file. Everything is inside it: the map, its styling and all of its data.
Send it, copy it to a USB stick, put it on a shared drive. The recipient double-clicks it. They need a web browser and nothing else - no QGIS, no account, no internet connection. The exceptions are a basemap, relief, or a live layer (XYZ, WMS, WMTS or vector tile - with its legend picture or style - or a Cloud Optimized GeoTIFF or PMTiles archive read from a web address), which draw only while the recipient is online, and in popups, links and pictures that are web addresses (see Popups). The rest of the map, including the pictures it carries, works without a connection.
It is the largest of the three, and that is inherent to the format. Every feature is written into the HTML itself, because there is no sibling folder for it to live in - that is exactly what makes the file self-contained. A map whose data runs to 20 MB produces a file of at least that size.
Nothing in a browser objects to a large HTML file. What objects is email: most providers reject attachments over about 20-25 MB, and corporate filters are often stricter. The Map tab shows your map’s data size under the Save to field - the popup pictures it carries included, each once however many features show it - and warns if it is over the limit - the file is still written if you want it. To make it smaller, untick Popups on layers that do not need them, or reduce Coordinate precision on the Map tab.
Share ZIP
The same map, zipped, with a short README explaining how to open it. A map that carries a raster or a PMTiles archive from your disk keeps it as a file beside the page, as in a Folder, so once extracted it has to be served rather than double-clicked; the README says how. It also says whether the map needs an internet connection, and names each server a map with a basemap, relief or web layers asks as it is used, as well as epsg.io when it looks up a coordinate system and unpkg.com when it loads its vector tile decoder from there.
Worth choosing even when the file is small: many mail providers and corporate
filters quarantine or strip .html attachments, because HTML is a common
phishing vector. A zip usually passes filters that a bare .html does not. If
someone says your map “never arrived”, try this.
Folder
For uploading to a web server yourself. You get a small index.html, the
OnlyMap runtime as a separate onlymap.js, and a README, with any raster,
PMTiles archive or popup picture the map carries beside them. Splitting them is the
point: a browser caches onlymap.js once and reuses it for every map on your
site, instead of downloading the same few megabytes inside every page.
This one does not open by double-clicking it in Chrome, Edge or Safari,
which refuse to load the runtime that way (Firefox loads it), so the folder has
to be served over http:// or https://; opened from a disk in those
browsers, the page says so. A Standalone HTML export is the one that
opens straight off a disk.
Which to pick
| Situation | Use |
|---|---|
| Emailing it to one person | Standalone HTML, or Share ZIP if it is blocked |
| Posting it in a chat app | Standalone HTML |
| Attaching to a report or ticket | Share ZIP |
| Publishing on your own site | Folder |
| Checking it yourself before sending | View ▸ Preview |
What the recipient sees
An interactive map: pan, zoom, toggle layers, click a feature to see its attributes.
If they preview the file inside an email client or a file manager - somewhere that does not run JavaScript - they see a short message telling them to open it in a browser, rather than a blank window.