Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Map2web

Export your QGIS layers to interactive web maps with Leaflet!

QGIS Plugin Version License

En English

About

Universal Map2web is a QGIS plugin that exports your vector layers to interactive web maps with Leaflet, faithfully preserving QGIS symbology and styles.

Tutorial Video

https://www.youtube.com/watch?v=6DIGVI7V55E

Documentation

The complete user manual is available here: Download the Universal Map2web User Manual (PDF)

Features

  • 1 QGIS symbology preservation (colors, widths, opacities, line styles)
  • 2 Support for all renderers: Single, Categorized, Graduated, Rule-based
  • 3 Automatic QGIS labeling
  • 4 Customizable popups per layer
  • 5 Advanced attribute filtering
  • 6 Colored point clustering
  • 7 Integrated tools: Measure, Search, Geolocation, Fullscreen, Scale bar, MiniMap, Print
  • 8 Interface themes: Light, Dark, Professional, Colorful
  • 9 Customizable logo and header color
  • 10 Built-in local server (avoids CORS issues)
  • 11 Export to PNG, PDF and CSV
  • 12 Multi-language support (English/French)
  • 13 Dynamic PostgreSQL/PostGIS mode: layers already connected to a PostGIS database in QGIS can stay live on the exported web map instead of being frozen into a static GeoJSON file

Dynamic PostgreSQL mode

For layers already connected to PostgreSQL/PostGIS in QGIS, you can enable "Load PostGIS layers dynamically from PostgreSQL (instead of a static export)" in the export dialog. When enabled:

  • The plugin reuses the connection already configured in QGIS (no credentials re-entered in the plugin)
  • A single get_data.php endpoint plus a protected db_config.php are generated in the export folder
  • A random API key is generated for each export to restrict access to the endpoint
  • .htaccess blocks direct access to db_config.php
  • The web map queries the database live (with optional bounding-box filtering), so it always reflects the current data instead of a snapshot taken at export time
  • Layers not connected to PostgreSQL, or when this option is left unchecked, are still exported as static GeoJSON as before

Requirement: a PHP-capable web server with the pdo_pgsql extension is needed to host the exported site in this mode (a plain static file host is not enough).

Interface

alt text

Customization Tab

alt text

Exported Web Interface

alt text

Installation

From the official QGIS repository

  1. Open QGIS
  2. Go to PluginsManage and Install Plugins...
  3. Search for Universal Map2web
  4. Click Install

From GitHub

  1. Download the universal_map2web folder
  2. Copy it to the QGIS plugins folder:
    • Windows: C:\Users\YourName\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\
    • Linux: ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/
    • Mac: ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/
  3. Activate the plugin in QGIS

Usage

  1. Click the Universal Map2web icon in the toolbar
  2. Select the layers to export
  3. Customize options (title, logo, theme, language, etc.)
  4. Click OK
  5. The map opens automatically in your browser

Requirements

  • QGIS 3.16 or higher
  • Modern web browser (Chrome, Firefox, Edge, Safari)

License

This project is licensed under the GNU GPL v2. See the LICENSE file for details.

👤 Author

Jean-baptiste Bazikité KIBORA

Acknowledgments

  • QGIS - The best open-source GIS
  • Leaflet - The JavaScript mapping library
  • qgis2web - Inspiration source

🇫🇷 Français

À propos

Universal Map2web est une extension QGIS qui exporte vos couches vectorielles en cartes web interactives avec Leaflet, en préservant fidèlement la symbologie et les styles de votre projet QGIS.

Tutorial video

https://youtu.be/V67q3jCYKow

La documentation complète disponible ici: Télécharger la version pdf (PDF)

Fonctionnalités

  • 1 Préservation de la symbologie QGIS (couleurs, épaisseurs, opacités, styles de ligne)
  • 2 Support de tous les renderers : Simple, Catégorisé, Gradué, Règle
  • 3 Étiquetage QGIS (labeling) automatique
  • 4 Popups personnalisables par couche
  • 5 Filtre avancé par attribut
  • 6 Cluster de points colorés
  • 7 Outils intégrés : Mesure, Recherche, Géolocalisation, Plein écran, Échelle, MiniMap, Impression
  • 8 Thèmes d'interface : Clair, Sombre, Professionnel, Coloré
  • 9 Logo et couleur d'en-tête personnalisables
  • 10 Serveur local intégré (évite les problèmes CORS)
  • 11 Export PNG, PDF et CSV
  • 12 Support multilingue (Anglais/Français)
  • 13 Mode PostgreSQL/PostGIS dynamique : les couches déjà connectées à une base PostGIS dans QGIS peuvent rester en direct sur la carte web exportée, au lieu d'être figées dans un fichier GeoJSON statique

Mode PostgreSQL dynamique

Pour les couches déjà connectées à PostgreSQL/PostGIS dans QGIS, vous pouvez activer « Charger dynamiquement les couches PostGIS depuis PostgreSQL (au lieu d'un export figé) » dans la boîte de dialogue d'export. Lorsque cette option est activée :

  • L'extension réutilise la connexion déjà configurée dans QGIS (aucun identifiant à ressaisir dans le plugin)
  • Un unique point d'accès get_data.php ainsi qu'un fichier db_config.php protégé sont générés dans le dossier d'export
  • Une clé API aléatoire est générée à chaque export pour restreindre l'accès à ce point d'accès
  • Le fichier .htaccess bloque l'accès direct à db_config.php
  • La carte web interroge la base de données en direct (avec un filtrage optionnel par emprise géographique), ce qui garantit des données toujours à jour plutôt qu'un instantané figé au moment de l'export
  • Les couches non connectées à PostgreSQL, ou lorsque cette option reste décochée, continuent d'être exportées en GeoJSON statique comme auparavant

Prérequis : un serveur web compatible PHP avec l'extension pdo_pgsql est nécessaire pour héberger le site exporté dans ce mode (un simple hébergement de fichiers statiques ne suffit pas).

Interface

alt text

Onglet personnalisation

alt text

Interface web exportée

alt text

Installation

Depuis le dépôt officiel QGIS

  1. Ouvrez QGIS
  2. Allez dans ExtensionsGérer et installer les extensions...
  3. Recherchez Universal Map2web
  4. Cliquez sur Installer

Depuis GitHub

  1. Téléchargez le dossier universal_map2web
  2. Copiez-le dans le dossier des plugins QGIS :
    • Windows : C:\Users\VotreNom\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\
    • Linux : ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/
    • Mac : ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/
  3. Activez l'extension dans QGIS

Utilisation

  1. Cliquez sur l'icône Universal Map2web dans la barre d'outils
  2. Sélectionnez les couches à exporter
  3. Personnalisez les options (titre, logo, thème, etc.)
  4. Cliquez sur OK
  5. La carte s'ouvre automatiquement dans votre navigateur

Dépendances

  • QGIS 3.40 ou supérieur
  • Navigateur web moderne (Chrome, Firefox, Edge, Safari)

Licence

Ce projet est sous licence GNU GPL v2. Voir le fichier LICENSE pour plus de détails.

👤 Auteur

Jean-baptiste Bazikité KIBORA

Remerciements

  • QGIS - Le meilleur SIG open source
  • Leaflet - La bibliothèque cartographique JavaScript
  • qgis2web - Source d'inspiration

About

Export QGIS and PostGIS layers into interactive Leaflet web maps. Universal Map2web delivers mobile-responsive maps with preserved legends, attribute filters, custom popups, and UI themes. Ideal for GIS pros and developers to publish spatial data fast without coding. Rate us if you like it!

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages