This QGIS plugin generates Styled Map Package (SMP) files for use with CoMapeo, allowing you to create offline maps from your QGIS projects.
A Styled Map Package (.smp) file is a Zip archive containing a style.json
(MapLibre GL style descriptor) and a set of raster XYZ tiles rendered from
your QGIS project. The plugin generates raster tiles only — it does not
produce vector tiles, glyphs, or sprite assets.
- Open QGIS
- Go to
Plugins>Manage and Install Plugins... - Select the
Alltab - Search for "CoMapeo Map Builder"
- Click
Install Plugin - The plugin will be installed and activated automatically
- Download the latest release ZIP file from the Releases page
- Open QGIS
- Go to
Plugins>Manage and Install Plugins... - Select the
Install from ZIPtab - Click
Browse...and select the downloaded ZIP file - Click
Install Plugin - Enable the plugin in the
Installedtab if it's not already enabled
- Clone this repository:
git clone https://github.com/digidem/qgis-smp-plugin.git - Copy or symlink this repository root into your QGIS plugins directory as
comapeo_smp:- Linux:
~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ - Windows:
C:\Users\{username}\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ - macOS:
~/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/
- Linux:
- Enable the plugin in QGIS through the Plugin Manager
- Open QGIS and load the layers you want to include in your SMP file
- Style your layers as desired in the QGIS map canvas
- Go to
Processing>Toolboxand search for "CoMapeo Map Builder" - Select the "Generate SMP Map" tool
- Configure the following parameters:
- Extent: The geographic area to include in the SMP file
- Minimum zoom level: The minimum zoom level to include (0-24)
- Maximum zoom level: The maximum zoom level to include (0-24)
- Tile image format: PNG or JPG format for the generated tiles
- JPEG quality: Compression quality for JPG tiles (1-100)
- Output SMP file: The location to save the SMP file
- Click "Run" to generate the SMP file
The plugin renders visible project layers in QGIS layer-tree order, and uses custom layer order when that project setting is enabled.
- Keep the maximum zoom level reasonable (12-16) to avoid generating too many tiles
- Use a smaller extent for higher zoom levels to reduce processing time and file size
- Make sure all layers are properly styled before generating the SMP file
- Test your SMP file with CoMapeo to ensure it displays correctly
- QGIS 3.0 or later
To build the plugin for distribution:
# Create a zip package
make package VERSION=X.Y.Z# Reliable QGIS-free logic tests (default `make test` path):
make test
# or equivalently:
make test-logic
# or directly:
PYTHONPATH=. python3 test/test_generator.py
# Legacy full test suite (requires QGIS Python env + nosetests;
# exits 0 even when tests fail — do not rely on this in CI):
make test-legacyThis plugin is licensed under the GNU General Public License v2.0 or later.
Developed by Awana Digital.