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 all the resources needed to serve a Maplibre vector styled map offline. This includes the style JSON, vector and raster tiles, glyphs (fonts), the sprite image, and the sprite metadata.
- Open QGIS
- Go to
Plugins>Manage and Install Plugins... - Select the
Alltab - Search for "CoMapeo SMP"
- 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 the
comapeo_smpfolder to your QGIS plugins directory:- 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 SMP" - 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)
- Output SMP file: The location to save the SMP file
- Click "Run" to generate the SMP file
The plugin will use all visible layers from the current map canvas to generate the SMP file, similar to how the MBTiles exporter works.
- 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# Run the tests
make testThis plugin is licensed under the GNU General Public License v2.0 or later.
Developed by Awana Digital.