interactive-maps
Routes leafmap users to interactive ipyleaflet and folium map workflows, including basemaps, layers, legends, widgets, splits, and HTML export.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- interactive-maps
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes leafmap users to interactive ipyleaflet and folium map workflows, including basemaps, layers, legends, widgets, splits, and HTML export.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md2.4 KB
- 参考文档references/troubleshooting.md1.6 KB
- 参考文档references/workflows.md1.9 KB
03 SKILL.md 正文
Interactive Maps
Purpose
Use this sub-skill for the everyday leafmap workflow: create an interactive map, choose the right backend, add layers, show legends or widgets, and export a shareable result.
Read this when
- The user wants to build or modify a Jupyter map with
leafmap. - The user asks about
ipyleafletvsfoliumbehavior. - The user needs basemaps, legends, colorbars, widgets, split views, linked maps, or layer controls.
- The user wants a minimal HTML export or a notebook map that works without revisiting the source repo.
What this sub-skill owns
- Default
leafmap.Mapbehavior and backend selection. leafmap.leafmapandleafmap.foliumapmap creation.- Basemaps, WMS/XYZ layers, GeoJSON, GeoDataFrame, CSV, KML, shapefile, heatmap, point, marker, overlay, and export workflows.
- Toolbar, widgets, legends, colormaps, split maps, and linked maps.
What this sub-skill does not own
- STAC, Planetary Computer, OSM, fire, Terrascope, and other data-source helpers.
- MapLibre viewers and CLI routes.
- Alternative backends such as kepler, plotly, bokeh, pydeck, deck.gl, HERE, or mapbox.
First place to look
references/workflows.mdfor short recipes.references/api-reference.mdfor the verified map methods and helper names.references/troubleshooting.mdwhen widgets, backend fallback, or rendering fails.../../scripts/check_leafmap_smoke.pyfor a quick smoke check.
How to route a request
- Start with
leafmap.Map()unless the user explicitly wants folium. - Use
import leafmap.foliumap as leafmapwhen the user is in Colab, marimo, or wants a static folium map. - Use the helper references when the request mentions a layer or control name rather than a backend name.
- If the task actually needs remote data acquisition or a standalone viewer, route out to the owning sub-skill instead of expanding this one.
Typical workflow
- Pick the backend.
- Create the map with the desired center, zoom, height, and controls.
- Add basemaps and layers.
- Add legends, colorbars, or widgets if needed.
- Export to HTML when sharing outside the notebook.
Common decision points
- Prefer ipyleaflet for interactive notebook workflows that need widget-driven controls.
- Prefer folium when the environment falls back to static rendering or the user explicitly wants a lightweight HTML map.
- Prefer root smoke helper output when you need to confirm the package is usable before trying a larger notebook workflow.
Support files
- Use the bundled references rather than the source checkout when you need the verified method names or troubleshooting steps.
- The root smoke helper is shared across sub-skills, so this sub-skill does not need its own separate runner unless a future revision adds one.
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.