{"id":42881917,"url":"https://github.com/opengeos/qgis-leafmap-plugin","last_synced_at":"2026-01-30T14:41:41.771Z","repository":{"id":331049901,"uuid":"1124014124","full_name":"opengeos/qgis-leafmap-plugin","owner":"opengeos","description":"A QGIS plugin for leafmap","archived":false,"fork":false,"pushed_at":"2026-01-28T16:19:34.000Z","size":94,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-29T07:20:26.595Z","etag":null,"topics":["data-science","geospatial","leafmap","python","qgis","qgis-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opengeos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-28T06:07:23.000Z","updated_at":"2026-01-28T16:19:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/opengeos/qgis-leafmap-plugin","commit_stats":null,"previous_names":["opengeos/qgis-leafmap-plugin"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/opengeos/qgis-leafmap-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengeos%2Fqgis-leafmap-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengeos%2Fqgis-leafmap-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengeos%2Fqgis-leafmap-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengeos%2Fqgis-leafmap-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opengeos","download_url":"https://codeload.github.com/opengeos/qgis-leafmap-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengeos%2Fqgis-leafmap-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","geospatial","leafmap","python","qgis","qgis-plugin"],"created_at":"2026-01-30T14:41:41.050Z","updated_at":"2026-01-30T14:41:41.758Z","avatar_url":"https://github.com/opengeos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leafmap QGIS Plugin\n\nA powerful QGIS plugin for interactive layer visualization and comparison, inspired by the [leafmap](https://github.com/opengeos/leafmap) Python package.\n\n![](https://github.com/user-attachments/assets/082acb93-b954-4321-83cf-ff2af3356e9b)\n\n## Features\n\n- **Layer Transparency Control**: Interactive slider to adjust layer transparency in real-time for all loaded layers\n- **Layer Swipe Tool**: Compare two layers side-by-side with a draggable divider (similar to ipyleaflet split control)\n- **Dockable Panels**: All tools are available as dockable panels that can be positioned anywhere in the QGIS interface\n- **Plugin Update Checker**: Check for updates from GitHub and install them automatically\n- **Settings Panel**: Configure plugin options with persistent storage\n\n## Screenshots\n\n### Layer Transparency Panel\nControl the transparency of all layers with individual sliders. Filter by layer type (raster/vector) and visibility.\n\n![](https://github.com/user-attachments/assets/f431f51e-0584-4a1a-88d2-b9cd32a1eefc)\n\n### Layer Swipe Tool\nCompare two layers by swiping between them. Select left and right layers, choose vertical or horizontal orientation, and drag the divider on the map.\n\n![](https://github.com/user-attachments/assets/303755af-ed5b-4105-ac85-795f0bc7e750)\n\n## Video Tutorial\n\n👉 [Compare Layers Visually in QGIS — New Leafmap Plugin Demo!](https://youtu.be/glBgnyS8IDY)\n\n[![Leafmap QGIS Plugin](https://github.com/user-attachments/assets/c6468f4e-4fbf-4f29-865f-041dcd13d9d4)](https://youtu.be/glBgnyS8IDY)\n\n\n\n## Requirements\n\n- QGIS 3.28 or later\n- Python 3.10+\n\n## Installation\n\n### Option A: QGIS Plugin Manager (Recommended)\n\n1. Open QGIS\n2. Go to **Plugins** → **Manage and Install Plugins...**\n3. Go to the **Settings** tab\n4. Click **Add...** under \"Plugin Repositories\"\n5. Give a name for the repository, e.g., \"OpenGeos\"\n6. Enter the URL of the repository: https://qgis.gishub.org/plugins.xml\n7. Click **OK**\n8. Go to the **All** tab\n9. Search for \"Leafmap\"\n10. Select the plugin and click **Install Plugin**\n\n### Option B: Install Script\n\nUsing Python:\n```bash\n# Clone the repository\ngit clone https://github.com/opengeos/qgis-leafmap-plugin.git\ncd qgis-leafmap-plugin\n\n# Install\npython install.py\n\n# Or remove\npython install.py --remove\n```\n\nUsing Bash:\n```bash\n# Make executable (first time only)\nchmod +x install.sh\n\n# Install\n./install.sh\n\n# Or remove\n./install.sh --remove\n```\n\n### Option C: Manual Installation\n\nCopy the `qgis_leafmap` folder to your QGIS plugins directory:\n\n- **Linux**: `~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/`\n- **macOS**: `~/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/`\n- **Windows**: `%APPDATA%\\QGIS\\QGIS3\\profiles\\default\\python\\plugins\\`\n\n## Usage\n\n### Layer Transparency\n\n1. Click the **Layer Transparency** button in the toolbar or go to **Leafmap** → **Layer Transparency**\n2. A dockable panel will appear with sliders for each layer\n3. Drag the slider to adjust transparency (0% = opaque, 100% = transparent)\n4. Use the filter options to show only raster or vector layers\n5. Use \"Reset All\" to restore all layers to 0% transparency\n\n### Layer Swipe Tool\n\n1. Click the **Layer Swipe** button in the toolbar or go to **Leafmap** → **Layer Swipe**\n2. Select the **Left Layer** (shown on left side of divider)\n3. Select the **Right Layer** (shown on right side of divider)\n4. Choose **Vertical** or **Horizontal** orientation\n5. Click **Activate Swipe**\n6. Drag the divider on the map to compare layers\n7. Use the slider or quick buttons to adjust the divider position\n8. Click **Deactivate Swipe** when done\n\n### Settings\n\n1. Go to **Leafmap** → **Settings**\n2. Adjust general, transparency, and swipe tool options\n3. Click **Save Settings** to persist changes\n\n### Check for Updates\n\n1. Go to **Leafmap** → **Check for Updates...**\n2. Click **Check for Updates** to see if a new version is available\n3. If an update is available, click **Download and Install Update**\n4. Restart QGIS to apply the update\n\n## Project Structure\n\n```\nqgis-leafmap-plugin/\n├── qgis_leafmap/\n│   ├── __init__.py              # Plugin entry point\n│   ├── qgis_leafmap.py          # Main plugin class\n│   ├── metadata.txt             # Plugin metadata for QGIS\n│   ├── LICENSE                  # Plugin license\n│   ├── dialogs/\n│   │   ├── __init__.py\n│   │   ├── transparency_dock.py # Layer transparency panel\n│   │   ├── swipe_dock.py        # Layer swipe/comparison tool\n│   │   ├── settings_dock.py     # Settings panel\n│   │   └── update_checker.py    # Update checker dialog\n│   └── icons/\n│       ├── icon.svg             # Main plugin icon\n│       ├── transparency.svg     # Transparency tool icon\n│       ├── swipe.svg            # Swipe tool icon\n│       ├── settings.svg         # Settings icon\n│       └── about.svg            # About icon\n├── package_plugin.py            # Python packaging script\n├── package_plugin.sh            # Bash packaging script\n├── install.py                   # Python installation script\n├── install.sh                   # Bash installation script\n├── README.md                    # This file\n└── LICENSE                      # Repository license\n```\n\n## Development\n\n### Testing with Conda Environment\n\nFor testing with the `geo` conda environment:\n\n```bash\n# Activate the geo environment\nconda activate geo\n\n# Install the plugin\npython install.py\n\n# Start QGIS from the terminal to see any error messages\nqgis\n```\n\n### Adding New Features\n\n1. Create new dock widgets in the `dialogs/` folder\n2. Add corresponding toggle methods in `qgis_leafmap.py`\n3. Create icons in the `icons/` folder\n4. Update `dialogs/__init__.py` with new imports\n\n## Packaging for QGIS Plugin Repository\n\n### Using Python Script\n\n```bash\n# Default packaging\npython package_plugin.py\n\n# Custom output path\npython package_plugin.py --output /path/to/qgis_leafmap.zip\n\n# Without version in filename\npython package_plugin.py --no-version\n```\n\n### Using Bash Script\n\n```bash\n# Make executable (first time only)\nchmod +x package_plugin.sh\n\n# Default packaging\n./package_plugin.sh\n\n# Custom output directory\n./package_plugin.sh --output /path/to/output\n```\n\n### Uploading to QGIS Plugin Repository\n\n1. Create an account at [plugins.qgis.org](https://plugins.qgis.org/)\n2. Go to \"My plugins\" and click \"Add a new plugin\"\n3. Upload the generated zip file\n4. Fill in the required information\n5. Submit for review\n\n## Related Projects\n\n- [leafmap](https://github.com/opengeos/leafmap) - A Python package for interactive mapping and geospatial analysis\n- [ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet) - A Jupyter widget for Leaflet.js interactive maps\n- [geemap](https://github.com/gee-community/geemap) - A Python package for interactive mapping with Google Earth Engine\n\n## License\n\nThis plugin is released under the MIT License. See [LICENSE](LICENSE) for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Links\n\n- [GitHub Repository](https://github.com/opengeos/qgis-leafmap-plugin)\n- [Report Issues](https://github.com/opengeos/qgis-leafmap-plugin/issues)\n- [Leafmap Documentation](https://leafmap.org)\n- [QGIS Plugin Development Documentation](https://docs.qgis.org/latest/en/docs/pyqgis_developer_cookbook/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengeos%2Fqgis-leafmap-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopengeos%2Fqgis-leafmap-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengeos%2Fqgis-leafmap-plugin/lists"}