|Documentation

Publishing your maps

Uploading a project to your instance

Publishing a map means uploading your QGIS project and its data to the instance's file space. You can do it from QGIS with the LizPack Publisher plugin, or from the customer area with the file manager, as below.

  1. On the instance page, click Files. The file manager opens at the Root of the space.
  2. Create a folder for the project with the New folder button in the toolbar, then open it.
  3. Click Send: the Send window offers Upload a folder, to send the project folder in one go, or Upload files. You can also drag files or folders straight into the list.
  4. The progress window shows the transfer, then the Server processing step, which checks the projects. Close it when it shows Done.

The project must be saved in .qgs format and come with its Lizmap configuration file (see the next page). Its data travels with it: files stored in the same folder and referenced by relative paths, or tables in the instance's database. For large volumes, the database is better: rendering is faster and several projects can read the same table without copying it.

A layer pointing to a file left on your computer will show up empty online: the server has no access to your disk. The project validator spots these paths before you upload.

What the upload checks

Every .qgs project is examined on arrival. Two defects get it refused: PostgreSQL connections that do not target this instance's database (host, database, port, user and password shown on the instance page), and layers that do not all share the same coordinate system, basemaps aside. The window is then titled Upload incomplete and lists, under Details, the layers and values at fault. The other files of the upload are saved.

Other defects do not prevent publication. The window says Publié and names the layers to keep an eye on, those that will make the map slow.

You have nothing to change in the database connections. Your project keeps the database's public address, the one on the instance page; on upload we route it through the instance's internal network, and a project downloaded from Files gets the public address back, ready to reopen in QGIS.

The portal's home page: published projects, grouped by Lizmap repository, each with its image, its title and the button that opens the map.

The portal's home page groups projects by Lizmap repository. If an uploaded project does not appear there, check that it has its configuration file, then, in the Lizmap administration, that its folder is declared as a repository and that your account is allowed to see it.

The Lizmap configuration file

A published project is made of two files side by side: the QGIS project, for example commune.qgs, and its Lizmap configuration, commune.qgs.cfg. The second one says how the map behaves online: layers visible at first, tools offered to visitors, initial extent, basemaps.

This file is produced in QGIS with the Lizmap plugin, when you set up the web map. That plugin is not ours; its documentation describes every option.

Without a configuration file, the project does not appear on the portal. This is not an instance failure: nothing tells the portal to publish the project.

After any change in QGIS or in the Lizmap plugin, upload both files together. The file manager reports Files already exist; Replace overwrites the old version, with no way back.

If your project shows layers from your LizPack GeoServer space, we adjust the configuration on upload: those layers go through your instance instead of being called directly by the browser, so your GeoServer credentials never reach your visitors.

The online map: groups, visibility boxes, legend and basemap choice follow the organization of the project and its configuration.
The LizPack Publisher plugin sends the project, its configuration and its data from QGIS in one go: see Publishing from QGIS.

Reusing your maps elsewhere

Every published project is also served through the standard protocols of online mapping. Other software can display or query your layers without copying the data.

  • WMS: the map as images, to display it in other software or another website.
  • WFS: the features themselves, with their attributes, to query or analyse them.
  • WMTS: tiles at fixed scales, for fast display.

A project's address always follows the same pattern: https://your-name.lizpack.com/index.php/lizmap/service?repository=repository&project=project, where repository is the Lizmap repository and project the file name without .qgs. In QGIS, add it as a WMS/WMTS or WFS connection. The QGIS Server card on the instance page recalls the instance's address and the announced Protocols.

A public project can be used without credentials. A restricted project requires an account on your portal, with the matching rights.

A public project exposes its data over WFS as is, attributes included. If some of it must not leave, restrict access to the project: do not count on nobody finding the address.

Validating a project before publishing it

The validator examines a QGIS project without publishing it: nothing is saved, nothing goes online. It reads the project and queries the tables it uses in the instance's database. Use it before an upload, or to understand why a map already published displays badly.

Validation: pick a project already uploaded, or drop a file from your computer. Nothing is published.
  1. In the instance's file manager (Files on its page), open More actions, the three dots of the action bar, then choose Validate project.
  2. If the open folder contains a single .qgs project, the analysis starts right away. Otherwise the Project validation page asks Which project should be analyzed?: pick a project from the instance, or drop a .qgs file from your computer.
  3. Wait a few seconds while the analysis runs: the page shows the current step.

