leafmap
Routes leafmap users to interactive maps, geospatial data helpers, MapLibre viewers, and optional backend choices.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- leafmap
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes leafmap users to interactive maps, geospatial data helpers, MapLibre viewers, and optional backend choices.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-provenance.md1.4 KB
- 参考文档references/repo-routing-metadata.json316 B
- 参考文档references/troubleshooting.md4.5 KB
- 参考文档references/workflow-overview.md2.5 KB
03 SKILL.md 正文
leafmap
Purpose
Use this skill for the leafmap Python package when the task is about interactive geospatial maps, notebook-first data helpers, MapLibre viewers, or choosing among optional backends.
Quick install
Use the published package unless you are explicitly working from a source checkout:
pip install leafmap
For a source checkout, editable install is fine too:
pip install -e .
Add only the targeted extras you actually need:
pip install "leafmap[maplibre]" localtileserver pmtiles fionafor MapLibre viewer workflows, especiallyview-vectorand local GeoJSON inspection.pip install planetary-computer rioxarray xarraywhen data-helper imports complain about those packages.pip install "leafmap[backends]"or a backend-specific package only when you truly need a non-default backend.
Minimal smoke check
python -m leafmap --help
python -c "import leafmap; print(leafmap.__version__)"
If you want a richer local sanity check, run the shared helper:
python scripts/check_leafmap_smoke.py --mode all
Route map
sub-skills/interactive-maps/— default Jupyter maps, basemaps, layers, legends, widgets, split maps, and HTML export.sub-skills/data-workflows/— CSV/GeoJSON/SHP/KML conversion, STAC, Planetary Computer, OSM, fire, Terrascope, and other data helpers.sub-skills/maplibre-viewers/— MapLibre GL maps,view-vector,view-raster,view_pmtiles, andpython -m leafmapCLI behavior.sub-skills/alternate-backends/— kepler, plotly, bokeh, pydeck/deck.gl, HERE, and mapbox backend choice and caveats.
How to choose
- Start with
interactive-mapsunless the task clearly needs remote data retrieval or a standalone viewer. - Use
data-workflowsfor any request that starts with a file, a catalog, a place query, or a service search. - Use
maplibre-viewersfor browser-first HTML output, local file inspection, or CLI viewer commands. - Use
alternate-backendsonly when the user explicitly wants a non-default backend or is diagnosing an optional-backend import issue.
What to read next
references/workflow-overview.mdfor the route map and verified entry points.references/troubleshooting.mdfor cross-cutting install/import, widget, data, viewer, and optional-backend issues.references/repo-provenance.mdwhen you need to check whether this skill is stale for the current repository snapshot.
Notes
- The package exposes both notebook-first and viewer-first workflows; do not force one backend when the request clearly wants the other.
- Optional backends are not the same as default interactive maps. If a backend import fails, route to a verified backend rather than guessing.
- Keep runtime links inside the generated skill tree; do not point back into the source checkout.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.