Only .qgs files are accepted. A .qgz project analysed from your computer must first be saved again in .qgs format in QGIS.

Reading the report

If the project's connections do not target the instance's database, a banner says so at the top: Ce projet serait refusé au dépôt, with the list of faulty connections. A row of filters follows: All, then one filter per severity with its number of findings. Clicking a filter shows only that severity; clicking it again, or All, brings back the full list.

The report: a row of filters, then one section per kind of finding, with its layers, its consequence and its solution to copy.
SeverityWhat it meansExamples
BlockingThe layer or the map will not display correctly, or not at all.Temporary layer, path on your computer, table missing from the database, missing coordinate system, layers in different projections, too many print layouts.
ImportantThe map is likely to be slow or to fail.Table without an integer primary key, expression querying other layers for each feature, coordinate system different from the database's, empty extent, heavy layer displayed at every scale, layout logo taken from your computer.
NoteNothing breaks today, but display will slow down as volume grows.Large layer drawn at every scale, layer in a different projection from the project, map images in full PNG, table statistics never computed, very detailed polygons.

Findings of the same kind are gathered in a single section: the table of affected layers, what was found for each, the Impact and the Solution to apply in QGIS or in the database. Beyond five layers, a link under the list shows the others. When the solution is a command, Copy copies it, for all layers at once. Fix the Blocking sections first, save the project, then run the analysis again. When nothing is left, the page shows No issues detected.

Export as CSV and Export as JSON save the report to your computer. The CSV opens in a spreadsheet; attach it to your message if you write to support about this project. Back to files takes you back to the file manager.

Display speed checks

Three checks target the speed of the map. Couche lourde affichée à toutes les échelles flags a layer of more than 100,000 features without a scale limit: in the overview, the server draws all of it for each image. A layer saved in a different projection from the project is reprojected for each image, which makes drawing it 15 to 25% longer: the report lists it under Projection, as Important when it is heavy. This extra cost remains acceptable: do not reproject data used by other projects, LizPack Field or area calculations, and keep a project in EPSG:3857 if the map has external basemaps. Finally, under Configuration Lizmap, the report lists the layers served in full PNG: the image/png; mode=8bit format gives images 3 to 4 times lighter.

Fixing in one click

For a project uploaded to the instance, some sections carry a button that applies the solution for you. Switch images to 8-bit PNG changes the format of the layers in the Lizmap configuration. Under a heavy layer, the button limits its display below 1:25,000, like the Rendering tab of its properties in QGIS. The rendering stays that of your QGIS project. The analysis runs again right away and the fixed section disappears.

Before the first fix, the project and its configuration are copied next to it, with the .avant-correction extension. These copies count toward your storage. Undo fixes puts the project back as you uploaded it and deletes the copies.

Database findings also have a button when the command is risk-free: Recalculate statistics, Clean up the tables or Create spatial indexes. LizPack runs the diagnosis of each table again just before and only runs the command it proposes. These commands do not change your data, and Undo fixes undoes them too: the created index is removed and the recalculated statistics are cleared. Other findings, such as a primary key to add, give the SQL command to run yourself, because they lock the table.

If the map is still slow once the fixes are done, Contact support, under Are your layers still slow?, opens our help center in a new tab. Open a request there giving the instance and the project: our team reviews the project, tunes your instance if needed and replies.

At the bottom of the report, Contact support when the map stays slow despite the fixes.

LizPack also monitors your published projects. Every day, it measures how long each layer's images take to display for your visitors, and checks whether the projects' data has changed: files replaced, PostGIS tables modified. A map only counts as slow when it really is: 90% of its images above 5 seconds over a day of at least 20 images, or dropped requests, two days in a row. You then receive an email and a notification with the report's recommendations and the link to open it: at most one a week for your account, all projects combined, and none in the week after fixes, to measure their effect. If the map stays slow, the next email also suggests the next plan up, or support for a Pro plan. Nothing is changed without your consent. These emails can be turned off under Performance advice, in Notifications. When the map server drops requests, our team is alerted at the same time.